Subversion Repositories SmartDukaan

Rev

Rev 13493 | Rev 14182 | 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
 
13493 amit.gupta 92
  def getItems(self, item_ids):
93
    """
94
    Parameters:
95
     - item_ids
96
    """
97
    pass
98
 
5944 mandeep.dh 99
  def getItemsByCatalogId(self, catalog_item_id):
100
    """
101
    Parameters:
102
     - catalog_item_id
103
    """
104
    pass
105
 
106
  def getValidItemsByCatalogId(self, catalog_item_id):
107
    """
108
    Parameters:
109
     - catalog_item_id
110
    """
111
    pass
112
 
113
  def getAllItems(self, isActive):
114
    """
115
    Parameters:
116
     - isActive
117
    """
118
    pass
119
 
120
  def getAllItemsByStatus(self, itemStatus):
121
    """
122
    Parameters:
123
     - itemStatus
124
    """
125
    pass
126
 
9253 rajveer 127
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 128
    """
129
    Parameters:
130
     - entityId
131
     - category
132
     - brand
133
     - modelName
134
     - modelNumber
9253 rajveer 135
     - isAndroid
5944 mandeep.dh 136
    """
137
    pass
138
 
12567 amit.gupta 139
  def getVatRates(self, itemId, categoryId):
140
    """
141
    Parameters:
142
     - itemId
143
     - categoryId
144
    """
145
    pass
146
 
5944 mandeep.dh 147
  def getAllItemsInRange(self, offset, limit):
148
    """
149
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
150
 
151
    Parameters:
152
     - offset
153
     - limit
154
    """
155
    pass
156
 
157
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
158
    """
159
    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.
160
 
161
    Parameters:
162
     - itemStatus
163
     - offset
164
     - limit
165
    """
166
    pass
167
 
168
  def getItemCountByStatus(self, useStatus, itemStatus):
169
    """
170
    Gets a count of all items by status
171
 
172
    Parameters:
173
     - useStatus
174
     - itemStatus
175
    """
176
    pass
177
 
178
  def getBestSellers(self, ):
179
    pass
180
 
181
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
182
    """
183
    Parameters:
184
     - beginIndex
185
     - totalItems
186
     - brand
187
     - category
188
    """
189
    pass
190
 
191
  def getBestSellersCount(self, ):
192
    pass
193
 
194
  def getBestDeals(self, ):
195
    pass
196
 
197
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
198
    """
199
    Parameters:
200
     - beginIndex
201
     - totalItems
202
     - brand
203
     - category
204
    """
205
    pass
206
 
207
  def getBestDealsCount(self, ):
208
    pass
209
 
210
  def getComingSoon(self, ):
211
    pass
212
 
213
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
214
    """
215
    Parameters:
216
     - beginIndex
217
     - totalItems
218
     - brand
219
     - category
220
    """
221
    pass
222
 
223
  def getComingSoonCount(self, ):
224
    pass
225
 
226
  def getLatestArrivals(self, ):
227
    """
228
    Returns a list of items sorted in the descending order by start date.
229
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
230
    """
231
    pass
232
 
233
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
234
    """
235
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
236
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
237
 
238
    Parameters:
239
     - beginIndex
240
     - totalItems
241
     - brand
242
     - categories
243
    """
244
    pass
245
 
246
  def getLatestArrivalsCount(self, ):
247
    """
248
    Get the total number of latest arrivals we are willing to show.
249
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
250
    """
251
    pass
252
 
253
  def generateNewEntityID(self, ):
254
    pass
255
 
256
  def addCategory(self, category):
257
    """
258
    All category related functions
259
 
260
    Parameters:
261
     - category
262
    """
263
    pass
264
 
265
  def getCategory(self, id):
266
    """
267
    Parameters:
268
     - id
269
    """
270
    pass
271
 
272
  def getAllCategories(self, ):
273
    pass
274
 
275
  def getAllSimilarItems(self, itemId):
276
    """
277
    Returns the list of similar items.
278
 
279
    Parameters:
280
     - itemId
281
    """
282
    pass
283
 
284
  def addSimilarItem(self, itemId, catalogItemId):
285
    """
286
    Adds similar item.
287
 
288
    Parameters:
289
     - itemId
290
     - catalogItemId
291
    """
292
    pass
293
 
6512 kshitij.so 294
  def addTag(self, displayName, itemId):
295
    """
296
    Tag Related
297
 
298
    Parameters:
299
     - displayName
300
     - itemId
301
    """
302
    pass
303
 
304
  def deleteEntityTag(self, displayName, itemId):
305
    """
306
    Parameters:
307
     - displayName
308
     - itemId
309
    """
310
    pass
311
 
312
  def deleteTag(self, displayName):
313
    """
314
    Parameters:
315
     - displayName
316
    """
317
    pass
318
 
319
  def getAllTags(self, ):
320
    pass
321
 
322
  def getAllEntitiesByTagName(self, displayName):
323
    """
324
    Parameters:
325
     - displayName
326
    """
327
    pass
328
 
6845 amit.gupta 329
  def getAllEntityTags(self, ):
330
    pass
331
 
8590 kshitij.so 332
  def addBanner(self, bannerCongregate):
6850 kshitij.so 333
    """
8579 kshitij.so 334
    Banner Related
335
 
6850 kshitij.so 336
    Parameters:
8590 kshitij.so 337
     - bannerCongregate
6850 kshitij.so 338
    """
339
    pass
340
 
8579 kshitij.so 341
  def updateBanner(self, banner):
342
    """
343
    Parameters:
344
     - banner
345
    """
346
    pass
347
 
6850 kshitij.so 348
  def getAllBanners(self, ):
349
    pass
350
 
9155 kshitij.so 351
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 352
    """
353
    Parameters:
354
     - bannerName
9155 kshitij.so 355
     - bannerType
6850 kshitij.so 356
    """
357
    pass
358
 
9155 kshitij.so 359
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 360
    """
361
    Parameters:
362
     - bannerName
9155 kshitij.so 363
     - bannerType
6850 kshitij.so 364
    """
365
    pass
366
 
367
  def getActiveBanners(self, ):
368
    pass
369
 
8579 kshitij.so 370
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 371
    """
372
    Parameters:
8579 kshitij.so 373
     - bannerMaps
6849 kshitij.so 374
    """
375
    pass
376
 
8579 kshitij.so 377
  def updateBannerMap(self, bannerMap):
378
    """
379
    Parameters:
380
     - bannerMap
381
    """
382
    pass
383
 
6849 kshitij.so 384
  def deleteBannerMap(self, bannerName):
385
    """
386
    Parameters:
387
     - bannerName
388
    """
389
    pass
390
 
9155 kshitij.so 391
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 392
    """
393
    Parameters:
394
     - bannerName
9155 kshitij.so 395
     - bannerType
6849 kshitij.so 396
    """
397
    pass
398
 
8579 kshitij.so 399
  def addBannerUri(self, bannerUriMappings):
400
    """
401
    Parameters:
402
     - bannerUriMappings
403
    """
404
    pass
405
 
9155 kshitij.so 406
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 407
    """
408
    Parameters:
409
     - bannerName
9155 kshitij.so 410
     - bannerType
8579 kshitij.so 411
    """
412
    pass
413
 
414
  def addCampaign(self, campaign):
415
    """
416
    Parameters:
417
     - campaign
418
    """
419
    pass
420
 
421
  def getCampaigns(self, campaignName):
422
    """
423
    Parameters:
424
     - campaignName
425
    """
426
    pass
427
 
428
  def deleteCampaign(self, campaignId):
429
    """
430
    Parameters:
431
     - campaignId
432
    """
433
    pass
434
 
435
  def getAllCampaigns(self, ):
436
    pass
437
 
9155 kshitij.so 438
  def getActiveBannersForMobileSite(self, ):
439
    pass
440
 
5944 mandeep.dh 441
  def deleteSimilarItem(self, itemId, catalogItemId):
442
    """
443
    Delete similar item.
444
 
445
    Parameters:
446
     - itemId
447
     - catalogItemId
448
    """
449
    pass
450
 
451
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
452
    """
453
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
454
    If yes, returns the itemId else returns 0
455
 
456
    Parameters:
457
     - brand
458
     - modelNumber
459
     - modelName
460
     - color
461
    """
462
    pass
463
 
464
  def validateRiskyStatus(self, itemId):
465
    """
466
    Check wether item is risky and change status if inventory is not available for risky items
467
 
468
    Parameters:
469
     - itemId
470
    """
471
    pass
472
 
473
  def changeItemRiskyFlag(self, itemId, risky):
474
    """
475
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
476
 
477
    Parameters:
478
     - itemId
479
     - risky
480
    """
481
    pass
482
 
483
  def getItemsByRiskyFlag(self, ):
484
    """
485
    Returns list of items marked as risky.
486
    """
487
    pass
488
 
489
  def getItemsForMasterSheet(self, category, brand):
490
    """
491
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
492
 
493
    Parameters:
494
     - category
495
     - brand
496
    """
497
    pass
498
 
499
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
500
    """
501
    Returns list of catalog ids of items with same similarity index as of the given itemId
502
 
503
    Parameters:
504
     - beginIndex
505
     - totalItems
506
     - itemId
507
    """
508
    pass
509
 
510
  def addProductNotification(self, itemId, email):
511
    """
512
    Add user requests for out of stock items. Once user will ask for notify me an entry will
513
 
514
    Parameters:
515
     - itemId
516
     - email
517
    """
518
    pass
519
 
520
  def sendProductNotifications(self, ):
521
    """
522
    Send the product notifications to the users for items which has stock.
523
    """
524
    pass
525
 
526
  def getAllBrandsByCategory(self, categoryId):
527
    """
528
    Returns list of brand names for a given category Id
529
 
530
    Parameters:
531
     - categoryId
532
    """
533
    pass
534
 
535
  def getAllBrands(self, ):
536
    """
537
    Returns list of brand names
538
    """
539
    pass
540
 
541
  def getAllSources(self, ):
542
    """
543
    Return list of all sources
544
    """
545
    pass
546
 
547
  def getItemPricingBySource(self, itemId, sourceId):
548
    """
549
    Returns the pricing information of an item. If no information is found, exception will be thrown.
550
 
551
    Parameters:
552
     - itemId
553
     - sourceId
554
    """
555
    pass
556
 
557
  def addSourceItemPricing(self, sourceItemPricing):
558
    """
559
    Adds prices to be displayed corresponding to the item if user comes from a source.
560
    If item is not found or source is not found, it will throw exception.
561
 
562
    Parameters:
563
     - sourceItemPricing
564
    """
565
    pass
566
 
567
  def getAllSourcePricing(self, itemId):
568
    """
569
    Returns the list of source pricing information of an item.
570
    Raises an exception if item not found corresponding to itemId
571
 
572
    Parameters:
573
     - itemId
574
    """
575
    pass
576
 
577
  def getItemForSource(self, item_id, sourceId):
578
    """
579
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
580
 
581
    Parameters:
582
     - item_id
583
     - sourceId
584
    """
585
    pass
586
 
587
  def searchItemsInRange(self, searchTerms, offset, limit):
588
    """
589
    Searches items matching the the given terms in the catalog and returns results within the specified range.
590
 
591
    Parameters:
592
     - searchTerms
593
     - offset
594
     - limit
595
    """
596
    pass
597
 
598
  def getSearchResultCount(self, searchTerms):
599
    """
600
    Gets the count of search results for the given search terms so that the user can go through all the pages.
601
 
602
    Parameters:
603
     - searchTerms
604
    """
605
    pass
606
 
607
  def getProductNotifications(self, startDateTime):
608
    """
609
    Returns a list of product notifications added after a supplied datetime
610
 
611
    Parameters:
612
     - startDateTime
613
    """
614
    pass
615
 
7897 amar.kumar 616
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 617
    """
618
    Returns a list of count of requests for product notification against each item
619
 
620
    Parameters:
621
     - startDateTime
7897 amar.kumar 622
     - categoryId
5944 mandeep.dh 623
    """
624
    pass
625
 
626
  def addAuthorizationLog(self, itemId, username, reason):
627
    """
628
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
629
 
630
    Parameters:
631
     - itemId
632
     - username
633
     - reason
634
    """
635
    pass
636
 
637
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
638
    """
639
    Parameters:
640
     - catalog_item_id
641
     - voucherType
642
     - voucherAmount
643
    """
644
    pass
645
 
646
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
647
    """
648
    Parameters:
649
     - catalog_item_id
650
     - voucherType
651
    """
652
    pass
653
 
654
  def getVoucherAmount(self, itemId, voucherType):
655
    """
656
    Parameters:
657
     - itemId
658
     - voucherType
659
    """
660
    pass
661
 
662
  def getAllItemVouchers(self, itemId):
663
    """
664
    Parameters:
665
     - itemId
666
    """
667
    pass
668
 
669
  def isValidCatalogItemId(self, catalog_item_id):
670
    """
671
    Parameters:
672
     - catalog_item_id
673
    """
674
    pass
675
 
7330 amit.gupta 676
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 677
    """
678
    Parameters:
679
     - itemId
7330 amit.gupta 680
     - stateId
6039 amit.gupta 681
     - price
682
    """
683
    pass
5944 mandeep.dh 684
 
6039 amit.gupta 685
  def getVatAmountForItem(self, itemId, price):
686
    """
687
    Parameters:
688
     - itemId
689
     - price
690
    """
691
    pass
692
 
6531 vikram.rag 693
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
694
    """
695
    Parameters:
696
     - offset
697
     - limit
698
    """
699
    pass
6039 amit.gupta 700
 
6821 amar.kumar 701
  def getAllAliveItems(self, ):
702
    pass
703
 
6921 anupam.sin 704
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 705
    """
706
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 707
 
6805 anupam.sin 708
    Parameters:
709
     - itemId
6921 anupam.sin 710
     - price
6805 anupam.sin 711
     - insurerId
712
     - quantity
713
    """
714
    pass
715
 
716
  def getInsurer(self, insurerId):
717
    """
718
    Parameters:
719
     - insurerId
720
    """
721
    pass
722
 
6838 vikram.rag 723
  def getAllInsurers(self, ):
724
    pass
6805 anupam.sin 725
 
6962 rajveer 726
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
727
    """
728
    Parameters:
729
     - insurerId
730
     - amount
731
    """
732
    pass
6838 vikram.rag 733
 
7190 amar.kumar 734
  def getFreebieForItem(self, itemId):
735
    """
736
    Parameters:
737
     - itemId
738
    """
739
    pass
6962 rajveer 740
 
7190 amar.kumar 741
  def addOrUpdateFreebieForItem(self, freebieItem):
742
    """
743
    Parameters:
744
     - freebieItem
745
    """
746
    pass
747
 
7272 amit.gupta 748
  def addOrUpdateBrandInfo(self, brandInfo):
749
    """
750
    Parameters:
751
     - brandInfo
752
    """
753
    pass
754
 
755
  def getBrandInfo(self, ):
756
    pass
757
 
7256 rajveer 758
  def getStorePricing(self, itemId):
759
    """
760
    Parameters:
761
     - itemId
762
    """
763
    pass
7190 amar.kumar 764
 
7306 rajveer 765
  def getStorePricings(self, itemIds):
766
    """
767
    Parameters:
768
     - itemIds
769
    """
770
    pass
771
 
7382 rajveer 772
  def updateStorePricing(self, sp, allColors):
7265 rajveer 773
    """
774
    Parameters:
775
     - sp
7382 rajveer 776
     - allColors
7265 rajveer 777
    """
778
    pass
7256 rajveer 779
 
7281 kshitij.so 780
  def getAllAmazonListedItems(self, ):
781
    pass
7265 rajveer 782
 
8619 kshitij.so 783
  def searchAmazonItems(self, searchTerm, offset, limit):
784
    """
785
    Parameters:
786
     - searchTerm
787
     - offset
788
     - limit
789
    """
790
    pass
791
 
792
  def getAmazonSearchResultCount(self, searchTerm):
793
    """
794
    Parameters:
795
     - searchTerm
796
    """
797
    pass
798
 
799
  def getCountForAmazonlistedItems(self, ):
800
    pass
801
 
7281 kshitij.so 802
  def getAmazonItemDetails(self, itemId):
803
    """
804
    Parameters:
805
     - itemId
806
    """
807
    pass
808
 
8168 kshitij.so 809
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 810
    """
811
    Parameters:
8168 kshitij.so 812
     - amazonlisted
7281 kshitij.so 813
    """
814
    pass
815
 
816
  def addAmazonItem(self, amazonlisted):
817
    """
818
    Parameters:
819
     - amazonlisted
820
    """
821
    pass
822
 
7291 vikram.rag 823
  def getAsinItems(self, ):
824
    pass
7281 kshitij.so 825
 
7291 vikram.rag 826
  def getAllFbaListedItems(self, ):
827
    pass
828
 
829
  def getAllNonFbaListedItems(self, ):
830
    pass
831
 
7460 kshitij.so 832
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
833
    """
834
    Parameters:
835
     - itemId
836
     - holdInventory
837
     - defaultInventory
838
    """
839
    pass
7291 vikram.rag 840
 
7770 kshitij.so 841
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
842
    """
843
    Parameters:
844
     - type
845
     - sku
846
     - timestamp
847
    """
848
    pass
7460 kshitij.so 849
 
7897 amar.kumar 850
  def getAllParentCategories(self, ):
851
    pass
7770 kshitij.so 852
 
7977 kshitij.so 853
  def addPageViewEvent(self, pageViewEvents):
854
    """
855
    Parameters:
856
     - pageViewEvents
857
    """
858
    pass
7897 amar.kumar 859
 
7977 kshitij.so 860
  def addCartEvent(self, cartEvents):
861
    """
862
    Parameters:
863
     - cartEvents
864
    """
865
    pass
866
 
8182 amar.kumar 867
  def addEbayItem(self, ebayItem):
868
    """
869
    Parameters:
870
     - ebayItem
871
    """
872
    pass
873
 
874
  def getEbayItem(self, listingId):
875
    """
876
    Parameters:
877
     - listingId
878
    """
879
    pass
880
 
881
  def updateEbayItem(self, ebayItem):
882
    """
883
    Parameters:
884
     - ebayItem
885
    """
886
    pass
887
 
8139 kshitij.so 888
  def getAmazonListedItems(self, offset, limit):
889
    """
890
    Parameters:
891
     - offset
892
     - limit
893
    """
894
    pass
7977 kshitij.so 895
 
8168 kshitij.so 896
  def updateAmazonAttributesInBulk(self, amazonlisted):
897
    """
898
    Parameters:
899
     - amazonlisted
900
    """
901
    pass
8139 kshitij.so 902
 
8379 vikram.rag 903
  def getAllItemstoListOnFba(self, ):
904
    pass
8168 kshitij.so 905
 
8379 vikram.rag 906
  def getAllItemstoListOnNonFba(self, ):
907
    pass
908
 
8619 kshitij.so 909
  def updateAsin(self, item):
910
    """
911
    Parameters:
912
     - item
913
    """
914
    pass
8616 vikram.rag 915
 
8739 vikram.rag 916
  def addOrUpdateSnapdealItem(self, snapdealitem):
917
    """
918
    Parameters:
919
     - snapdealitem
920
    """
921
    pass
8619 kshitij.so 922
 
8739 vikram.rag 923
  def getSnapdealItem(self, item_id):
924
    """
925
    Parameters:
926
     - item_id
927
    """
928
    pass
929
 
9242 kshitij.so 930
  def getSnapdealItemDetails(self, item_id):
931
    """
932
    Parameters:
933
     - item_id
934
    """
935
    pass
936
 
8739 vikram.rag 937
  def getAllSnapdealItems(self, ):
938
    pass
939
 
9242 kshitij.so 940
  def getSnapdealItems(self, offset, limit):
941
    """
942
    Parameters:
943
     - offset
944
     - limit
945
    """
946
    pass
8739 vikram.rag 947
 
9242 kshitij.so 948
  def searchSnapdealItems(self, searchTerm, offset, limit):
949
    """
950
    Parameters:
951
     - searchTerm
952
     - offset
953
     - limit
954
    """
955
    pass
956
 
957
  def getCountForSnapdealItems(self, ):
958
    pass
959
 
960
  def getSnapdealSearchResultCount(self, searchTerm):
961
    """
962
    Parameters:
963
     - searchTerm
964
    """
965
    pass
966
 
9299 kshitij.so 967
  def getPrefferedInsurerForItem(self, itemId, insurerType):
968
    """
969
    Parameters:
970
     - itemId
971
     - insurerType
972
    """
973
    pass
9242 kshitij.so 974
 
9456 vikram.rag 975
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
976
    """
977
    Parameters:
978
     - skuAtSnapdeal
979
    """
980
    pass
9299 kshitij.so 981
 
9621 manish.sha 982
  def getProductFeedSubmit(self, catalogItemId):
983
    """
984
    Parameters:
985
     - catalogItemId
986
    """
987
    pass
9456 vikram.rag 988
 
9621 manish.sha 989
  def addProductFeedSubmit(self, productFeedSubmit):
990
    """
991
    Parameters:
992
     - productFeedSubmit
993
    """
994
    pass
995
 
996
  def updateProductFeedSubmit(self, productFeedSubmit):
997
    """
998
    Parameters:
999
     - productFeedSubmit
1000
    """
1001
    pass
1002
 
1003
  def deleteProductFeedSubmit(self, catalogItemId):
1004
    """
1005
    Parameters:
1006
     - catalogItemId
1007
    """
1008
    pass
1009
 
1010
  def getAllProductFeedSubmit(self, ):
1011
    pass
1012
 
9724 kshitij.so 1013
  def getMarketplacedetailsForItem(self, itemId, sourceId):
1014
    """
1015
    Parameters:
1016
     - itemId
1017
     - sourceId
1018
    """
1019
    pass
9621 manish.sha 1020
 
9724 kshitij.so 1021
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
1022
    """
1023
    Parameters:
1024
     - marketPlaceItem
1025
    """
1026
    pass
1027
 
9779 kshitij.so 1028
  def getCostingForMarketplace(self, source, item_id):
1029
    """
1030
    Parameters:
1031
     - source
1032
     - item_id
1033
    """
1034
    pass
1035
 
9776 vikram.rag 1036
  def getMarketPlaceItemsForPriceUpdate(self, source):
1037
    """
1038
    Parameters:
1039
     - source
1040
    """
1041
    pass
9724 kshitij.so 1042
 
9816 kshitij.so 1043
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 1044
    """
1045
    Parameters:
1046
     - skulist
1047
     - timestamp
9816 kshitij.so 1048
     - source
9776 vikram.rag 1049
    """
1050
    pass
1051
 
9861 rajveer 1052
  def updateItemHoldInventory(self, itemHoldMap):
1053
    """
1054
    Parameters:
1055
     - itemHoldMap
1056
    """
1057
    pass
9776 vikram.rag 1058
 
9895 vikram.rag 1059
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
1060
    """
1061
    Parameters:
1062
     - item_id
1063
     - vendor_id
1064
     - nlc
1065
    """
1066
    pass
9861 rajveer 1067
 
9945 vikram.rag 1068
  def getAllFlipkartItems(self, ):
1069
    pass
9895 vikram.rag 1070
 
10097 kshitij.so 1071
  def addOrUpdateFlipkartItem(self, flipkartitem):
1072
    """
1073
    Parameters:
1074
     - flipkartitem
1075
    """
1076
    pass
9945 vikram.rag 1077
 
10097 kshitij.so 1078
  def getFlipkartItem(self, item_id):
1079
    """
1080
    Parameters:
1081
     - item_id
1082
    """
1083
    pass
1084
 
1085
  def getFlipkartItemDetails(self, item_id):
1086
    """
1087
    Parameters:
1088
     - item_id
1089
    """
1090
    pass
1091
 
1092
  def getFlipkartItems(self, offset, limit):
1093
    """
1094
    Parameters:
1095
     - offset
1096
     - limit
1097
    """
1098
    pass
1099
 
1100
  def searchFlipkartItems(self, searchTerm, offset, limit):
1101
    """
1102
    Parameters:
1103
     - searchTerm
1104
     - offset
1105
     - limit
1106
    """
1107
    pass
1108
 
1109
  def getCountForFlipkartItems(self, ):
1110
    pass
1111
 
1112
  def getFlipkartSearchResultCount(self, searchTerm):
1113
    """
1114
    Parameters:
1115
     - searchTerm
1116
    """
1117
    pass
1118
 
1119
  def getAllFkItems(self, ):
1120
    pass
1121
 
10140 vikram.rag 1122
  def getFlipkartItemBySkyAtFlipkart(self, sku):
1123
    """
1124
    Parameters:
1125
     - sku
1126
    """
1127
    pass
10097 kshitij.so 1128
 
11015 kshitij.so 1129
  def getMarketplaceHistory(self, source, offset, itemId):
1130
    """
1131
    Parameters:
1132
     - source
1133
     - offset
1134
     - itemId
1135
    """
1136
    pass
1137
 
10909 vikram.rag 1138
  def getAllFbbListedItems(self, ):
1139
    pass
10140 vikram.rag 1140
 
10924 vikram.rag 1141
  def getAllFbbPricingItems(self, ):
1142
    pass
10909 vikram.rag 1143
 
11015 kshitij.so 1144
  def getCountForMarketplaceHistory(self, source, itemId):
1145
    """
1146
    Parameters:
1147
     - source
1148
     - itemId
1149
    """
1150
    pass
10924 vikram.rag 1151
 
11015 kshitij.so 1152
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
1153
    """
1154
    Parameters:
1155
     - source
1156
     - startDate
1157
     - endDate
1158
     - offset
1159
     - limit
1160
     - itemId
1161
    """
1162
    pass
1163
 
11531 vikram.rag 1164
  def getPrivateDealDetails(self, item_id):
1165
    """
1166
    Parameters:
1167
     - item_id
1168
    """
1169
    pass
11015 kshitij.so 1170
 
11531 vikram.rag 1171
  def getPrivateDealItems(self, offset, limit):
1172
    """
1173
    Parameters:
1174
     - offset
1175
     - limit
1176
    """
1177
    pass
1178
 
11653 amit.gupta 1179
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
1180
    """
1181
    Parameters:
1182
     - itemIds
1183
     - daysDelta
1184
    """
11592 amit.gupta 1185
    pass
1186
 
11531 vikram.rag 1187
  def addOrUpdatePrivateDeal(self, privateDeal):
1188
    """
1189
    Parameters:
1190
     - privateDeal
1191
    """
1192
    pass
1193
 
11635 vikram.rag 1194
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
1195
    """
1196
    Parameters:
1197
     - beginIndex
1198
     - totalItems
1199
    """
1200
    pass
11531 vikram.rag 1201
 
11645 amit.gupta 1202
  def getPrivateDealsCount(self, ):
1203
    pass
11635 vikram.rag 1204
 
11905 kshitij.so 1205
  def getAmazonOutSyncItems(self, item_id):
1206
    """
1207
    Parameters:
1208
     - item_id
1209
    """
1210
    pass
11645 amit.gupta 1211
 
11905 kshitij.so 1212
  def getAllPrivateDealsComparison(self, ):
1213
    pass
1214
 
12133 kshitij.so 1215
  def getAllSnapdealMarketplaceItem(self, ):
1216
    pass
11905 kshitij.so 1217
 
12133 kshitij.so 1218
  def getAllFlipkartMarketplaceItem(self, ):
1219
    pass
1220
 
12243 kshitij.so 1221
  def addCompetitorScraping(self, competitorPricingMap):
1222
    """
1223
    Parameters:
1224
     - competitorPricingMap
1225
    """
1226
    pass
12133 kshitij.so 1227
 
12243 kshitij.so 1228
  def getPreviousCompetitorScraping(self, delta):
1229
    """
1230
    Parameters:
1231
     - delta
1232
    """
1233
    pass
1234
 
12256 kshitij.so 1235
  def getUploadResultById(self, uploadId):
1236
    """
1237
    Parameters:
1238
     - uploadId
1239
    """
1240
    pass
12243 kshitij.so 1241
 
12363 kshitij.so 1242
  def addAmazonPromotion(self, amazonPromotions):
1243
    """
1244
    Parameters:
1245
     - amazonPromotions
1246
    """
1247
    pass
12256 kshitij.so 1248
 
12363 kshitij.so 1249
  def getAmazonPromotion(self, startDate, endDate):
1250
    """
1251
    Parameters:
1252
     - startDate
1253
     - endDate
1254
    """
1255
    pass
1256
 
1257
  def updateAmazonPromotion(self, amazonPromotions):
1258
    """
1259
    Parameters:
1260
     - amazonPromotions
1261
    """
1262
    pass
1263
 
12567 amit.gupta 1264
  def markPartiallyActive(self, itemId, categoryId):
1265
    """
1266
    Parameters:
1267
     - itemId
1268
     - categoryId
1269
    """
1270
    pass
12363 kshitij.so 1271
 
12567 amit.gupta 1272
  def updateItemStateVat(self, itemId, statevat):
1273
    """
1274
    Parameters:
1275
     - itemId
1276
     - statevat
1277
    """
1278
    pass
1279
 
12620 amit.gupta 1280
  def getExAffiliateItemInfo(self, ):
1281
    pass
12567 amit.gupta 1282
 
12888 kshitij.so 1283
  def getAllItemstoListOnFbg(self, ):
1284
    pass
12620 amit.gupta 1285
 
12892 kshitij.so 1286
  def getAllFbgListedItems(self, ):
1287
    pass
12888 kshitij.so 1288
 
13136 amit.gupta 1289
  def checkServices(self, lines):
1290
    """
1291
    Parameters:
1292
     - lines
1293
    """
1294
    pass
12892 kshitij.so 1295
 
13709 manish.sha 1296
  def addHsItem(self, hsItems):
1297
    """
1298
    Parameters:
1299
     - hsItems
1300
    """
1301
    pass
13136 amit.gupta 1302
 
13709 manish.sha 1303
  def getHsItem(self, hsItemId):
1304
    """
1305
    Parameters:
1306
     - hsItemId
1307
    """
1308
    pass
1309
 
1310
  def updateHsItem(self, hsItem):
1311
    """
1312
    Parameters:
1313
     - hsItem
1314
    """
1315
    pass
1316
 
1317
 
5944 mandeep.dh 1318
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1319
  def __init__(self, iprot, oprot=None):
1320
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1321
 
1322
  def addItem(self, item):
1323
    """
1324
    Availability and inventory attributes
1325
 
1326
    Parameters:
1327
     - item
1328
    """
1329
    self.send_addItem(item)
1330
    return self.recv_addItem()
1331
 
1332
  def send_addItem(self, item):
1333
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1334
    args = addItem_args()
1335
    args.item = item
1336
    args.write(self._oprot)
1337
    self._oprot.writeMessageEnd()
1338
    self._oprot.trans.flush()
1339
 
1340
  def recv_addItem(self, ):
1341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1342
    if mtype == TMessageType.EXCEPTION:
1343
      x = TApplicationException()
1344
      x.read(self._iprot)
1345
      self._iprot.readMessageEnd()
1346
      raise x
1347
    result = addItem_result()
1348
    result.read(self._iprot)
1349
    self._iprot.readMessageEnd()
1350
    if result.success is not None:
1351
      return result.success
1352
    if result.cex is not None:
1353
      raise result.cex
1354
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1355
 
1356
  def updateItem(self, item):
1357
    """
1358
    Parameters:
1359
     - item
1360
    """
1361
    self.send_updateItem(item)
1362
    return self.recv_updateItem()
1363
 
1364
  def send_updateItem(self, item):
1365
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1366
    args = updateItem_args()
1367
    args.item = item
1368
    args.write(self._oprot)
1369
    self._oprot.writeMessageEnd()
1370
    self._oprot.trans.flush()
1371
 
1372
  def recv_updateItem(self, ):
1373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1374
    if mtype == TMessageType.EXCEPTION:
1375
      x = TApplicationException()
1376
      x.read(self._iprot)
1377
      self._iprot.readMessageEnd()
1378
      raise x
1379
    result = updateItem_result()
1380
    result.read(self._iprot)
1381
    self._iprot.readMessageEnd()
1382
    if result.success is not None:
1383
      return result.success
1384
    if result.cex is not None:
1385
      raise result.cex
1386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1387
 
1388
  def isActive(self, itemId):
1389
    """
1390
    Checks if the item given to the corresponding itemId is active. If it's active,
1391
    whether it's risky and if it's risky, its inventory position.
1392
 
1393
    Parameters:
1394
     - itemId
1395
    """
1396
    self.send_isActive(itemId)
1397
    return self.recv_isActive()
1398
 
1399
  def send_isActive(self, itemId):
1400
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1401
    args = isActive_args()
1402
    args.itemId = itemId
1403
    args.write(self._oprot)
1404
    self._oprot.writeMessageEnd()
1405
    self._oprot.trans.flush()
1406
 
1407
  def recv_isActive(self, ):
1408
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1409
    if mtype == TMessageType.EXCEPTION:
1410
      x = TApplicationException()
1411
      x.read(self._iprot)
1412
      self._iprot.readMessageEnd()
1413
      raise x
1414
    result = isActive_result()
1415
    result.read(self._iprot)
1416
    self._iprot.readMessageEnd()
1417
    if result.success is not None:
1418
      return result.success
1419
    if result.isex is not None:
1420
      raise result.isex
1421
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1422
 
7438 amit.gupta 1423
  def getItemsStatus(self, itemIds):
1424
    """
1425
    Parameters:
1426
     - itemIds
1427
    """
1428
    self.send_getItemsStatus(itemIds)
1429
    return self.recv_getItemsStatus()
1430
 
1431
  def send_getItemsStatus(self, itemIds):
1432
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1433
    args = getItemsStatus_args()
1434
    args.itemIds = itemIds
1435
    args.write(self._oprot)
1436
    self._oprot.writeMessageEnd()
1437
    self._oprot.trans.flush()
1438
 
1439
  def recv_getItemsStatus(self, ):
1440
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1441
    if mtype == TMessageType.EXCEPTION:
1442
      x = TApplicationException()
1443
      x.read(self._iprot)
1444
      self._iprot.readMessageEnd()
1445
      raise x
1446
    result = getItemsStatus_result()
1447
    result.read(self._iprot)
1448
    self._iprot.readMessageEnd()
1449
    if result.success is not None:
1450
      return result.success
1451
    if result.isex is not None:
1452
      raise result.isex
1453
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1454
 
5944 mandeep.dh 1455
  def getItemStatusDescription(self, itemId):
1456
    """
1457
    Parameters:
1458
     - itemId
1459
    """
1460
    self.send_getItemStatusDescription(itemId)
1461
    return self.recv_getItemStatusDescription()
1462
 
1463
  def send_getItemStatusDescription(self, itemId):
1464
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1465
    args = getItemStatusDescription_args()
1466
    args.itemId = itemId
1467
    args.write(self._oprot)
1468
    self._oprot.writeMessageEnd()
1469
    self._oprot.trans.flush()
1470
 
1471
  def recv_getItemStatusDescription(self, ):
1472
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1473
    if mtype == TMessageType.EXCEPTION:
1474
      x = TApplicationException()
1475
      x.read(self._iprot)
1476
      self._iprot.readMessageEnd()
1477
      raise x
1478
    result = getItemStatusDescription_result()
1479
    result.read(self._iprot)
1480
    self._iprot.readMessageEnd()
1481
    if result.success is not None:
1482
      return result.success
1483
    if result.isex is not None:
1484
      raise result.isex
1485
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1486
 
1487
  def startItemOn(self, item_id, timestamp):
1488
    """
1489
    Parameters:
1490
     - item_id
1491
     - timestamp
1492
    """
1493
    self.send_startItemOn(item_id, timestamp)
1494
    self.recv_startItemOn()
1495
 
1496
  def send_startItemOn(self, item_id, timestamp):
1497
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1498
    args = startItemOn_args()
1499
    args.item_id = item_id
1500
    args.timestamp = timestamp
1501
    args.write(self._oprot)
1502
    self._oprot.writeMessageEnd()
1503
    self._oprot.trans.flush()
1504
 
1505
  def recv_startItemOn(self, ):
1506
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1507
    if mtype == TMessageType.EXCEPTION:
1508
      x = TApplicationException()
1509
      x.read(self._iprot)
1510
      self._iprot.readMessageEnd()
1511
      raise x
1512
    result = startItemOn_result()
1513
    result.read(self._iprot)
1514
    self._iprot.readMessageEnd()
1515
    if result.cex is not None:
1516
      raise result.cex
1517
    return
1518
 
1519
  def retireItemOn(self, item_id, timestamp):
1520
    """
1521
    Parameters:
1522
     - item_id
1523
     - timestamp
1524
    """
1525
    self.send_retireItemOn(item_id, timestamp)
1526
    self.recv_retireItemOn()
1527
 
1528
  def send_retireItemOn(self, item_id, timestamp):
1529
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1530
    args = retireItemOn_args()
1531
    args.item_id = item_id
1532
    args.timestamp = timestamp
1533
    args.write(self._oprot)
1534
    self._oprot.writeMessageEnd()
1535
    self._oprot.trans.flush()
1536
 
1537
  def recv_retireItemOn(self, ):
1538
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1539
    if mtype == TMessageType.EXCEPTION:
1540
      x = TApplicationException()
1541
      x.read(self._iprot)
1542
      self._iprot.readMessageEnd()
1543
      raise x
1544
    result = retireItemOn_result()
1545
    result.read(self._iprot)
1546
    self._iprot.readMessageEnd()
1547
    if result.cex is not None:
1548
      raise result.cex
1549
    return
1550
 
1551
  def changeItemStatus(self, item_id, timestamp, newstatus):
1552
    """
1553
    Parameters:
1554
     - item_id
1555
     - timestamp
1556
     - newstatus
1557
    """
1558
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1559
    self.recv_changeItemStatus()
1560
 
1561
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1562
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1563
    args = changeItemStatus_args()
1564
    args.item_id = item_id
1565
    args.timestamp = timestamp
1566
    args.newstatus = newstatus
1567
    args.write(self._oprot)
1568
    self._oprot.writeMessageEnd()
1569
    self._oprot.trans.flush()
1570
 
1571
  def recv_changeItemStatus(self, ):
1572
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1573
    if mtype == TMessageType.EXCEPTION:
1574
      x = TApplicationException()
1575
      x.read(self._iprot)
1576
      self._iprot.readMessageEnd()
1577
      raise x
1578
    result = changeItemStatus_result()
1579
    result.read(self._iprot)
1580
    self._iprot.readMessageEnd()
1581
    if result.cex is not None:
1582
      raise result.cex
1583
    return
1584
 
1585
  def getItem(self, item_id):
1586
    """
1587
    Parameters:
1588
     - item_id
1589
    """
1590
    self.send_getItem(item_id)
1591
    return self.recv_getItem()
1592
 
1593
  def send_getItem(self, item_id):
1594
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1595
    args = getItem_args()
1596
    args.item_id = item_id
1597
    args.write(self._oprot)
1598
    self._oprot.writeMessageEnd()
1599
    self._oprot.trans.flush()
1600
 
1601
  def recv_getItem(self, ):
1602
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1603
    if mtype == TMessageType.EXCEPTION:
1604
      x = TApplicationException()
1605
      x.read(self._iprot)
1606
      self._iprot.readMessageEnd()
1607
      raise x
1608
    result = getItem_result()
1609
    result.read(self._iprot)
1610
    self._iprot.readMessageEnd()
1611
    if result.success is not None:
1612
      return result.success
1613
    if result.cex is not None:
1614
      raise result.cex
1615
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1616
 
13493 amit.gupta 1617
  def getItems(self, item_ids):
1618
    """
1619
    Parameters:
1620
     - item_ids
1621
    """
1622
    self.send_getItems(item_ids)
1623
    return self.recv_getItems()
1624
 
1625
  def send_getItems(self, item_ids):
1626
    self._oprot.writeMessageBegin('getItems', TMessageType.CALL, self._seqid)
1627
    args = getItems_args()
1628
    args.item_ids = item_ids
1629
    args.write(self._oprot)
1630
    self._oprot.writeMessageEnd()
1631
    self._oprot.trans.flush()
1632
 
1633
  def recv_getItems(self, ):
1634
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1635
    if mtype == TMessageType.EXCEPTION:
1636
      x = TApplicationException()
1637
      x.read(self._iprot)
1638
      self._iprot.readMessageEnd()
1639
      raise x
1640
    result = getItems_result()
1641
    result.read(self._iprot)
1642
    self._iprot.readMessageEnd()
1643
    if result.success is not None:
1644
      return result.success
1645
    if result.cex is not None:
1646
      raise result.cex
1647
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItems failed: unknown result");
1648
 
5944 mandeep.dh 1649
  def getItemsByCatalogId(self, catalog_item_id):
1650
    """
1651
    Parameters:
1652
     - catalog_item_id
1653
    """
1654
    self.send_getItemsByCatalogId(catalog_item_id)
1655
    return self.recv_getItemsByCatalogId()
1656
 
1657
  def send_getItemsByCatalogId(self, catalog_item_id):
1658
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1659
    args = getItemsByCatalogId_args()
1660
    args.catalog_item_id = catalog_item_id
1661
    args.write(self._oprot)
1662
    self._oprot.writeMessageEnd()
1663
    self._oprot.trans.flush()
1664
 
1665
  def recv_getItemsByCatalogId(self, ):
1666
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1667
    if mtype == TMessageType.EXCEPTION:
1668
      x = TApplicationException()
1669
      x.read(self._iprot)
1670
      self._iprot.readMessageEnd()
1671
      raise x
1672
    result = getItemsByCatalogId_result()
1673
    result.read(self._iprot)
1674
    self._iprot.readMessageEnd()
1675
    if result.success is not None:
1676
      return result.success
1677
    if result.cex is not None:
1678
      raise result.cex
1679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1680
 
1681
  def getValidItemsByCatalogId(self, catalog_item_id):
1682
    """
1683
    Parameters:
1684
     - catalog_item_id
1685
    """
1686
    self.send_getValidItemsByCatalogId(catalog_item_id)
1687
    return self.recv_getValidItemsByCatalogId()
1688
 
1689
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1690
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1691
    args = getValidItemsByCatalogId_args()
1692
    args.catalog_item_id = catalog_item_id
1693
    args.write(self._oprot)
1694
    self._oprot.writeMessageEnd()
1695
    self._oprot.trans.flush()
1696
 
1697
  def recv_getValidItemsByCatalogId(self, ):
1698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1699
    if mtype == TMessageType.EXCEPTION:
1700
      x = TApplicationException()
1701
      x.read(self._iprot)
1702
      self._iprot.readMessageEnd()
1703
      raise x
1704
    result = getValidItemsByCatalogId_result()
1705
    result.read(self._iprot)
1706
    self._iprot.readMessageEnd()
1707
    if result.success is not None:
1708
      return result.success
1709
    if result.cex is not None:
1710
      raise result.cex
1711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1712
 
1713
  def getAllItems(self, isActive):
1714
    """
1715
    Parameters:
1716
     - isActive
1717
    """
1718
    self.send_getAllItems(isActive)
1719
    return self.recv_getAllItems()
1720
 
1721
  def send_getAllItems(self, isActive):
1722
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1723
    args = getAllItems_args()
1724
    args.isActive = isActive
1725
    args.write(self._oprot)
1726
    self._oprot.writeMessageEnd()
1727
    self._oprot.trans.flush()
1728
 
1729
  def recv_getAllItems(self, ):
1730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1731
    if mtype == TMessageType.EXCEPTION:
1732
      x = TApplicationException()
1733
      x.read(self._iprot)
1734
      self._iprot.readMessageEnd()
1735
      raise x
1736
    result = getAllItems_result()
1737
    result.read(self._iprot)
1738
    self._iprot.readMessageEnd()
1739
    if result.success is not None:
1740
      return result.success
1741
    if result.cex is not None:
1742
      raise result.cex
1743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1744
 
1745
  def getAllItemsByStatus(self, itemStatus):
1746
    """
1747
    Parameters:
1748
     - itemStatus
1749
    """
1750
    self.send_getAllItemsByStatus(itemStatus)
1751
    return self.recv_getAllItemsByStatus()
1752
 
1753
  def send_getAllItemsByStatus(self, itemStatus):
1754
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1755
    args = getAllItemsByStatus_args()
1756
    args.itemStatus = itemStatus
1757
    args.write(self._oprot)
1758
    self._oprot.writeMessageEnd()
1759
    self._oprot.trans.flush()
1760
 
1761
  def recv_getAllItemsByStatus(self, ):
1762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1763
    if mtype == TMessageType.EXCEPTION:
1764
      x = TApplicationException()
1765
      x.read(self._iprot)
1766
      self._iprot.readMessageEnd()
1767
      raise x
1768
    result = getAllItemsByStatus_result()
1769
    result.read(self._iprot)
1770
    self._iprot.readMessageEnd()
1771
    if result.success is not None:
1772
      return result.success
1773
    if result.cex is not None:
1774
      raise result.cex
1775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1776
 
9253 rajveer 1777
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1778
    """
1779
    Parameters:
1780
     - entityId
1781
     - category
1782
     - brand
1783
     - modelName
1784
     - modelNumber
9253 rajveer 1785
     - isAndroid
5944 mandeep.dh 1786
    """
9253 rajveer 1787
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1788
    return self.recv_markItemAsContentComplete()
1789
 
9253 rajveer 1790
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1791
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1792
    args = markItemAsContentComplete_args()
1793
    args.entityId = entityId
1794
    args.category = category
1795
    args.brand = brand
1796
    args.modelName = modelName
1797
    args.modelNumber = modelNumber
9253 rajveer 1798
    args.isAndroid = isAndroid
5944 mandeep.dh 1799
    args.write(self._oprot)
1800
    self._oprot.writeMessageEnd()
1801
    self._oprot.trans.flush()
1802
 
1803
  def recv_markItemAsContentComplete(self, ):
1804
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1805
    if mtype == TMessageType.EXCEPTION:
1806
      x = TApplicationException()
1807
      x.read(self._iprot)
1808
      self._iprot.readMessageEnd()
1809
      raise x
1810
    result = markItemAsContentComplete_result()
1811
    result.read(self._iprot)
1812
    self._iprot.readMessageEnd()
1813
    if result.success is not None:
1814
      return result.success
1815
    if result.cex is not None:
1816
      raise result.cex
1817
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1818
 
12567 amit.gupta 1819
  def getVatRates(self, itemId, categoryId):
1820
    """
1821
    Parameters:
1822
     - itemId
1823
     - categoryId
1824
    """
1825
    self.send_getVatRates(itemId, categoryId)
1826
    return self.recv_getVatRates()
1827
 
1828
  def send_getVatRates(self, itemId, categoryId):
1829
    self._oprot.writeMessageBegin('getVatRates', TMessageType.CALL, self._seqid)
1830
    args = getVatRates_args()
1831
    args.itemId = itemId
1832
    args.categoryId = categoryId
1833
    args.write(self._oprot)
1834
    self._oprot.writeMessageEnd()
1835
    self._oprot.trans.flush()
1836
 
1837
  def recv_getVatRates(self, ):
1838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1839
    if mtype == TMessageType.EXCEPTION:
1840
      x = TApplicationException()
1841
      x.read(self._iprot)
1842
      self._iprot.readMessageEnd()
1843
      raise x
1844
    result = getVatRates_result()
1845
    result.read(self._iprot)
1846
    self._iprot.readMessageEnd()
1847
    if result.success is not None:
1848
      return result.success
1849
    if result.cex is not None:
1850
      raise result.cex
1851
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatRates failed: unknown result");
1852
 
5944 mandeep.dh 1853
  def getAllItemsInRange(self, offset, limit):
1854
    """
1855
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1856
 
1857
    Parameters:
1858
     - offset
1859
     - limit
1860
    """
1861
    self.send_getAllItemsInRange(offset, limit)
1862
    return self.recv_getAllItemsInRange()
1863
 
1864
  def send_getAllItemsInRange(self, offset, limit):
1865
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1866
    args = getAllItemsInRange_args()
1867
    args.offset = offset
1868
    args.limit = limit
1869
    args.write(self._oprot)
1870
    self._oprot.writeMessageEnd()
1871
    self._oprot.trans.flush()
1872
 
1873
  def recv_getAllItemsInRange(self, ):
1874
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1875
    if mtype == TMessageType.EXCEPTION:
1876
      x = TApplicationException()
1877
      x.read(self._iprot)
1878
      self._iprot.readMessageEnd()
1879
      raise x
1880
    result = getAllItemsInRange_result()
1881
    result.read(self._iprot)
1882
    self._iprot.readMessageEnd()
1883
    if result.success is not None:
1884
      return result.success
1885
    if result.cex is not None:
1886
      raise result.cex
1887
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1888
 
1889
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1890
    """
1891
    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.
1892
 
1893
    Parameters:
1894
     - itemStatus
1895
     - offset
1896
     - limit
1897
    """
1898
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1899
    return self.recv_getAllItemsByStatusInRange()
1900
 
1901
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1902
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1903
    args = getAllItemsByStatusInRange_args()
1904
    args.itemStatus = itemStatus
1905
    args.offset = offset
1906
    args.limit = limit
1907
    args.write(self._oprot)
1908
    self._oprot.writeMessageEnd()
1909
    self._oprot.trans.flush()
1910
 
1911
  def recv_getAllItemsByStatusInRange(self, ):
1912
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1913
    if mtype == TMessageType.EXCEPTION:
1914
      x = TApplicationException()
1915
      x.read(self._iprot)
1916
      self._iprot.readMessageEnd()
1917
      raise x
1918
    result = getAllItemsByStatusInRange_result()
1919
    result.read(self._iprot)
1920
    self._iprot.readMessageEnd()
1921
    if result.success is not None:
1922
      return result.success
1923
    if result.cex is not None:
1924
      raise result.cex
1925
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1926
 
1927
  def getItemCountByStatus(self, useStatus, itemStatus):
1928
    """
1929
    Gets a count of all items by status
1930
 
1931
    Parameters:
1932
     - useStatus
1933
     - itemStatus
1934
    """
1935
    self.send_getItemCountByStatus(useStatus, itemStatus)
1936
    return self.recv_getItemCountByStatus()
1937
 
1938
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1939
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1940
    args = getItemCountByStatus_args()
1941
    args.useStatus = useStatus
1942
    args.itemStatus = itemStatus
1943
    args.write(self._oprot)
1944
    self._oprot.writeMessageEnd()
1945
    self._oprot.trans.flush()
1946
 
1947
  def recv_getItemCountByStatus(self, ):
1948
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1949
    if mtype == TMessageType.EXCEPTION:
1950
      x = TApplicationException()
1951
      x.read(self._iprot)
1952
      self._iprot.readMessageEnd()
1953
      raise x
1954
    result = getItemCountByStatus_result()
1955
    result.read(self._iprot)
1956
    self._iprot.readMessageEnd()
1957
    if result.success is not None:
1958
      return result.success
1959
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1960
 
1961
  def getBestSellers(self, ):
1962
    self.send_getBestSellers()
1963
    return self.recv_getBestSellers()
1964
 
1965
  def send_getBestSellers(self, ):
1966
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1967
    args = getBestSellers_args()
1968
    args.write(self._oprot)
1969
    self._oprot.writeMessageEnd()
1970
    self._oprot.trans.flush()
1971
 
1972
  def recv_getBestSellers(self, ):
1973
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1974
    if mtype == TMessageType.EXCEPTION:
1975
      x = TApplicationException()
1976
      x.read(self._iprot)
1977
      self._iprot.readMessageEnd()
1978
      raise x
1979
    result = getBestSellers_result()
1980
    result.read(self._iprot)
1981
    self._iprot.readMessageEnd()
1982
    if result.success is not None:
1983
      return result.success
1984
    if result.isex is not None:
1985
      raise result.isex
1986
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1987
 
1988
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1989
    """
1990
    Parameters:
1991
     - beginIndex
1992
     - totalItems
1993
     - brand
1994
     - category
1995
    """
1996
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1997
    return self.recv_getBestSellersCatalogIds()
1998
 
1999
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
2000
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
2001
    args = getBestSellersCatalogIds_args()
2002
    args.beginIndex = beginIndex
2003
    args.totalItems = totalItems
2004
    args.brand = brand
2005
    args.category = category
2006
    args.write(self._oprot)
2007
    self._oprot.writeMessageEnd()
2008
    self._oprot.trans.flush()
2009
 
2010
  def recv_getBestSellersCatalogIds(self, ):
2011
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2012
    if mtype == TMessageType.EXCEPTION:
2013
      x = TApplicationException()
2014
      x.read(self._iprot)
2015
      self._iprot.readMessageEnd()
2016
      raise x
2017
    result = getBestSellersCatalogIds_result()
2018
    result.read(self._iprot)
2019
    self._iprot.readMessageEnd()
2020
    if result.success is not None:
2021
      return result.success
2022
    if result.cex is not None:
2023
      raise result.cex
2024
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
2025
 
2026
  def getBestSellersCount(self, ):
2027
    self.send_getBestSellersCount()
2028
    return self.recv_getBestSellersCount()
2029
 
2030
  def send_getBestSellersCount(self, ):
2031
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
2032
    args = getBestSellersCount_args()
2033
    args.write(self._oprot)
2034
    self._oprot.writeMessageEnd()
2035
    self._oprot.trans.flush()
2036
 
2037
  def recv_getBestSellersCount(self, ):
2038
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2039
    if mtype == TMessageType.EXCEPTION:
2040
      x = TApplicationException()
2041
      x.read(self._iprot)
2042
      self._iprot.readMessageEnd()
2043
      raise x
2044
    result = getBestSellersCount_result()
2045
    result.read(self._iprot)
2046
    self._iprot.readMessageEnd()
2047
    if result.success is not None:
2048
      return result.success
2049
    if result.cex is not None:
2050
      raise result.cex
2051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
2052
 
2053
  def getBestDeals(self, ):
2054
    self.send_getBestDeals()
2055
    return self.recv_getBestDeals()
2056
 
2057
  def send_getBestDeals(self, ):
2058
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
2059
    args = getBestDeals_args()
2060
    args.write(self._oprot)
2061
    self._oprot.writeMessageEnd()
2062
    self._oprot.trans.flush()
2063
 
2064
  def recv_getBestDeals(self, ):
2065
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2066
    if mtype == TMessageType.EXCEPTION:
2067
      x = TApplicationException()
2068
      x.read(self._iprot)
2069
      self._iprot.readMessageEnd()
2070
      raise x
2071
    result = getBestDeals_result()
2072
    result.read(self._iprot)
2073
    self._iprot.readMessageEnd()
2074
    if result.success is not None:
2075
      return result.success
2076
    if result.isex is not None:
2077
      raise result.isex
2078
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
2079
 
2080
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2081
    """
2082
    Parameters:
2083
     - beginIndex
2084
     - totalItems
2085
     - brand
2086
     - category
2087
    """
2088
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
2089
    return self.recv_getBestDealsCatalogIds()
2090
 
2091
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2092
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
2093
    args = getBestDealsCatalogIds_args()
2094
    args.beginIndex = beginIndex
2095
    args.totalItems = totalItems
2096
    args.brand = brand
2097
    args.category = category
2098
    args.write(self._oprot)
2099
    self._oprot.writeMessageEnd()
2100
    self._oprot.trans.flush()
2101
 
2102
  def recv_getBestDealsCatalogIds(self, ):
2103
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2104
    if mtype == TMessageType.EXCEPTION:
2105
      x = TApplicationException()
2106
      x.read(self._iprot)
2107
      self._iprot.readMessageEnd()
2108
      raise x
2109
    result = getBestDealsCatalogIds_result()
2110
    result.read(self._iprot)
2111
    self._iprot.readMessageEnd()
2112
    if result.success is not None:
2113
      return result.success
2114
    if result.cex is not None:
2115
      raise result.cex
2116
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
2117
 
2118
  def getBestDealsCount(self, ):
2119
    self.send_getBestDealsCount()
2120
    return self.recv_getBestDealsCount()
2121
 
2122
  def send_getBestDealsCount(self, ):
2123
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
2124
    args = getBestDealsCount_args()
2125
    args.write(self._oprot)
2126
    self._oprot.writeMessageEnd()
2127
    self._oprot.trans.flush()
2128
 
2129
  def recv_getBestDealsCount(self, ):
2130
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2131
    if mtype == TMessageType.EXCEPTION:
2132
      x = TApplicationException()
2133
      x.read(self._iprot)
2134
      self._iprot.readMessageEnd()
2135
      raise x
2136
    result = getBestDealsCount_result()
2137
    result.read(self._iprot)
2138
    self._iprot.readMessageEnd()
2139
    if result.success is not None:
2140
      return result.success
2141
    if result.cex is not None:
2142
      raise result.cex
2143
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
2144
 
2145
  def getComingSoon(self, ):
2146
    self.send_getComingSoon()
2147
    return self.recv_getComingSoon()
2148
 
2149
  def send_getComingSoon(self, ):
2150
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
2151
    args = getComingSoon_args()
2152
    args.write(self._oprot)
2153
    self._oprot.writeMessageEnd()
2154
    self._oprot.trans.flush()
2155
 
2156
  def recv_getComingSoon(self, ):
2157
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2158
    if mtype == TMessageType.EXCEPTION:
2159
      x = TApplicationException()
2160
      x.read(self._iprot)
2161
      self._iprot.readMessageEnd()
2162
      raise x
2163
    result = getComingSoon_result()
2164
    result.read(self._iprot)
2165
    self._iprot.readMessageEnd()
2166
    if result.success is not None:
2167
      return result.success
2168
    if result.isex is not None:
2169
      raise result.isex
2170
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
2171
 
2172
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2173
    """
2174
    Parameters:
2175
     - beginIndex
2176
     - totalItems
2177
     - brand
2178
     - category
2179
    """
2180
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
2181
    return self.recv_getComingSoonCatalogIds()
2182
 
2183
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2184
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
2185
    args = getComingSoonCatalogIds_args()
2186
    args.beginIndex = beginIndex
2187
    args.totalItems = totalItems
2188
    args.brand = brand
2189
    args.category = category
2190
    args.write(self._oprot)
2191
    self._oprot.writeMessageEnd()
2192
    self._oprot.trans.flush()
2193
 
2194
  def recv_getComingSoonCatalogIds(self, ):
2195
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2196
    if mtype == TMessageType.EXCEPTION:
2197
      x = TApplicationException()
2198
      x.read(self._iprot)
2199
      self._iprot.readMessageEnd()
2200
      raise x
2201
    result = getComingSoonCatalogIds_result()
2202
    result.read(self._iprot)
2203
    self._iprot.readMessageEnd()
2204
    if result.success is not None:
2205
      return result.success
2206
    if result.cex is not None:
2207
      raise result.cex
2208
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
2209
 
2210
  def getComingSoonCount(self, ):
2211
    self.send_getComingSoonCount()
2212
    return self.recv_getComingSoonCount()
2213
 
2214
  def send_getComingSoonCount(self, ):
2215
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
2216
    args = getComingSoonCount_args()
2217
    args.write(self._oprot)
2218
    self._oprot.writeMessageEnd()
2219
    self._oprot.trans.flush()
2220
 
2221
  def recv_getComingSoonCount(self, ):
2222
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2223
    if mtype == TMessageType.EXCEPTION:
2224
      x = TApplicationException()
2225
      x.read(self._iprot)
2226
      self._iprot.readMessageEnd()
2227
      raise x
2228
    result = getComingSoonCount_result()
2229
    result.read(self._iprot)
2230
    self._iprot.readMessageEnd()
2231
    if result.success is not None:
2232
      return result.success
2233
    if result.cex is not None:
2234
      raise result.cex
2235
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
2236
 
2237
  def getLatestArrivals(self, ):
2238
    """
2239
    Returns a list of items sorted in the descending order by start date.
2240
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
2241
    """
2242
    self.send_getLatestArrivals()
2243
    return self.recv_getLatestArrivals()
2244
 
2245
  def send_getLatestArrivals(self, ):
2246
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
2247
    args = getLatestArrivals_args()
2248
    args.write(self._oprot)
2249
    self._oprot.writeMessageEnd()
2250
    self._oprot.trans.flush()
2251
 
2252
  def recv_getLatestArrivals(self, ):
2253
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2254
    if mtype == TMessageType.EXCEPTION:
2255
      x = TApplicationException()
2256
      x.read(self._iprot)
2257
      self._iprot.readMessageEnd()
2258
      raise x
2259
    result = getLatestArrivals_result()
2260
    result.read(self._iprot)
2261
    self._iprot.readMessageEnd()
2262
    if result.success is not None:
2263
      return result.success
2264
    if result.isex is not None:
2265
      raise result.isex
2266
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2267
 
2268
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2269
    """
2270
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2271
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2272
 
2273
    Parameters:
2274
     - beginIndex
2275
     - totalItems
2276
     - brand
2277
     - categories
2278
    """
2279
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2280
    return self.recv_getLatestArrivalsCatalogIds()
2281
 
2282
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2283
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2284
    args = getLatestArrivalsCatalogIds_args()
2285
    args.beginIndex = beginIndex
2286
    args.totalItems = totalItems
2287
    args.brand = brand
2288
    args.categories = categories
2289
    args.write(self._oprot)
2290
    self._oprot.writeMessageEnd()
2291
    self._oprot.trans.flush()
2292
 
2293
  def recv_getLatestArrivalsCatalogIds(self, ):
2294
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2295
    if mtype == TMessageType.EXCEPTION:
2296
      x = TApplicationException()
2297
      x.read(self._iprot)
2298
      self._iprot.readMessageEnd()
2299
      raise x
2300
    result = getLatestArrivalsCatalogIds_result()
2301
    result.read(self._iprot)
2302
    self._iprot.readMessageEnd()
2303
    if result.success is not None:
2304
      return result.success
2305
    if result.cex is not None:
2306
      raise result.cex
2307
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2308
 
2309
  def getLatestArrivalsCount(self, ):
2310
    """
2311
    Get the total number of latest arrivals we are willing to show.
2312
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2313
    """
2314
    self.send_getLatestArrivalsCount()
2315
    return self.recv_getLatestArrivalsCount()
2316
 
2317
  def send_getLatestArrivalsCount(self, ):
2318
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2319
    args = getLatestArrivalsCount_args()
2320
    args.write(self._oprot)
2321
    self._oprot.writeMessageEnd()
2322
    self._oprot.trans.flush()
2323
 
2324
  def recv_getLatestArrivalsCount(self, ):
2325
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2326
    if mtype == TMessageType.EXCEPTION:
2327
      x = TApplicationException()
2328
      x.read(self._iprot)
2329
      self._iprot.readMessageEnd()
2330
      raise x
2331
    result = getLatestArrivalsCount_result()
2332
    result.read(self._iprot)
2333
    self._iprot.readMessageEnd()
2334
    if result.success is not None:
2335
      return result.success
2336
    if result.cex is not None:
2337
      raise result.cex
2338
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2339
 
2340
  def generateNewEntityID(self, ):
2341
    self.send_generateNewEntityID()
2342
    return self.recv_generateNewEntityID()
2343
 
2344
  def send_generateNewEntityID(self, ):
2345
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2346
    args = generateNewEntityID_args()
2347
    args.write(self._oprot)
2348
    self._oprot.writeMessageEnd()
2349
    self._oprot.trans.flush()
2350
 
2351
  def recv_generateNewEntityID(self, ):
2352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2353
    if mtype == TMessageType.EXCEPTION:
2354
      x = TApplicationException()
2355
      x.read(self._iprot)
2356
      self._iprot.readMessageEnd()
2357
      raise x
2358
    result = generateNewEntityID_result()
2359
    result.read(self._iprot)
2360
    self._iprot.readMessageEnd()
2361
    if result.success is not None:
2362
      return result.success
2363
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2364
 
2365
  def addCategory(self, category):
2366
    """
2367
    All category related functions
2368
 
2369
    Parameters:
2370
     - category
2371
    """
2372
    self.send_addCategory(category)
2373
    return self.recv_addCategory()
2374
 
2375
  def send_addCategory(self, category):
2376
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2377
    args = addCategory_args()
2378
    args.category = category
2379
    args.write(self._oprot)
2380
    self._oprot.writeMessageEnd()
2381
    self._oprot.trans.flush()
2382
 
2383
  def recv_addCategory(self, ):
2384
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2385
    if mtype == TMessageType.EXCEPTION:
2386
      x = TApplicationException()
2387
      x.read(self._iprot)
2388
      self._iprot.readMessageEnd()
2389
      raise x
2390
    result = addCategory_result()
2391
    result.read(self._iprot)
2392
    self._iprot.readMessageEnd()
2393
    if result.success is not None:
2394
      return result.success
2395
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2396
 
2397
  def getCategory(self, id):
2398
    """
2399
    Parameters:
2400
     - id
2401
    """
2402
    self.send_getCategory(id)
2403
    return self.recv_getCategory()
2404
 
2405
  def send_getCategory(self, id):
2406
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2407
    args = getCategory_args()
2408
    args.id = id
2409
    args.write(self._oprot)
2410
    self._oprot.writeMessageEnd()
2411
    self._oprot.trans.flush()
2412
 
2413
  def recv_getCategory(self, ):
2414
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2415
    if mtype == TMessageType.EXCEPTION:
2416
      x = TApplicationException()
2417
      x.read(self._iprot)
2418
      self._iprot.readMessageEnd()
2419
      raise x
2420
    result = getCategory_result()
2421
    result.read(self._iprot)
2422
    self._iprot.readMessageEnd()
2423
    if result.success is not None:
2424
      return result.success
2425
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2426
 
2427
  def getAllCategories(self, ):
2428
    self.send_getAllCategories()
2429
    return self.recv_getAllCategories()
2430
 
2431
  def send_getAllCategories(self, ):
2432
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2433
    args = getAllCategories_args()
2434
    args.write(self._oprot)
2435
    self._oprot.writeMessageEnd()
2436
    self._oprot.trans.flush()
2437
 
2438
  def recv_getAllCategories(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 = getAllCategories_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, "getAllCategories failed: unknown result");
2451
 
2452
  def getAllSimilarItems(self, itemId):
2453
    """
2454
    Returns the list of similar items.
2455
 
2456
    Parameters:
2457
     - itemId
2458
    """
2459
    self.send_getAllSimilarItems(itemId)
2460
    return self.recv_getAllSimilarItems()
2461
 
2462
  def send_getAllSimilarItems(self, itemId):
2463
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2464
    args = getAllSimilarItems_args()
2465
    args.itemId = itemId
2466
    args.write(self._oprot)
2467
    self._oprot.writeMessageEnd()
2468
    self._oprot.trans.flush()
2469
 
2470
  def recv_getAllSimilarItems(self, ):
2471
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2472
    if mtype == TMessageType.EXCEPTION:
2473
      x = TApplicationException()
2474
      x.read(self._iprot)
2475
      self._iprot.readMessageEnd()
2476
      raise x
2477
    result = getAllSimilarItems_result()
2478
    result.read(self._iprot)
2479
    self._iprot.readMessageEnd()
2480
    if result.success is not None:
2481
      return result.success
2482
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2483
 
2484
  def addSimilarItem(self, itemId, catalogItemId):
2485
    """
2486
    Adds similar item.
2487
 
2488
    Parameters:
2489
     - itemId
2490
     - catalogItemId
2491
    """
2492
    self.send_addSimilarItem(itemId, catalogItemId)
2493
    return self.recv_addSimilarItem()
2494
 
2495
  def send_addSimilarItem(self, itemId, catalogItemId):
2496
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2497
    args = addSimilarItem_args()
2498
    args.itemId = itemId
2499
    args.catalogItemId = catalogItemId
2500
    args.write(self._oprot)
2501
    self._oprot.writeMessageEnd()
2502
    self._oprot.trans.flush()
2503
 
2504
  def recv_addSimilarItem(self, ):
2505
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2506
    if mtype == TMessageType.EXCEPTION:
2507
      x = TApplicationException()
2508
      x.read(self._iprot)
2509
      self._iprot.readMessageEnd()
2510
      raise x
2511
    result = addSimilarItem_result()
2512
    result.read(self._iprot)
2513
    self._iprot.readMessageEnd()
2514
    if result.success is not None:
2515
      return result.success
2516
    if result.cex is not None:
2517
      raise result.cex
2518
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2519
 
6512 kshitij.so 2520
  def addTag(self, displayName, itemId):
2521
    """
2522
    Tag Related
2523
 
2524
    Parameters:
2525
     - displayName
2526
     - itemId
2527
    """
2528
    self.send_addTag(displayName, itemId)
2529
    return self.recv_addTag()
2530
 
2531
  def send_addTag(self, displayName, itemId):
2532
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2533
    args = addTag_args()
2534
    args.displayName = displayName
2535
    args.itemId = itemId
2536
    args.write(self._oprot)
2537
    self._oprot.writeMessageEnd()
2538
    self._oprot.trans.flush()
2539
 
2540
  def recv_addTag(self, ):
2541
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2542
    if mtype == TMessageType.EXCEPTION:
2543
      x = TApplicationException()
2544
      x.read(self._iprot)
2545
      self._iprot.readMessageEnd()
2546
      raise x
2547
    result = addTag_result()
2548
    result.read(self._iprot)
2549
    self._iprot.readMessageEnd()
2550
    if result.success is not None:
2551
      return result.success
2552
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2553
 
2554
  def deleteEntityTag(self, displayName, itemId):
2555
    """
2556
    Parameters:
2557
     - displayName
2558
     - itemId
2559
    """
2560
    self.send_deleteEntityTag(displayName, itemId)
2561
    return self.recv_deleteEntityTag()
2562
 
2563
  def send_deleteEntityTag(self, displayName, itemId):
2564
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2565
    args = deleteEntityTag_args()
2566
    args.displayName = displayName
2567
    args.itemId = itemId
2568
    args.write(self._oprot)
2569
    self._oprot.writeMessageEnd()
2570
    self._oprot.trans.flush()
2571
 
2572
  def recv_deleteEntityTag(self, ):
2573
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2574
    if mtype == TMessageType.EXCEPTION:
2575
      x = TApplicationException()
2576
      x.read(self._iprot)
2577
      self._iprot.readMessageEnd()
2578
      raise x
2579
    result = deleteEntityTag_result()
2580
    result.read(self._iprot)
2581
    self._iprot.readMessageEnd()
2582
    if result.success is not None:
2583
      return result.success
2584
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2585
 
2586
  def deleteTag(self, displayName):
2587
    """
2588
    Parameters:
2589
     - displayName
2590
    """
2591
    self.send_deleteTag(displayName)
2592
    return self.recv_deleteTag()
2593
 
2594
  def send_deleteTag(self, displayName):
2595
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2596
    args = deleteTag_args()
2597
    args.displayName = displayName
2598
    args.write(self._oprot)
2599
    self._oprot.writeMessageEnd()
2600
    self._oprot.trans.flush()
2601
 
2602
  def recv_deleteTag(self, ):
2603
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2604
    if mtype == TMessageType.EXCEPTION:
2605
      x = TApplicationException()
2606
      x.read(self._iprot)
2607
      self._iprot.readMessageEnd()
2608
      raise x
2609
    result = deleteTag_result()
2610
    result.read(self._iprot)
2611
    self._iprot.readMessageEnd()
2612
    if result.success is not None:
2613
      return result.success
2614
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2615
 
2616
  def getAllTags(self, ):
2617
    self.send_getAllTags()
2618
    return self.recv_getAllTags()
2619
 
2620
  def send_getAllTags(self, ):
2621
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2622
    args = getAllTags_args()
2623
    args.write(self._oprot)
2624
    self._oprot.writeMessageEnd()
2625
    self._oprot.trans.flush()
2626
 
2627
  def recv_getAllTags(self, ):
2628
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2629
    if mtype == TMessageType.EXCEPTION:
2630
      x = TApplicationException()
2631
      x.read(self._iprot)
2632
      self._iprot.readMessageEnd()
2633
      raise x
2634
    result = getAllTags_result()
2635
    result.read(self._iprot)
2636
    self._iprot.readMessageEnd()
2637
    if result.success is not None:
2638
      return result.success
2639
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2640
 
2641
  def getAllEntitiesByTagName(self, displayName):
2642
    """
2643
    Parameters:
2644
     - displayName
2645
    """
2646
    self.send_getAllEntitiesByTagName(displayName)
2647
    return self.recv_getAllEntitiesByTagName()
2648
 
2649
  def send_getAllEntitiesByTagName(self, displayName):
2650
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2651
    args = getAllEntitiesByTagName_args()
2652
    args.displayName = displayName
2653
    args.write(self._oprot)
2654
    self._oprot.writeMessageEnd()
2655
    self._oprot.trans.flush()
2656
 
2657
  def recv_getAllEntitiesByTagName(self, ):
2658
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2659
    if mtype == TMessageType.EXCEPTION:
2660
      x = TApplicationException()
2661
      x.read(self._iprot)
2662
      self._iprot.readMessageEnd()
2663
      raise x
2664
    result = getAllEntitiesByTagName_result()
2665
    result.read(self._iprot)
2666
    self._iprot.readMessageEnd()
2667
    if result.success is not None:
2668
      return result.success
2669
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2670
 
6845 amit.gupta 2671
  def getAllEntityTags(self, ):
2672
    self.send_getAllEntityTags()
2673
    return self.recv_getAllEntityTags()
2674
 
2675
  def send_getAllEntityTags(self, ):
2676
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2677
    args = getAllEntityTags_args()
2678
    args.write(self._oprot)
2679
    self._oprot.writeMessageEnd()
2680
    self._oprot.trans.flush()
2681
 
2682
  def recv_getAllEntityTags(self, ):
2683
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2684
    if mtype == TMessageType.EXCEPTION:
2685
      x = TApplicationException()
2686
      x.read(self._iprot)
2687
      self._iprot.readMessageEnd()
2688
      raise x
2689
    result = getAllEntityTags_result()
2690
    result.read(self._iprot)
2691
    self._iprot.readMessageEnd()
2692
    if result.success is not None:
2693
      return result.success
2694
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2695
 
8590 kshitij.so 2696
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2697
    """
8579 kshitij.so 2698
    Banner Related
2699
 
6850 kshitij.so 2700
    Parameters:
8590 kshitij.so 2701
     - bannerCongregate
6850 kshitij.so 2702
    """
8590 kshitij.so 2703
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2704
    return self.recv_addBanner()
6850 kshitij.so 2705
 
8590 kshitij.so 2706
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2707
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2708
    args = addBanner_args()
8590 kshitij.so 2709
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2710
    args.write(self._oprot)
2711
    self._oprot.writeMessageEnd()
2712
    self._oprot.trans.flush()
2713
 
2714
  def recv_addBanner(self, ):
2715
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2716
    if mtype == TMessageType.EXCEPTION:
2717
      x = TApplicationException()
2718
      x.read(self._iprot)
2719
      self._iprot.readMessageEnd()
2720
      raise x
2721
    result = addBanner_result()
2722
    result.read(self._iprot)
2723
    self._iprot.readMessageEnd()
10097 kshitij.so 2724
    if result.success is not None:
2725
      return result.success
2726
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2727
 
8579 kshitij.so 2728
  def updateBanner(self, banner):
2729
    """
2730
    Parameters:
2731
     - banner
2732
    """
2733
    self.send_updateBanner(banner)
2734
    return self.recv_updateBanner()
2735
 
2736
  def send_updateBanner(self, banner):
2737
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2738
    args = updateBanner_args()
2739
    args.banner = banner
2740
    args.write(self._oprot)
2741
    self._oprot.writeMessageEnd()
2742
    self._oprot.trans.flush()
2743
 
2744
  def recv_updateBanner(self, ):
2745
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2746
    if mtype == TMessageType.EXCEPTION:
2747
      x = TApplicationException()
2748
      x.read(self._iprot)
2749
      self._iprot.readMessageEnd()
2750
      raise x
2751
    result = updateBanner_result()
2752
    result.read(self._iprot)
2753
    self._iprot.readMessageEnd()
2754
    if result.success is not None:
2755
      return result.success
2756
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2757
 
6850 kshitij.so 2758
  def getAllBanners(self, ):
2759
    self.send_getAllBanners()
2760
    return self.recv_getAllBanners()
2761
 
2762
  def send_getAllBanners(self, ):
2763
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2764
    args = getAllBanners_args()
2765
    args.write(self._oprot)
2766
    self._oprot.writeMessageEnd()
2767
    self._oprot.trans.flush()
2768
 
2769
  def recv_getAllBanners(self, ):
2770
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2771
    if mtype == TMessageType.EXCEPTION:
2772
      x = TApplicationException()
2773
      x.read(self._iprot)
2774
      self._iprot.readMessageEnd()
2775
      raise x
2776
    result = getAllBanners_result()
2777
    result.read(self._iprot)
2778
    self._iprot.readMessageEnd()
2779
    if result.success is not None:
2780
      return result.success
2781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2782
 
9155 kshitij.so 2783
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2784
    """
2785
    Parameters:
2786
     - bannerName
9155 kshitij.so 2787
     - bannerType
6850 kshitij.so 2788
    """
9155 kshitij.so 2789
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2790
    return self.recv_deleteBanner()
2791
 
9155 kshitij.so 2792
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2793
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2794
    args = deleteBanner_args()
2795
    args.bannerName = bannerName
9155 kshitij.so 2796
    args.bannerType = bannerType
6850 kshitij.so 2797
    args.write(self._oprot)
2798
    self._oprot.writeMessageEnd()
2799
    self._oprot.trans.flush()
2800
 
2801
  def recv_deleteBanner(self, ):
2802
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2803
    if mtype == TMessageType.EXCEPTION:
2804
      x = TApplicationException()
2805
      x.read(self._iprot)
2806
      self._iprot.readMessageEnd()
2807
      raise x
2808
    result = deleteBanner_result()
2809
    result.read(self._iprot)
2810
    self._iprot.readMessageEnd()
2811
    if result.success is not None:
2812
      return result.success
2813
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2814
 
9155 kshitij.so 2815
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2816
    """
2817
    Parameters:
2818
     - bannerName
9155 kshitij.so 2819
     - bannerType
6850 kshitij.so 2820
    """
9155 kshitij.so 2821
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2822
    return self.recv_getBannerDetails()
2823
 
9155 kshitij.so 2824
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2825
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2826
    args = getBannerDetails_args()
2827
    args.bannerName = bannerName
9155 kshitij.so 2828
    args.bannerType = bannerType
6850 kshitij.so 2829
    args.write(self._oprot)
2830
    self._oprot.writeMessageEnd()
2831
    self._oprot.trans.flush()
2832
 
2833
  def recv_getBannerDetails(self, ):
2834
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2835
    if mtype == TMessageType.EXCEPTION:
2836
      x = TApplicationException()
2837
      x.read(self._iprot)
2838
      self._iprot.readMessageEnd()
2839
      raise x
2840
    result = getBannerDetails_result()
2841
    result.read(self._iprot)
2842
    self._iprot.readMessageEnd()
2843
    if result.success is not None:
2844
      return result.success
2845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2846
 
2847
  def getActiveBanners(self, ):
2848
    self.send_getActiveBanners()
2849
    return self.recv_getActiveBanners()
2850
 
2851
  def send_getActiveBanners(self, ):
2852
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2853
    args = getActiveBanners_args()
2854
    args.write(self._oprot)
2855
    self._oprot.writeMessageEnd()
2856
    self._oprot.trans.flush()
2857
 
2858
  def recv_getActiveBanners(self, ):
2859
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2860
    if mtype == TMessageType.EXCEPTION:
2861
      x = TApplicationException()
2862
      x.read(self._iprot)
2863
      self._iprot.readMessageEnd()
2864
      raise x
2865
    result = getActiveBanners_result()
2866
    result.read(self._iprot)
2867
    self._iprot.readMessageEnd()
2868
    if result.success is not None:
2869
      return result.success
2870
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2871
 
8579 kshitij.so 2872
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2873
    """
2874
    Parameters:
8579 kshitij.so 2875
     - bannerMaps
6849 kshitij.so 2876
    """
8579 kshitij.so 2877
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2878
    return self.recv_addBannerMap()
2879
 
8579 kshitij.so 2880
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2881
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2882
    args = addBannerMap_args()
8579 kshitij.so 2883
    args.bannerMaps = bannerMaps
6849 kshitij.so 2884
    args.write(self._oprot)
2885
    self._oprot.writeMessageEnd()
2886
    self._oprot.trans.flush()
2887
 
2888
  def recv_addBannerMap(self, ):
2889
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2890
    if mtype == TMessageType.EXCEPTION:
2891
      x = TApplicationException()
2892
      x.read(self._iprot)
2893
      self._iprot.readMessageEnd()
2894
      raise x
2895
    result = addBannerMap_result()
2896
    result.read(self._iprot)
2897
    self._iprot.readMessageEnd()
2898
    if result.success is not None:
2899
      return result.success
2900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2901
 
8579 kshitij.so 2902
  def updateBannerMap(self, bannerMap):
2903
    """
2904
    Parameters:
2905
     - bannerMap
2906
    """
2907
    self.send_updateBannerMap(bannerMap)
2908
    return self.recv_updateBannerMap()
2909
 
2910
  def send_updateBannerMap(self, bannerMap):
2911
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2912
    args = updateBannerMap_args()
2913
    args.bannerMap = bannerMap
2914
    args.write(self._oprot)
2915
    self._oprot.writeMessageEnd()
2916
    self._oprot.trans.flush()
2917
 
2918
  def recv_updateBannerMap(self, ):
2919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2920
    if mtype == TMessageType.EXCEPTION:
2921
      x = TApplicationException()
2922
      x.read(self._iprot)
2923
      self._iprot.readMessageEnd()
2924
      raise x
2925
    result = updateBannerMap_result()
2926
    result.read(self._iprot)
2927
    self._iprot.readMessageEnd()
2928
    if result.success is not None:
2929
      return result.success
2930
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2931
 
6849 kshitij.so 2932
  def deleteBannerMap(self, bannerName):
2933
    """
2934
    Parameters:
2935
     - bannerName
2936
    """
2937
    self.send_deleteBannerMap(bannerName)
2938
    return self.recv_deleteBannerMap()
2939
 
2940
  def send_deleteBannerMap(self, bannerName):
2941
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2942
    args = deleteBannerMap_args()
2943
    args.bannerName = bannerName
2944
    args.write(self._oprot)
2945
    self._oprot.writeMessageEnd()
2946
    self._oprot.trans.flush()
2947
 
2948
  def recv_deleteBannerMap(self, ):
2949
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2950
    if mtype == TMessageType.EXCEPTION:
2951
      x = TApplicationException()
2952
      x.read(self._iprot)
2953
      self._iprot.readMessageEnd()
2954
      raise x
2955
    result = deleteBannerMap_result()
2956
    result.read(self._iprot)
2957
    self._iprot.readMessageEnd()
2958
    if result.success is not None:
2959
      return result.success
2960
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2961
 
9155 kshitij.so 2962
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2963
    """
2964
    Parameters:
2965
     - bannerName
9155 kshitij.so 2966
     - bannerType
6849 kshitij.so 2967
    """
9155 kshitij.so 2968
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2969
    return self.recv_getBannerMapDetails()
2970
 
9155 kshitij.so 2971
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2972
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2973
    args = getBannerMapDetails_args()
2974
    args.bannerName = bannerName
9155 kshitij.so 2975
    args.bannerType = bannerType
6849 kshitij.so 2976
    args.write(self._oprot)
2977
    self._oprot.writeMessageEnd()
2978
    self._oprot.trans.flush()
2979
 
2980
  def recv_getBannerMapDetails(self, ):
2981
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2982
    if mtype == TMessageType.EXCEPTION:
2983
      x = TApplicationException()
2984
      x.read(self._iprot)
2985
      self._iprot.readMessageEnd()
2986
      raise x
2987
    result = getBannerMapDetails_result()
2988
    result.read(self._iprot)
2989
    self._iprot.readMessageEnd()
2990
    if result.success is not None:
2991
      return result.success
2992
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2993
 
8579 kshitij.so 2994
  def addBannerUri(self, bannerUriMappings):
2995
    """
2996
    Parameters:
2997
     - bannerUriMappings
2998
    """
2999
    self.send_addBannerUri(bannerUriMappings)
3000
    self.recv_addBannerUri()
3001
 
3002
  def send_addBannerUri(self, bannerUriMappings):
3003
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
3004
    args = addBannerUri_args()
3005
    args.bannerUriMappings = bannerUriMappings
3006
    args.write(self._oprot)
3007
    self._oprot.writeMessageEnd()
3008
    self._oprot.trans.flush()
3009
 
3010
  def recv_addBannerUri(self, ):
3011
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3012
    if mtype == TMessageType.EXCEPTION:
3013
      x = TApplicationException()
3014
      x.read(self._iprot)
3015
      self._iprot.readMessageEnd()
3016
      raise x
3017
    result = addBannerUri_result()
3018
    result.read(self._iprot)
3019
    self._iprot.readMessageEnd()
3020
    return
3021
 
9155 kshitij.so 3022
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 3023
    """
3024
    Parameters:
3025
     - bannerName
9155 kshitij.so 3026
     - bannerType
8579 kshitij.so 3027
    """
9155 kshitij.so 3028
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 3029
    return self.recv_getUriMapping()
3030
 
9155 kshitij.so 3031
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 3032
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
3033
    args = getUriMapping_args()
3034
    args.bannerName = bannerName
9155 kshitij.so 3035
    args.bannerType = bannerType
8579 kshitij.so 3036
    args.write(self._oprot)
3037
    self._oprot.writeMessageEnd()
3038
    self._oprot.trans.flush()
3039
 
3040
  def recv_getUriMapping(self, ):
3041
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3042
    if mtype == TMessageType.EXCEPTION:
3043
      x = TApplicationException()
3044
      x.read(self._iprot)
3045
      self._iprot.readMessageEnd()
3046
      raise x
3047
    result = getUriMapping_result()
3048
    result.read(self._iprot)
3049
    self._iprot.readMessageEnd()
3050
    if result.success is not None:
3051
      return result.success
3052
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
3053
 
3054
  def addCampaign(self, campaign):
3055
    """
3056
    Parameters:
3057
     - campaign
3058
    """
3059
    self.send_addCampaign(campaign)
3060
    self.recv_addCampaign()
3061
 
3062
  def send_addCampaign(self, campaign):
3063
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
3064
    args = addCampaign_args()
3065
    args.campaign = campaign
3066
    args.write(self._oprot)
3067
    self._oprot.writeMessageEnd()
3068
    self._oprot.trans.flush()
3069
 
3070
  def recv_addCampaign(self, ):
3071
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3072
    if mtype == TMessageType.EXCEPTION:
3073
      x = TApplicationException()
3074
      x.read(self._iprot)
3075
      self._iprot.readMessageEnd()
3076
      raise x
3077
    result = addCampaign_result()
3078
    result.read(self._iprot)
3079
    self._iprot.readMessageEnd()
3080
    return
3081
 
3082
  def getCampaigns(self, campaignName):
3083
    """
3084
    Parameters:
3085
     - campaignName
3086
    """
3087
    self.send_getCampaigns(campaignName)
3088
    return self.recv_getCampaigns()
3089
 
3090
  def send_getCampaigns(self, campaignName):
3091
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
3092
    args = getCampaigns_args()
3093
    args.campaignName = campaignName
3094
    args.write(self._oprot)
3095
    self._oprot.writeMessageEnd()
3096
    self._oprot.trans.flush()
3097
 
3098
  def recv_getCampaigns(self, ):
3099
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3100
    if mtype == TMessageType.EXCEPTION:
3101
      x = TApplicationException()
3102
      x.read(self._iprot)
3103
      self._iprot.readMessageEnd()
3104
      raise x
3105
    result = getCampaigns_result()
3106
    result.read(self._iprot)
3107
    self._iprot.readMessageEnd()
3108
    if result.success is not None:
3109
      return result.success
3110
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
3111
 
3112
  def deleteCampaign(self, campaignId):
3113
    """
3114
    Parameters:
3115
     - campaignId
3116
    """
3117
    self.send_deleteCampaign(campaignId)
3118
    self.recv_deleteCampaign()
3119
 
3120
  def send_deleteCampaign(self, campaignId):
3121
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
3122
    args = deleteCampaign_args()
3123
    args.campaignId = campaignId
3124
    args.write(self._oprot)
3125
    self._oprot.writeMessageEnd()
3126
    self._oprot.trans.flush()
3127
 
3128
  def recv_deleteCampaign(self, ):
3129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3130
    if mtype == TMessageType.EXCEPTION:
3131
      x = TApplicationException()
3132
      x.read(self._iprot)
3133
      self._iprot.readMessageEnd()
3134
      raise x
3135
    result = deleteCampaign_result()
3136
    result.read(self._iprot)
3137
    self._iprot.readMessageEnd()
3138
    return
3139
 
3140
  def getAllCampaigns(self, ):
3141
    self.send_getAllCampaigns()
3142
    return self.recv_getAllCampaigns()
3143
 
3144
  def send_getAllCampaigns(self, ):
3145
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
3146
    args = getAllCampaigns_args()
3147
    args.write(self._oprot)
3148
    self._oprot.writeMessageEnd()
3149
    self._oprot.trans.flush()
3150
 
3151
  def recv_getAllCampaigns(self, ):
3152
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3153
    if mtype == TMessageType.EXCEPTION:
3154
      x = TApplicationException()
3155
      x.read(self._iprot)
3156
      self._iprot.readMessageEnd()
3157
      raise x
3158
    result = getAllCampaigns_result()
3159
    result.read(self._iprot)
3160
    self._iprot.readMessageEnd()
3161
    if result.success is not None:
3162
      return result.success
3163
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
3164
 
9155 kshitij.so 3165
  def getActiveBannersForMobileSite(self, ):
3166
    self.send_getActiveBannersForMobileSite()
3167
    return self.recv_getActiveBannersForMobileSite()
3168
 
3169
  def send_getActiveBannersForMobileSite(self, ):
3170
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
3171
    args = getActiveBannersForMobileSite_args()
3172
    args.write(self._oprot)
3173
    self._oprot.writeMessageEnd()
3174
    self._oprot.trans.flush()
3175
 
3176
  def recv_getActiveBannersForMobileSite(self, ):
3177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3178
    if mtype == TMessageType.EXCEPTION:
3179
      x = TApplicationException()
3180
      x.read(self._iprot)
3181
      self._iprot.readMessageEnd()
3182
      raise x
3183
    result = getActiveBannersForMobileSite_result()
3184
    result.read(self._iprot)
3185
    self._iprot.readMessageEnd()
3186
    if result.success is not None:
3187
      return result.success
3188
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
3189
 
5944 mandeep.dh 3190
  def deleteSimilarItem(self, itemId, catalogItemId):
3191
    """
3192
    Delete similar item.
3193
 
3194
    Parameters:
3195
     - itemId
3196
     - catalogItemId
3197
    """
3198
    self.send_deleteSimilarItem(itemId, catalogItemId)
3199
    return self.recv_deleteSimilarItem()
3200
 
3201
  def send_deleteSimilarItem(self, itemId, catalogItemId):
3202
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
3203
    args = deleteSimilarItem_args()
3204
    args.itemId = itemId
3205
    args.catalogItemId = catalogItemId
3206
    args.write(self._oprot)
3207
    self._oprot.writeMessageEnd()
3208
    self._oprot.trans.flush()
3209
 
3210
  def recv_deleteSimilarItem(self, ):
3211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3212
    if mtype == TMessageType.EXCEPTION:
3213
      x = TApplicationException()
3214
      x.read(self._iprot)
3215
      self._iprot.readMessageEnd()
3216
      raise x
3217
    result = deleteSimilarItem_result()
3218
    result.read(self._iprot)
3219
    self._iprot.readMessageEnd()
3220
    if result.success is not None:
3221
      return result.success
3222
    if result.cex is not None:
3223
      raise result.cex
3224
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
3225
 
3226
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
3227
    """
3228
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
3229
    If yes, returns the itemId else returns 0
3230
 
3231
    Parameters:
3232
     - brand
3233
     - modelNumber
3234
     - modelName
3235
     - color
3236
    """
3237
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
3238
    return self.recv_checkSimilarItem()
3239
 
3240
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
3241
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
3242
    args = checkSimilarItem_args()
3243
    args.brand = brand
3244
    args.modelNumber = modelNumber
3245
    args.modelName = modelName
3246
    args.color = color
3247
    args.write(self._oprot)
3248
    self._oprot.writeMessageEnd()
3249
    self._oprot.trans.flush()
3250
 
3251
  def recv_checkSimilarItem(self, ):
3252
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3253
    if mtype == TMessageType.EXCEPTION:
3254
      x = TApplicationException()
3255
      x.read(self._iprot)
3256
      self._iprot.readMessageEnd()
3257
      raise x
3258
    result = checkSimilarItem_result()
3259
    result.read(self._iprot)
3260
    self._iprot.readMessageEnd()
3261
    if result.success is not None:
3262
      return result.success
3263
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
3264
 
3265
  def validateRiskyStatus(self, itemId):
3266
    """
3267
    Check wether item is risky and change status if inventory is not available for risky items
3268
 
3269
    Parameters:
3270
     - itemId
3271
    """
3272
    self.send_validateRiskyStatus(itemId)
3273
    self.recv_validateRiskyStatus()
3274
 
3275
  def send_validateRiskyStatus(self, itemId):
3276
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3277
    args = validateRiskyStatus_args()
3278
    args.itemId = itemId
3279
    args.write(self._oprot)
3280
    self._oprot.writeMessageEnd()
3281
    self._oprot.trans.flush()
3282
 
3283
  def recv_validateRiskyStatus(self, ):
3284
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3285
    if mtype == TMessageType.EXCEPTION:
3286
      x = TApplicationException()
3287
      x.read(self._iprot)
3288
      self._iprot.readMessageEnd()
3289
      raise x
3290
    result = validateRiskyStatus_result()
3291
    result.read(self._iprot)
3292
    self._iprot.readMessageEnd()
3293
    return
3294
 
3295
  def changeItemRiskyFlag(self, itemId, risky):
3296
    """
3297
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3298
 
3299
    Parameters:
3300
     - itemId
3301
     - risky
3302
    """
3303
    self.send_changeItemRiskyFlag(itemId, risky)
3304
    self.recv_changeItemRiskyFlag()
3305
 
3306
  def send_changeItemRiskyFlag(self, itemId, risky):
3307
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3308
    args = changeItemRiskyFlag_args()
3309
    args.itemId = itemId
3310
    args.risky = risky
3311
    args.write(self._oprot)
3312
    self._oprot.writeMessageEnd()
3313
    self._oprot.trans.flush()
3314
 
3315
  def recv_changeItemRiskyFlag(self, ):
3316
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3317
    if mtype == TMessageType.EXCEPTION:
3318
      x = TApplicationException()
3319
      x.read(self._iprot)
3320
      self._iprot.readMessageEnd()
3321
      raise x
3322
    result = changeItemRiskyFlag_result()
3323
    result.read(self._iprot)
3324
    self._iprot.readMessageEnd()
3325
    return
3326
 
3327
  def getItemsByRiskyFlag(self, ):
3328
    """
3329
    Returns list of items marked as risky.
3330
    """
3331
    self.send_getItemsByRiskyFlag()
3332
    return self.recv_getItemsByRiskyFlag()
3333
 
3334
  def send_getItemsByRiskyFlag(self, ):
3335
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3336
    args = getItemsByRiskyFlag_args()
3337
    args.write(self._oprot)
3338
    self._oprot.writeMessageEnd()
3339
    self._oprot.trans.flush()
3340
 
3341
  def recv_getItemsByRiskyFlag(self, ):
3342
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3343
    if mtype == TMessageType.EXCEPTION:
3344
      x = TApplicationException()
3345
      x.read(self._iprot)
3346
      self._iprot.readMessageEnd()
3347
      raise x
3348
    result = getItemsByRiskyFlag_result()
3349
    result.read(self._iprot)
3350
    self._iprot.readMessageEnd()
3351
    if result.success is not None:
3352
      return result.success
3353
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3354
 
3355
  def getItemsForMasterSheet(self, category, brand):
3356
    """
3357
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3358
 
3359
    Parameters:
3360
     - category
3361
     - brand
3362
    """
3363
    self.send_getItemsForMasterSheet(category, brand)
3364
    return self.recv_getItemsForMasterSheet()
3365
 
3366
  def send_getItemsForMasterSheet(self, category, brand):
3367
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3368
    args = getItemsForMasterSheet_args()
3369
    args.category = category
3370
    args.brand = brand
3371
    args.write(self._oprot)
3372
    self._oprot.writeMessageEnd()
3373
    self._oprot.trans.flush()
3374
 
3375
  def recv_getItemsForMasterSheet(self, ):
3376
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3377
    if mtype == TMessageType.EXCEPTION:
3378
      x = TApplicationException()
3379
      x.read(self._iprot)
3380
      self._iprot.readMessageEnd()
3381
      raise x
3382
    result = getItemsForMasterSheet_result()
3383
    result.read(self._iprot)
3384
    self._iprot.readMessageEnd()
3385
    if result.success is not None:
3386
      return result.success
3387
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3388
 
3389
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3390
    """
3391
    Returns list of catalog ids of items with same similarity index as of the given itemId
3392
 
3393
    Parameters:
3394
     - beginIndex
3395
     - totalItems
3396
     - itemId
3397
    """
3398
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3399
    return self.recv_getSimilarItemsCatalogIds()
3400
 
3401
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3402
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3403
    args = getSimilarItemsCatalogIds_args()
3404
    args.beginIndex = beginIndex
3405
    args.totalItems = totalItems
3406
    args.itemId = itemId
3407
    args.write(self._oprot)
3408
    self._oprot.writeMessageEnd()
3409
    self._oprot.trans.flush()
3410
 
3411
  def recv_getSimilarItemsCatalogIds(self, ):
3412
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3413
    if mtype == TMessageType.EXCEPTION:
3414
      x = TApplicationException()
3415
      x.read(self._iprot)
3416
      self._iprot.readMessageEnd()
3417
      raise x
3418
    result = getSimilarItemsCatalogIds_result()
3419
    result.read(self._iprot)
3420
    self._iprot.readMessageEnd()
3421
    if result.success is not None:
3422
      return result.success
3423
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3424
 
3425
  def addProductNotification(self, itemId, email):
3426
    """
3427
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3428
 
3429
    Parameters:
3430
     - itemId
3431
     - email
3432
    """
3433
    self.send_addProductNotification(itemId, email)
3434
    return self.recv_addProductNotification()
3435
 
3436
  def send_addProductNotification(self, itemId, email):
3437
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3438
    args = addProductNotification_args()
3439
    args.itemId = itemId
3440
    args.email = email
3441
    args.write(self._oprot)
3442
    self._oprot.writeMessageEnd()
3443
    self._oprot.trans.flush()
3444
 
3445
  def recv_addProductNotification(self, ):
3446
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3447
    if mtype == TMessageType.EXCEPTION:
3448
      x = TApplicationException()
3449
      x.read(self._iprot)
3450
      self._iprot.readMessageEnd()
3451
      raise x
3452
    result = addProductNotification_result()
3453
    result.read(self._iprot)
3454
    self._iprot.readMessageEnd()
3455
    if result.success is not None:
3456
      return result.success
3457
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3458
 
3459
  def sendProductNotifications(self, ):
3460
    """
3461
    Send the product notifications to the users for items which has stock.
3462
    """
3463
    self.send_sendProductNotifications()
3464
    return self.recv_sendProductNotifications()
3465
 
3466
  def send_sendProductNotifications(self, ):
3467
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3468
    args = sendProductNotifications_args()
3469
    args.write(self._oprot)
3470
    self._oprot.writeMessageEnd()
3471
    self._oprot.trans.flush()
3472
 
3473
  def recv_sendProductNotifications(self, ):
3474
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3475
    if mtype == TMessageType.EXCEPTION:
3476
      x = TApplicationException()
3477
      x.read(self._iprot)
3478
      self._iprot.readMessageEnd()
3479
      raise x
3480
    result = sendProductNotifications_result()
3481
    result.read(self._iprot)
3482
    self._iprot.readMessageEnd()
3483
    if result.success is not None:
3484
      return result.success
3485
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3486
 
3487
  def getAllBrandsByCategory(self, categoryId):
3488
    """
3489
    Returns list of brand names for a given category Id
3490
 
3491
    Parameters:
3492
     - categoryId
3493
    """
3494
    self.send_getAllBrandsByCategory(categoryId)
3495
    return self.recv_getAllBrandsByCategory()
3496
 
3497
  def send_getAllBrandsByCategory(self, categoryId):
3498
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3499
    args = getAllBrandsByCategory_args()
3500
    args.categoryId = categoryId
3501
    args.write(self._oprot)
3502
    self._oprot.writeMessageEnd()
3503
    self._oprot.trans.flush()
3504
 
3505
  def recv_getAllBrandsByCategory(self, ):
3506
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3507
    if mtype == TMessageType.EXCEPTION:
3508
      x = TApplicationException()
3509
      x.read(self._iprot)
3510
      self._iprot.readMessageEnd()
3511
      raise x
3512
    result = getAllBrandsByCategory_result()
3513
    result.read(self._iprot)
3514
    self._iprot.readMessageEnd()
3515
    if result.success is not None:
3516
      return result.success
3517
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3518
 
3519
  def getAllBrands(self, ):
3520
    """
3521
    Returns list of brand names
3522
    """
3523
    self.send_getAllBrands()
3524
    return self.recv_getAllBrands()
3525
 
3526
  def send_getAllBrands(self, ):
3527
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3528
    args = getAllBrands_args()
3529
    args.write(self._oprot)
3530
    self._oprot.writeMessageEnd()
3531
    self._oprot.trans.flush()
3532
 
3533
  def recv_getAllBrands(self, ):
3534
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3535
    if mtype == TMessageType.EXCEPTION:
3536
      x = TApplicationException()
3537
      x.read(self._iprot)
3538
      self._iprot.readMessageEnd()
3539
      raise x
3540
    result = getAllBrands_result()
3541
    result.read(self._iprot)
3542
    self._iprot.readMessageEnd()
3543
    if result.success is not None:
3544
      return result.success
3545
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3546
 
3547
  def getAllSources(self, ):
3548
    """
3549
    Return list of all sources
3550
    """
3551
    self.send_getAllSources()
3552
    return self.recv_getAllSources()
3553
 
3554
  def send_getAllSources(self, ):
3555
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3556
    args = getAllSources_args()
3557
    args.write(self._oprot)
3558
    self._oprot.writeMessageEnd()
3559
    self._oprot.trans.flush()
3560
 
3561
  def recv_getAllSources(self, ):
3562
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3563
    if mtype == TMessageType.EXCEPTION:
3564
      x = TApplicationException()
3565
      x.read(self._iprot)
3566
      self._iprot.readMessageEnd()
3567
      raise x
3568
    result = getAllSources_result()
3569
    result.read(self._iprot)
3570
    self._iprot.readMessageEnd()
3571
    if result.success is not None:
3572
      return result.success
3573
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3574
 
3575
  def getItemPricingBySource(self, itemId, sourceId):
3576
    """
3577
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3578
 
3579
    Parameters:
3580
     - itemId
3581
     - sourceId
3582
    """
3583
    self.send_getItemPricingBySource(itemId, sourceId)
3584
    return self.recv_getItemPricingBySource()
3585
 
3586
  def send_getItemPricingBySource(self, itemId, sourceId):
3587
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3588
    args = getItemPricingBySource_args()
3589
    args.itemId = itemId
3590
    args.sourceId = sourceId
3591
    args.write(self._oprot)
3592
    self._oprot.writeMessageEnd()
3593
    self._oprot.trans.flush()
3594
 
3595
  def recv_getItemPricingBySource(self, ):
3596
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3597
    if mtype == TMessageType.EXCEPTION:
3598
      x = TApplicationException()
3599
      x.read(self._iprot)
3600
      self._iprot.readMessageEnd()
3601
      raise x
3602
    result = getItemPricingBySource_result()
3603
    result.read(self._iprot)
3604
    self._iprot.readMessageEnd()
3605
    if result.success is not None:
3606
      return result.success
3607
    if result.cex is not None:
3608
      raise result.cex
3609
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3610
 
3611
  def addSourceItemPricing(self, sourceItemPricing):
3612
    """
3613
    Adds prices to be displayed corresponding to the item if user comes from a source.
3614
    If item is not found or source is not found, it will throw exception.
3615
 
3616
    Parameters:
3617
     - sourceItemPricing
3618
    """
3619
    self.send_addSourceItemPricing(sourceItemPricing)
3620
    self.recv_addSourceItemPricing()
3621
 
3622
  def send_addSourceItemPricing(self, sourceItemPricing):
3623
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3624
    args = addSourceItemPricing_args()
3625
    args.sourceItemPricing = sourceItemPricing
3626
    args.write(self._oprot)
3627
    self._oprot.writeMessageEnd()
3628
    self._oprot.trans.flush()
3629
 
3630
  def recv_addSourceItemPricing(self, ):
3631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3632
    if mtype == TMessageType.EXCEPTION:
3633
      x = TApplicationException()
3634
      x.read(self._iprot)
3635
      self._iprot.readMessageEnd()
3636
      raise x
3637
    result = addSourceItemPricing_result()
3638
    result.read(self._iprot)
3639
    self._iprot.readMessageEnd()
3640
    if result.cex is not None:
3641
      raise result.cex
3642
    return
3643
 
3644
  def getAllSourcePricing(self, itemId):
3645
    """
3646
    Returns the list of source pricing information of an item.
3647
    Raises an exception if item not found corresponding to itemId
3648
 
3649
    Parameters:
3650
     - itemId
3651
    """
3652
    self.send_getAllSourcePricing(itemId)
3653
    return self.recv_getAllSourcePricing()
3654
 
3655
  def send_getAllSourcePricing(self, itemId):
3656
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3657
    args = getAllSourcePricing_args()
3658
    args.itemId = itemId
3659
    args.write(self._oprot)
3660
    self._oprot.writeMessageEnd()
3661
    self._oprot.trans.flush()
3662
 
3663
  def recv_getAllSourcePricing(self, ):
3664
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3665
    if mtype == TMessageType.EXCEPTION:
3666
      x = TApplicationException()
3667
      x.read(self._iprot)
3668
      self._iprot.readMessageEnd()
3669
      raise x
3670
    result = getAllSourcePricing_result()
3671
    result.read(self._iprot)
3672
    self._iprot.readMessageEnd()
3673
    if result.success is not None:
3674
      return result.success
3675
    if result.cex is not None:
3676
      raise result.cex
3677
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3678
 
3679
  def getItemForSource(self, item_id, sourceId):
3680
    """
3681
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3682
 
3683
    Parameters:
3684
     - item_id
3685
     - sourceId
3686
    """
3687
    self.send_getItemForSource(item_id, sourceId)
3688
    return self.recv_getItemForSource()
3689
 
3690
  def send_getItemForSource(self, item_id, sourceId):
3691
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3692
    args = getItemForSource_args()
3693
    args.item_id = item_id
3694
    args.sourceId = sourceId
3695
    args.write(self._oprot)
3696
    self._oprot.writeMessageEnd()
3697
    self._oprot.trans.flush()
3698
 
3699
  def recv_getItemForSource(self, ):
3700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3701
    if mtype == TMessageType.EXCEPTION:
3702
      x = TApplicationException()
3703
      x.read(self._iprot)
3704
      self._iprot.readMessageEnd()
3705
      raise x
3706
    result = getItemForSource_result()
3707
    result.read(self._iprot)
3708
    self._iprot.readMessageEnd()
3709
    if result.success is not None:
3710
      return result.success
3711
    if result.cex is not None:
3712
      raise result.cex
3713
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3714
 
3715
  def searchItemsInRange(self, searchTerms, offset, limit):
3716
    """
3717
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3718
 
3719
    Parameters:
3720
     - searchTerms
3721
     - offset
3722
     - limit
3723
    """
3724
    self.send_searchItemsInRange(searchTerms, offset, limit)
3725
    return self.recv_searchItemsInRange()
3726
 
3727
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3728
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3729
    args = searchItemsInRange_args()
3730
    args.searchTerms = searchTerms
3731
    args.offset = offset
3732
    args.limit = limit
3733
    args.write(self._oprot)
3734
    self._oprot.writeMessageEnd()
3735
    self._oprot.trans.flush()
3736
 
3737
  def recv_searchItemsInRange(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 = searchItemsInRange_result()
3745
    result.read(self._iprot)
3746
    self._iprot.readMessageEnd()
3747
    if result.success is not None:
3748
      return result.success
3749
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3750
 
3751
  def getSearchResultCount(self, searchTerms):
3752
    """
3753
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3754
 
3755
    Parameters:
3756
     - searchTerms
3757
    """
3758
    self.send_getSearchResultCount(searchTerms)
3759
    return self.recv_getSearchResultCount()
3760
 
3761
  def send_getSearchResultCount(self, searchTerms):
3762
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3763
    args = getSearchResultCount_args()
3764
    args.searchTerms = searchTerms
3765
    args.write(self._oprot)
3766
    self._oprot.writeMessageEnd()
3767
    self._oprot.trans.flush()
3768
 
3769
  def recv_getSearchResultCount(self, ):
3770
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3771
    if mtype == TMessageType.EXCEPTION:
3772
      x = TApplicationException()
3773
      x.read(self._iprot)
3774
      self._iprot.readMessageEnd()
3775
      raise x
3776
    result = getSearchResultCount_result()
3777
    result.read(self._iprot)
3778
    self._iprot.readMessageEnd()
3779
    if result.success is not None:
3780
      return result.success
3781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3782
 
3783
  def getProductNotifications(self, startDateTime):
3784
    """
3785
    Returns a list of product notifications added after a supplied datetime
3786
 
3787
    Parameters:
3788
     - startDateTime
3789
    """
3790
    self.send_getProductNotifications(startDateTime)
3791
    return self.recv_getProductNotifications()
3792
 
3793
  def send_getProductNotifications(self, startDateTime):
3794
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3795
    args = getProductNotifications_args()
3796
    args.startDateTime = startDateTime
3797
    args.write(self._oprot)
3798
    self._oprot.writeMessageEnd()
3799
    self._oprot.trans.flush()
3800
 
3801
  def recv_getProductNotifications(self, ):
3802
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3803
    if mtype == TMessageType.EXCEPTION:
3804
      x = TApplicationException()
3805
      x.read(self._iprot)
3806
      self._iprot.readMessageEnd()
3807
      raise x
3808
    result = getProductNotifications_result()
3809
    result.read(self._iprot)
3810
    self._iprot.readMessageEnd()
3811
    if result.success is not None:
3812
      return result.success
3813
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3814
 
7897 amar.kumar 3815
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3816
    """
3817
    Returns a list of count of requests for product notification against each item
3818
 
3819
    Parameters:
3820
     - startDateTime
7897 amar.kumar 3821
     - categoryId
5944 mandeep.dh 3822
    """
7897 amar.kumar 3823
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3824
    return self.recv_getProductNotificationRequestCount()
3825
 
7897 amar.kumar 3826
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3827
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3828
    args = getProductNotificationRequestCount_args()
3829
    args.startDateTime = startDateTime
7897 amar.kumar 3830
    args.categoryId = categoryId
5944 mandeep.dh 3831
    args.write(self._oprot)
3832
    self._oprot.writeMessageEnd()
3833
    self._oprot.trans.flush()
3834
 
3835
  def recv_getProductNotificationRequestCount(self, ):
3836
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3837
    if mtype == TMessageType.EXCEPTION:
3838
      x = TApplicationException()
3839
      x.read(self._iprot)
3840
      self._iprot.readMessageEnd()
3841
      raise x
3842
    result = getProductNotificationRequestCount_result()
3843
    result.read(self._iprot)
3844
    self._iprot.readMessageEnd()
3845
    if result.success is not None:
3846
      return result.success
3847
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3848
 
3849
  def addAuthorizationLog(self, itemId, username, reason):
3850
    """
3851
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3852
 
3853
    Parameters:
3854
     - itemId
3855
     - username
3856
     - reason
3857
    """
3858
    self.send_addAuthorizationLog(itemId, username, reason)
3859
    return self.recv_addAuthorizationLog()
3860
 
3861
  def send_addAuthorizationLog(self, itemId, username, reason):
3862
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3863
    args = addAuthorizationLog_args()
3864
    args.itemId = itemId
3865
    args.username = username
3866
    args.reason = reason
3867
    args.write(self._oprot)
3868
    self._oprot.writeMessageEnd()
3869
    self._oprot.trans.flush()
3870
 
3871
  def recv_addAuthorizationLog(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 = addAuthorizationLog_result()
3879
    result.read(self._iprot)
3880
    self._iprot.readMessageEnd()
3881
    if result.success is not None:
3882
      return result.success
3883
    if result.cex is not None:
3884
      raise result.cex
3885
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3886
 
3887
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3888
    """
3889
    Parameters:
3890
     - catalog_item_id
3891
     - voucherType
3892
     - voucherAmount
3893
    """
3894
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3895
    return self.recv_addupdateVoucherForItem()
3896
 
3897
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3898
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3899
    args = addupdateVoucherForItem_args()
3900
    args.catalog_item_id = catalog_item_id
3901
    args.voucherType = voucherType
3902
    args.voucherAmount = voucherAmount
3903
    args.write(self._oprot)
3904
    self._oprot.writeMessageEnd()
3905
    self._oprot.trans.flush()
3906
 
3907
  def recv_addupdateVoucherForItem(self, ):
3908
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3909
    if mtype == TMessageType.EXCEPTION:
3910
      x = TApplicationException()
3911
      x.read(self._iprot)
3912
      self._iprot.readMessageEnd()
3913
      raise x
3914
    result = addupdateVoucherForItem_result()
3915
    result.read(self._iprot)
3916
    self._iprot.readMessageEnd()
3917
    if result.success is not None:
3918
      return result.success
3919
    if result.cex is not None:
3920
      raise result.cex
3921
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3922
 
3923
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3924
    """
3925
    Parameters:
3926
     - catalog_item_id
3927
     - voucherType
3928
    """
3929
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3930
    return self.recv_deleteVoucherForItem()
3931
 
3932
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3933
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3934
    args = deleteVoucherForItem_args()
3935
    args.catalog_item_id = catalog_item_id
3936
    args.voucherType = voucherType
3937
    args.write(self._oprot)
3938
    self._oprot.writeMessageEnd()
3939
    self._oprot.trans.flush()
3940
 
3941
  def recv_deleteVoucherForItem(self, ):
3942
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3943
    if mtype == TMessageType.EXCEPTION:
3944
      x = TApplicationException()
3945
      x.read(self._iprot)
3946
      self._iprot.readMessageEnd()
3947
      raise x
3948
    result = deleteVoucherForItem_result()
3949
    result.read(self._iprot)
3950
    self._iprot.readMessageEnd()
3951
    if result.success is not None:
3952
      return result.success
3953
    if result.cex is not None:
3954
      raise result.cex
3955
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3956
 
3957
  def getVoucherAmount(self, itemId, voucherType):
3958
    """
3959
    Parameters:
3960
     - itemId
3961
     - voucherType
3962
    """
3963
    self.send_getVoucherAmount(itemId, voucherType)
3964
    return self.recv_getVoucherAmount()
3965
 
3966
  def send_getVoucherAmount(self, itemId, voucherType):
3967
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3968
    args = getVoucherAmount_args()
3969
    args.itemId = itemId
3970
    args.voucherType = voucherType
3971
    args.write(self._oprot)
3972
    self._oprot.writeMessageEnd()
3973
    self._oprot.trans.flush()
3974
 
3975
  def recv_getVoucherAmount(self, ):
3976
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3977
    if mtype == TMessageType.EXCEPTION:
3978
      x = TApplicationException()
3979
      x.read(self._iprot)
3980
      self._iprot.readMessageEnd()
3981
      raise x
3982
    result = getVoucherAmount_result()
3983
    result.read(self._iprot)
3984
    self._iprot.readMessageEnd()
3985
    if result.success is not None:
3986
      return result.success
3987
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3988
 
3989
  def getAllItemVouchers(self, itemId):
3990
    """
3991
    Parameters:
3992
     - itemId
3993
    """
3994
    self.send_getAllItemVouchers(itemId)
3995
    return self.recv_getAllItemVouchers()
3996
 
3997
  def send_getAllItemVouchers(self, itemId):
3998
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3999
    args = getAllItemVouchers_args()
4000
    args.itemId = itemId
4001
    args.write(self._oprot)
4002
    self._oprot.writeMessageEnd()
4003
    self._oprot.trans.flush()
4004
 
4005
  def recv_getAllItemVouchers(self, ):
4006
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4007
    if mtype == TMessageType.EXCEPTION:
4008
      x = TApplicationException()
4009
      x.read(self._iprot)
4010
      self._iprot.readMessageEnd()
4011
      raise x
4012
    result = getAllItemVouchers_result()
4013
    result.read(self._iprot)
4014
    self._iprot.readMessageEnd()
4015
    if result.success is not None:
4016
      return result.success
4017
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
4018
 
4019
  def isValidCatalogItemId(self, catalog_item_id):
4020
    """
4021
    Parameters:
4022
     - catalog_item_id
4023
    """
4024
    self.send_isValidCatalogItemId(catalog_item_id)
4025
    return self.recv_isValidCatalogItemId()
4026
 
4027
  def send_isValidCatalogItemId(self, catalog_item_id):
4028
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
4029
    args = isValidCatalogItemId_args()
4030
    args.catalog_item_id = catalog_item_id
4031
    args.write(self._oprot)
4032
    self._oprot.writeMessageEnd()
4033
    self._oprot.trans.flush()
4034
 
4035
  def recv_isValidCatalogItemId(self, ):
4036
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4037
    if mtype == TMessageType.EXCEPTION:
4038
      x = TApplicationException()
4039
      x.read(self._iprot)
4040
      self._iprot.readMessageEnd()
4041
      raise x
4042
    result = isValidCatalogItemId_result()
4043
    result.read(self._iprot)
4044
    self._iprot.readMessageEnd()
4045
    if result.success is not None:
4046
      return result.success
4047
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
4048
 
7330 amit.gupta 4049
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 4050
    """
4051
    Parameters:
4052
     - itemId
7330 amit.gupta 4053
     - stateId
6039 amit.gupta 4054
     - price
4055
    """
7330 amit.gupta 4056
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 4057
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 4058
 
7330 amit.gupta 4059
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 4060
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
4061
    args = getVatPercentageForItem_args()
4062
    args.itemId = itemId
7330 amit.gupta 4063
    args.stateId = stateId
6039 amit.gupta 4064
    args.price = price
4065
    args.write(self._oprot)
4066
    self._oprot.writeMessageEnd()
4067
    self._oprot.trans.flush()
4068
 
4069
  def recv_getVatPercentageForItem(self, ):
4070
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4071
    if mtype == TMessageType.EXCEPTION:
4072
      x = TApplicationException()
4073
      x.read(self._iprot)
4074
      self._iprot.readMessageEnd()
4075
      raise x
4076
    result = getVatPercentageForItem_result()
4077
    result.read(self._iprot)
4078
    self._iprot.readMessageEnd()
4079
    if result.success is not None:
4080
      return result.success
7340 amit.gupta 4081
    if result.cex is not None:
4082
      raise result.cex
6039 amit.gupta 4083
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
4084
 
4085
  def getVatAmountForItem(self, itemId, price):
4086
    """
4087
    Parameters:
4088
     - itemId
4089
     - price
4090
    """
4091
    self.send_getVatAmountForItem(itemId, price)
4092
    return self.recv_getVatAmountForItem()
4093
 
4094
  def send_getVatAmountForItem(self, itemId, price):
4095
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
4096
    args = getVatAmountForItem_args()
4097
    args.itemId = itemId
4098
    args.price = price
4099
    args.write(self._oprot)
4100
    self._oprot.writeMessageEnd()
4101
    self._oprot.trans.flush()
4102
 
4103
  def recv_getVatAmountForItem(self, ):
4104
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4105
    if mtype == TMessageType.EXCEPTION:
4106
      x = TApplicationException()
4107
      x.read(self._iprot)
4108
      self._iprot.readMessageEnd()
4109
      raise x
4110
    result = getVatAmountForItem_result()
4111
    result.read(self._iprot)
4112
    self._iprot.readMessageEnd()
4113
    if result.success is not None:
4114
      return result.success
4115
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
4116
 
6531 vikram.rag 4117
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4118
    """
4119
    Parameters:
4120
     - offset
4121
     - limit
4122
    """
4123
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
4124
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 4125
 
6531 vikram.rag 4126
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4127
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
4128
    args = getAllIgnoredInventoryUpdateItemsList_args()
4129
    args.offset = offset
4130
    args.limit = limit
4131
    args.write(self._oprot)
4132
    self._oprot.writeMessageEnd()
4133
    self._oprot.trans.flush()
4134
 
4135
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
4136
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4137
    if mtype == TMessageType.EXCEPTION:
4138
      x = TApplicationException()
4139
      x.read(self._iprot)
4140
      self._iprot.readMessageEnd()
4141
      raise x
4142
    result = getAllIgnoredInventoryUpdateItemsList_result()
4143
    result.read(self._iprot)
4144
    self._iprot.readMessageEnd()
4145
    if result.success is not None:
4146
      return result.success
4147
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
4148
 
6821 amar.kumar 4149
  def getAllAliveItems(self, ):
4150
    self.send_getAllAliveItems()
4151
    return self.recv_getAllAliveItems()
4152
 
4153
  def send_getAllAliveItems(self, ):
4154
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
4155
    args = getAllAliveItems_args()
4156
    args.write(self._oprot)
4157
    self._oprot.writeMessageEnd()
4158
    self._oprot.trans.flush()
4159
 
4160
  def recv_getAllAliveItems(self, ):
4161
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4162
    if mtype == TMessageType.EXCEPTION:
4163
      x = TApplicationException()
4164
      x.read(self._iprot)
4165
      self._iprot.readMessageEnd()
4166
      raise x
4167
    result = getAllAliveItems_result()
4168
    result.read(self._iprot)
4169
    self._iprot.readMessageEnd()
4170
    if result.success is not None:
4171
      return result.success
4172
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
4173
 
6921 anupam.sin 4174
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4175
    """
4176
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 4177
 
6805 anupam.sin 4178
    Parameters:
4179
     - itemId
6921 anupam.sin 4180
     - price
6805 anupam.sin 4181
     - insurerId
4182
     - quantity
4183
    """
6921 anupam.sin 4184
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 4185
    return self.recv_getInsuranceAmount()
4186
 
6921 anupam.sin 4187
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4188
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
4189
    args = getInsuranceAmount_args()
4190
    args.itemId = itemId
6921 anupam.sin 4191
    args.price = price
6805 anupam.sin 4192
    args.insurerId = insurerId
4193
    args.quantity = quantity
4194
    args.write(self._oprot)
4195
    self._oprot.writeMessageEnd()
4196
    self._oprot.trans.flush()
4197
 
4198
  def recv_getInsuranceAmount(self, ):
4199
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4200
    if mtype == TMessageType.EXCEPTION:
4201
      x = TApplicationException()
4202
      x.read(self._iprot)
4203
      self._iprot.readMessageEnd()
4204
      raise x
4205
    result = getInsuranceAmount_result()
4206
    result.read(self._iprot)
4207
    self._iprot.readMessageEnd()
4208
    if result.success is not None:
4209
      return result.success
4210
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
4211
 
4212
  def getInsurer(self, insurerId):
4213
    """
4214
    Parameters:
4215
     - insurerId
4216
    """
4217
    self.send_getInsurer(insurerId)
4218
    return self.recv_getInsurer()
4219
 
4220
  def send_getInsurer(self, insurerId):
4221
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
4222
    args = getInsurer_args()
4223
    args.insurerId = insurerId
4224
    args.write(self._oprot)
4225
    self._oprot.writeMessageEnd()
4226
    self._oprot.trans.flush()
4227
 
4228
  def recv_getInsurer(self, ):
4229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4230
    if mtype == TMessageType.EXCEPTION:
4231
      x = TApplicationException()
4232
      x.read(self._iprot)
4233
      self._iprot.readMessageEnd()
4234
      raise x
4235
    result = getInsurer_result()
4236
    result.read(self._iprot)
4237
    self._iprot.readMessageEnd()
4238
    if result.success is not None:
4239
      return result.success
4240
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
4241
 
6838 vikram.rag 4242
  def getAllInsurers(self, ):
4243
    self.send_getAllInsurers()
4244
    return self.recv_getAllInsurers()
6805 anupam.sin 4245
 
6838 vikram.rag 4246
  def send_getAllInsurers(self, ):
4247
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
4248
    args = getAllInsurers_args()
4249
    args.write(self._oprot)
4250
    self._oprot.writeMessageEnd()
4251
    self._oprot.trans.flush()
4252
 
4253
  def recv_getAllInsurers(self, ):
4254
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4255
    if mtype == TMessageType.EXCEPTION:
4256
      x = TApplicationException()
4257
      x.read(self._iprot)
4258
      self._iprot.readMessageEnd()
4259
      raise x
4260
    result = getAllInsurers_result()
4261
    result.read(self._iprot)
4262
    self._iprot.readMessageEnd()
4263
    if result.success is not None:
4264
      return result.success
4265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4266
 
6962 rajveer 4267
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4268
    """
4269
    Parameters:
4270
     - insurerId
4271
     - amount
4272
    """
4273
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4274
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4275
 
6962 rajveer 4276
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4277
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4278
    args = updateInsuranceDeclaredAmount_args()
4279
    args.insurerId = insurerId
4280
    args.amount = amount
4281
    args.write(self._oprot)
4282
    self._oprot.writeMessageEnd()
4283
    self._oprot.trans.flush()
4284
 
4285
  def recv_updateInsuranceDeclaredAmount(self, ):
4286
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4287
    if mtype == TMessageType.EXCEPTION:
4288
      x = TApplicationException()
4289
      x.read(self._iprot)
4290
      self._iprot.readMessageEnd()
4291
      raise x
4292
    result = updateInsuranceDeclaredAmount_result()
4293
    result.read(self._iprot)
4294
    self._iprot.readMessageEnd()
4295
    return
4296
 
7190 amar.kumar 4297
  def getFreebieForItem(self, itemId):
4298
    """
4299
    Parameters:
4300
     - itemId
4301
    """
4302
    self.send_getFreebieForItem(itemId)
4303
    return self.recv_getFreebieForItem()
6962 rajveer 4304
 
7190 amar.kumar 4305
  def send_getFreebieForItem(self, itemId):
4306
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4307
    args = getFreebieForItem_args()
4308
    args.itemId = itemId
4309
    args.write(self._oprot)
4310
    self._oprot.writeMessageEnd()
4311
    self._oprot.trans.flush()
4312
 
4313
  def recv_getFreebieForItem(self, ):
4314
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4315
    if mtype == TMessageType.EXCEPTION:
4316
      x = TApplicationException()
4317
      x.read(self._iprot)
4318
      self._iprot.readMessageEnd()
4319
      raise x
4320
    result = getFreebieForItem_result()
4321
    result.read(self._iprot)
4322
    self._iprot.readMessageEnd()
4323
    if result.success is not None:
4324
      return result.success
4325
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4326
 
4327
  def addOrUpdateFreebieForItem(self, freebieItem):
4328
    """
4329
    Parameters:
4330
     - freebieItem
4331
    """
4332
    self.send_addOrUpdateFreebieForItem(freebieItem)
4333
    self.recv_addOrUpdateFreebieForItem()
4334
 
4335
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4336
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4337
    args = addOrUpdateFreebieForItem_args()
4338
    args.freebieItem = freebieItem
4339
    args.write(self._oprot)
4340
    self._oprot.writeMessageEnd()
4341
    self._oprot.trans.flush()
4342
 
4343
  def recv_addOrUpdateFreebieForItem(self, ):
4344
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4345
    if mtype == TMessageType.EXCEPTION:
4346
      x = TApplicationException()
4347
      x.read(self._iprot)
4348
      self._iprot.readMessageEnd()
4349
      raise x
4350
    result = addOrUpdateFreebieForItem_result()
4351
    result.read(self._iprot)
4352
    self._iprot.readMessageEnd()
4353
    return
4354
 
7272 amit.gupta 4355
  def addOrUpdateBrandInfo(self, brandInfo):
4356
    """
4357
    Parameters:
4358
     - brandInfo
4359
    """
4360
    self.send_addOrUpdateBrandInfo(brandInfo)
4361
    self.recv_addOrUpdateBrandInfo()
4362
 
4363
  def send_addOrUpdateBrandInfo(self, brandInfo):
4364
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4365
    args = addOrUpdateBrandInfo_args()
4366
    args.brandInfo = brandInfo
4367
    args.write(self._oprot)
4368
    self._oprot.writeMessageEnd()
4369
    self._oprot.trans.flush()
4370
 
4371
  def recv_addOrUpdateBrandInfo(self, ):
4372
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4373
    if mtype == TMessageType.EXCEPTION:
4374
      x = TApplicationException()
4375
      x.read(self._iprot)
4376
      self._iprot.readMessageEnd()
4377
      raise x
4378
    result = addOrUpdateBrandInfo_result()
4379
    result.read(self._iprot)
4380
    self._iprot.readMessageEnd()
4381
    return
4382
 
4383
  def getBrandInfo(self, ):
4384
    self.send_getBrandInfo()
4385
    return self.recv_getBrandInfo()
4386
 
4387
  def send_getBrandInfo(self, ):
4388
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4389
    args = getBrandInfo_args()
4390
    args.write(self._oprot)
4391
    self._oprot.writeMessageEnd()
4392
    self._oprot.trans.flush()
4393
 
4394
  def recv_getBrandInfo(self, ):
4395
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4396
    if mtype == TMessageType.EXCEPTION:
4397
      x = TApplicationException()
4398
      x.read(self._iprot)
4399
      self._iprot.readMessageEnd()
4400
      raise x
4401
    result = getBrandInfo_result()
4402
    result.read(self._iprot)
4403
    self._iprot.readMessageEnd()
4404
    if result.success is not None:
4405
      return result.success
4406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4407
 
7256 rajveer 4408
  def getStorePricing(self, itemId):
4409
    """
4410
    Parameters:
4411
     - itemId
4412
    """
4413
    self.send_getStorePricing(itemId)
4414
    return self.recv_getStorePricing()
7190 amar.kumar 4415
 
7256 rajveer 4416
  def send_getStorePricing(self, itemId):
4417
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4418
    args = getStorePricing_args()
4419
    args.itemId = itemId
4420
    args.write(self._oprot)
4421
    self._oprot.writeMessageEnd()
4422
    self._oprot.trans.flush()
4423
 
4424
  def recv_getStorePricing(self, ):
4425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4426
    if mtype == TMessageType.EXCEPTION:
4427
      x = TApplicationException()
4428
      x.read(self._iprot)
4429
      self._iprot.readMessageEnd()
4430
      raise x
4431
    result = getStorePricing_result()
4432
    result.read(self._iprot)
4433
    self._iprot.readMessageEnd()
4434
    if result.success is not None:
4435
      return result.success
4436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4437
 
7306 rajveer 4438
  def getStorePricings(self, itemIds):
4439
    """
4440
    Parameters:
4441
     - itemIds
4442
    """
4443
    self.send_getStorePricings(itemIds)
4444
    return self.recv_getStorePricings()
4445
 
4446
  def send_getStorePricings(self, itemIds):
4447
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4448
    args = getStorePricings_args()
4449
    args.itemIds = itemIds
4450
    args.write(self._oprot)
4451
    self._oprot.writeMessageEnd()
4452
    self._oprot.trans.flush()
4453
 
4454
  def recv_getStorePricings(self, ):
4455
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4456
    if mtype == TMessageType.EXCEPTION:
4457
      x = TApplicationException()
4458
      x.read(self._iprot)
4459
      self._iprot.readMessageEnd()
4460
      raise x
4461
    result = getStorePricings_result()
4462
    result.read(self._iprot)
4463
    self._iprot.readMessageEnd()
4464
    if result.success is not None:
4465
      return result.success
4466
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4467
 
7382 rajveer 4468
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4469
    """
4470
    Parameters:
4471
     - sp
7382 rajveer 4472
     - allColors
7265 rajveer 4473
    """
7382 rajveer 4474
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4475
    self.recv_updateStorePricing()
7256 rajveer 4476
 
7382 rajveer 4477
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4478
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4479
    args = updateStorePricing_args()
4480
    args.sp = sp
7382 rajveer 4481
    args.allColors = allColors
7265 rajveer 4482
    args.write(self._oprot)
4483
    self._oprot.writeMessageEnd()
4484
    self._oprot.trans.flush()
4485
 
4486
  def recv_updateStorePricing(self, ):
4487
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4488
    if mtype == TMessageType.EXCEPTION:
4489
      x = TApplicationException()
4490
      x.read(self._iprot)
4491
      self._iprot.readMessageEnd()
4492
      raise x
4493
    result = updateStorePricing_result()
4494
    result.read(self._iprot)
4495
    self._iprot.readMessageEnd()
4496
    return
4497
 
7281 kshitij.so 4498
  def getAllAmazonListedItems(self, ):
4499
    self.send_getAllAmazonListedItems()
4500
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4501
 
7281 kshitij.so 4502
  def send_getAllAmazonListedItems(self, ):
4503
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4504
    args = getAllAmazonListedItems_args()
4505
    args.write(self._oprot)
4506
    self._oprot.writeMessageEnd()
4507
    self._oprot.trans.flush()
4508
 
4509
  def recv_getAllAmazonListedItems(self, ):
4510
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4511
    if mtype == TMessageType.EXCEPTION:
4512
      x = TApplicationException()
4513
      x.read(self._iprot)
4514
      self._iprot.readMessageEnd()
4515
      raise x
4516
    result = getAllAmazonListedItems_result()
4517
    result.read(self._iprot)
4518
    self._iprot.readMessageEnd()
4519
    if result.success is not None:
4520
      return result.success
4521
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4522
 
8619 kshitij.so 4523
  def searchAmazonItems(self, searchTerm, offset, limit):
4524
    """
4525
    Parameters:
4526
     - searchTerm
4527
     - offset
4528
     - limit
4529
    """
4530
    self.send_searchAmazonItems(searchTerm, offset, limit)
4531
    return self.recv_searchAmazonItems()
4532
 
4533
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4534
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4535
    args = searchAmazonItems_args()
4536
    args.searchTerm = searchTerm
4537
    args.offset = offset
4538
    args.limit = limit
4539
    args.write(self._oprot)
4540
    self._oprot.writeMessageEnd()
4541
    self._oprot.trans.flush()
4542
 
4543
  def recv_searchAmazonItems(self, ):
4544
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4545
    if mtype == TMessageType.EXCEPTION:
4546
      x = TApplicationException()
4547
      x.read(self._iprot)
4548
      self._iprot.readMessageEnd()
4549
      raise x
4550
    result = searchAmazonItems_result()
4551
    result.read(self._iprot)
4552
    self._iprot.readMessageEnd()
4553
    if result.success is not None:
4554
      return result.success
4555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4556
 
4557
  def getAmazonSearchResultCount(self, searchTerm):
4558
    """
4559
    Parameters:
4560
     - searchTerm
4561
    """
4562
    self.send_getAmazonSearchResultCount(searchTerm)
4563
    return self.recv_getAmazonSearchResultCount()
4564
 
4565
  def send_getAmazonSearchResultCount(self, searchTerm):
4566
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4567
    args = getAmazonSearchResultCount_args()
4568
    args.searchTerm = searchTerm
4569
    args.write(self._oprot)
4570
    self._oprot.writeMessageEnd()
4571
    self._oprot.trans.flush()
4572
 
4573
  def recv_getAmazonSearchResultCount(self, ):
4574
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4575
    if mtype == TMessageType.EXCEPTION:
4576
      x = TApplicationException()
4577
      x.read(self._iprot)
4578
      self._iprot.readMessageEnd()
4579
      raise x
4580
    result = getAmazonSearchResultCount_result()
4581
    result.read(self._iprot)
4582
    self._iprot.readMessageEnd()
4583
    if result.success is not None:
4584
      return result.success
4585
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4586
 
4587
  def getCountForAmazonlistedItems(self, ):
4588
    self.send_getCountForAmazonlistedItems()
4589
    return self.recv_getCountForAmazonlistedItems()
4590
 
4591
  def send_getCountForAmazonlistedItems(self, ):
4592
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4593
    args = getCountForAmazonlistedItems_args()
4594
    args.write(self._oprot)
4595
    self._oprot.writeMessageEnd()
4596
    self._oprot.trans.flush()
4597
 
4598
  def recv_getCountForAmazonlistedItems(self, ):
4599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4600
    if mtype == TMessageType.EXCEPTION:
4601
      x = TApplicationException()
4602
      x.read(self._iprot)
4603
      self._iprot.readMessageEnd()
4604
      raise x
4605
    result = getCountForAmazonlistedItems_result()
4606
    result.read(self._iprot)
4607
    self._iprot.readMessageEnd()
4608
    if result.success is not None:
4609
      return result.success
4610
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4611
 
7281 kshitij.so 4612
  def getAmazonItemDetails(self, itemId):
4613
    """
4614
    Parameters:
4615
     - itemId
4616
    """
4617
    self.send_getAmazonItemDetails(itemId)
4618
    return self.recv_getAmazonItemDetails()
4619
 
4620
  def send_getAmazonItemDetails(self, itemId):
4621
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4622
    args = getAmazonItemDetails_args()
4623
    args.itemId = itemId
4624
    args.write(self._oprot)
4625
    self._oprot.writeMessageEnd()
4626
    self._oprot.trans.flush()
4627
 
4628
  def recv_getAmazonItemDetails(self, ):
4629
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4630
    if mtype == TMessageType.EXCEPTION:
4631
      x = TApplicationException()
4632
      x.read(self._iprot)
4633
      self._iprot.readMessageEnd()
4634
      raise x
4635
    result = getAmazonItemDetails_result()
4636
    result.read(self._iprot)
4637
    self._iprot.readMessageEnd()
4638
    if result.success is not None:
4639
      return result.success
4640
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4641
 
8168 kshitij.so 4642
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4643
    """
4644
    Parameters:
8168 kshitij.so 4645
     - amazonlisted
7281 kshitij.so 4646
    """
8168 kshitij.so 4647
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4648
    self.recv_updateAmazonItemDetails()
4649
 
8168 kshitij.so 4650
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4651
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4652
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4653
    args.amazonlisted = amazonlisted
7281 kshitij.so 4654
    args.write(self._oprot)
4655
    self._oprot.writeMessageEnd()
4656
    self._oprot.trans.flush()
4657
 
4658
  def recv_updateAmazonItemDetails(self, ):
4659
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4660
    if mtype == TMessageType.EXCEPTION:
4661
      x = TApplicationException()
4662
      x.read(self._iprot)
4663
      self._iprot.readMessageEnd()
4664
      raise x
4665
    result = updateAmazonItemDetails_result()
4666
    result.read(self._iprot)
4667
    self._iprot.readMessageEnd()
4668
    return
4669
 
4670
  def addAmazonItem(self, amazonlisted):
4671
    """
4672
    Parameters:
4673
     - amazonlisted
4674
    """
4675
    self.send_addAmazonItem(amazonlisted)
4676
    self.recv_addAmazonItem()
4677
 
4678
  def send_addAmazonItem(self, amazonlisted):
4679
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4680
    args = addAmazonItem_args()
4681
    args.amazonlisted = amazonlisted
4682
    args.write(self._oprot)
4683
    self._oprot.writeMessageEnd()
4684
    self._oprot.trans.flush()
4685
 
4686
  def recv_addAmazonItem(self, ):
4687
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4688
    if mtype == TMessageType.EXCEPTION:
4689
      x = TApplicationException()
4690
      x.read(self._iprot)
4691
      self._iprot.readMessageEnd()
4692
      raise x
4693
    result = addAmazonItem_result()
4694
    result.read(self._iprot)
4695
    self._iprot.readMessageEnd()
4696
    return
4697
 
7291 vikram.rag 4698
  def getAsinItems(self, ):
4699
    self.send_getAsinItems()
4700
    return self.recv_getAsinItems()
7281 kshitij.so 4701
 
7291 vikram.rag 4702
  def send_getAsinItems(self, ):
4703
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4704
    args = getAsinItems_args()
4705
    args.write(self._oprot)
4706
    self._oprot.writeMessageEnd()
4707
    self._oprot.trans.flush()
4708
 
4709
  def recv_getAsinItems(self, ):
4710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4711
    if mtype == TMessageType.EXCEPTION:
4712
      x = TApplicationException()
4713
      x.read(self._iprot)
4714
      self._iprot.readMessageEnd()
4715
      raise x
4716
    result = getAsinItems_result()
4717
    result.read(self._iprot)
4718
    self._iprot.readMessageEnd()
4719
    if result.success is not None:
4720
      return result.success
4721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4722
 
4723
  def getAllFbaListedItems(self, ):
4724
    self.send_getAllFbaListedItems()
4725
    return self.recv_getAllFbaListedItems()
4726
 
4727
  def send_getAllFbaListedItems(self, ):
4728
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4729
    args = getAllFbaListedItems_args()
4730
    args.write(self._oprot)
4731
    self._oprot.writeMessageEnd()
4732
    self._oprot.trans.flush()
4733
 
4734
  def recv_getAllFbaListedItems(self, ):
4735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4736
    if mtype == TMessageType.EXCEPTION:
4737
      x = TApplicationException()
4738
      x.read(self._iprot)
4739
      self._iprot.readMessageEnd()
4740
      raise x
4741
    result = getAllFbaListedItems_result()
4742
    result.read(self._iprot)
4743
    self._iprot.readMessageEnd()
4744
    if result.success is not None:
4745
      return result.success
4746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4747
 
4748
  def getAllNonFbaListedItems(self, ):
4749
    self.send_getAllNonFbaListedItems()
4750
    return self.recv_getAllNonFbaListedItems()
4751
 
4752
  def send_getAllNonFbaListedItems(self, ):
4753
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4754
    args = getAllNonFbaListedItems_args()
4755
    args.write(self._oprot)
4756
    self._oprot.writeMessageEnd()
4757
    self._oprot.trans.flush()
4758
 
4759
  def recv_getAllNonFbaListedItems(self, ):
4760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4761
    if mtype == TMessageType.EXCEPTION:
4762
      x = TApplicationException()
4763
      x.read(self._iprot)
4764
      self._iprot.readMessageEnd()
4765
      raise x
4766
    result = getAllNonFbaListedItems_result()
4767
    result.read(self._iprot)
4768
    self._iprot.readMessageEnd()
4769
    if result.success is not None:
4770
      return result.success
4771
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4772
 
7460 kshitij.so 4773
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4774
    """
4775
    Parameters:
4776
     - itemId
4777
     - holdInventory
4778
     - defaultInventory
4779
    """
4780
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4781
    return self.recv_updateItemInventory()
7291 vikram.rag 4782
 
7460 kshitij.so 4783
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4784
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4785
    args = updateItemInventory_args()
4786
    args.itemId = itemId
4787
    args.holdInventory = holdInventory
4788
    args.defaultInventory = defaultInventory
4789
    args.write(self._oprot)
4790
    self._oprot.writeMessageEnd()
4791
    self._oprot.trans.flush()
4792
 
4793
  def recv_updateItemInventory(self, ):
4794
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4795
    if mtype == TMessageType.EXCEPTION:
4796
      x = TApplicationException()
4797
      x.read(self._iprot)
4798
      self._iprot.readMessageEnd()
4799
      raise x
4800
    result = updateItemInventory_result()
4801
    result.read(self._iprot)
4802
    self._iprot.readMessageEnd()
4803
    if result.success is not None:
4804
      return result.success
4805
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4806
 
7770 kshitij.so 4807
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4808
    """
4809
    Parameters:
4810
     - type
4811
     - sku
4812
     - timestamp
4813
    """
4814
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4815
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4816
 
7770 kshitij.so 4817
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4818
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4819
    args = updateTimestampForAmazonFeeds_args()
4820
    args.type = type
4821
    args.sku = sku
4822
    args.timestamp = timestamp
4823
    args.write(self._oprot)
4824
    self._oprot.writeMessageEnd()
4825
    self._oprot.trans.flush()
4826
 
4827
  def recv_updateTimestampForAmazonFeeds(self, ):
4828
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4829
    if mtype == TMessageType.EXCEPTION:
4830
      x = TApplicationException()
4831
      x.read(self._iprot)
4832
      self._iprot.readMessageEnd()
4833
      raise x
4834
    result = updateTimestampForAmazonFeeds_result()
4835
    result.read(self._iprot)
4836
    self._iprot.readMessageEnd()
4837
    if result.success is not None:
4838
      return result.success
4839
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4840
 
7897 amar.kumar 4841
  def getAllParentCategories(self, ):
4842
    self.send_getAllParentCategories()
4843
    return self.recv_getAllParentCategories()
7770 kshitij.so 4844
 
7897 amar.kumar 4845
  def send_getAllParentCategories(self, ):
4846
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4847
    args = getAllParentCategories_args()
4848
    args.write(self._oprot)
4849
    self._oprot.writeMessageEnd()
4850
    self._oprot.trans.flush()
4851
 
4852
  def recv_getAllParentCategories(self, ):
4853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4854
    if mtype == TMessageType.EXCEPTION:
4855
      x = TApplicationException()
4856
      x.read(self._iprot)
4857
      self._iprot.readMessageEnd()
4858
      raise x
4859
    result = getAllParentCategories_result()
4860
    result.read(self._iprot)
4861
    self._iprot.readMessageEnd()
4862
    if result.success is not None:
4863
      return result.success
4864
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4865
 
7977 kshitij.so 4866
  def addPageViewEvent(self, pageViewEvents):
4867
    """
4868
    Parameters:
4869
     - pageViewEvents
4870
    """
4871
    self.send_addPageViewEvent(pageViewEvents)
4872
    self.recv_addPageViewEvent()
7897 amar.kumar 4873
 
7977 kshitij.so 4874
  def send_addPageViewEvent(self, pageViewEvents):
4875
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4876
    args = addPageViewEvent_args()
4877
    args.pageViewEvents = pageViewEvents
4878
    args.write(self._oprot)
4879
    self._oprot.writeMessageEnd()
4880
    self._oprot.trans.flush()
4881
 
4882
  def recv_addPageViewEvent(self, ):
4883
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4884
    if mtype == TMessageType.EXCEPTION:
4885
      x = TApplicationException()
4886
      x.read(self._iprot)
4887
      self._iprot.readMessageEnd()
4888
      raise x
4889
    result = addPageViewEvent_result()
4890
    result.read(self._iprot)
4891
    self._iprot.readMessageEnd()
4892
    return
4893
 
4894
  def addCartEvent(self, cartEvents):
4895
    """
4896
    Parameters:
4897
     - cartEvents
4898
    """
4899
    self.send_addCartEvent(cartEvents)
4900
    self.recv_addCartEvent()
4901
 
4902
  def send_addCartEvent(self, cartEvents):
4903
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4904
    args = addCartEvent_args()
4905
    args.cartEvents = cartEvents
4906
    args.write(self._oprot)
4907
    self._oprot.writeMessageEnd()
4908
    self._oprot.trans.flush()
4909
 
4910
  def recv_addCartEvent(self, ):
4911
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4912
    if mtype == TMessageType.EXCEPTION:
4913
      x = TApplicationException()
4914
      x.read(self._iprot)
4915
      self._iprot.readMessageEnd()
4916
      raise x
4917
    result = addCartEvent_result()
4918
    result.read(self._iprot)
4919
    self._iprot.readMessageEnd()
4920
    return
4921
 
8182 amar.kumar 4922
  def addEbayItem(self, ebayItem):
4923
    """
4924
    Parameters:
4925
     - ebayItem
4926
    """
4927
    self.send_addEbayItem(ebayItem)
4928
    self.recv_addEbayItem()
4929
 
4930
  def send_addEbayItem(self, ebayItem):
4931
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4932
    args = addEbayItem_args()
4933
    args.ebayItem = ebayItem
4934
    args.write(self._oprot)
4935
    self._oprot.writeMessageEnd()
4936
    self._oprot.trans.flush()
4937
 
4938
  def recv_addEbayItem(self, ):
4939
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4940
    if mtype == TMessageType.EXCEPTION:
4941
      x = TApplicationException()
4942
      x.read(self._iprot)
4943
      self._iprot.readMessageEnd()
4944
      raise x
4945
    result = addEbayItem_result()
4946
    result.read(self._iprot)
4947
    self._iprot.readMessageEnd()
4948
    return
4949
 
4950
  def getEbayItem(self, listingId):
4951
    """
4952
    Parameters:
4953
     - listingId
4954
    """
4955
    self.send_getEbayItem(listingId)
4956
    return self.recv_getEbayItem()
4957
 
4958
  def send_getEbayItem(self, listingId):
4959
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4960
    args = getEbayItem_args()
4961
    args.listingId = listingId
4962
    args.write(self._oprot)
4963
    self._oprot.writeMessageEnd()
4964
    self._oprot.trans.flush()
4965
 
4966
  def recv_getEbayItem(self, ):
4967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4968
    if mtype == TMessageType.EXCEPTION:
4969
      x = TApplicationException()
4970
      x.read(self._iprot)
4971
      self._iprot.readMessageEnd()
4972
      raise x
4973
    result = getEbayItem_result()
4974
    result.read(self._iprot)
4975
    self._iprot.readMessageEnd()
4976
    if result.success is not None:
4977
      return result.success
4978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4979
 
4980
  def updateEbayItem(self, ebayItem):
4981
    """
4982
    Parameters:
4983
     - ebayItem
4984
    """
4985
    self.send_updateEbayItem(ebayItem)
4986
    self.recv_updateEbayItem()
4987
 
4988
  def send_updateEbayItem(self, ebayItem):
4989
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4990
    args = updateEbayItem_args()
4991
    args.ebayItem = ebayItem
4992
    args.write(self._oprot)
4993
    self._oprot.writeMessageEnd()
4994
    self._oprot.trans.flush()
4995
 
4996
  def recv_updateEbayItem(self, ):
4997
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4998
    if mtype == TMessageType.EXCEPTION:
4999
      x = TApplicationException()
5000
      x.read(self._iprot)
5001
      self._iprot.readMessageEnd()
5002
      raise x
5003
    result = updateEbayItem_result()
5004
    result.read(self._iprot)
5005
    self._iprot.readMessageEnd()
5006
    return
5007
 
8139 kshitij.so 5008
  def getAmazonListedItems(self, offset, limit):
5009
    """
5010
    Parameters:
5011
     - offset
5012
     - limit
5013
    """
5014
    self.send_getAmazonListedItems(offset, limit)
5015
    return self.recv_getAmazonListedItems()
7977 kshitij.so 5016
 
8139 kshitij.so 5017
  def send_getAmazonListedItems(self, offset, limit):
5018
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
5019
    args = getAmazonListedItems_args()
5020
    args.offset = offset
5021
    args.limit = limit
5022
    args.write(self._oprot)
5023
    self._oprot.writeMessageEnd()
5024
    self._oprot.trans.flush()
5025
 
5026
  def recv_getAmazonListedItems(self, ):
5027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5028
    if mtype == TMessageType.EXCEPTION:
5029
      x = TApplicationException()
5030
      x.read(self._iprot)
5031
      self._iprot.readMessageEnd()
5032
      raise x
5033
    result = getAmazonListedItems_result()
5034
    result.read(self._iprot)
5035
    self._iprot.readMessageEnd()
5036
    if result.success is not None:
5037
      return result.success
5038
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
5039
 
8168 kshitij.so 5040
  def updateAmazonAttributesInBulk(self, amazonlisted):
5041
    """
5042
    Parameters:
5043
     - amazonlisted
5044
    """
5045
    self.send_updateAmazonAttributesInBulk(amazonlisted)
5046
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 5047
 
8168 kshitij.so 5048
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
5049
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
5050
    args = updateAmazonAttributesInBulk_args()
5051
    args.amazonlisted = amazonlisted
5052
    args.write(self._oprot)
5053
    self._oprot.writeMessageEnd()
5054
    self._oprot.trans.flush()
5055
 
5056
  def recv_updateAmazonAttributesInBulk(self, ):
5057
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5058
    if mtype == TMessageType.EXCEPTION:
5059
      x = TApplicationException()
5060
      x.read(self._iprot)
5061
      self._iprot.readMessageEnd()
5062
      raise x
5063
    result = updateAmazonAttributesInBulk_result()
5064
    result.read(self._iprot)
5065
    self._iprot.readMessageEnd()
5066
    if result.success is not None:
5067
      return result.success
5068
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
5069
 
8379 vikram.rag 5070
  def getAllItemstoListOnFba(self, ):
5071
    self.send_getAllItemstoListOnFba()
5072
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 5073
 
8379 vikram.rag 5074
  def send_getAllItemstoListOnFba(self, ):
5075
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
5076
    args = getAllItemstoListOnFba_args()
5077
    args.write(self._oprot)
5078
    self._oprot.writeMessageEnd()
5079
    self._oprot.trans.flush()
5080
 
5081
  def recv_getAllItemstoListOnFba(self, ):
5082
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5083
    if mtype == TMessageType.EXCEPTION:
5084
      x = TApplicationException()
5085
      x.read(self._iprot)
5086
      self._iprot.readMessageEnd()
5087
      raise x
5088
    result = getAllItemstoListOnFba_result()
5089
    result.read(self._iprot)
5090
    self._iprot.readMessageEnd()
5091
    if result.success is not None:
5092
      return result.success
5093
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
5094
 
5095
  def getAllItemstoListOnNonFba(self, ):
5096
    self.send_getAllItemstoListOnNonFba()
5097
    return self.recv_getAllItemstoListOnNonFba()
5098
 
5099
  def send_getAllItemstoListOnNonFba(self, ):
5100
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
5101
    args = getAllItemstoListOnNonFba_args()
5102
    args.write(self._oprot)
5103
    self._oprot.writeMessageEnd()
5104
    self._oprot.trans.flush()
5105
 
5106
  def recv_getAllItemstoListOnNonFba(self, ):
5107
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5108
    if mtype == TMessageType.EXCEPTION:
5109
      x = TApplicationException()
5110
      x.read(self._iprot)
5111
      self._iprot.readMessageEnd()
5112
      raise x
5113
    result = getAllItemstoListOnNonFba_result()
5114
    result.read(self._iprot)
5115
    self._iprot.readMessageEnd()
5116
    if result.success is not None:
5117
      return result.success
5118
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
5119
 
8619 kshitij.so 5120
  def updateAsin(self, item):
5121
    """
5122
    Parameters:
5123
     - item
5124
    """
5125
    self.send_updateAsin(item)
5126
    self.recv_updateAsin()
8616 vikram.rag 5127
 
8619 kshitij.so 5128
  def send_updateAsin(self, item):
5129
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
5130
    args = updateAsin_args()
5131
    args.item = item
5132
    args.write(self._oprot)
5133
    self._oprot.writeMessageEnd()
5134
    self._oprot.trans.flush()
5135
 
5136
  def recv_updateAsin(self, ):
5137
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5138
    if mtype == TMessageType.EXCEPTION:
5139
      x = TApplicationException()
5140
      x.read(self._iprot)
5141
      self._iprot.readMessageEnd()
5142
      raise x
5143
    result = updateAsin_result()
5144
    result.read(self._iprot)
5145
    self._iprot.readMessageEnd()
5146
    return
5147
 
8739 vikram.rag 5148
  def addOrUpdateSnapdealItem(self, snapdealitem):
5149
    """
5150
    Parameters:
5151
     - snapdealitem
5152
    """
5153
    self.send_addOrUpdateSnapdealItem(snapdealitem)
5154
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 5155
 
8739 vikram.rag 5156
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
5157
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
5158
    args = addOrUpdateSnapdealItem_args()
5159
    args.snapdealitem = snapdealitem
5160
    args.write(self._oprot)
5161
    self._oprot.writeMessageEnd()
5162
    self._oprot.trans.flush()
5163
 
5164
  def recv_addOrUpdateSnapdealItem(self, ):
5165
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5166
    if mtype == TMessageType.EXCEPTION:
5167
      x = TApplicationException()
5168
      x.read(self._iprot)
5169
      self._iprot.readMessageEnd()
5170
      raise x
5171
    result = addOrUpdateSnapdealItem_result()
5172
    result.read(self._iprot)
5173
    self._iprot.readMessageEnd()
5174
    if result.success is not None:
5175
      return result.success
5176
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
5177
 
5178
  def getSnapdealItem(self, item_id):
5179
    """
5180
    Parameters:
5181
     - item_id
5182
    """
5183
    self.send_getSnapdealItem(item_id)
5184
    return self.recv_getSnapdealItem()
5185
 
5186
  def send_getSnapdealItem(self, item_id):
5187
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
5188
    args = getSnapdealItem_args()
5189
    args.item_id = item_id
5190
    args.write(self._oprot)
5191
    self._oprot.writeMessageEnd()
5192
    self._oprot.trans.flush()
5193
 
5194
  def recv_getSnapdealItem(self, ):
5195
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5196
    if mtype == TMessageType.EXCEPTION:
5197
      x = TApplicationException()
5198
      x.read(self._iprot)
5199
      self._iprot.readMessageEnd()
5200
      raise x
5201
    result = getSnapdealItem_result()
5202
    result.read(self._iprot)
5203
    self._iprot.readMessageEnd()
5204
    if result.success is not None:
5205
      return result.success
5206
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
5207
 
9242 kshitij.so 5208
  def getSnapdealItemDetails(self, item_id):
5209
    """
5210
    Parameters:
5211
     - item_id
5212
    """
5213
    self.send_getSnapdealItemDetails(item_id)
5214
    return self.recv_getSnapdealItemDetails()
5215
 
5216
  def send_getSnapdealItemDetails(self, item_id):
5217
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
5218
    args = getSnapdealItemDetails_args()
5219
    args.item_id = item_id
5220
    args.write(self._oprot)
5221
    self._oprot.writeMessageEnd()
5222
    self._oprot.trans.flush()
5223
 
5224
  def recv_getSnapdealItemDetails(self, ):
5225
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5226
    if mtype == TMessageType.EXCEPTION:
5227
      x = TApplicationException()
5228
      x.read(self._iprot)
5229
      self._iprot.readMessageEnd()
5230
      raise x
5231
    result = getSnapdealItemDetails_result()
5232
    result.read(self._iprot)
5233
    self._iprot.readMessageEnd()
5234
    if result.success is not None:
5235
      return result.success
5236
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
5237
 
8739 vikram.rag 5238
  def getAllSnapdealItems(self, ):
5239
    self.send_getAllSnapdealItems()
5240
    return self.recv_getAllSnapdealItems()
5241
 
5242
  def send_getAllSnapdealItems(self, ):
5243
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
5244
    args = getAllSnapdealItems_args()
5245
    args.write(self._oprot)
5246
    self._oprot.writeMessageEnd()
5247
    self._oprot.trans.flush()
5248
 
5249
  def recv_getAllSnapdealItems(self, ):
5250
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5251
    if mtype == TMessageType.EXCEPTION:
5252
      x = TApplicationException()
5253
      x.read(self._iprot)
5254
      self._iprot.readMessageEnd()
5255
      raise x
5256
    result = getAllSnapdealItems_result()
5257
    result.read(self._iprot)
5258
    self._iprot.readMessageEnd()
5259
    if result.success is not None:
5260
      return result.success
5261
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
5262
 
9242 kshitij.so 5263
  def getSnapdealItems(self, offset, limit):
5264
    """
5265
    Parameters:
5266
     - offset
5267
     - limit
5268
    """
5269
    self.send_getSnapdealItems(offset, limit)
5270
    return self.recv_getSnapdealItems()
8739 vikram.rag 5271
 
9242 kshitij.so 5272
  def send_getSnapdealItems(self, offset, limit):
5273
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5274
    args = getSnapdealItems_args()
5275
    args.offset = offset
5276
    args.limit = limit
5277
    args.write(self._oprot)
5278
    self._oprot.writeMessageEnd()
5279
    self._oprot.trans.flush()
5280
 
5281
  def recv_getSnapdealItems(self, ):
5282
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5283
    if mtype == TMessageType.EXCEPTION:
5284
      x = TApplicationException()
5285
      x.read(self._iprot)
5286
      self._iprot.readMessageEnd()
5287
      raise x
5288
    result = getSnapdealItems_result()
5289
    result.read(self._iprot)
5290
    self._iprot.readMessageEnd()
5291
    if result.success is not None:
5292
      return result.success
5293
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5294
 
5295
  def searchSnapdealItems(self, searchTerm, offset, limit):
5296
    """
5297
    Parameters:
5298
     - searchTerm
5299
     - offset
5300
     - limit
5301
    """
5302
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5303
    return self.recv_searchSnapdealItems()
5304
 
5305
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5306
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5307
    args = searchSnapdealItems_args()
5308
    args.searchTerm = searchTerm
5309
    args.offset = offset
5310
    args.limit = limit
5311
    args.write(self._oprot)
5312
    self._oprot.writeMessageEnd()
5313
    self._oprot.trans.flush()
5314
 
5315
  def recv_searchSnapdealItems(self, ):
5316
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5317
    if mtype == TMessageType.EXCEPTION:
5318
      x = TApplicationException()
5319
      x.read(self._iprot)
5320
      self._iprot.readMessageEnd()
5321
      raise x
5322
    result = searchSnapdealItems_result()
5323
    result.read(self._iprot)
5324
    self._iprot.readMessageEnd()
5325
    if result.success is not None:
5326
      return result.success
5327
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5328
 
5329
  def getCountForSnapdealItems(self, ):
5330
    self.send_getCountForSnapdealItems()
5331
    return self.recv_getCountForSnapdealItems()
5332
 
5333
  def send_getCountForSnapdealItems(self, ):
5334
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5335
    args = getCountForSnapdealItems_args()
5336
    args.write(self._oprot)
5337
    self._oprot.writeMessageEnd()
5338
    self._oprot.trans.flush()
5339
 
5340
  def recv_getCountForSnapdealItems(self, ):
5341
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5342
    if mtype == TMessageType.EXCEPTION:
5343
      x = TApplicationException()
5344
      x.read(self._iprot)
5345
      self._iprot.readMessageEnd()
5346
      raise x
5347
    result = getCountForSnapdealItems_result()
5348
    result.read(self._iprot)
5349
    self._iprot.readMessageEnd()
5350
    if result.success is not None:
5351
      return result.success
5352
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5353
 
5354
  def getSnapdealSearchResultCount(self, searchTerm):
5355
    """
5356
    Parameters:
5357
     - searchTerm
5358
    """
5359
    self.send_getSnapdealSearchResultCount(searchTerm)
5360
    return self.recv_getSnapdealSearchResultCount()
5361
 
5362
  def send_getSnapdealSearchResultCount(self, searchTerm):
5363
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5364
    args = getSnapdealSearchResultCount_args()
5365
    args.searchTerm = searchTerm
5366
    args.write(self._oprot)
5367
    self._oprot.writeMessageEnd()
5368
    self._oprot.trans.flush()
5369
 
5370
  def recv_getSnapdealSearchResultCount(self, ):
5371
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5372
    if mtype == TMessageType.EXCEPTION:
5373
      x = TApplicationException()
5374
      x.read(self._iprot)
5375
      self._iprot.readMessageEnd()
5376
      raise x
5377
    result = getSnapdealSearchResultCount_result()
5378
    result.read(self._iprot)
5379
    self._iprot.readMessageEnd()
5380
    if result.success is not None:
5381
      return result.success
5382
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5383
 
9299 kshitij.so 5384
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5385
    """
5386
    Parameters:
5387
     - itemId
5388
     - insurerType
5389
    """
5390
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5391
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5392
 
9299 kshitij.so 5393
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5394
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5395
    args = getPrefferedInsurerForItem_args()
5396
    args.itemId = itemId
5397
    args.insurerType = insurerType
5398
    args.write(self._oprot)
5399
    self._oprot.writeMessageEnd()
5400
    self._oprot.trans.flush()
5401
 
5402
  def recv_getPrefferedInsurerForItem(self, ):
5403
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5404
    if mtype == TMessageType.EXCEPTION:
5405
      x = TApplicationException()
5406
      x.read(self._iprot)
5407
      self._iprot.readMessageEnd()
5408
      raise x
5409
    result = getPrefferedInsurerForItem_result()
5410
    result.read(self._iprot)
5411
    self._iprot.readMessageEnd()
5412
    if result.success is not None:
5413
      return result.success
5414
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5415
 
9456 vikram.rag 5416
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5417
    """
5418
    Parameters:
5419
     - skuAtSnapdeal
5420
    """
5421
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5422
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5423
 
9456 vikram.rag 5424
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5425
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5426
    args = getSnapdealItembySkuAtSnapdeal_args()
5427
    args.skuAtSnapdeal = skuAtSnapdeal
5428
    args.write(self._oprot)
5429
    self._oprot.writeMessageEnd()
5430
    self._oprot.trans.flush()
5431
 
5432
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5434
    if mtype == TMessageType.EXCEPTION:
5435
      x = TApplicationException()
5436
      x.read(self._iprot)
5437
      self._iprot.readMessageEnd()
5438
      raise x
5439
    result = getSnapdealItembySkuAtSnapdeal_result()
5440
    result.read(self._iprot)
5441
    self._iprot.readMessageEnd()
5442
    if result.success is not None:
5443
      return result.success
5444
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5445
 
9621 manish.sha 5446
  def getProductFeedSubmit(self, catalogItemId):
5447
    """
5448
    Parameters:
5449
     - catalogItemId
5450
    """
5451
    self.send_getProductFeedSubmit(catalogItemId)
5452
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5453
 
9621 manish.sha 5454
  def send_getProductFeedSubmit(self, catalogItemId):
5455
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5456
    args = getProductFeedSubmit_args()
5457
    args.catalogItemId = catalogItemId
5458
    args.write(self._oprot)
5459
    self._oprot.writeMessageEnd()
5460
    self._oprot.trans.flush()
5461
 
5462
  def recv_getProductFeedSubmit(self, ):
5463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5464
    if mtype == TMessageType.EXCEPTION:
5465
      x = TApplicationException()
5466
      x.read(self._iprot)
5467
      self._iprot.readMessageEnd()
5468
      raise x
5469
    result = getProductFeedSubmit_result()
5470
    result.read(self._iprot)
5471
    self._iprot.readMessageEnd()
5472
    if result.success is not None:
5473
      return result.success
5474
    if result.cex is not None:
5475
      raise result.cex
5476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5477
 
5478
  def addProductFeedSubmit(self, productFeedSubmit):
5479
    """
5480
    Parameters:
5481
     - productFeedSubmit
5482
    """
5483
    self.send_addProductFeedSubmit(productFeedSubmit)
5484
    return self.recv_addProductFeedSubmit()
5485
 
5486
  def send_addProductFeedSubmit(self, productFeedSubmit):
5487
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5488
    args = addProductFeedSubmit_args()
5489
    args.productFeedSubmit = productFeedSubmit
5490
    args.write(self._oprot)
5491
    self._oprot.writeMessageEnd()
5492
    self._oprot.trans.flush()
5493
 
5494
  def recv_addProductFeedSubmit(self, ):
5495
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5496
    if mtype == TMessageType.EXCEPTION:
5497
      x = TApplicationException()
5498
      x.read(self._iprot)
5499
      self._iprot.readMessageEnd()
5500
      raise x
5501
    result = addProductFeedSubmit_result()
5502
    result.read(self._iprot)
5503
    self._iprot.readMessageEnd()
5504
    if result.success is not None:
5505
      return result.success
5506
    if result.cex is not None:
5507
      raise result.cex
5508
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5509
 
5510
  def updateProductFeedSubmit(self, productFeedSubmit):
5511
    """
5512
    Parameters:
5513
     - productFeedSubmit
5514
    """
5515
    self.send_updateProductFeedSubmit(productFeedSubmit)
5516
    return self.recv_updateProductFeedSubmit()
5517
 
5518
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5519
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5520
    args = updateProductFeedSubmit_args()
5521
    args.productFeedSubmit = productFeedSubmit
5522
    args.write(self._oprot)
5523
    self._oprot.writeMessageEnd()
5524
    self._oprot.trans.flush()
5525
 
5526
  def recv_updateProductFeedSubmit(self, ):
5527
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5528
    if mtype == TMessageType.EXCEPTION:
5529
      x = TApplicationException()
5530
      x.read(self._iprot)
5531
      self._iprot.readMessageEnd()
5532
      raise x
5533
    result = updateProductFeedSubmit_result()
5534
    result.read(self._iprot)
5535
    self._iprot.readMessageEnd()
5536
    if result.success is not None:
5537
      return result.success
5538
    if result.cex is not None:
5539
      raise result.cex
5540
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5541
 
5542
  def deleteProductFeedSubmit(self, catalogItemId):
5543
    """
5544
    Parameters:
5545
     - catalogItemId
5546
    """
5547
    self.send_deleteProductFeedSubmit(catalogItemId)
5548
    return self.recv_deleteProductFeedSubmit()
5549
 
5550
  def send_deleteProductFeedSubmit(self, catalogItemId):
5551
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5552
    args = deleteProductFeedSubmit_args()
5553
    args.catalogItemId = catalogItemId
5554
    args.write(self._oprot)
5555
    self._oprot.writeMessageEnd()
5556
    self._oprot.trans.flush()
5557
 
5558
  def recv_deleteProductFeedSubmit(self, ):
5559
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5560
    if mtype == TMessageType.EXCEPTION:
5561
      x = TApplicationException()
5562
      x.read(self._iprot)
5563
      self._iprot.readMessageEnd()
5564
      raise x
5565
    result = deleteProductFeedSubmit_result()
5566
    result.read(self._iprot)
5567
    self._iprot.readMessageEnd()
5568
    if result.success is not None:
5569
      return result.success
5570
    if result.cex is not None:
5571
      raise result.cex
5572
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5573
 
5574
  def getAllProductFeedSubmit(self, ):
5575
    self.send_getAllProductFeedSubmit()
5576
    return self.recv_getAllProductFeedSubmit()
5577
 
5578
  def send_getAllProductFeedSubmit(self, ):
5579
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5580
    args = getAllProductFeedSubmit_args()
5581
    args.write(self._oprot)
5582
    self._oprot.writeMessageEnd()
5583
    self._oprot.trans.flush()
5584
 
5585
  def recv_getAllProductFeedSubmit(self, ):
5586
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5587
    if mtype == TMessageType.EXCEPTION:
5588
      x = TApplicationException()
5589
      x.read(self._iprot)
5590
      self._iprot.readMessageEnd()
5591
      raise x
5592
    result = getAllProductFeedSubmit_result()
5593
    result.read(self._iprot)
5594
    self._iprot.readMessageEnd()
5595
    if result.success is not None:
5596
      return result.success
5597
    if result.cex is not None:
5598
      raise result.cex
5599
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5600
 
9724 kshitij.so 5601
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5602
    """
5603
    Parameters:
5604
     - itemId
5605
     - sourceId
5606
    """
5607
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5608
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5609
 
9724 kshitij.so 5610
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5611
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5612
    args = getMarketplacedetailsForItem_args()
5613
    args.itemId = itemId
5614
    args.sourceId = sourceId
5615
    args.write(self._oprot)
5616
    self._oprot.writeMessageEnd()
5617
    self._oprot.trans.flush()
5618
 
5619
  def recv_getMarketplacedetailsForItem(self, ):
5620
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5621
    if mtype == TMessageType.EXCEPTION:
5622
      x = TApplicationException()
5623
      x.read(self._iprot)
5624
      self._iprot.readMessageEnd()
5625
      raise x
5626
    result = getMarketplacedetailsForItem_result()
5627
    result.read(self._iprot)
5628
    self._iprot.readMessageEnd()
5629
    if result.success is not None:
5630
      return result.success
5631
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5632
 
5633
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5634
    """
5635
    Parameters:
5636
     - marketPlaceItem
5637
    """
5638
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5639
    return self.recv_updateMarketplaceAttributesForItem()
5640
 
5641
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5642
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5643
    args = updateMarketplaceAttributesForItem_args()
5644
    args.marketPlaceItem = marketPlaceItem
5645
    args.write(self._oprot)
5646
    self._oprot.writeMessageEnd()
5647
    self._oprot.trans.flush()
5648
 
5649
  def recv_updateMarketplaceAttributesForItem(self, ):
5650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5651
    if mtype == TMessageType.EXCEPTION:
5652
      x = TApplicationException()
5653
      x.read(self._iprot)
5654
      self._iprot.readMessageEnd()
5655
      raise x
5656
    result = updateMarketplaceAttributesForItem_result()
5657
    result.read(self._iprot)
5658
    self._iprot.readMessageEnd()
5659
    if result.success is not None:
5660
      return result.success
5661
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5662
 
9779 kshitij.so 5663
  def getCostingForMarketplace(self, source, item_id):
5664
    """
5665
    Parameters:
5666
     - source
5667
     - item_id
5668
    """
5669
    self.send_getCostingForMarketplace(source, item_id)
5670
    return self.recv_getCostingForMarketplace()
5671
 
5672
  def send_getCostingForMarketplace(self, source, item_id):
5673
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5674
    args = getCostingForMarketplace_args()
5675
    args.source = source
5676
    args.item_id = item_id
5677
    args.write(self._oprot)
5678
    self._oprot.writeMessageEnd()
5679
    self._oprot.trans.flush()
5680
 
5681
  def recv_getCostingForMarketplace(self, ):
5682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5683
    if mtype == TMessageType.EXCEPTION:
5684
      x = TApplicationException()
5685
      x.read(self._iprot)
5686
      self._iprot.readMessageEnd()
5687
      raise x
5688
    result = getCostingForMarketplace_result()
5689
    result.read(self._iprot)
5690
    self._iprot.readMessageEnd()
5691
    if result.success is not None:
5692
      return result.success
5693
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5694
 
9776 vikram.rag 5695
  def getMarketPlaceItemsForPriceUpdate(self, source):
5696
    """
5697
    Parameters:
5698
     - source
5699
    """
5700
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5701
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5702
 
9776 vikram.rag 5703
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5704
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5705
    args = getMarketPlaceItemsForPriceUpdate_args()
5706
    args.source = source
5707
    args.write(self._oprot)
5708
    self._oprot.writeMessageEnd()
5709
    self._oprot.trans.flush()
5710
 
5711
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5712
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5713
    if mtype == TMessageType.EXCEPTION:
5714
      x = TApplicationException()
5715
      x.read(self._iprot)
5716
      self._iprot.readMessageEnd()
5717
      raise x
5718
    result = getMarketPlaceItemsForPriceUpdate_result()
5719
    result.read(self._iprot)
5720
    self._iprot.readMessageEnd()
5721
    if result.success is not None:
5722
      return result.success
5723
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5724
 
9816 kshitij.so 5725
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5726
    """
5727
    Parameters:
5728
     - skulist
5729
     - timestamp
9816 kshitij.so 5730
     - source
9776 vikram.rag 5731
    """
9816 kshitij.so 5732
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5733
    self.recv_updateMarketPlacePriceUpdateStatus()
5734
 
9816 kshitij.so 5735
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5736
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5737
    args = updateMarketPlacePriceUpdateStatus_args()
5738
    args.skulist = skulist
5739
    args.timestamp = timestamp
9816 kshitij.so 5740
    args.source = source
9776 vikram.rag 5741
    args.write(self._oprot)
5742
    self._oprot.writeMessageEnd()
5743
    self._oprot.trans.flush()
5744
 
5745
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5746
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5747
    if mtype == TMessageType.EXCEPTION:
5748
      x = TApplicationException()
5749
      x.read(self._iprot)
5750
      self._iprot.readMessageEnd()
5751
      raise x
5752
    result = updateMarketPlacePriceUpdateStatus_result()
5753
    result.read(self._iprot)
5754
    self._iprot.readMessageEnd()
5755
    return
5756
 
9861 rajveer 5757
  def updateItemHoldInventory(self, itemHoldMap):
5758
    """
5759
    Parameters:
5760
     - itemHoldMap
5761
    """
5762
    self.send_updateItemHoldInventory(itemHoldMap)
5763
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5764
 
9861 rajveer 5765
  def send_updateItemHoldInventory(self, itemHoldMap):
5766
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5767
    args = updateItemHoldInventory_args()
5768
    args.itemHoldMap = itemHoldMap
5769
    args.write(self._oprot)
5770
    self._oprot.writeMessageEnd()
5771
    self._oprot.trans.flush()
5772
 
5773
  def recv_updateItemHoldInventory(self, ):
5774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5775
    if mtype == TMessageType.EXCEPTION:
5776
      x = TApplicationException()
5777
      x.read(self._iprot)
5778
      self._iprot.readMessageEnd()
5779
      raise x
5780
    result = updateItemHoldInventory_result()
5781
    result.read(self._iprot)
5782
    self._iprot.readMessageEnd()
5783
    return
5784
 
9895 vikram.rag 5785
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5786
    """
5787
    Parameters:
5788
     - item_id
5789
     - vendor_id
5790
     - nlc
5791
    """
5792
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5793
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5794
 
9895 vikram.rag 5795
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5796
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5797
    args = updateNlcAtMarketplaces_args()
5798
    args.item_id = item_id
5799
    args.vendor_id = vendor_id
5800
    args.nlc = nlc
5801
    args.write(self._oprot)
5802
    self._oprot.writeMessageEnd()
5803
    self._oprot.trans.flush()
5804
 
5805
  def recv_updateNlcAtMarketplaces(self, ):
5806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5807
    if mtype == TMessageType.EXCEPTION:
5808
      x = TApplicationException()
5809
      x.read(self._iprot)
5810
      self._iprot.readMessageEnd()
5811
      raise x
5812
    result = updateNlcAtMarketplaces_result()
5813
    result.read(self._iprot)
5814
    self._iprot.readMessageEnd()
5815
    return
5816
 
9945 vikram.rag 5817
  def getAllFlipkartItems(self, ):
5818
    self.send_getAllFlipkartItems()
5819
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5820
 
9945 vikram.rag 5821
  def send_getAllFlipkartItems(self, ):
5822
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5823
    args = getAllFlipkartItems_args()
5824
    args.write(self._oprot)
5825
    self._oprot.writeMessageEnd()
5826
    self._oprot.trans.flush()
5827
 
5828
  def recv_getAllFlipkartItems(self, ):
5829
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5830
    if mtype == TMessageType.EXCEPTION:
5831
      x = TApplicationException()
5832
      x.read(self._iprot)
5833
      self._iprot.readMessageEnd()
5834
      raise x
5835
    result = getAllFlipkartItems_result()
5836
    result.read(self._iprot)
5837
    self._iprot.readMessageEnd()
5838
    if result.success is not None:
5839
      return result.success
5840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5841
 
10097 kshitij.so 5842
  def addOrUpdateFlipkartItem(self, flipkartitem):
5843
    """
5844
    Parameters:
5845
     - flipkartitem
5846
    """
5847
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5848
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5849
 
10097 kshitij.so 5850
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5851
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5852
    args = addOrUpdateFlipkartItem_args()
5853
    args.flipkartitem = flipkartitem
5854
    args.write(self._oprot)
5855
    self._oprot.writeMessageEnd()
5856
    self._oprot.trans.flush()
5857
 
5858
  def recv_addOrUpdateFlipkartItem(self, ):
5859
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5860
    if mtype == TMessageType.EXCEPTION:
5861
      x = TApplicationException()
5862
      x.read(self._iprot)
5863
      self._iprot.readMessageEnd()
5864
      raise x
5865
    result = addOrUpdateFlipkartItem_result()
5866
    result.read(self._iprot)
5867
    self._iprot.readMessageEnd()
5868
    if result.success is not None:
5869
      return result.success
5870
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5871
 
5872
  def getFlipkartItem(self, item_id):
5873
    """
5874
    Parameters:
5875
     - item_id
5876
    """
5877
    self.send_getFlipkartItem(item_id)
5878
    return self.recv_getFlipkartItem()
5879
 
5880
  def send_getFlipkartItem(self, item_id):
5881
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5882
    args = getFlipkartItem_args()
5883
    args.item_id = item_id
5884
    args.write(self._oprot)
5885
    self._oprot.writeMessageEnd()
5886
    self._oprot.trans.flush()
5887
 
5888
  def recv_getFlipkartItem(self, ):
5889
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5890
    if mtype == TMessageType.EXCEPTION:
5891
      x = TApplicationException()
5892
      x.read(self._iprot)
5893
      self._iprot.readMessageEnd()
5894
      raise x
5895
    result = getFlipkartItem_result()
5896
    result.read(self._iprot)
5897
    self._iprot.readMessageEnd()
5898
    if result.success is not None:
5899
      return result.success
5900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5901
 
5902
  def getFlipkartItemDetails(self, item_id):
5903
    """
5904
    Parameters:
5905
     - item_id
5906
    """
5907
    self.send_getFlipkartItemDetails(item_id)
5908
    return self.recv_getFlipkartItemDetails()
5909
 
5910
  def send_getFlipkartItemDetails(self, item_id):
5911
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5912
    args = getFlipkartItemDetails_args()
5913
    args.item_id = item_id
5914
    args.write(self._oprot)
5915
    self._oprot.writeMessageEnd()
5916
    self._oprot.trans.flush()
5917
 
5918
  def recv_getFlipkartItemDetails(self, ):
5919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5920
    if mtype == TMessageType.EXCEPTION:
5921
      x = TApplicationException()
5922
      x.read(self._iprot)
5923
      self._iprot.readMessageEnd()
5924
      raise x
5925
    result = getFlipkartItemDetails_result()
5926
    result.read(self._iprot)
5927
    self._iprot.readMessageEnd()
5928
    if result.success is not None:
5929
      return result.success
5930
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5931
 
5932
  def getFlipkartItems(self, offset, limit):
5933
    """
5934
    Parameters:
5935
     - offset
5936
     - limit
5937
    """
5938
    self.send_getFlipkartItems(offset, limit)
5939
    return self.recv_getFlipkartItems()
5940
 
5941
  def send_getFlipkartItems(self, offset, limit):
5942
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5943
    args = getFlipkartItems_args()
5944
    args.offset = offset
5945
    args.limit = limit
5946
    args.write(self._oprot)
5947
    self._oprot.writeMessageEnd()
5948
    self._oprot.trans.flush()
5949
 
5950
  def recv_getFlipkartItems(self, ):
5951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5952
    if mtype == TMessageType.EXCEPTION:
5953
      x = TApplicationException()
5954
      x.read(self._iprot)
5955
      self._iprot.readMessageEnd()
5956
      raise x
5957
    result = getFlipkartItems_result()
5958
    result.read(self._iprot)
5959
    self._iprot.readMessageEnd()
5960
    if result.success is not None:
5961
      return result.success
5962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5963
 
5964
  def searchFlipkartItems(self, searchTerm, offset, limit):
5965
    """
5966
    Parameters:
5967
     - searchTerm
5968
     - offset
5969
     - limit
5970
    """
5971
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5972
    return self.recv_searchFlipkartItems()
5973
 
5974
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5975
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5976
    args = searchFlipkartItems_args()
5977
    args.searchTerm = searchTerm
5978
    args.offset = offset
5979
    args.limit = limit
5980
    args.write(self._oprot)
5981
    self._oprot.writeMessageEnd()
5982
    self._oprot.trans.flush()
5983
 
5984
  def recv_searchFlipkartItems(self, ):
5985
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5986
    if mtype == TMessageType.EXCEPTION:
5987
      x = TApplicationException()
5988
      x.read(self._iprot)
5989
      self._iprot.readMessageEnd()
5990
      raise x
5991
    result = searchFlipkartItems_result()
5992
    result.read(self._iprot)
5993
    self._iprot.readMessageEnd()
5994
    if result.success is not None:
5995
      return result.success
5996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5997
 
5998
  def getCountForFlipkartItems(self, ):
5999
    self.send_getCountForFlipkartItems()
6000
    return self.recv_getCountForFlipkartItems()
6001
 
6002
  def send_getCountForFlipkartItems(self, ):
6003
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
6004
    args = getCountForFlipkartItems_args()
6005
    args.write(self._oprot)
6006
    self._oprot.writeMessageEnd()
6007
    self._oprot.trans.flush()
6008
 
6009
  def recv_getCountForFlipkartItems(self, ):
6010
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6011
    if mtype == TMessageType.EXCEPTION:
6012
      x = TApplicationException()
6013
      x.read(self._iprot)
6014
      self._iprot.readMessageEnd()
6015
      raise x
6016
    result = getCountForFlipkartItems_result()
6017
    result.read(self._iprot)
6018
    self._iprot.readMessageEnd()
6019
    if result.success is not None:
6020
      return result.success
6021
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
6022
 
6023
  def getFlipkartSearchResultCount(self, searchTerm):
6024
    """
6025
    Parameters:
6026
     - searchTerm
6027
    """
6028
    self.send_getFlipkartSearchResultCount(searchTerm)
6029
    return self.recv_getFlipkartSearchResultCount()
6030
 
6031
  def send_getFlipkartSearchResultCount(self, searchTerm):
6032
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
6033
    args = getFlipkartSearchResultCount_args()
6034
    args.searchTerm = searchTerm
6035
    args.write(self._oprot)
6036
    self._oprot.writeMessageEnd()
6037
    self._oprot.trans.flush()
6038
 
6039
  def recv_getFlipkartSearchResultCount(self, ):
6040
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6041
    if mtype == TMessageType.EXCEPTION:
6042
      x = TApplicationException()
6043
      x.read(self._iprot)
6044
      self._iprot.readMessageEnd()
6045
      raise x
6046
    result = getFlipkartSearchResultCount_result()
6047
    result.read(self._iprot)
6048
    self._iprot.readMessageEnd()
6049
    if result.success is not None:
6050
      return result.success
6051
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
6052
 
6053
  def getAllFkItems(self, ):
6054
    self.send_getAllFkItems()
6055
    return self.recv_getAllFkItems()
6056
 
6057
  def send_getAllFkItems(self, ):
6058
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
6059
    args = getAllFkItems_args()
6060
    args.write(self._oprot)
6061
    self._oprot.writeMessageEnd()
6062
    self._oprot.trans.flush()
6063
 
6064
  def recv_getAllFkItems(self, ):
6065
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6066
    if mtype == TMessageType.EXCEPTION:
6067
      x = TApplicationException()
6068
      x.read(self._iprot)
6069
      self._iprot.readMessageEnd()
6070
      raise x
6071
    result = getAllFkItems_result()
6072
    result.read(self._iprot)
6073
    self._iprot.readMessageEnd()
6074
    if result.success is not None:
6075
      return result.success
6076
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
6077
 
10140 vikram.rag 6078
  def getFlipkartItemBySkyAtFlipkart(self, sku):
6079
    """
6080
    Parameters:
6081
     - sku
6082
    """
6083
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
6084
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 6085
 
10140 vikram.rag 6086
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
6087
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
6088
    args = getFlipkartItemBySkyAtFlipkart_args()
6089
    args.sku = sku
6090
    args.write(self._oprot)
6091
    self._oprot.writeMessageEnd()
6092
    self._oprot.trans.flush()
6093
 
6094
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
6095
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6096
    if mtype == TMessageType.EXCEPTION:
6097
      x = TApplicationException()
6098
      x.read(self._iprot)
6099
      self._iprot.readMessageEnd()
6100
      raise x
6101
    result = getFlipkartItemBySkyAtFlipkart_result()
6102
    result.read(self._iprot)
6103
    self._iprot.readMessageEnd()
6104
    if result.success is not None:
6105
      return result.success
6106
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
6107
 
11015 kshitij.so 6108
  def getMarketplaceHistory(self, source, offset, itemId):
6109
    """
6110
    Parameters:
6111
     - source
6112
     - offset
6113
     - itemId
6114
    """
6115
    self.send_getMarketplaceHistory(source, offset, itemId)
6116
    return self.recv_getMarketplaceHistory()
6117
 
6118
  def send_getMarketplaceHistory(self, source, offset, itemId):
6119
    self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)
6120
    args = getMarketplaceHistory_args()
6121
    args.source = source
6122
    args.offset = offset
6123
    args.itemId = itemId
6124
    args.write(self._oprot)
6125
    self._oprot.writeMessageEnd()
6126
    self._oprot.trans.flush()
6127
 
6128
  def recv_getMarketplaceHistory(self, ):
6129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6130
    if mtype == TMessageType.EXCEPTION:
6131
      x = TApplicationException()
6132
      x.read(self._iprot)
6133
      self._iprot.readMessageEnd()
6134
      raise x
6135
    result = getMarketplaceHistory_result()
6136
    result.read(self._iprot)
6137
    self._iprot.readMessageEnd()
6138
    if result.success is not None:
6139
      return result.success
6140
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
6141
 
10909 vikram.rag 6142
  def getAllFbbListedItems(self, ):
6143
    self.send_getAllFbbListedItems()
6144
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 6145
 
10909 vikram.rag 6146
  def send_getAllFbbListedItems(self, ):
6147
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
6148
    args = getAllFbbListedItems_args()
6149
    args.write(self._oprot)
6150
    self._oprot.writeMessageEnd()
6151
    self._oprot.trans.flush()
6152
 
6153
  def recv_getAllFbbListedItems(self, ):
6154
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6155
    if mtype == TMessageType.EXCEPTION:
6156
      x = TApplicationException()
6157
      x.read(self._iprot)
6158
      self._iprot.readMessageEnd()
6159
      raise x
6160
    result = getAllFbbListedItems_result()
6161
    result.read(self._iprot)
6162
    self._iprot.readMessageEnd()
6163
    if result.success is not None:
6164
      return result.success
6165
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
6166
 
10924 vikram.rag 6167
  def getAllFbbPricingItems(self, ):
6168
    self.send_getAllFbbPricingItems()
6169
    return self.recv_getAllFbbPricingItems()
10909 vikram.rag 6170
 
10924 vikram.rag 6171
  def send_getAllFbbPricingItems(self, ):
6172
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
6173
    args = getAllFbbPricingItems_args()
6174
    args.write(self._oprot)
6175
    self._oprot.writeMessageEnd()
6176
    self._oprot.trans.flush()
6177
 
6178
  def recv_getAllFbbPricingItems(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 = getAllFbbPricingItems_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, "getAllFbbPricingItems failed: unknown result");
6191
 
11015 kshitij.so 6192
  def getCountForMarketplaceHistory(self, source, itemId):
6193
    """
6194
    Parameters:
6195
     - source
6196
     - itemId
6197
    """
6198
    self.send_getCountForMarketplaceHistory(source, itemId)
6199
    return self.recv_getCountForMarketplaceHistory()
10924 vikram.rag 6200
 
11015 kshitij.so 6201
  def send_getCountForMarketplaceHistory(self, source, itemId):
6202
    self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)
6203
    args = getCountForMarketplaceHistory_args()
6204
    args.source = source
6205
    args.itemId = itemId
6206
    args.write(self._oprot)
6207
    self._oprot.writeMessageEnd()
6208
    self._oprot.trans.flush()
6209
 
6210
  def recv_getCountForMarketplaceHistory(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 = getCountForMarketplaceHistory_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, "getCountForMarketplaceHistory failed: unknown result");
6223
 
6224
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6225
    """
6226
    Parameters:
6227
     - source
6228
     - startDate
6229
     - endDate
6230
     - offset
6231
     - limit
6232
     - itemId
6233
    """
6234
    self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)
6235
    return self.recv_getMarketplaceHistoryByDate()
6236
 
6237
  def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6238
    self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)
6239
    args = getMarketplaceHistoryByDate_args()
6240
    args.source = source
6241
    args.startDate = startDate
6242
    args.endDate = endDate
6243
    args.offset = offset
6244
    args.limit = limit
6245
    args.itemId = itemId
6246
    args.write(self._oprot)
6247
    self._oprot.writeMessageEnd()
6248
    self._oprot.trans.flush()
6249
 
6250
  def recv_getMarketplaceHistoryByDate(self, ):
6251
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6252
    if mtype == TMessageType.EXCEPTION:
6253
      x = TApplicationException()
6254
      x.read(self._iprot)
6255
      self._iprot.readMessageEnd()
6256
      raise x
6257
    result = getMarketplaceHistoryByDate_result()
6258
    result.read(self._iprot)
6259
    self._iprot.readMessageEnd()
6260
    if result.success is not None:
6261
      return result.success
6262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6263
 
11531 vikram.rag 6264
  def getPrivateDealDetails(self, item_id):
6265
    """
6266
    Parameters:
6267
     - item_id
6268
    """
6269
    self.send_getPrivateDealDetails(item_id)
6270
    return self.recv_getPrivateDealDetails()
11015 kshitij.so 6271
 
11531 vikram.rag 6272
  def send_getPrivateDealDetails(self, item_id):
6273
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
6274
    args = getPrivateDealDetails_args()
6275
    args.item_id = item_id
6276
    args.write(self._oprot)
6277
    self._oprot.writeMessageEnd()
6278
    self._oprot.trans.flush()
6279
 
6280
  def recv_getPrivateDealDetails(self, ):
6281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6282
    if mtype == TMessageType.EXCEPTION:
6283
      x = TApplicationException()
6284
      x.read(self._iprot)
6285
      self._iprot.readMessageEnd()
6286
      raise x
6287
    result = getPrivateDealDetails_result()
6288
    result.read(self._iprot)
6289
    self._iprot.readMessageEnd()
6290
    if result.success is not None:
6291
      return result.success
6292
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
6293
 
6294
  def getPrivateDealItems(self, offset, limit):
6295
    """
6296
    Parameters:
6297
     - offset
6298
     - limit
6299
    """
6300
    self.send_getPrivateDealItems(offset, limit)
6301
    return self.recv_getPrivateDealItems()
6302
 
6303
  def send_getPrivateDealItems(self, offset, limit):
6304
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
6305
    args = getPrivateDealItems_args()
6306
    args.offset = offset
6307
    args.limit = limit
6308
    args.write(self._oprot)
6309
    self._oprot.writeMessageEnd()
6310
    self._oprot.trans.flush()
6311
 
6312
  def recv_getPrivateDealItems(self, ):
6313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6314
    if mtype == TMessageType.EXCEPTION:
6315
      x = TApplicationException()
6316
      x.read(self._iprot)
6317
      self._iprot.readMessageEnd()
6318
      raise x
6319
    result = getPrivateDealItems_result()
6320
    result.read(self._iprot)
6321
    self._iprot.readMessageEnd()
6322
    if result.success is not None:
6323
      return result.success
6324
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
6325
 
11653 amit.gupta 6326
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
6327
    """
6328
    Parameters:
6329
     - itemIds
6330
     - daysDelta
6331
    """
6332
    self.send_getAllActivePrivateDeals(itemIds, daysDelta)
11592 amit.gupta 6333
    return self.recv_getAllActivePrivateDeals()
6334
 
11653 amit.gupta 6335
  def send_getAllActivePrivateDeals(self, itemIds, daysDelta):
11592 amit.gupta 6336
    self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)
6337
    args = getAllActivePrivateDeals_args()
11653 amit.gupta 6338
    args.itemIds = itemIds
6339
    args.daysDelta = daysDelta
11592 amit.gupta 6340
    args.write(self._oprot)
6341
    self._oprot.writeMessageEnd()
6342
    self._oprot.trans.flush()
6343
 
6344
  def recv_getAllActivePrivateDeals(self, ):
6345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6346
    if mtype == TMessageType.EXCEPTION:
6347
      x = TApplicationException()
6348
      x.read(self._iprot)
6349
      self._iprot.readMessageEnd()
6350
      raise x
6351
    result = getAllActivePrivateDeals_result()
6352
    result.read(self._iprot)
6353
    self._iprot.readMessageEnd()
6354
    if result.success is not None:
6355
      return result.success
6356
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
6357
 
11531 vikram.rag 6358
  def addOrUpdatePrivateDeal(self, privateDeal):
6359
    """
6360
    Parameters:
6361
     - privateDeal
6362
    """
6363
    self.send_addOrUpdatePrivateDeal(privateDeal)
6364
    return self.recv_addOrUpdatePrivateDeal()
6365
 
6366
  def send_addOrUpdatePrivateDeal(self, privateDeal):
6367
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
6368
    args = addOrUpdatePrivateDeal_args()
6369
    args.privateDeal = privateDeal
6370
    args.write(self._oprot)
6371
    self._oprot.writeMessageEnd()
6372
    self._oprot.trans.flush()
6373
 
6374
  def recv_addOrUpdatePrivateDeal(self, ):
6375
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6376
    if mtype == TMessageType.EXCEPTION:
6377
      x = TApplicationException()
6378
      x.read(self._iprot)
6379
      self._iprot.readMessageEnd()
6380
      raise x
6381
    result = addOrUpdatePrivateDeal_result()
6382
    result.read(self._iprot)
6383
    self._iprot.readMessageEnd()
6384
    if result.success is not None:
6385
      return result.success
6386
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
6387
 
11635 vikram.rag 6388
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6389
    """
6390
    Parameters:
6391
     - beginIndex
6392
     - totalItems
6393
    """
6394
    self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)
6395
    return self.recv_getPrivateDealsCatalogIds()
11531 vikram.rag 6396
 
11635 vikram.rag 6397
  def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6398
    self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)
6399
    args = getPrivateDealsCatalogIds_args()
6400
    args.beginIndex = beginIndex
6401
    args.totalItems = totalItems
6402
    args.write(self._oprot)
6403
    self._oprot.writeMessageEnd()
6404
    self._oprot.trans.flush()
6405
 
6406
  def recv_getPrivateDealsCatalogIds(self, ):
6407
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6408
    if mtype == TMessageType.EXCEPTION:
6409
      x = TApplicationException()
6410
      x.read(self._iprot)
6411
      self._iprot.readMessageEnd()
6412
      raise x
6413
    result = getPrivateDealsCatalogIds_result()
6414
    result.read(self._iprot)
6415
    self._iprot.readMessageEnd()
6416
    if result.success is not None:
6417
      return result.success
6418
    if result.cex is not None:
6419
      raise result.cex
6420
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
6421
 
11645 amit.gupta 6422
  def getPrivateDealsCount(self, ):
6423
    self.send_getPrivateDealsCount()
6424
    return self.recv_getPrivateDealsCount()
11635 vikram.rag 6425
 
11645 amit.gupta 6426
  def send_getPrivateDealsCount(self, ):
6427
    self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)
6428
    args = getPrivateDealsCount_args()
6429
    args.write(self._oprot)
6430
    self._oprot.writeMessageEnd()
6431
    self._oprot.trans.flush()
6432
 
6433
  def recv_getPrivateDealsCount(self, ):
6434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6435
    if mtype == TMessageType.EXCEPTION:
6436
      x = TApplicationException()
6437
      x.read(self._iprot)
6438
      self._iprot.readMessageEnd()
6439
      raise x
6440
    result = getPrivateDealsCount_result()
6441
    result.read(self._iprot)
6442
    self._iprot.readMessageEnd()
6443
    if result.success is not None:
6444
      return result.success
6445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
6446
 
11905 kshitij.so 6447
  def getAmazonOutSyncItems(self, item_id):
6448
    """
6449
    Parameters:
6450
     - item_id
6451
    """
6452
    self.send_getAmazonOutSyncItems(item_id)
6453
    return self.recv_getAmazonOutSyncItems()
11645 amit.gupta 6454
 
11905 kshitij.so 6455
  def send_getAmazonOutSyncItems(self, item_id):
6456
    self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)
6457
    args = getAmazonOutSyncItems_args()
6458
    args.item_id = item_id
6459
    args.write(self._oprot)
6460
    self._oprot.writeMessageEnd()
6461
    self._oprot.trans.flush()
6462
 
6463
  def recv_getAmazonOutSyncItems(self, ):
6464
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6465
    if mtype == TMessageType.EXCEPTION:
6466
      x = TApplicationException()
6467
      x.read(self._iprot)
6468
      self._iprot.readMessageEnd()
6469
      raise x
6470
    result = getAmazonOutSyncItems_result()
6471
    result.read(self._iprot)
6472
    self._iprot.readMessageEnd()
6473
    if result.success is not None:
6474
      return result.success
6475
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
6476
 
6477
  def getAllPrivateDealsComparison(self, ):
6478
    self.send_getAllPrivateDealsComparison()
6479
    return self.recv_getAllPrivateDealsComparison()
6480
 
6481
  def send_getAllPrivateDealsComparison(self, ):
6482
    self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)
6483
    args = getAllPrivateDealsComparison_args()
6484
    args.write(self._oprot)
6485
    self._oprot.writeMessageEnd()
6486
    self._oprot.trans.flush()
6487
 
6488
  def recv_getAllPrivateDealsComparison(self, ):
6489
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6490
    if mtype == TMessageType.EXCEPTION:
6491
      x = TApplicationException()
6492
      x.read(self._iprot)
6493
      self._iprot.readMessageEnd()
6494
      raise x
6495
    result = getAllPrivateDealsComparison_result()
6496
    result.read(self._iprot)
6497
    self._iprot.readMessageEnd()
6498
    if result.success is not None:
6499
      return result.success
6500
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
6501
 
12133 kshitij.so 6502
  def getAllSnapdealMarketplaceItem(self, ):
6503
    self.send_getAllSnapdealMarketplaceItem()
6504
    return self.recv_getAllSnapdealMarketplaceItem()
11905 kshitij.so 6505
 
12133 kshitij.so 6506
  def send_getAllSnapdealMarketplaceItem(self, ):
6507
    self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)
6508
    args = getAllSnapdealMarketplaceItem_args()
6509
    args.write(self._oprot)
6510
    self._oprot.writeMessageEnd()
6511
    self._oprot.trans.flush()
6512
 
6513
  def recv_getAllSnapdealMarketplaceItem(self, ):
6514
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6515
    if mtype == TMessageType.EXCEPTION:
6516
      x = TApplicationException()
6517
      x.read(self._iprot)
6518
      self._iprot.readMessageEnd()
6519
      raise x
6520
    result = getAllSnapdealMarketplaceItem_result()
6521
    result.read(self._iprot)
6522
    self._iprot.readMessageEnd()
6523
    if result.success is not None:
6524
      return result.success
6525
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
6526
 
6527
  def getAllFlipkartMarketplaceItem(self, ):
6528
    self.send_getAllFlipkartMarketplaceItem()
6529
    return self.recv_getAllFlipkartMarketplaceItem()
6530
 
6531
  def send_getAllFlipkartMarketplaceItem(self, ):
6532
    self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)
6533
    args = getAllFlipkartMarketplaceItem_args()
6534
    args.write(self._oprot)
6535
    self._oprot.writeMessageEnd()
6536
    self._oprot.trans.flush()
6537
 
6538
  def recv_getAllFlipkartMarketplaceItem(self, ):
6539
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6540
    if mtype == TMessageType.EXCEPTION:
6541
      x = TApplicationException()
6542
      x.read(self._iprot)
6543
      self._iprot.readMessageEnd()
6544
      raise x
6545
    result = getAllFlipkartMarketplaceItem_result()
6546
    result.read(self._iprot)
6547
    self._iprot.readMessageEnd()
6548
    if result.success is not None:
6549
      return result.success
6550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
6551
 
12243 kshitij.so 6552
  def addCompetitorScraping(self, competitorPricingMap):
6553
    """
6554
    Parameters:
6555
     - competitorPricingMap
6556
    """
6557
    self.send_addCompetitorScraping(competitorPricingMap)
6558
    self.recv_addCompetitorScraping()
12133 kshitij.so 6559
 
12243 kshitij.so 6560
  def send_addCompetitorScraping(self, competitorPricingMap):
6561
    self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)
6562
    args = addCompetitorScraping_args()
6563
    args.competitorPricingMap = competitorPricingMap
6564
    args.write(self._oprot)
6565
    self._oprot.writeMessageEnd()
6566
    self._oprot.trans.flush()
6567
 
6568
  def recv_addCompetitorScraping(self, ):
6569
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6570
    if mtype == TMessageType.EXCEPTION:
6571
      x = TApplicationException()
6572
      x.read(self._iprot)
6573
      self._iprot.readMessageEnd()
6574
      raise x
6575
    result = addCompetitorScraping_result()
6576
    result.read(self._iprot)
6577
    self._iprot.readMessageEnd()
6578
    return
6579
 
6580
  def getPreviousCompetitorScraping(self, delta):
6581
    """
6582
    Parameters:
6583
     - delta
6584
    """
6585
    self.send_getPreviousCompetitorScraping(delta)
6586
    return self.recv_getPreviousCompetitorScraping()
6587
 
6588
  def send_getPreviousCompetitorScraping(self, delta):
6589
    self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)
6590
    args = getPreviousCompetitorScraping_args()
6591
    args.delta = delta
6592
    args.write(self._oprot)
6593
    self._oprot.writeMessageEnd()
6594
    self._oprot.trans.flush()
6595
 
6596
  def recv_getPreviousCompetitorScraping(self, ):
6597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6598
    if mtype == TMessageType.EXCEPTION:
6599
      x = TApplicationException()
6600
      x.read(self._iprot)
6601
      self._iprot.readMessageEnd()
6602
      raise x
6603
    result = getPreviousCompetitorScraping_result()
6604
    result.read(self._iprot)
6605
    self._iprot.readMessageEnd()
6606
    if result.success is not None:
6607
      return result.success
6608
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
6609
 
12256 kshitij.so 6610
  def getUploadResultById(self, uploadId):
6611
    """
6612
    Parameters:
6613
     - uploadId
6614
    """
6615
    self.send_getUploadResultById(uploadId)
6616
    return self.recv_getUploadResultById()
12243 kshitij.so 6617
 
12256 kshitij.so 6618
  def send_getUploadResultById(self, uploadId):
6619
    self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)
6620
    args = getUploadResultById_args()
6621
    args.uploadId = uploadId
6622
    args.write(self._oprot)
6623
    self._oprot.writeMessageEnd()
6624
    self._oprot.trans.flush()
6625
 
6626
  def recv_getUploadResultById(self, ):
6627
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6628
    if mtype == TMessageType.EXCEPTION:
6629
      x = TApplicationException()
6630
      x.read(self._iprot)
6631
      self._iprot.readMessageEnd()
6632
      raise x
6633
    result = getUploadResultById_result()
6634
    result.read(self._iprot)
6635
    self._iprot.readMessageEnd()
6636
    if result.success is not None:
6637
      return result.success
6638
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6639
 
12363 kshitij.so 6640
  def addAmazonPromotion(self, amazonPromotions):
6641
    """
6642
    Parameters:
6643
     - amazonPromotions
6644
    """
6645
    self.send_addAmazonPromotion(amazonPromotions)
6646
    return self.recv_addAmazonPromotion()
12256 kshitij.so 6647
 
12363 kshitij.so 6648
  def send_addAmazonPromotion(self, amazonPromotions):
6649
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
6650
    args = addAmazonPromotion_args()
6651
    args.amazonPromotions = amazonPromotions
6652
    args.write(self._oprot)
6653
    self._oprot.writeMessageEnd()
6654
    self._oprot.trans.flush()
6655
 
6656
  def recv_addAmazonPromotion(self, ):
6657
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6658
    if mtype == TMessageType.EXCEPTION:
6659
      x = TApplicationException()
6660
      x.read(self._iprot)
6661
      self._iprot.readMessageEnd()
6662
      raise x
6663
    result = addAmazonPromotion_result()
6664
    result.read(self._iprot)
6665
    self._iprot.readMessageEnd()
6666
    if result.success is not None:
6667
      return result.success
12947 kshitij.so 6668
    if result.cex is not None:
6669
      raise result.cex
12363 kshitij.so 6670
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
6671
 
6672
  def getAmazonPromotion(self, startDate, endDate):
6673
    """
6674
    Parameters:
6675
     - startDate
6676
     - endDate
6677
    """
6678
    self.send_getAmazonPromotion(startDate, endDate)
6679
    return self.recv_getAmazonPromotion()
6680
 
6681
  def send_getAmazonPromotion(self, startDate, endDate):
6682
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
6683
    args = getAmazonPromotion_args()
6684
    args.startDate = startDate
6685
    args.endDate = endDate
6686
    args.write(self._oprot)
6687
    self._oprot.writeMessageEnd()
6688
    self._oprot.trans.flush()
6689
 
6690
  def recv_getAmazonPromotion(self, ):
6691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6692
    if mtype == TMessageType.EXCEPTION:
6693
      x = TApplicationException()
6694
      x.read(self._iprot)
6695
      self._iprot.readMessageEnd()
6696
      raise x
6697
    result = getAmazonPromotion_result()
6698
    result.read(self._iprot)
6699
    self._iprot.readMessageEnd()
6700
    if result.success is not None:
6701
      return result.success
6702
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
6703
 
6704
  def updateAmazonPromotion(self, amazonPromotions):
6705
    """
6706
    Parameters:
6707
     - amazonPromotions
6708
    """
6709
    self.send_updateAmazonPromotion(amazonPromotions)
6710
    return self.recv_updateAmazonPromotion()
6711
 
6712
  def send_updateAmazonPromotion(self, amazonPromotions):
6713
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
6714
    args = updateAmazonPromotion_args()
6715
    args.amazonPromotions = amazonPromotions
6716
    args.write(self._oprot)
6717
    self._oprot.writeMessageEnd()
6718
    self._oprot.trans.flush()
6719
 
6720
  def recv_updateAmazonPromotion(self, ):
6721
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6722
    if mtype == TMessageType.EXCEPTION:
6723
      x = TApplicationException()
6724
      x.read(self._iprot)
6725
      self._iprot.readMessageEnd()
6726
      raise x
6727
    result = updateAmazonPromotion_result()
6728
    result.read(self._iprot)
6729
    self._iprot.readMessageEnd()
6730
    if result.success is not None:
6731
      return result.success
6732
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
6733
 
12567 amit.gupta 6734
  def markPartiallyActive(self, itemId, categoryId):
6735
    """
6736
    Parameters:
6737
     - itemId
6738
     - categoryId
6739
    """
6740
    self.send_markPartiallyActive(itemId, categoryId)
6741
    return self.recv_markPartiallyActive()
12363 kshitij.so 6742
 
12567 amit.gupta 6743
  def send_markPartiallyActive(self, itemId, categoryId):
6744
    self._oprot.writeMessageBegin('markPartiallyActive', TMessageType.CALL, self._seqid)
6745
    args = markPartiallyActive_args()
6746
    args.itemId = itemId
6747
    args.categoryId = categoryId
6748
    args.write(self._oprot)
6749
    self._oprot.writeMessageEnd()
6750
    self._oprot.trans.flush()
6751
 
6752
  def recv_markPartiallyActive(self, ):
6753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6754
    if mtype == TMessageType.EXCEPTION:
6755
      x = TApplicationException()
6756
      x.read(self._iprot)
6757
      self._iprot.readMessageEnd()
6758
      raise x
6759
    result = markPartiallyActive_result()
6760
    result.read(self._iprot)
6761
    self._iprot.readMessageEnd()
6762
    if result.success is not None:
6763
      return result.success
6764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");
6765
 
6766
  def updateItemStateVat(self, itemId, statevat):
6767
    """
6768
    Parameters:
6769
     - itemId
6770
     - statevat
6771
    """
6772
    self.send_updateItemStateVat(itemId, statevat)
6773
    return self.recv_updateItemStateVat()
6774
 
6775
  def send_updateItemStateVat(self, itemId, statevat):
6776
    self._oprot.writeMessageBegin('updateItemStateVat', TMessageType.CALL, self._seqid)
6777
    args = updateItemStateVat_args()
6778
    args.itemId = itemId
6779
    args.statevat = statevat
6780
    args.write(self._oprot)
6781
    self._oprot.writeMessageEnd()
6782
    self._oprot.trans.flush()
6783
 
6784
  def recv_updateItemStateVat(self, ):
6785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6786
    if mtype == TMessageType.EXCEPTION:
6787
      x = TApplicationException()
6788
      x.read(self._iprot)
6789
      self._iprot.readMessageEnd()
6790
      raise x
6791
    result = updateItemStateVat_result()
6792
    result.read(self._iprot)
6793
    self._iprot.readMessageEnd()
6794
    if result.success is not None:
6795
      return result.success
6796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6797
 
12620 amit.gupta 6798
  def getExAffiliateItemInfo(self, ):
6799
    self.send_getExAffiliateItemInfo()
6800
    return self.recv_getExAffiliateItemInfo()
12567 amit.gupta 6801
 
12620 amit.gupta 6802
  def send_getExAffiliateItemInfo(self, ):
6803
    self._oprot.writeMessageBegin('getExAffiliateItemInfo', TMessageType.CALL, self._seqid)
6804
    args = getExAffiliateItemInfo_args()
6805
    args.write(self._oprot)
6806
    self._oprot.writeMessageEnd()
6807
    self._oprot.trans.flush()
6808
 
6809
  def recv_getExAffiliateItemInfo(self, ):
6810
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6811
    if mtype == TMessageType.EXCEPTION:
6812
      x = TApplicationException()
6813
      x.read(self._iprot)
6814
      self._iprot.readMessageEnd()
6815
      raise x
6816
    result = getExAffiliateItemInfo_result()
6817
    result.read(self._iprot)
6818
    self._iprot.readMessageEnd()
6819
    if result.success is not None:
6820
      return result.success
6821
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
6822
 
12888 kshitij.so 6823
  def getAllItemstoListOnFbg(self, ):
6824
    self.send_getAllItemstoListOnFbg()
6825
    return self.recv_getAllItemstoListOnFbg()
12620 amit.gupta 6826
 
12888 kshitij.so 6827
  def send_getAllItemstoListOnFbg(self, ):
6828
    self._oprot.writeMessageBegin('getAllItemstoListOnFbg', TMessageType.CALL, self._seqid)
6829
    args = getAllItemstoListOnFbg_args()
6830
    args.write(self._oprot)
6831
    self._oprot.writeMessageEnd()
6832
    self._oprot.trans.flush()
6833
 
6834
  def recv_getAllItemstoListOnFbg(self, ):
6835
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6836
    if mtype == TMessageType.EXCEPTION:
6837
      x = TApplicationException()
6838
      x.read(self._iprot)
6839
      self._iprot.readMessageEnd()
6840
      raise x
6841
    result = getAllItemstoListOnFbg_result()
6842
    result.read(self._iprot)
6843
    self._iprot.readMessageEnd()
6844
    if result.success is not None:
6845
      return result.success
6846
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
6847
 
12892 kshitij.so 6848
  def getAllFbgListedItems(self, ):
6849
    self.send_getAllFbgListedItems()
6850
    return self.recv_getAllFbgListedItems()
12888 kshitij.so 6851
 
12892 kshitij.so 6852
  def send_getAllFbgListedItems(self, ):
6853
    self._oprot.writeMessageBegin('getAllFbgListedItems', TMessageType.CALL, self._seqid)
6854
    args = getAllFbgListedItems_args()
6855
    args.write(self._oprot)
6856
    self._oprot.writeMessageEnd()
6857
    self._oprot.trans.flush()
6858
 
6859
  def recv_getAllFbgListedItems(self, ):
6860
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6861
    if mtype == TMessageType.EXCEPTION:
6862
      x = TApplicationException()
6863
      x.read(self._iprot)
6864
      self._iprot.readMessageEnd()
6865
      raise x
6866
    result = getAllFbgListedItems_result()
6867
    result.read(self._iprot)
6868
    self._iprot.readMessageEnd()
6869
    if result.success is not None:
6870
      return result.success
6871
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbgListedItems failed: unknown result");
6872
 
13136 amit.gupta 6873
  def checkServices(self, lines):
6874
    """
6875
    Parameters:
6876
     - lines
6877
    """
6878
    self.send_checkServices(lines)
6879
    return self.recv_checkServices()
12892 kshitij.so 6880
 
13136 amit.gupta 6881
  def send_checkServices(self, lines):
6882
    self._oprot.writeMessageBegin('checkServices', TMessageType.CALL, self._seqid)
6883
    args = checkServices_args()
6884
    args.lines = lines
6885
    args.write(self._oprot)
6886
    self._oprot.writeMessageEnd()
6887
    self._oprot.trans.flush()
6888
 
6889
  def recv_checkServices(self, ):
6890
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6891
    if mtype == TMessageType.EXCEPTION:
6892
      x = TApplicationException()
6893
      x.read(self._iprot)
6894
      self._iprot.readMessageEnd()
6895
      raise x
6896
    result = checkServices_result()
6897
    result.read(self._iprot)
6898
    self._iprot.readMessageEnd()
6899
    if result.success is not None:
6900
      return result.success
6901
    if result.cex is not None:
6902
      raise result.cex
6903
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkServices failed: unknown result");
6904
 
13709 manish.sha 6905
  def addHsItem(self, hsItems):
6906
    """
6907
    Parameters:
6908
     - hsItems
6909
    """
6910
    self.send_addHsItem(hsItems)
6911
    self.recv_addHsItem()
13136 amit.gupta 6912
 
13709 manish.sha 6913
  def send_addHsItem(self, hsItems):
6914
    self._oprot.writeMessageBegin('addHsItem', TMessageType.CALL, self._seqid)
6915
    args = addHsItem_args()
6916
    args.hsItems = hsItems
6917
    args.write(self._oprot)
6918
    self._oprot.writeMessageEnd()
6919
    self._oprot.trans.flush()
6920
 
6921
  def recv_addHsItem(self, ):
6922
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6923
    if mtype == TMessageType.EXCEPTION:
6924
      x = TApplicationException()
6925
      x.read(self._iprot)
6926
      self._iprot.readMessageEnd()
6927
      raise x
6928
    result = addHsItem_result()
6929
    result.read(self._iprot)
6930
    self._iprot.readMessageEnd()
6931
    return
6932
 
6933
  def getHsItem(self, hsItemId):
6934
    """
6935
    Parameters:
6936
     - hsItemId
6937
    """
6938
    self.send_getHsItem(hsItemId)
6939
    return self.recv_getHsItem()
6940
 
6941
  def send_getHsItem(self, hsItemId):
6942
    self._oprot.writeMessageBegin('getHsItem', TMessageType.CALL, self._seqid)
6943
    args = getHsItem_args()
6944
    args.hsItemId = hsItemId
6945
    args.write(self._oprot)
6946
    self._oprot.writeMessageEnd()
6947
    self._oprot.trans.flush()
6948
 
6949
  def recv_getHsItem(self, ):
6950
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6951
    if mtype == TMessageType.EXCEPTION:
6952
      x = TApplicationException()
6953
      x.read(self._iprot)
6954
      self._iprot.readMessageEnd()
6955
      raise x
6956
    result = getHsItem_result()
6957
    result.read(self._iprot)
6958
    self._iprot.readMessageEnd()
6959
    if result.success is not None:
6960
      return result.success
6961
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHsItem failed: unknown result");
6962
 
6963
  def updateHsItem(self, hsItem):
6964
    """
6965
    Parameters:
6966
     - hsItem
6967
    """
6968
    self.send_updateHsItem(hsItem)
6969
    self.recv_updateHsItem()
6970
 
6971
  def send_updateHsItem(self, hsItem):
6972
    self._oprot.writeMessageBegin('updateHsItem', TMessageType.CALL, self._seqid)
6973
    args = updateHsItem_args()
6974
    args.hsItem = hsItem
6975
    args.write(self._oprot)
6976
    self._oprot.writeMessageEnd()
6977
    self._oprot.trans.flush()
6978
 
6979
  def recv_updateHsItem(self, ):
6980
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6981
    if mtype == TMessageType.EXCEPTION:
6982
      x = TApplicationException()
6983
      x.read(self._iprot)
6984
      self._iprot.readMessageEnd()
6985
      raise x
6986
    result = updateHsItem_result()
6987
    result.read(self._iprot)
6988
    self._iprot.readMessageEnd()
6989
    return
6990
 
6991
 
5944 mandeep.dh 6992
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6993
  def __init__(self, handler):
6994
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6995
    self._processMap["addItem"] = Processor.process_addItem
6996
    self._processMap["updateItem"] = Processor.process_updateItem
6997
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 6998
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 6999
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
7000
    self._processMap["startItemOn"] = Processor.process_startItemOn
7001
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
7002
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
7003
    self._processMap["getItem"] = Processor.process_getItem
13493 amit.gupta 7004
    self._processMap["getItems"] = Processor.process_getItems
5944 mandeep.dh 7005
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
7006
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
7007
    self._processMap["getAllItems"] = Processor.process_getAllItems
7008
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
7009
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
12567 amit.gupta 7010
    self._processMap["getVatRates"] = Processor.process_getVatRates
5944 mandeep.dh 7011
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
7012
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
7013
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
7014
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
7015
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
7016
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
7017
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
7018
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
7019
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
7020
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
7021
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
7022
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
7023
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
7024
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
7025
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
7026
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
7027
    self._processMap["addCategory"] = Processor.process_addCategory
7028
    self._processMap["getCategory"] = Processor.process_getCategory
7029
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
7030
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
7031
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 7032
    self._processMap["addTag"] = Processor.process_addTag
7033
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
7034
    self._processMap["deleteTag"] = Processor.process_deleteTag
7035
    self._processMap["getAllTags"] = Processor.process_getAllTags
7036
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 7037
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 7038
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 7039
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 7040
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
7041
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
7042
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
7043
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 7044
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 7045
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 7046
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
7047
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 7048
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
7049
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
7050
    self._processMap["addCampaign"] = Processor.process_addCampaign
7051
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
7052
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
7053
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 7054
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 7055
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
7056
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
7057
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
7058
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
7059
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
7060
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
7061
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
7062
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
7063
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
7064
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
7065
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
7066
    self._processMap["getAllSources"] = Processor.process_getAllSources
7067
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
7068
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
7069
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
7070
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
7071
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
7072
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
7073
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
7074
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
7075
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
7076
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
7077
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
7078
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
7079
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
7080
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 7081
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
7082
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 7083
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 7084
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 7085
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
7086
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 7087
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 7088
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 7089
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
7090
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 7091
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
7092
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 7093
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 7094
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 7095
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 7096
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 7097
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
7098
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
7099
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 7100
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
7101
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
7102
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 7103
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
7104
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
7105
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 7106
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 7107
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 7108
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 7109
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
7110
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 7111
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
7112
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
7113
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 7114
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 7115
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 7116
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
7117
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 7118
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 7119
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
7120
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 7121
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 7122
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 7123
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
7124
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
7125
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
7126
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 7127
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 7128
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 7129
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
7130
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
7131
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
7132
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
7133
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 7134
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
7135
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 7136
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 7137
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
7138
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 7139
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 7140
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 7141
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 7142
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
7143
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
7144
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
7145
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
7146
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
7147
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
7148
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
7149
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 7150
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
11015 kshitij.so 7151
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
10909 vikram.rag 7152
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
10924 vikram.rag 7153
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
11015 kshitij.so 7154
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
7155
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
11531 vikram.rag 7156
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
7157
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
11592 amit.gupta 7158
    self._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDeals
11531 vikram.rag 7159
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
11635 vikram.rag 7160
    self._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIds
11645 amit.gupta 7161
    self._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCount
11905 kshitij.so 7162
    self._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItems
7163
    self._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparison
12133 kshitij.so 7164
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
7165
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
12243 kshitij.so 7166
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
7167
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
12256 kshitij.so 7168
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
12363 kshitij.so 7169
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
7170
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
7171
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
12567 amit.gupta 7172
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
7173
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
12620 amit.gupta 7174
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
12888 kshitij.so 7175
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
12892 kshitij.so 7176
    self._processMap["getAllFbgListedItems"] = Processor.process_getAllFbgListedItems
13136 amit.gupta 7177
    self._processMap["checkServices"] = Processor.process_checkServices
13709 manish.sha 7178
    self._processMap["addHsItem"] = Processor.process_addHsItem
7179
    self._processMap["getHsItem"] = Processor.process_getHsItem
7180
    self._processMap["updateHsItem"] = Processor.process_updateHsItem
5944 mandeep.dh 7181
 
7182
  def process(self, iprot, oprot):
7183
    (name, type, seqid) = iprot.readMessageBegin()
7184
    if name not in self._processMap:
7185
      iprot.skip(TType.STRUCT)
7186
      iprot.readMessageEnd()
7187
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
7188
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
7189
      x.write(oprot)
7190
      oprot.writeMessageEnd()
7191
      oprot.trans.flush()
7192
      return
7193
    else:
7194
      self._processMap[name](self, seqid, iprot, oprot)
7195
    return True
7196
 
7197
  def process_addItem(self, seqid, iprot, oprot):
7198
    args = addItem_args()
7199
    args.read(iprot)
7200
    iprot.readMessageEnd()
7201
    result = addItem_result()
7202
    try:
7203
      result.success = self._handler.addItem(args.item)
7204
    except CatalogServiceException, cex:
7205
      result.cex = cex
7206
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
7207
    result.write(oprot)
7208
    oprot.writeMessageEnd()
7209
    oprot.trans.flush()
7210
 
7211
  def process_updateItem(self, seqid, iprot, oprot):
7212
    args = updateItem_args()
7213
    args.read(iprot)
7214
    iprot.readMessageEnd()
7215
    result = updateItem_result()
7216
    try:
7217
      result.success = self._handler.updateItem(args.item)
7218
    except CatalogServiceException, cex:
7219
      result.cex = cex
7220
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
7221
    result.write(oprot)
7222
    oprot.writeMessageEnd()
7223
    oprot.trans.flush()
7224
 
7225
  def process_isActive(self, seqid, iprot, oprot):
7226
    args = isActive_args()
7227
    args.read(iprot)
7228
    iprot.readMessageEnd()
7229
    result = isActive_result()
7230
    try:
7231
      result.success = self._handler.isActive(args.itemId)
7232
    except CatalogServiceException, isex:
7233
      result.isex = isex
7234
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
7235
    result.write(oprot)
7236
    oprot.writeMessageEnd()
7237
    oprot.trans.flush()
7238
 
7438 amit.gupta 7239
  def process_getItemsStatus(self, seqid, iprot, oprot):
7240
    args = getItemsStatus_args()
7241
    args.read(iprot)
7242
    iprot.readMessageEnd()
7243
    result = getItemsStatus_result()
7244
    try:
7245
      result.success = self._handler.getItemsStatus(args.itemIds)
7246
    except CatalogServiceException, isex:
7247
      result.isex = isex
7248
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
7249
    result.write(oprot)
7250
    oprot.writeMessageEnd()
7251
    oprot.trans.flush()
7252
 
5944 mandeep.dh 7253
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
7254
    args = getItemStatusDescription_args()
7255
    args.read(iprot)
7256
    iprot.readMessageEnd()
7257
    result = getItemStatusDescription_result()
7258
    try:
7259
      result.success = self._handler.getItemStatusDescription(args.itemId)
7260
    except CatalogServiceException, isex:
7261
      result.isex = isex
7262
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
7263
    result.write(oprot)
7264
    oprot.writeMessageEnd()
7265
    oprot.trans.flush()
7266
 
7267
  def process_startItemOn(self, seqid, iprot, oprot):
7268
    args = startItemOn_args()
7269
    args.read(iprot)
7270
    iprot.readMessageEnd()
7271
    result = startItemOn_result()
7272
    try:
7273
      self._handler.startItemOn(args.item_id, args.timestamp)
7274
    except CatalogServiceException, cex:
7275
      result.cex = cex
7276
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
7277
    result.write(oprot)
7278
    oprot.writeMessageEnd()
7279
    oprot.trans.flush()
7280
 
7281
  def process_retireItemOn(self, seqid, iprot, oprot):
7282
    args = retireItemOn_args()
7283
    args.read(iprot)
7284
    iprot.readMessageEnd()
7285
    result = retireItemOn_result()
7286
    try:
7287
      self._handler.retireItemOn(args.item_id, args.timestamp)
7288
    except CatalogServiceException, cex:
7289
      result.cex = cex
7290
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
7291
    result.write(oprot)
7292
    oprot.writeMessageEnd()
7293
    oprot.trans.flush()
7294
 
7295
  def process_changeItemStatus(self, seqid, iprot, oprot):
7296
    args = changeItemStatus_args()
7297
    args.read(iprot)
7298
    iprot.readMessageEnd()
7299
    result = changeItemStatus_result()
7300
    try:
7301
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
7302
    except CatalogServiceException, cex:
7303
      result.cex = cex
7304
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
7305
    result.write(oprot)
7306
    oprot.writeMessageEnd()
7307
    oprot.trans.flush()
7308
 
7309
  def process_getItem(self, seqid, iprot, oprot):
7310
    args = getItem_args()
7311
    args.read(iprot)
7312
    iprot.readMessageEnd()
7313
    result = getItem_result()
7314
    try:
7315
      result.success = self._handler.getItem(args.item_id)
7316
    except CatalogServiceException, cex:
7317
      result.cex = cex
7318
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
7319
    result.write(oprot)
7320
    oprot.writeMessageEnd()
7321
    oprot.trans.flush()
7322
 
13493 amit.gupta 7323
  def process_getItems(self, seqid, iprot, oprot):
7324
    args = getItems_args()
7325
    args.read(iprot)
7326
    iprot.readMessageEnd()
7327
    result = getItems_result()
7328
    try:
7329
      result.success = self._handler.getItems(args.item_ids)
7330
    except CatalogServiceException, cex:
7331
      result.cex = cex
7332
    oprot.writeMessageBegin("getItems", TMessageType.REPLY, seqid)
7333
    result.write(oprot)
7334
    oprot.writeMessageEnd()
7335
    oprot.trans.flush()
7336
 
5944 mandeep.dh 7337
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
7338
    args = getItemsByCatalogId_args()
7339
    args.read(iprot)
7340
    iprot.readMessageEnd()
7341
    result = getItemsByCatalogId_result()
7342
    try:
7343
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
7344
    except CatalogServiceException, cex:
7345
      result.cex = cex
7346
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
7347
    result.write(oprot)
7348
    oprot.writeMessageEnd()
7349
    oprot.trans.flush()
7350
 
7351
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
7352
    args = getValidItemsByCatalogId_args()
7353
    args.read(iprot)
7354
    iprot.readMessageEnd()
7355
    result = getValidItemsByCatalogId_result()
7356
    try:
7357
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
7358
    except CatalogServiceException, cex:
7359
      result.cex = cex
7360
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
7361
    result.write(oprot)
7362
    oprot.writeMessageEnd()
7363
    oprot.trans.flush()
7364
 
7365
  def process_getAllItems(self, seqid, iprot, oprot):
7366
    args = getAllItems_args()
7367
    args.read(iprot)
7368
    iprot.readMessageEnd()
7369
    result = getAllItems_result()
7370
    try:
7371
      result.success = self._handler.getAllItems(args.isActive)
7372
    except CatalogServiceException, cex:
7373
      result.cex = cex
7374
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
7375
    result.write(oprot)
7376
    oprot.writeMessageEnd()
7377
    oprot.trans.flush()
7378
 
7379
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
7380
    args = getAllItemsByStatus_args()
7381
    args.read(iprot)
7382
    iprot.readMessageEnd()
7383
    result = getAllItemsByStatus_result()
7384
    try:
7385
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
7386
    except CatalogServiceException, cex:
7387
      result.cex = cex
7388
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
7389
    result.write(oprot)
7390
    oprot.writeMessageEnd()
7391
    oprot.trans.flush()
7392
 
7393
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
7394
    args = markItemAsContentComplete_args()
7395
    args.read(iprot)
7396
    iprot.readMessageEnd()
7397
    result = markItemAsContentComplete_result()
7398
    try:
9253 rajveer 7399
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 7400
    except CatalogServiceException, cex:
7401
      result.cex = cex
7402
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
7403
    result.write(oprot)
7404
    oprot.writeMessageEnd()
7405
    oprot.trans.flush()
7406
 
12567 amit.gupta 7407
  def process_getVatRates(self, seqid, iprot, oprot):
7408
    args = getVatRates_args()
7409
    args.read(iprot)
7410
    iprot.readMessageEnd()
7411
    result = getVatRates_result()
7412
    try:
7413
      result.success = self._handler.getVatRates(args.itemId, args.categoryId)
7414
    except CatalogServiceException, cex:
7415
      result.cex = cex
7416
    oprot.writeMessageBegin("getVatRates", TMessageType.REPLY, seqid)
7417
    result.write(oprot)
7418
    oprot.writeMessageEnd()
7419
    oprot.trans.flush()
7420
 
5944 mandeep.dh 7421
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
7422
    args = getAllItemsInRange_args()
7423
    args.read(iprot)
7424
    iprot.readMessageEnd()
7425
    result = getAllItemsInRange_result()
7426
    try:
7427
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
7428
    except CatalogServiceException, cex:
7429
      result.cex = cex
7430
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
7431
    result.write(oprot)
7432
    oprot.writeMessageEnd()
7433
    oprot.trans.flush()
7434
 
7435
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
7436
    args = getAllItemsByStatusInRange_args()
7437
    args.read(iprot)
7438
    iprot.readMessageEnd()
7439
    result = getAllItemsByStatusInRange_result()
7440
    try:
7441
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
7442
    except CatalogServiceException, cex:
7443
      result.cex = cex
7444
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
7445
    result.write(oprot)
7446
    oprot.writeMessageEnd()
7447
    oprot.trans.flush()
7448
 
7449
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
7450
    args = getItemCountByStatus_args()
7451
    args.read(iprot)
7452
    iprot.readMessageEnd()
7453
    result = getItemCountByStatus_result()
7454
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
7455
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
7456
    result.write(oprot)
7457
    oprot.writeMessageEnd()
7458
    oprot.trans.flush()
7459
 
7460
  def process_getBestSellers(self, seqid, iprot, oprot):
7461
    args = getBestSellers_args()
7462
    args.read(iprot)
7463
    iprot.readMessageEnd()
7464
    result = getBestSellers_result()
7465
    try:
7466
      result.success = self._handler.getBestSellers()
7467
    except CatalogServiceException, isex:
7468
      result.isex = isex
7469
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
7470
    result.write(oprot)
7471
    oprot.writeMessageEnd()
7472
    oprot.trans.flush()
7473
 
7474
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
7475
    args = getBestSellersCatalogIds_args()
7476
    args.read(iprot)
7477
    iprot.readMessageEnd()
7478
    result = getBestSellersCatalogIds_result()
7479
    try:
7480
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7481
    except CatalogServiceException, cex:
7482
      result.cex = cex
7483
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
7484
    result.write(oprot)
7485
    oprot.writeMessageEnd()
7486
    oprot.trans.flush()
7487
 
7488
  def process_getBestSellersCount(self, seqid, iprot, oprot):
7489
    args = getBestSellersCount_args()
7490
    args.read(iprot)
7491
    iprot.readMessageEnd()
7492
    result = getBestSellersCount_result()
7493
    try:
7494
      result.success = self._handler.getBestSellersCount()
7495
    except CatalogServiceException, cex:
7496
      result.cex = cex
7497
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
7498
    result.write(oprot)
7499
    oprot.writeMessageEnd()
7500
    oprot.trans.flush()
7501
 
7502
  def process_getBestDeals(self, seqid, iprot, oprot):
7503
    args = getBestDeals_args()
7504
    args.read(iprot)
7505
    iprot.readMessageEnd()
7506
    result = getBestDeals_result()
7507
    try:
7508
      result.success = self._handler.getBestDeals()
7509
    except CatalogServiceException, isex:
7510
      result.isex = isex
7511
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
7512
    result.write(oprot)
7513
    oprot.writeMessageEnd()
7514
    oprot.trans.flush()
7515
 
7516
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
7517
    args = getBestDealsCatalogIds_args()
7518
    args.read(iprot)
7519
    iprot.readMessageEnd()
7520
    result = getBestDealsCatalogIds_result()
7521
    try:
7522
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7523
    except CatalogServiceException, cex:
7524
      result.cex = cex
7525
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
7526
    result.write(oprot)
7527
    oprot.writeMessageEnd()
7528
    oprot.trans.flush()
7529
 
7530
  def process_getBestDealsCount(self, seqid, iprot, oprot):
7531
    args = getBestDealsCount_args()
7532
    args.read(iprot)
7533
    iprot.readMessageEnd()
7534
    result = getBestDealsCount_result()
7535
    try:
7536
      result.success = self._handler.getBestDealsCount()
7537
    except CatalogServiceException, cex:
7538
      result.cex = cex
7539
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
7540
    result.write(oprot)
7541
    oprot.writeMessageEnd()
7542
    oprot.trans.flush()
7543
 
7544
  def process_getComingSoon(self, seqid, iprot, oprot):
7545
    args = getComingSoon_args()
7546
    args.read(iprot)
7547
    iprot.readMessageEnd()
7548
    result = getComingSoon_result()
7549
    try:
7550
      result.success = self._handler.getComingSoon()
7551
    except CatalogServiceException, isex:
7552
      result.isex = isex
7553
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
7554
    result.write(oprot)
7555
    oprot.writeMessageEnd()
7556
    oprot.trans.flush()
7557
 
7558
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
7559
    args = getComingSoonCatalogIds_args()
7560
    args.read(iprot)
7561
    iprot.readMessageEnd()
7562
    result = getComingSoonCatalogIds_result()
7563
    try:
7564
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7565
    except CatalogServiceException, cex:
7566
      result.cex = cex
7567
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
7568
    result.write(oprot)
7569
    oprot.writeMessageEnd()
7570
    oprot.trans.flush()
7571
 
7572
  def process_getComingSoonCount(self, seqid, iprot, oprot):
7573
    args = getComingSoonCount_args()
7574
    args.read(iprot)
7575
    iprot.readMessageEnd()
7576
    result = getComingSoonCount_result()
7577
    try:
7578
      result.success = self._handler.getComingSoonCount()
7579
    except CatalogServiceException, cex:
7580
      result.cex = cex
7581
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
7582
    result.write(oprot)
7583
    oprot.writeMessageEnd()
7584
    oprot.trans.flush()
7585
 
7586
  def process_getLatestArrivals(self, seqid, iprot, oprot):
7587
    args = getLatestArrivals_args()
7588
    args.read(iprot)
7589
    iprot.readMessageEnd()
7590
    result = getLatestArrivals_result()
7591
    try:
7592
      result.success = self._handler.getLatestArrivals()
7593
    except CatalogServiceException, isex:
7594
      result.isex = isex
7595
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
7596
    result.write(oprot)
7597
    oprot.writeMessageEnd()
7598
    oprot.trans.flush()
7599
 
7600
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
7601
    args = getLatestArrivalsCatalogIds_args()
7602
    args.read(iprot)
7603
    iprot.readMessageEnd()
7604
    result = getLatestArrivalsCatalogIds_result()
7605
    try:
7606
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
7607
    except CatalogServiceException, cex:
7608
      result.cex = cex
7609
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
7610
    result.write(oprot)
7611
    oprot.writeMessageEnd()
7612
    oprot.trans.flush()
7613
 
7614
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
7615
    args = getLatestArrivalsCount_args()
7616
    args.read(iprot)
7617
    iprot.readMessageEnd()
7618
    result = getLatestArrivalsCount_result()
7619
    try:
7620
      result.success = self._handler.getLatestArrivalsCount()
7621
    except CatalogServiceException, cex:
7622
      result.cex = cex
7623
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
7624
    result.write(oprot)
7625
    oprot.writeMessageEnd()
7626
    oprot.trans.flush()
7627
 
7628
  def process_generateNewEntityID(self, seqid, iprot, oprot):
7629
    args = generateNewEntityID_args()
7630
    args.read(iprot)
7631
    iprot.readMessageEnd()
7632
    result = generateNewEntityID_result()
7633
    result.success = self._handler.generateNewEntityID()
7634
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
7635
    result.write(oprot)
7636
    oprot.writeMessageEnd()
7637
    oprot.trans.flush()
7638
 
7639
  def process_addCategory(self, seqid, iprot, oprot):
7640
    args = addCategory_args()
7641
    args.read(iprot)
7642
    iprot.readMessageEnd()
7643
    result = addCategory_result()
7644
    result.success = self._handler.addCategory(args.category)
7645
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
7646
    result.write(oprot)
7647
    oprot.writeMessageEnd()
7648
    oprot.trans.flush()
7649
 
7650
  def process_getCategory(self, seqid, iprot, oprot):
7651
    args = getCategory_args()
7652
    args.read(iprot)
7653
    iprot.readMessageEnd()
7654
    result = getCategory_result()
7655
    result.success = self._handler.getCategory(args.id)
7656
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
7657
    result.write(oprot)
7658
    oprot.writeMessageEnd()
7659
    oprot.trans.flush()
7660
 
7661
  def process_getAllCategories(self, seqid, iprot, oprot):
7662
    args = getAllCategories_args()
7663
    args.read(iprot)
7664
    iprot.readMessageEnd()
7665
    result = getAllCategories_result()
7666
    result.success = self._handler.getAllCategories()
7667
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
7668
    result.write(oprot)
7669
    oprot.writeMessageEnd()
7670
    oprot.trans.flush()
7671
 
7672
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
7673
    args = getAllSimilarItems_args()
7674
    args.read(iprot)
7675
    iprot.readMessageEnd()
7676
    result = getAllSimilarItems_result()
7677
    result.success = self._handler.getAllSimilarItems(args.itemId)
7678
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
7679
    result.write(oprot)
7680
    oprot.writeMessageEnd()
7681
    oprot.trans.flush()
7682
 
7683
  def process_addSimilarItem(self, seqid, iprot, oprot):
7684
    args = addSimilarItem_args()
7685
    args.read(iprot)
7686
    iprot.readMessageEnd()
7687
    result = addSimilarItem_result()
7688
    try:
7689
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
7690
    except CatalogServiceException, cex:
7691
      result.cex = cex
7692
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
7693
    result.write(oprot)
7694
    oprot.writeMessageEnd()
7695
    oprot.trans.flush()
7696
 
6512 kshitij.so 7697
  def process_addTag(self, seqid, iprot, oprot):
7698
    args = addTag_args()
7699
    args.read(iprot)
7700
    iprot.readMessageEnd()
7701
    result = addTag_result()
7702
    result.success = self._handler.addTag(args.displayName, args.itemId)
7703
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
7704
    result.write(oprot)
7705
    oprot.writeMessageEnd()
7706
    oprot.trans.flush()
7707
 
7708
  def process_deleteEntityTag(self, seqid, iprot, oprot):
7709
    args = deleteEntityTag_args()
7710
    args.read(iprot)
7711
    iprot.readMessageEnd()
7712
    result = deleteEntityTag_result()
7713
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
7714
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
7715
    result.write(oprot)
7716
    oprot.writeMessageEnd()
7717
    oprot.trans.flush()
7718
 
7719
  def process_deleteTag(self, seqid, iprot, oprot):
7720
    args = deleteTag_args()
7721
    args.read(iprot)
7722
    iprot.readMessageEnd()
7723
    result = deleteTag_result()
7724
    result.success = self._handler.deleteTag(args.displayName)
7725
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
7726
    result.write(oprot)
7727
    oprot.writeMessageEnd()
7728
    oprot.trans.flush()
7729
 
7730
  def process_getAllTags(self, seqid, iprot, oprot):
7731
    args = getAllTags_args()
7732
    args.read(iprot)
7733
    iprot.readMessageEnd()
7734
    result = getAllTags_result()
7735
    result.success = self._handler.getAllTags()
7736
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
7737
    result.write(oprot)
7738
    oprot.writeMessageEnd()
7739
    oprot.trans.flush()
7740
 
7741
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
7742
    args = getAllEntitiesByTagName_args()
7743
    args.read(iprot)
7744
    iprot.readMessageEnd()
7745
    result = getAllEntitiesByTagName_result()
7746
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
7747
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
7748
    result.write(oprot)
7749
    oprot.writeMessageEnd()
7750
    oprot.trans.flush()
7751
 
6845 amit.gupta 7752
  def process_getAllEntityTags(self, seqid, iprot, oprot):
7753
    args = getAllEntityTags_args()
7754
    args.read(iprot)
7755
    iprot.readMessageEnd()
7756
    result = getAllEntityTags_result()
7757
    result.success = self._handler.getAllEntityTags()
7758
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
7759
    result.write(oprot)
7760
    oprot.writeMessageEnd()
7761
    oprot.trans.flush()
7762
 
6850 kshitij.so 7763
  def process_addBanner(self, seqid, iprot, oprot):
7764
    args = addBanner_args()
7765
    args.read(iprot)
7766
    iprot.readMessageEnd()
7767
    result = addBanner_result()
10097 kshitij.so 7768
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 7769
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
7770
    result.write(oprot)
7771
    oprot.writeMessageEnd()
7772
    oprot.trans.flush()
7773
 
8579 kshitij.so 7774
  def process_updateBanner(self, seqid, iprot, oprot):
7775
    args = updateBanner_args()
7776
    args.read(iprot)
7777
    iprot.readMessageEnd()
7778
    result = updateBanner_result()
7779
    result.success = self._handler.updateBanner(args.banner)
7780
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
7781
    result.write(oprot)
7782
    oprot.writeMessageEnd()
7783
    oprot.trans.flush()
7784
 
6850 kshitij.so 7785
  def process_getAllBanners(self, seqid, iprot, oprot):
7786
    args = getAllBanners_args()
7787
    args.read(iprot)
7788
    iprot.readMessageEnd()
7789
    result = getAllBanners_result()
7790
    result.success = self._handler.getAllBanners()
7791
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
7792
    result.write(oprot)
7793
    oprot.writeMessageEnd()
7794
    oprot.trans.flush()
7795
 
7796
  def process_deleteBanner(self, seqid, iprot, oprot):
7797
    args = deleteBanner_args()
7798
    args.read(iprot)
7799
    iprot.readMessageEnd()
7800
    result = deleteBanner_result()
9155 kshitij.so 7801
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 7802
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
7803
    result.write(oprot)
7804
    oprot.writeMessageEnd()
7805
    oprot.trans.flush()
7806
 
7807
  def process_getBannerDetails(self, seqid, iprot, oprot):
7808
    args = getBannerDetails_args()
7809
    args.read(iprot)
7810
    iprot.readMessageEnd()
7811
    result = getBannerDetails_result()
9155 kshitij.so 7812
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 7813
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
7814
    result.write(oprot)
7815
    oprot.writeMessageEnd()
7816
    oprot.trans.flush()
7817
 
7818
  def process_getActiveBanners(self, seqid, iprot, oprot):
7819
    args = getActiveBanners_args()
7820
    args.read(iprot)
7821
    iprot.readMessageEnd()
7822
    result = getActiveBanners_result()
7823
    result.success = self._handler.getActiveBanners()
7824
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
7825
    result.write(oprot)
7826
    oprot.writeMessageEnd()
7827
    oprot.trans.flush()
7828
 
6849 kshitij.so 7829
  def process_addBannerMap(self, seqid, iprot, oprot):
7830
    args = addBannerMap_args()
7831
    args.read(iprot)
7832
    iprot.readMessageEnd()
7833
    result = addBannerMap_result()
8579 kshitij.so 7834
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 7835
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
7836
    result.write(oprot)
7837
    oprot.writeMessageEnd()
7838
    oprot.trans.flush()
7839
 
8579 kshitij.so 7840
  def process_updateBannerMap(self, seqid, iprot, oprot):
7841
    args = updateBannerMap_args()
7842
    args.read(iprot)
7843
    iprot.readMessageEnd()
7844
    result = updateBannerMap_result()
7845
    result.success = self._handler.updateBannerMap(args.bannerMap)
7846
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
7847
    result.write(oprot)
7848
    oprot.writeMessageEnd()
7849
    oprot.trans.flush()
7850
 
6849 kshitij.so 7851
  def process_deleteBannerMap(self, seqid, iprot, oprot):
7852
    args = deleteBannerMap_args()
7853
    args.read(iprot)
7854
    iprot.readMessageEnd()
7855
    result = deleteBannerMap_result()
7856
    result.success = self._handler.deleteBannerMap(args.bannerName)
7857
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
7858
    result.write(oprot)
7859
    oprot.writeMessageEnd()
7860
    oprot.trans.flush()
7861
 
7862
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
7863
    args = getBannerMapDetails_args()
7864
    args.read(iprot)
7865
    iprot.readMessageEnd()
7866
    result = getBannerMapDetails_result()
9155 kshitij.so 7867
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 7868
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
7869
    result.write(oprot)
7870
    oprot.writeMessageEnd()
7871
    oprot.trans.flush()
7872
 
8579 kshitij.so 7873
  def process_addBannerUri(self, seqid, iprot, oprot):
7874
    args = addBannerUri_args()
7875
    args.read(iprot)
7876
    iprot.readMessageEnd()
7877
    result = addBannerUri_result()
7878
    self._handler.addBannerUri(args.bannerUriMappings)
7879
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
7880
    result.write(oprot)
7881
    oprot.writeMessageEnd()
7882
    oprot.trans.flush()
7883
 
7884
  def process_getUriMapping(self, seqid, iprot, oprot):
7885
    args = getUriMapping_args()
7886
    args.read(iprot)
7887
    iprot.readMessageEnd()
7888
    result = getUriMapping_result()
9155 kshitij.so 7889
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 7890
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
7891
    result.write(oprot)
7892
    oprot.writeMessageEnd()
7893
    oprot.trans.flush()
7894
 
7895
  def process_addCampaign(self, seqid, iprot, oprot):
7896
    args = addCampaign_args()
7897
    args.read(iprot)
7898
    iprot.readMessageEnd()
7899
    result = addCampaign_result()
7900
    self._handler.addCampaign(args.campaign)
7901
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
7902
    result.write(oprot)
7903
    oprot.writeMessageEnd()
7904
    oprot.trans.flush()
7905
 
7906
  def process_getCampaigns(self, seqid, iprot, oprot):
7907
    args = getCampaigns_args()
7908
    args.read(iprot)
7909
    iprot.readMessageEnd()
7910
    result = getCampaigns_result()
7911
    result.success = self._handler.getCampaigns(args.campaignName)
7912
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
7913
    result.write(oprot)
7914
    oprot.writeMessageEnd()
7915
    oprot.trans.flush()
7916
 
7917
  def process_deleteCampaign(self, seqid, iprot, oprot):
7918
    args = deleteCampaign_args()
7919
    args.read(iprot)
7920
    iprot.readMessageEnd()
7921
    result = deleteCampaign_result()
7922
    self._handler.deleteCampaign(args.campaignId)
7923
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
7924
    result.write(oprot)
7925
    oprot.writeMessageEnd()
7926
    oprot.trans.flush()
7927
 
7928
  def process_getAllCampaigns(self, seqid, iprot, oprot):
7929
    args = getAllCampaigns_args()
7930
    args.read(iprot)
7931
    iprot.readMessageEnd()
7932
    result = getAllCampaigns_result()
7933
    result.success = self._handler.getAllCampaigns()
7934
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
7935
    result.write(oprot)
7936
    oprot.writeMessageEnd()
7937
    oprot.trans.flush()
7938
 
9155 kshitij.so 7939
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
7940
    args = getActiveBannersForMobileSite_args()
7941
    args.read(iprot)
7942
    iprot.readMessageEnd()
7943
    result = getActiveBannersForMobileSite_result()
7944
    result.success = self._handler.getActiveBannersForMobileSite()
7945
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
7946
    result.write(oprot)
7947
    oprot.writeMessageEnd()
7948
    oprot.trans.flush()
7949
 
5944 mandeep.dh 7950
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
7951
    args = deleteSimilarItem_args()
7952
    args.read(iprot)
7953
    iprot.readMessageEnd()
7954
    result = deleteSimilarItem_result()
7955
    try:
7956
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
7957
    except CatalogServiceException, cex:
7958
      result.cex = cex
7959
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
7960
    result.write(oprot)
7961
    oprot.writeMessageEnd()
7962
    oprot.trans.flush()
7963
 
7964
  def process_checkSimilarItem(self, seqid, iprot, oprot):
7965
    args = checkSimilarItem_args()
7966
    args.read(iprot)
7967
    iprot.readMessageEnd()
7968
    result = checkSimilarItem_result()
7969
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
7970
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
7971
    result.write(oprot)
7972
    oprot.writeMessageEnd()
7973
    oprot.trans.flush()
7974
 
7975
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
7976
    args = validateRiskyStatus_args()
7977
    args.read(iprot)
7978
    iprot.readMessageEnd()
7979
    result = validateRiskyStatus_result()
7980
    self._handler.validateRiskyStatus(args.itemId)
7981
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
7982
    result.write(oprot)
7983
    oprot.writeMessageEnd()
7984
    oprot.trans.flush()
7985
 
7986
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
7987
    args = changeItemRiskyFlag_args()
7988
    args.read(iprot)
7989
    iprot.readMessageEnd()
7990
    result = changeItemRiskyFlag_result()
7991
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
7992
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
7993
    result.write(oprot)
7994
    oprot.writeMessageEnd()
7995
    oprot.trans.flush()
7996
 
7997
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
7998
    args = getItemsByRiskyFlag_args()
7999
    args.read(iprot)
8000
    iprot.readMessageEnd()
8001
    result = getItemsByRiskyFlag_result()
8002
    result.success = self._handler.getItemsByRiskyFlag()
8003
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
8004
    result.write(oprot)
8005
    oprot.writeMessageEnd()
8006
    oprot.trans.flush()
8007
 
8008
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
8009
    args = getItemsForMasterSheet_args()
8010
    args.read(iprot)
8011
    iprot.readMessageEnd()
8012
    result = getItemsForMasterSheet_result()
8013
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
8014
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
8015
    result.write(oprot)
8016
    oprot.writeMessageEnd()
8017
    oprot.trans.flush()
8018
 
8019
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
8020
    args = getSimilarItemsCatalogIds_args()
8021
    args.read(iprot)
8022
    iprot.readMessageEnd()
8023
    result = getSimilarItemsCatalogIds_result()
8024
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
8025
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
8026
    result.write(oprot)
8027
    oprot.writeMessageEnd()
8028
    oprot.trans.flush()
8029
 
8030
  def process_addProductNotification(self, seqid, iprot, oprot):
8031
    args = addProductNotification_args()
8032
    args.read(iprot)
8033
    iprot.readMessageEnd()
8034
    result = addProductNotification_result()
8035
    result.success = self._handler.addProductNotification(args.itemId, args.email)
8036
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
8037
    result.write(oprot)
8038
    oprot.writeMessageEnd()
8039
    oprot.trans.flush()
8040
 
8041
  def process_sendProductNotifications(self, seqid, iprot, oprot):
8042
    args = sendProductNotifications_args()
8043
    args.read(iprot)
8044
    iprot.readMessageEnd()
8045
    result = sendProductNotifications_result()
8046
    result.success = self._handler.sendProductNotifications()
8047
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
8048
    result.write(oprot)
8049
    oprot.writeMessageEnd()
8050
    oprot.trans.flush()
8051
 
8052
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
8053
    args = getAllBrandsByCategory_args()
8054
    args.read(iprot)
8055
    iprot.readMessageEnd()
8056
    result = getAllBrandsByCategory_result()
8057
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
8058
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
8059
    result.write(oprot)
8060
    oprot.writeMessageEnd()
8061
    oprot.trans.flush()
8062
 
8063
  def process_getAllBrands(self, seqid, iprot, oprot):
8064
    args = getAllBrands_args()
8065
    args.read(iprot)
8066
    iprot.readMessageEnd()
8067
    result = getAllBrands_result()
8068
    result.success = self._handler.getAllBrands()
8069
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
8070
    result.write(oprot)
8071
    oprot.writeMessageEnd()
8072
    oprot.trans.flush()
8073
 
8074
  def process_getAllSources(self, seqid, iprot, oprot):
8075
    args = getAllSources_args()
8076
    args.read(iprot)
8077
    iprot.readMessageEnd()
8078
    result = getAllSources_result()
8079
    result.success = self._handler.getAllSources()
8080
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
8081
    result.write(oprot)
8082
    oprot.writeMessageEnd()
8083
    oprot.trans.flush()
8084
 
8085
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
8086
    args = getItemPricingBySource_args()
8087
    args.read(iprot)
8088
    iprot.readMessageEnd()
8089
    result = getItemPricingBySource_result()
8090
    try:
8091
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
8092
    except CatalogServiceException, cex:
8093
      result.cex = cex
8094
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
8095
    result.write(oprot)
8096
    oprot.writeMessageEnd()
8097
    oprot.trans.flush()
8098
 
8099
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
8100
    args = addSourceItemPricing_args()
8101
    args.read(iprot)
8102
    iprot.readMessageEnd()
8103
    result = addSourceItemPricing_result()
8104
    try:
8105
      self._handler.addSourceItemPricing(args.sourceItemPricing)
8106
    except CatalogServiceException, cex:
8107
      result.cex = cex
8108
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
8109
    result.write(oprot)
8110
    oprot.writeMessageEnd()
8111
    oprot.trans.flush()
8112
 
8113
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
8114
    args = getAllSourcePricing_args()
8115
    args.read(iprot)
8116
    iprot.readMessageEnd()
8117
    result = getAllSourcePricing_result()
8118
    try:
8119
      result.success = self._handler.getAllSourcePricing(args.itemId)
8120
    except CatalogServiceException, cex:
8121
      result.cex = cex
8122
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
8123
    result.write(oprot)
8124
    oprot.writeMessageEnd()
8125
    oprot.trans.flush()
8126
 
8127
  def process_getItemForSource(self, seqid, iprot, oprot):
8128
    args = getItemForSource_args()
8129
    args.read(iprot)
8130
    iprot.readMessageEnd()
8131
    result = getItemForSource_result()
8132
    try:
8133
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
8134
    except CatalogServiceException, cex:
8135
      result.cex = cex
8136
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
8137
    result.write(oprot)
8138
    oprot.writeMessageEnd()
8139
    oprot.trans.flush()
8140
 
8141
  def process_searchItemsInRange(self, seqid, iprot, oprot):
8142
    args = searchItemsInRange_args()
8143
    args.read(iprot)
8144
    iprot.readMessageEnd()
8145
    result = searchItemsInRange_result()
8146
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
8147
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
8148
    result.write(oprot)
8149
    oprot.writeMessageEnd()
8150
    oprot.trans.flush()
8151
 
8152
  def process_getSearchResultCount(self, seqid, iprot, oprot):
8153
    args = getSearchResultCount_args()
8154
    args.read(iprot)
8155
    iprot.readMessageEnd()
8156
    result = getSearchResultCount_result()
8157
    result.success = self._handler.getSearchResultCount(args.searchTerms)
8158
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
8159
    result.write(oprot)
8160
    oprot.writeMessageEnd()
8161
    oprot.trans.flush()
8162
 
8163
  def process_getProductNotifications(self, seqid, iprot, oprot):
8164
    args = getProductNotifications_args()
8165
    args.read(iprot)
8166
    iprot.readMessageEnd()
8167
    result = getProductNotifications_result()
8168
    result.success = self._handler.getProductNotifications(args.startDateTime)
8169
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
8170
    result.write(oprot)
8171
    oprot.writeMessageEnd()
8172
    oprot.trans.flush()
8173
 
8174
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
8175
    args = getProductNotificationRequestCount_args()
8176
    args.read(iprot)
8177
    iprot.readMessageEnd()
8178
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 8179
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 8180
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
8181
    result.write(oprot)
8182
    oprot.writeMessageEnd()
8183
    oprot.trans.flush()
8184
 
8185
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
8186
    args = addAuthorizationLog_args()
8187
    args.read(iprot)
8188
    iprot.readMessageEnd()
8189
    result = addAuthorizationLog_result()
8190
    try:
8191
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
8192
    except CatalogServiceException, cex:
8193
      result.cex = cex
8194
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
8195
    result.write(oprot)
8196
    oprot.writeMessageEnd()
8197
    oprot.trans.flush()
8198
 
8199
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
8200
    args = addupdateVoucherForItem_args()
8201
    args.read(iprot)
8202
    iprot.readMessageEnd()
8203
    result = addupdateVoucherForItem_result()
8204
    try:
8205
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
8206
    except CatalogServiceException, cex:
8207
      result.cex = cex
8208
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
8209
    result.write(oprot)
8210
    oprot.writeMessageEnd()
8211
    oprot.trans.flush()
8212
 
8213
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
8214
    args = deleteVoucherForItem_args()
8215
    args.read(iprot)
8216
    iprot.readMessageEnd()
8217
    result = deleteVoucherForItem_result()
8218
    try:
8219
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
8220
    except CatalogServiceException, cex:
8221
      result.cex = cex
8222
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
8223
    result.write(oprot)
8224
    oprot.writeMessageEnd()
8225
    oprot.trans.flush()
8226
 
8227
  def process_getVoucherAmount(self, seqid, iprot, oprot):
8228
    args = getVoucherAmount_args()
8229
    args.read(iprot)
8230
    iprot.readMessageEnd()
8231
    result = getVoucherAmount_result()
8232
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
8233
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
8234
    result.write(oprot)
8235
    oprot.writeMessageEnd()
8236
    oprot.trans.flush()
8237
 
8238
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
8239
    args = getAllItemVouchers_args()
8240
    args.read(iprot)
8241
    iprot.readMessageEnd()
8242
    result = getAllItemVouchers_result()
8243
    result.success = self._handler.getAllItemVouchers(args.itemId)
8244
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
8245
    result.write(oprot)
8246
    oprot.writeMessageEnd()
8247
    oprot.trans.flush()
8248
 
8249
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
8250
    args = isValidCatalogItemId_args()
8251
    args.read(iprot)
8252
    iprot.readMessageEnd()
8253
    result = isValidCatalogItemId_result()
8254
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
8255
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
8256
    result.write(oprot)
8257
    oprot.writeMessageEnd()
8258
    oprot.trans.flush()
8259
 
6039 amit.gupta 8260
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
8261
    args = getVatPercentageForItem_args()
8262
    args.read(iprot)
8263
    iprot.readMessageEnd()
8264
    result = getVatPercentageForItem_result()
7340 amit.gupta 8265
    try:
8266
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
8267
    except CatalogServiceException, cex:
8268
      result.cex = cex
6039 amit.gupta 8269
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
8270
    result.write(oprot)
8271
    oprot.writeMessageEnd()
8272
    oprot.trans.flush()
5944 mandeep.dh 8273
 
6039 amit.gupta 8274
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
8275
    args = getVatAmountForItem_args()
8276
    args.read(iprot)
8277
    iprot.readMessageEnd()
8278
    result = getVatAmountForItem_result()
8279
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
8280
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
8281
    result.write(oprot)
8282
    oprot.writeMessageEnd()
8283
    oprot.trans.flush()
8284
 
6531 vikram.rag 8285
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
8286
    args = getAllIgnoredInventoryUpdateItemsList_args()
8287
    args.read(iprot)
8288
    iprot.readMessageEnd()
8289
    result = getAllIgnoredInventoryUpdateItemsList_result()
8290
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
8291
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
8292
    result.write(oprot)
8293
    oprot.writeMessageEnd()
8294
    oprot.trans.flush()
6039 amit.gupta 8295
 
6821 amar.kumar 8296
  def process_getAllAliveItems(self, seqid, iprot, oprot):
8297
    args = getAllAliveItems_args()
8298
    args.read(iprot)
8299
    iprot.readMessageEnd()
8300
    result = getAllAliveItems_result()
8301
    result.success = self._handler.getAllAliveItems()
8302
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
8303
    result.write(oprot)
8304
    oprot.writeMessageEnd()
8305
    oprot.trans.flush()
8306
 
6805 anupam.sin 8307
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
8308
    args = getInsuranceAmount_args()
8309
    args.read(iprot)
8310
    iprot.readMessageEnd()
8311
    result = getInsuranceAmount_result()
6921 anupam.sin 8312
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 8313
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
8314
    result.write(oprot)
8315
    oprot.writeMessageEnd()
8316
    oprot.trans.flush()
6531 vikram.rag 8317
 
6805 anupam.sin 8318
  def process_getInsurer(self, seqid, iprot, oprot):
8319
    args = getInsurer_args()
8320
    args.read(iprot)
8321
    iprot.readMessageEnd()
8322
    result = getInsurer_result()
8323
    result.success = self._handler.getInsurer(args.insurerId)
8324
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
8325
    result.write(oprot)
8326
    oprot.writeMessageEnd()
8327
    oprot.trans.flush()
8328
 
6838 vikram.rag 8329
  def process_getAllInsurers(self, seqid, iprot, oprot):
8330
    args = getAllInsurers_args()
8331
    args.read(iprot)
8332
    iprot.readMessageEnd()
8333
    result = getAllInsurers_result()
8334
    result.success = self._handler.getAllInsurers()
8335
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
8336
    result.write(oprot)
8337
    oprot.writeMessageEnd()
8338
    oprot.trans.flush()
6805 anupam.sin 8339
 
6962 rajveer 8340
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
8341
    args = updateInsuranceDeclaredAmount_args()
8342
    args.read(iprot)
8343
    iprot.readMessageEnd()
8344
    result = updateInsuranceDeclaredAmount_result()
8345
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
8346
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
8347
    result.write(oprot)
8348
    oprot.writeMessageEnd()
8349
    oprot.trans.flush()
6838 vikram.rag 8350
 
7190 amar.kumar 8351
  def process_getFreebieForItem(self, seqid, iprot, oprot):
8352
    args = getFreebieForItem_args()
8353
    args.read(iprot)
8354
    iprot.readMessageEnd()
8355
    result = getFreebieForItem_result()
8356
    result.success = self._handler.getFreebieForItem(args.itemId)
8357
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
8358
    result.write(oprot)
8359
    oprot.writeMessageEnd()
8360
    oprot.trans.flush()
6962 rajveer 8361
 
7190 amar.kumar 8362
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
8363
    args = addOrUpdateFreebieForItem_args()
8364
    args.read(iprot)
8365
    iprot.readMessageEnd()
8366
    result = addOrUpdateFreebieForItem_result()
8367
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
8368
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
8369
    result.write(oprot)
8370
    oprot.writeMessageEnd()
8371
    oprot.trans.flush()
8372
 
7272 amit.gupta 8373
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
8374
    args = addOrUpdateBrandInfo_args()
8375
    args.read(iprot)
8376
    iprot.readMessageEnd()
8377
    result = addOrUpdateBrandInfo_result()
8378
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
8379
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
8380
    result.write(oprot)
8381
    oprot.writeMessageEnd()
8382
    oprot.trans.flush()
8383
 
8384
  def process_getBrandInfo(self, seqid, iprot, oprot):
8385
    args = getBrandInfo_args()
8386
    args.read(iprot)
8387
    iprot.readMessageEnd()
8388
    result = getBrandInfo_result()
8389
    result.success = self._handler.getBrandInfo()
8390
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
8391
    result.write(oprot)
8392
    oprot.writeMessageEnd()
8393
    oprot.trans.flush()
8394
 
7256 rajveer 8395
  def process_getStorePricing(self, seqid, iprot, oprot):
8396
    args = getStorePricing_args()
8397
    args.read(iprot)
8398
    iprot.readMessageEnd()
8399
    result = getStorePricing_result()
8400
    result.success = self._handler.getStorePricing(args.itemId)
8401
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
8402
    result.write(oprot)
8403
    oprot.writeMessageEnd()
8404
    oprot.trans.flush()
7190 amar.kumar 8405
 
7306 rajveer 8406
  def process_getStorePricings(self, seqid, iprot, oprot):
8407
    args = getStorePricings_args()
8408
    args.read(iprot)
8409
    iprot.readMessageEnd()
8410
    result = getStorePricings_result()
8411
    result.success = self._handler.getStorePricings(args.itemIds)
8412
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
8413
    result.write(oprot)
8414
    oprot.writeMessageEnd()
8415
    oprot.trans.flush()
8416
 
7265 rajveer 8417
  def process_updateStorePricing(self, seqid, iprot, oprot):
8418
    args = updateStorePricing_args()
8419
    args.read(iprot)
8420
    iprot.readMessageEnd()
8421
    result = updateStorePricing_result()
7382 rajveer 8422
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 8423
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
8424
    result.write(oprot)
8425
    oprot.writeMessageEnd()
8426
    oprot.trans.flush()
7256 rajveer 8427
 
7281 kshitij.so 8428
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
8429
    args = getAllAmazonListedItems_args()
8430
    args.read(iprot)
8431
    iprot.readMessageEnd()
8432
    result = getAllAmazonListedItems_result()
8433
    result.success = self._handler.getAllAmazonListedItems()
8434
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
8435
    result.write(oprot)
8436
    oprot.writeMessageEnd()
8437
    oprot.trans.flush()
7265 rajveer 8438
 
8619 kshitij.so 8439
  def process_searchAmazonItems(self, seqid, iprot, oprot):
8440
    args = searchAmazonItems_args()
8441
    args.read(iprot)
8442
    iprot.readMessageEnd()
8443
    result = searchAmazonItems_result()
8444
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
8445
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
8446
    result.write(oprot)
8447
    oprot.writeMessageEnd()
8448
    oprot.trans.flush()
8449
 
8450
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
8451
    args = getAmazonSearchResultCount_args()
8452
    args.read(iprot)
8453
    iprot.readMessageEnd()
8454
    result = getAmazonSearchResultCount_result()
8455
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
8456
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
8457
    result.write(oprot)
8458
    oprot.writeMessageEnd()
8459
    oprot.trans.flush()
8460
 
8461
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
8462
    args = getCountForAmazonlistedItems_args()
8463
    args.read(iprot)
8464
    iprot.readMessageEnd()
8465
    result = getCountForAmazonlistedItems_result()
8466
    result.success = self._handler.getCountForAmazonlistedItems()
8467
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
8468
    result.write(oprot)
8469
    oprot.writeMessageEnd()
8470
    oprot.trans.flush()
8471
 
7281 kshitij.so 8472
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
8473
    args = getAmazonItemDetails_args()
8474
    args.read(iprot)
8475
    iprot.readMessageEnd()
8476
    result = getAmazonItemDetails_result()
8477
    result.success = self._handler.getAmazonItemDetails(args.itemId)
8478
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
8479
    result.write(oprot)
8480
    oprot.writeMessageEnd()
8481
    oprot.trans.flush()
8482
 
8483
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
8484
    args = updateAmazonItemDetails_args()
8485
    args.read(iprot)
8486
    iprot.readMessageEnd()
8487
    result = updateAmazonItemDetails_result()
8168 kshitij.so 8488
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 8489
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
8490
    result.write(oprot)
8491
    oprot.writeMessageEnd()
8492
    oprot.trans.flush()
8493
 
8494
  def process_addAmazonItem(self, seqid, iprot, oprot):
8495
    args = addAmazonItem_args()
8496
    args.read(iprot)
8497
    iprot.readMessageEnd()
8498
    result = addAmazonItem_result()
8499
    self._handler.addAmazonItem(args.amazonlisted)
8500
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
8501
    result.write(oprot)
8502
    oprot.writeMessageEnd()
8503
    oprot.trans.flush()
8504
 
7291 vikram.rag 8505
  def process_getAsinItems(self, seqid, iprot, oprot):
8506
    args = getAsinItems_args()
8507
    args.read(iprot)
8508
    iprot.readMessageEnd()
8509
    result = getAsinItems_result()
8510
    result.success = self._handler.getAsinItems()
8511
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
8512
    result.write(oprot)
8513
    oprot.writeMessageEnd()
8514
    oprot.trans.flush()
7281 kshitij.so 8515
 
7291 vikram.rag 8516
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
8517
    args = getAllFbaListedItems_args()
8518
    args.read(iprot)
8519
    iprot.readMessageEnd()
8520
    result = getAllFbaListedItems_result()
8521
    result.success = self._handler.getAllFbaListedItems()
8522
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
8523
    result.write(oprot)
8524
    oprot.writeMessageEnd()
8525
    oprot.trans.flush()
8526
 
8527
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
8528
    args = getAllNonFbaListedItems_args()
8529
    args.read(iprot)
8530
    iprot.readMessageEnd()
8531
    result = getAllNonFbaListedItems_result()
8532
    result.success = self._handler.getAllNonFbaListedItems()
8533
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
8534
    result.write(oprot)
8535
    oprot.writeMessageEnd()
8536
    oprot.trans.flush()
8537
 
7460 kshitij.so 8538
  def process_updateItemInventory(self, seqid, iprot, oprot):
8539
    args = updateItemInventory_args()
8540
    args.read(iprot)
8541
    iprot.readMessageEnd()
8542
    result = updateItemInventory_result()
8543
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
8544
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
8545
    result.write(oprot)
8546
    oprot.writeMessageEnd()
8547
    oprot.trans.flush()
7291 vikram.rag 8548
 
7770 kshitij.so 8549
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
8550
    args = updateTimestampForAmazonFeeds_args()
8551
    args.read(iprot)
8552
    iprot.readMessageEnd()
8553
    result = updateTimestampForAmazonFeeds_result()
8554
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
8555
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
8556
    result.write(oprot)
8557
    oprot.writeMessageEnd()
8558
    oprot.trans.flush()
7460 kshitij.so 8559
 
7897 amar.kumar 8560
  def process_getAllParentCategories(self, seqid, iprot, oprot):
8561
    args = getAllParentCategories_args()
8562
    args.read(iprot)
8563
    iprot.readMessageEnd()
8564
    result = getAllParentCategories_result()
8565
    result.success = self._handler.getAllParentCategories()
8566
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
8567
    result.write(oprot)
8568
    oprot.writeMessageEnd()
8569
    oprot.trans.flush()
7770 kshitij.so 8570
 
7977 kshitij.so 8571
  def process_addPageViewEvent(self, seqid, iprot, oprot):
8572
    args = addPageViewEvent_args()
8573
    args.read(iprot)
8574
    iprot.readMessageEnd()
8575
    result = addPageViewEvent_result()
8576
    self._handler.addPageViewEvent(args.pageViewEvents)
8577
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
8578
    result.write(oprot)
8579
    oprot.writeMessageEnd()
8580
    oprot.trans.flush()
7897 amar.kumar 8581
 
7977 kshitij.so 8582
  def process_addCartEvent(self, seqid, iprot, oprot):
8583
    args = addCartEvent_args()
8584
    args.read(iprot)
8585
    iprot.readMessageEnd()
8586
    result = addCartEvent_result()
8587
    self._handler.addCartEvent(args.cartEvents)
8588
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
8589
    result.write(oprot)
8590
    oprot.writeMessageEnd()
8591
    oprot.trans.flush()
8592
 
8182 amar.kumar 8593
  def process_addEbayItem(self, seqid, iprot, oprot):
8594
    args = addEbayItem_args()
8595
    args.read(iprot)
8596
    iprot.readMessageEnd()
8597
    result = addEbayItem_result()
8598
    self._handler.addEbayItem(args.ebayItem)
8599
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
8600
    result.write(oprot)
8601
    oprot.writeMessageEnd()
8602
    oprot.trans.flush()
8603
 
8604
  def process_getEbayItem(self, seqid, iprot, oprot):
8605
    args = getEbayItem_args()
8606
    args.read(iprot)
8607
    iprot.readMessageEnd()
8608
    result = getEbayItem_result()
8609
    result.success = self._handler.getEbayItem(args.listingId)
8610
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
8611
    result.write(oprot)
8612
    oprot.writeMessageEnd()
8613
    oprot.trans.flush()
8614
 
8615
  def process_updateEbayItem(self, seqid, iprot, oprot):
8616
    args = updateEbayItem_args()
8617
    args.read(iprot)
8618
    iprot.readMessageEnd()
8619
    result = updateEbayItem_result()
8620
    self._handler.updateEbayItem(args.ebayItem)
8621
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
8622
    result.write(oprot)
8623
    oprot.writeMessageEnd()
8624
    oprot.trans.flush()
8625
 
8139 kshitij.so 8626
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
8627
    args = getAmazonListedItems_args()
8628
    args.read(iprot)
8629
    iprot.readMessageEnd()
8630
    result = getAmazonListedItems_result()
8631
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
8632
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
8633
    result.write(oprot)
8634
    oprot.writeMessageEnd()
8635
    oprot.trans.flush()
7977 kshitij.so 8636
 
8168 kshitij.so 8637
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
8638
    args = updateAmazonAttributesInBulk_args()
8639
    args.read(iprot)
8640
    iprot.readMessageEnd()
8641
    result = updateAmazonAttributesInBulk_result()
8642
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
8643
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
8644
    result.write(oprot)
8645
    oprot.writeMessageEnd()
8646
    oprot.trans.flush()
8139 kshitij.so 8647
 
8379 vikram.rag 8648
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
8649
    args = getAllItemstoListOnFba_args()
8650
    args.read(iprot)
8651
    iprot.readMessageEnd()
8652
    result = getAllItemstoListOnFba_result()
8653
    result.success = self._handler.getAllItemstoListOnFba()
8654
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
8655
    result.write(oprot)
8656
    oprot.writeMessageEnd()
8657
    oprot.trans.flush()
8168 kshitij.so 8658
 
8379 vikram.rag 8659
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
8660
    args = getAllItemstoListOnNonFba_args()
8661
    args.read(iprot)
8662
    iprot.readMessageEnd()
8663
    result = getAllItemstoListOnNonFba_result()
8664
    result.success = self._handler.getAllItemstoListOnNonFba()
8665
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
8666
    result.write(oprot)
8667
    oprot.writeMessageEnd()
8668
    oprot.trans.flush()
8669
 
8619 kshitij.so 8670
  def process_updateAsin(self, seqid, iprot, oprot):
8671
    args = updateAsin_args()
8672
    args.read(iprot)
8673
    iprot.readMessageEnd()
8674
    result = updateAsin_result()
8675
    self._handler.updateAsin(args.item)
8676
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
8677
    result.write(oprot)
8678
    oprot.writeMessageEnd()
8679
    oprot.trans.flush()
8616 vikram.rag 8680
 
8739 vikram.rag 8681
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
8682
    args = addOrUpdateSnapdealItem_args()
8683
    args.read(iprot)
8684
    iprot.readMessageEnd()
8685
    result = addOrUpdateSnapdealItem_result()
8686
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
8687
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
8688
    result.write(oprot)
8689
    oprot.writeMessageEnd()
8690
    oprot.trans.flush()
8619 kshitij.so 8691
 
8739 vikram.rag 8692
  def process_getSnapdealItem(self, seqid, iprot, oprot):
8693
    args = getSnapdealItem_args()
8694
    args.read(iprot)
8695
    iprot.readMessageEnd()
8696
    result = getSnapdealItem_result()
8697
    result.success = self._handler.getSnapdealItem(args.item_id)
8698
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
8699
    result.write(oprot)
8700
    oprot.writeMessageEnd()
8701
    oprot.trans.flush()
8702
 
9242 kshitij.so 8703
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
8704
    args = getSnapdealItemDetails_args()
8705
    args.read(iprot)
8706
    iprot.readMessageEnd()
8707
    result = getSnapdealItemDetails_result()
8708
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
8709
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
8710
    result.write(oprot)
8711
    oprot.writeMessageEnd()
8712
    oprot.trans.flush()
8713
 
8739 vikram.rag 8714
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
8715
    args = getAllSnapdealItems_args()
8716
    args.read(iprot)
8717
    iprot.readMessageEnd()
8718
    result = getAllSnapdealItems_result()
8719
    result.success = self._handler.getAllSnapdealItems()
8720
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
8721
    result.write(oprot)
8722
    oprot.writeMessageEnd()
8723
    oprot.trans.flush()
8724
 
9242 kshitij.so 8725
  def process_getSnapdealItems(self, seqid, iprot, oprot):
8726
    args = getSnapdealItems_args()
8727
    args.read(iprot)
8728
    iprot.readMessageEnd()
8729
    result = getSnapdealItems_result()
8730
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
8731
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
8732
    result.write(oprot)
8733
    oprot.writeMessageEnd()
8734
    oprot.trans.flush()
8739 vikram.rag 8735
 
9242 kshitij.so 8736
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
8737
    args = searchSnapdealItems_args()
8738
    args.read(iprot)
8739
    iprot.readMessageEnd()
8740
    result = searchSnapdealItems_result()
8741
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
8742
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
8743
    result.write(oprot)
8744
    oprot.writeMessageEnd()
8745
    oprot.trans.flush()
8746
 
8747
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
8748
    args = getCountForSnapdealItems_args()
8749
    args.read(iprot)
8750
    iprot.readMessageEnd()
8751
    result = getCountForSnapdealItems_result()
8752
    result.success = self._handler.getCountForSnapdealItems()
8753
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
8754
    result.write(oprot)
8755
    oprot.writeMessageEnd()
8756
    oprot.trans.flush()
8757
 
8758
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
8759
    args = getSnapdealSearchResultCount_args()
8760
    args.read(iprot)
8761
    iprot.readMessageEnd()
8762
    result = getSnapdealSearchResultCount_result()
8763
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
8764
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
8765
    result.write(oprot)
8766
    oprot.writeMessageEnd()
8767
    oprot.trans.flush()
8768
 
9299 kshitij.so 8769
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
8770
    args = getPrefferedInsurerForItem_args()
8771
    args.read(iprot)
8772
    iprot.readMessageEnd()
8773
    result = getPrefferedInsurerForItem_result()
8774
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
8775
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
8776
    result.write(oprot)
8777
    oprot.writeMessageEnd()
8778
    oprot.trans.flush()
9242 kshitij.so 8779
 
9456 vikram.rag 8780
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
8781
    args = getSnapdealItembySkuAtSnapdeal_args()
8782
    args.read(iprot)
8783
    iprot.readMessageEnd()
8784
    result = getSnapdealItembySkuAtSnapdeal_result()
8785
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
8786
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
8787
    result.write(oprot)
8788
    oprot.writeMessageEnd()
8789
    oprot.trans.flush()
9299 kshitij.so 8790
 
9621 manish.sha 8791
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
8792
    args = getProductFeedSubmit_args()
8793
    args.read(iprot)
8794
    iprot.readMessageEnd()
8795
    result = getProductFeedSubmit_result()
8796
    try:
8797
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
8798
    except CatalogServiceException, cex:
8799
      result.cex = cex
8800
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
8801
    result.write(oprot)
8802
    oprot.writeMessageEnd()
8803
    oprot.trans.flush()
9456 vikram.rag 8804
 
9621 manish.sha 8805
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
8806
    args = addProductFeedSubmit_args()
8807
    args.read(iprot)
8808
    iprot.readMessageEnd()
8809
    result = addProductFeedSubmit_result()
8810
    try:
8811
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
8812
    except CatalogServiceException, cex:
8813
      result.cex = cex
8814
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
8815
    result.write(oprot)
8816
    oprot.writeMessageEnd()
8817
    oprot.trans.flush()
8818
 
8819
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
8820
    args = updateProductFeedSubmit_args()
8821
    args.read(iprot)
8822
    iprot.readMessageEnd()
8823
    result = updateProductFeedSubmit_result()
8824
    try:
8825
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
8826
    except CatalogServiceException, cex:
8827
      result.cex = cex
8828
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
8829
    result.write(oprot)
8830
    oprot.writeMessageEnd()
8831
    oprot.trans.flush()
8832
 
8833
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
8834
    args = deleteProductFeedSubmit_args()
8835
    args.read(iprot)
8836
    iprot.readMessageEnd()
8837
    result = deleteProductFeedSubmit_result()
8838
    try:
8839
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
8840
    except CatalogServiceException, cex:
8841
      result.cex = cex
8842
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
8843
    result.write(oprot)
8844
    oprot.writeMessageEnd()
8845
    oprot.trans.flush()
8846
 
8847
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
8848
    args = getAllProductFeedSubmit_args()
8849
    args.read(iprot)
8850
    iprot.readMessageEnd()
8851
    result = getAllProductFeedSubmit_result()
8852
    try:
8853
      result.success = self._handler.getAllProductFeedSubmit()
8854
    except CatalogServiceException, cex:
8855
      result.cex = cex
8856
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
8857
    result.write(oprot)
8858
    oprot.writeMessageEnd()
8859
    oprot.trans.flush()
8860
 
9724 kshitij.so 8861
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
8862
    args = getMarketplacedetailsForItem_args()
8863
    args.read(iprot)
8864
    iprot.readMessageEnd()
8865
    result = getMarketplacedetailsForItem_result()
8866
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
8867
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
8868
    result.write(oprot)
8869
    oprot.writeMessageEnd()
8870
    oprot.trans.flush()
9621 manish.sha 8871
 
9724 kshitij.so 8872
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
8873
    args = updateMarketplaceAttributesForItem_args()
8874
    args.read(iprot)
8875
    iprot.readMessageEnd()
8876
    result = updateMarketplaceAttributesForItem_result()
8877
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
8878
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
8879
    result.write(oprot)
8880
    oprot.writeMessageEnd()
8881
    oprot.trans.flush()
8882
 
9779 kshitij.so 8883
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
8884
    args = getCostingForMarketplace_args()
8885
    args.read(iprot)
8886
    iprot.readMessageEnd()
8887
    result = getCostingForMarketplace_result()
8888
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
8889
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
8890
    result.write(oprot)
8891
    oprot.writeMessageEnd()
8892
    oprot.trans.flush()
8893
 
9776 vikram.rag 8894
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
8895
    args = getMarketPlaceItemsForPriceUpdate_args()
8896
    args.read(iprot)
8897
    iprot.readMessageEnd()
8898
    result = getMarketPlaceItemsForPriceUpdate_result()
8899
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
8900
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
8901
    result.write(oprot)
8902
    oprot.writeMessageEnd()
8903
    oprot.trans.flush()
9724 kshitij.so 8904
 
9776 vikram.rag 8905
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
8906
    args = updateMarketPlacePriceUpdateStatus_args()
8907
    args.read(iprot)
8908
    iprot.readMessageEnd()
8909
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 8910
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 8911
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
8912
    result.write(oprot)
8913
    oprot.writeMessageEnd()
8914
    oprot.trans.flush()
8915
 
9861 rajveer 8916
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
8917
    args = updateItemHoldInventory_args()
8918
    args.read(iprot)
8919
    iprot.readMessageEnd()
8920
    result = updateItemHoldInventory_result()
8921
    self._handler.updateItemHoldInventory(args.itemHoldMap)
8922
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
8923
    result.write(oprot)
8924
    oprot.writeMessageEnd()
8925
    oprot.trans.flush()
9776 vikram.rag 8926
 
9895 vikram.rag 8927
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
8928
    args = updateNlcAtMarketplaces_args()
8929
    args.read(iprot)
8930
    iprot.readMessageEnd()
8931
    result = updateNlcAtMarketplaces_result()
8932
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
8933
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
8934
    result.write(oprot)
8935
    oprot.writeMessageEnd()
8936
    oprot.trans.flush()
9861 rajveer 8937
 
9945 vikram.rag 8938
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
8939
    args = getAllFlipkartItems_args()
8940
    args.read(iprot)
8941
    iprot.readMessageEnd()
8942
    result = getAllFlipkartItems_result()
8943
    result.success = self._handler.getAllFlipkartItems()
8944
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
8945
    result.write(oprot)
8946
    oprot.writeMessageEnd()
8947
    oprot.trans.flush()
9895 vikram.rag 8948
 
10097 kshitij.so 8949
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
8950
    args = addOrUpdateFlipkartItem_args()
8951
    args.read(iprot)
8952
    iprot.readMessageEnd()
8953
    result = addOrUpdateFlipkartItem_result()
8954
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
8955
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
8956
    result.write(oprot)
8957
    oprot.writeMessageEnd()
8958
    oprot.trans.flush()
9945 vikram.rag 8959
 
10097 kshitij.so 8960
  def process_getFlipkartItem(self, seqid, iprot, oprot):
8961
    args = getFlipkartItem_args()
8962
    args.read(iprot)
8963
    iprot.readMessageEnd()
8964
    result = getFlipkartItem_result()
8965
    result.success = self._handler.getFlipkartItem(args.item_id)
8966
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
8967
    result.write(oprot)
8968
    oprot.writeMessageEnd()
8969
    oprot.trans.flush()
8970
 
8971
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
8972
    args = getFlipkartItemDetails_args()
8973
    args.read(iprot)
8974
    iprot.readMessageEnd()
8975
    result = getFlipkartItemDetails_result()
8976
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
8977
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
8978
    result.write(oprot)
8979
    oprot.writeMessageEnd()
8980
    oprot.trans.flush()
8981
 
8982
  def process_getFlipkartItems(self, seqid, iprot, oprot):
8983
    args = getFlipkartItems_args()
8984
    args.read(iprot)
8985
    iprot.readMessageEnd()
8986
    result = getFlipkartItems_result()
8987
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
8988
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
8989
    result.write(oprot)
8990
    oprot.writeMessageEnd()
8991
    oprot.trans.flush()
8992
 
8993
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
8994
    args = searchFlipkartItems_args()
8995
    args.read(iprot)
8996
    iprot.readMessageEnd()
8997
    result = searchFlipkartItems_result()
8998
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
8999
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
9000
    result.write(oprot)
9001
    oprot.writeMessageEnd()
9002
    oprot.trans.flush()
9003
 
9004
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
9005
    args = getCountForFlipkartItems_args()
9006
    args.read(iprot)
9007
    iprot.readMessageEnd()
9008
    result = getCountForFlipkartItems_result()
9009
    result.success = self._handler.getCountForFlipkartItems()
9010
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
9011
    result.write(oprot)
9012
    oprot.writeMessageEnd()
9013
    oprot.trans.flush()
9014
 
9015
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
9016
    args = getFlipkartSearchResultCount_args()
9017
    args.read(iprot)
9018
    iprot.readMessageEnd()
9019
    result = getFlipkartSearchResultCount_result()
9020
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
9021
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
9022
    result.write(oprot)
9023
    oprot.writeMessageEnd()
9024
    oprot.trans.flush()
9025
 
9026
  def process_getAllFkItems(self, seqid, iprot, oprot):
9027
    args = getAllFkItems_args()
9028
    args.read(iprot)
9029
    iprot.readMessageEnd()
9030
    result = getAllFkItems_result()
9031
    result.success = self._handler.getAllFkItems()
9032
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
9033
    result.write(oprot)
9034
    oprot.writeMessageEnd()
9035
    oprot.trans.flush()
9036
 
10140 vikram.rag 9037
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
9038
    args = getFlipkartItemBySkyAtFlipkart_args()
9039
    args.read(iprot)
9040
    iprot.readMessageEnd()
9041
    result = getFlipkartItemBySkyAtFlipkart_result()
9042
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
9043
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
9044
    result.write(oprot)
9045
    oprot.writeMessageEnd()
9046
    oprot.trans.flush()
10097 kshitij.so 9047
 
11015 kshitij.so 9048
  def process_getMarketplaceHistory(self, seqid, iprot, oprot):
9049
    args = getMarketplaceHistory_args()
9050
    args.read(iprot)
9051
    iprot.readMessageEnd()
9052
    result = getMarketplaceHistory_result()
9053
    result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)
9054
    oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)
9055
    result.write(oprot)
9056
    oprot.writeMessageEnd()
9057
    oprot.trans.flush()
9058
 
10909 vikram.rag 9059
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
9060
    args = getAllFbbListedItems_args()
9061
    args.read(iprot)
9062
    iprot.readMessageEnd()
9063
    result = getAllFbbListedItems_result()
9064
    result.success = self._handler.getAllFbbListedItems()
9065
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
9066
    result.write(oprot)
9067
    oprot.writeMessageEnd()
9068
    oprot.trans.flush()
10140 vikram.rag 9069
 
10924 vikram.rag 9070
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
9071
    args = getAllFbbPricingItems_args()
9072
    args.read(iprot)
9073
    iprot.readMessageEnd()
9074
    result = getAllFbbPricingItems_result()
9075
    result.success = self._handler.getAllFbbPricingItems()
9076
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
9077
    result.write(oprot)
9078
    oprot.writeMessageEnd()
9079
    oprot.trans.flush()
10909 vikram.rag 9080
 
11015 kshitij.so 9081
  def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):
9082
    args = getCountForMarketplaceHistory_args()
9083
    args.read(iprot)
9084
    iprot.readMessageEnd()
9085
    result = getCountForMarketplaceHistory_result()
9086
    result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)
9087
    oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)
9088
    result.write(oprot)
9089
    oprot.writeMessageEnd()
9090
    oprot.trans.flush()
10924 vikram.rag 9091
 
11015 kshitij.so 9092
  def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):
9093
    args = getMarketplaceHistoryByDate_args()
9094
    args.read(iprot)
9095
    iprot.readMessageEnd()
9096
    result = getMarketplaceHistoryByDate_result()
9097
    result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)
9098
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
9099
    result.write(oprot)
9100
    oprot.writeMessageEnd()
9101
    oprot.trans.flush()
9102
 
11531 vikram.rag 9103
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
9104
    args = getPrivateDealDetails_args()
9105
    args.read(iprot)
9106
    iprot.readMessageEnd()
9107
    result = getPrivateDealDetails_result()
9108
    result.success = self._handler.getPrivateDealDetails(args.item_id)
9109
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
9110
    result.write(oprot)
9111
    oprot.writeMessageEnd()
9112
    oprot.trans.flush()
11015 kshitij.so 9113
 
11531 vikram.rag 9114
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
9115
    args = getPrivateDealItems_args()
9116
    args.read(iprot)
9117
    iprot.readMessageEnd()
9118
    result = getPrivateDealItems_result()
9119
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
9120
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
9121
    result.write(oprot)
9122
    oprot.writeMessageEnd()
9123
    oprot.trans.flush()
9124
 
11592 amit.gupta 9125
  def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):
9126
    args = getAllActivePrivateDeals_args()
9127
    args.read(iprot)
9128
    iprot.readMessageEnd()
9129
    result = getAllActivePrivateDeals_result()
11653 amit.gupta 9130
    result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)
11592 amit.gupta 9131
    oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)
9132
    result.write(oprot)
9133
    oprot.writeMessageEnd()
9134
    oprot.trans.flush()
9135
 
11531 vikram.rag 9136
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
9137
    args = addOrUpdatePrivateDeal_args()
9138
    args.read(iprot)
9139
    iprot.readMessageEnd()
9140
    result = addOrUpdatePrivateDeal_result()
9141
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
9142
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
9143
    result.write(oprot)
9144
    oprot.writeMessageEnd()
9145
    oprot.trans.flush()
9146
 
11635 vikram.rag 9147
  def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):
9148
    args = getPrivateDealsCatalogIds_args()
9149
    args.read(iprot)
9150
    iprot.readMessageEnd()
9151
    result = getPrivateDealsCatalogIds_result()
9152
    try:
9153
      result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)
9154
    except CatalogServiceException, cex:
9155
      result.cex = cex
9156
    oprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)
9157
    result.write(oprot)
9158
    oprot.writeMessageEnd()
9159
    oprot.trans.flush()
11531 vikram.rag 9160
 
11645 amit.gupta 9161
  def process_getPrivateDealsCount(self, seqid, iprot, oprot):
9162
    args = getPrivateDealsCount_args()
9163
    args.read(iprot)
9164
    iprot.readMessageEnd()
9165
    result = getPrivateDealsCount_result()
9166
    result.success = self._handler.getPrivateDealsCount()
9167
    oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)
9168
    result.write(oprot)
9169
    oprot.writeMessageEnd()
9170
    oprot.trans.flush()
11635 vikram.rag 9171
 
11905 kshitij.so 9172
  def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):
9173
    args = getAmazonOutSyncItems_args()
9174
    args.read(iprot)
9175
    iprot.readMessageEnd()
9176
    result = getAmazonOutSyncItems_result()
9177
    result.success = self._handler.getAmazonOutSyncItems(args.item_id)
9178
    oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)
9179
    result.write(oprot)
9180
    oprot.writeMessageEnd()
9181
    oprot.trans.flush()
11645 amit.gupta 9182
 
11905 kshitij.so 9183
  def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):
9184
    args = getAllPrivateDealsComparison_args()
9185
    args.read(iprot)
9186
    iprot.readMessageEnd()
9187
    result = getAllPrivateDealsComparison_result()
9188
    result.success = self._handler.getAllPrivateDealsComparison()
9189
    oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)
9190
    result.write(oprot)
9191
    oprot.writeMessageEnd()
9192
    oprot.trans.flush()
9193
 
12133 kshitij.so 9194
  def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):
9195
    args = getAllSnapdealMarketplaceItem_args()
9196
    args.read(iprot)
9197
    iprot.readMessageEnd()
9198
    result = getAllSnapdealMarketplaceItem_result()
9199
    result.success = self._handler.getAllSnapdealMarketplaceItem()
9200
    oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)
9201
    result.write(oprot)
9202
    oprot.writeMessageEnd()
9203
    oprot.trans.flush()
11905 kshitij.so 9204
 
12133 kshitij.so 9205
  def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):
9206
    args = getAllFlipkartMarketplaceItem_args()
9207
    args.read(iprot)
9208
    iprot.readMessageEnd()
9209
    result = getAllFlipkartMarketplaceItem_result()
9210
    result.success = self._handler.getAllFlipkartMarketplaceItem()
9211
    oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)
9212
    result.write(oprot)
9213
    oprot.writeMessageEnd()
9214
    oprot.trans.flush()
9215
 
12243 kshitij.so 9216
  def process_addCompetitorScraping(self, seqid, iprot, oprot):
9217
    args = addCompetitorScraping_args()
9218
    args.read(iprot)
9219
    iprot.readMessageEnd()
9220
    result = addCompetitorScraping_result()
9221
    self._handler.addCompetitorScraping(args.competitorPricingMap)
9222
    oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)
9223
    result.write(oprot)
9224
    oprot.writeMessageEnd()
9225
    oprot.trans.flush()
12133 kshitij.so 9226
 
12243 kshitij.so 9227
  def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):
9228
    args = getPreviousCompetitorScraping_args()
9229
    args.read(iprot)
9230
    iprot.readMessageEnd()
9231
    result = getPreviousCompetitorScraping_result()
9232
    result.success = self._handler.getPreviousCompetitorScraping(args.delta)
9233
    oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)
9234
    result.write(oprot)
9235
    oprot.writeMessageEnd()
9236
    oprot.trans.flush()
9237
 
12256 kshitij.so 9238
  def process_getUploadResultById(self, seqid, iprot, oprot):
9239
    args = getUploadResultById_args()
9240
    args.read(iprot)
9241
    iprot.readMessageEnd()
9242
    result = getUploadResultById_result()
9243
    result.success = self._handler.getUploadResultById(args.uploadId)
9244
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
9245
    result.write(oprot)
9246
    oprot.writeMessageEnd()
9247
    oprot.trans.flush()
12243 kshitij.so 9248
 
12363 kshitij.so 9249
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
9250
    args = addAmazonPromotion_args()
9251
    args.read(iprot)
9252
    iprot.readMessageEnd()
9253
    result = addAmazonPromotion_result()
12947 kshitij.so 9254
    try:
9255
      result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
9256
    except CatalogServiceException, cex:
9257
      result.cex = cex
12363 kshitij.so 9258
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
9259
    result.write(oprot)
9260
    oprot.writeMessageEnd()
9261
    oprot.trans.flush()
12256 kshitij.so 9262
 
12363 kshitij.so 9263
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
9264
    args = getAmazonPromotion_args()
9265
    args.read(iprot)
9266
    iprot.readMessageEnd()
9267
    result = getAmazonPromotion_result()
9268
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
9269
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
9270
    result.write(oprot)
9271
    oprot.writeMessageEnd()
9272
    oprot.trans.flush()
9273
 
9274
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
9275
    args = updateAmazonPromotion_args()
9276
    args.read(iprot)
9277
    iprot.readMessageEnd()
9278
    result = updateAmazonPromotion_result()
9279
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
9280
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
9281
    result.write(oprot)
9282
    oprot.writeMessageEnd()
9283
    oprot.trans.flush()
9284
 
12567 amit.gupta 9285
  def process_markPartiallyActive(self, seqid, iprot, oprot):
9286
    args = markPartiallyActive_args()
9287
    args.read(iprot)
9288
    iprot.readMessageEnd()
9289
    result = markPartiallyActive_result()
9290
    result.success = self._handler.markPartiallyActive(args.itemId, args.categoryId)
9291
    oprot.writeMessageBegin("markPartiallyActive", TMessageType.REPLY, seqid)
9292
    result.write(oprot)
9293
    oprot.writeMessageEnd()
9294
    oprot.trans.flush()
12363 kshitij.so 9295
 
12567 amit.gupta 9296
  def process_updateItemStateVat(self, seqid, iprot, oprot):
9297
    args = updateItemStateVat_args()
9298
    args.read(iprot)
9299
    iprot.readMessageEnd()
9300
    result = updateItemStateVat_result()
9301
    result.success = self._handler.updateItemStateVat(args.itemId, args.statevat)
9302
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9303
    result.write(oprot)
9304
    oprot.writeMessageEnd()
9305
    oprot.trans.flush()
9306
 
12620 amit.gupta 9307
  def process_getExAffiliateItemInfo(self, seqid, iprot, oprot):
9308
    args = getExAffiliateItemInfo_args()
9309
    args.read(iprot)
9310
    iprot.readMessageEnd()
9311
    result = getExAffiliateItemInfo_result()
9312
    result.success = self._handler.getExAffiliateItemInfo()
9313
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
9314
    result.write(oprot)
9315
    oprot.writeMessageEnd()
9316
    oprot.trans.flush()
12567 amit.gupta 9317
 
12888 kshitij.so 9318
  def process_getAllItemstoListOnFbg(self, seqid, iprot, oprot):
9319
    args = getAllItemstoListOnFbg_args()
9320
    args.read(iprot)
9321
    iprot.readMessageEnd()
9322
    result = getAllItemstoListOnFbg_result()
9323
    result.success = self._handler.getAllItemstoListOnFbg()
9324
    oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)
9325
    result.write(oprot)
9326
    oprot.writeMessageEnd()
9327
    oprot.trans.flush()
12620 amit.gupta 9328
 
12892 kshitij.so 9329
  def process_getAllFbgListedItems(self, seqid, iprot, oprot):
9330
    args = getAllFbgListedItems_args()
9331
    args.read(iprot)
9332
    iprot.readMessageEnd()
9333
    result = getAllFbgListedItems_result()
9334
    result.success = self._handler.getAllFbgListedItems()
9335
    oprot.writeMessageBegin("getAllFbgListedItems", TMessageType.REPLY, seqid)
9336
    result.write(oprot)
9337
    oprot.writeMessageEnd()
9338
    oprot.trans.flush()
12888 kshitij.so 9339
 
13136 amit.gupta 9340
  def process_checkServices(self, seqid, iprot, oprot):
9341
    args = checkServices_args()
9342
    args.read(iprot)
9343
    iprot.readMessageEnd()
9344
    result = checkServices_result()
9345
    try:
9346
      result.success = self._handler.checkServices(args.lines)
9347
    except CatalogServiceException, cex:
9348
      result.cex = cex
9349
    oprot.writeMessageBegin("checkServices", TMessageType.REPLY, seqid)
9350
    result.write(oprot)
9351
    oprot.writeMessageEnd()
9352
    oprot.trans.flush()
12892 kshitij.so 9353
 
13709 manish.sha 9354
  def process_addHsItem(self, seqid, iprot, oprot):
9355
    args = addHsItem_args()
9356
    args.read(iprot)
9357
    iprot.readMessageEnd()
9358
    result = addHsItem_result()
9359
    self._handler.addHsItem(args.hsItems)
9360
    oprot.writeMessageBegin("addHsItem", TMessageType.REPLY, seqid)
9361
    result.write(oprot)
9362
    oprot.writeMessageEnd()
9363
    oprot.trans.flush()
13136 amit.gupta 9364
 
13709 manish.sha 9365
  def process_getHsItem(self, seqid, iprot, oprot):
9366
    args = getHsItem_args()
9367
    args.read(iprot)
9368
    iprot.readMessageEnd()
9369
    result = getHsItem_result()
9370
    result.success = self._handler.getHsItem(args.hsItemId)
9371
    oprot.writeMessageBegin("getHsItem", TMessageType.REPLY, seqid)
9372
    result.write(oprot)
9373
    oprot.writeMessageEnd()
9374
    oprot.trans.flush()
9375
 
9376
  def process_updateHsItem(self, seqid, iprot, oprot):
9377
    args = updateHsItem_args()
9378
    args.read(iprot)
9379
    iprot.readMessageEnd()
9380
    result = updateHsItem_result()
9381
    self._handler.updateHsItem(args.hsItem)
9382
    oprot.writeMessageBegin("updateHsItem", TMessageType.REPLY, seqid)
9383
    result.write(oprot)
9384
    oprot.writeMessageEnd()
9385
    oprot.trans.flush()
9386
 
9387
 
5944 mandeep.dh 9388
# HELPER FUNCTIONS AND STRUCTURES
9389
 
9390
class addItem_args:
9391
  """
9392
  Attributes:
9393
   - item
9394
  """
9395
 
9396
  thrift_spec = (
9397
    None, # 0
9398
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9399
  )
9400
 
9401
  def __init__(self, item=None,):
9402
    self.item = item
9403
 
9404
  def read(self, iprot):
9405
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9406
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9407
      return
9408
    iprot.readStructBegin()
9409
    while True:
9410
      (fname, ftype, fid) = iprot.readFieldBegin()
9411
      if ftype == TType.STOP:
9412
        break
9413
      if fid == 1:
9414
        if ftype == TType.STRUCT:
9415
          self.item = Item()
9416
          self.item.read(iprot)
9417
        else:
9418
          iprot.skip(ftype)
9419
      else:
9420
        iprot.skip(ftype)
9421
      iprot.readFieldEnd()
9422
    iprot.readStructEnd()
9423
 
9424
  def write(self, oprot):
9425
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9426
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9427
      return
9428
    oprot.writeStructBegin('addItem_args')
9429
    if self.item is not None:
9430
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9431
      self.item.write(oprot)
9432
      oprot.writeFieldEnd()
9433
    oprot.writeFieldStop()
9434
    oprot.writeStructEnd()
9435
 
9436
  def validate(self):
9437
    return
9438
 
9439
 
9440
  def __repr__(self):
9441
    L = ['%s=%r' % (key, value)
9442
      for key, value in self.__dict__.iteritems()]
9443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9444
 
9445
  def __eq__(self, other):
9446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9447
 
9448
  def __ne__(self, other):
9449
    return not (self == other)
9450
 
9451
class addItem_result:
9452
  """
9453
  Attributes:
9454
   - success
9455
   - cex
9456
  """
9457
 
9458
  thrift_spec = (
9459
    (0, TType.I64, 'success', None, None, ), # 0
9460
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9461
  )
9462
 
9463
  def __init__(self, success=None, cex=None,):
9464
    self.success = success
9465
    self.cex = cex
9466
 
9467
  def read(self, iprot):
9468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9470
      return
9471
    iprot.readStructBegin()
9472
    while True:
9473
      (fname, ftype, fid) = iprot.readFieldBegin()
9474
      if ftype == TType.STOP:
9475
        break
9476
      if fid == 0:
9477
        if ftype == TType.I64:
9478
          self.success = iprot.readI64();
9479
        else:
9480
          iprot.skip(ftype)
9481
      elif fid == 1:
9482
        if ftype == TType.STRUCT:
9483
          self.cex = CatalogServiceException()
9484
          self.cex.read(iprot)
9485
        else:
9486
          iprot.skip(ftype)
9487
      else:
9488
        iprot.skip(ftype)
9489
      iprot.readFieldEnd()
9490
    iprot.readStructEnd()
9491
 
9492
  def write(self, oprot):
9493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9495
      return
9496
    oprot.writeStructBegin('addItem_result')
9497
    if self.success is not None:
9498
      oprot.writeFieldBegin('success', TType.I64, 0)
9499
      oprot.writeI64(self.success)
9500
      oprot.writeFieldEnd()
9501
    if self.cex is not None:
9502
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9503
      self.cex.write(oprot)
9504
      oprot.writeFieldEnd()
9505
    oprot.writeFieldStop()
9506
    oprot.writeStructEnd()
9507
 
9508
  def validate(self):
9509
    return
9510
 
9511
 
9512
  def __repr__(self):
9513
    L = ['%s=%r' % (key, value)
9514
      for key, value in self.__dict__.iteritems()]
9515
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9516
 
9517
  def __eq__(self, other):
9518
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9519
 
9520
  def __ne__(self, other):
9521
    return not (self == other)
9522
 
9523
class updateItem_args:
9524
  """
9525
  Attributes:
9526
   - item
9527
  """
9528
 
9529
  thrift_spec = (
9530
    None, # 0
9531
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9532
  )
9533
 
9534
  def __init__(self, item=None,):
9535
    self.item = item
9536
 
9537
  def read(self, iprot):
9538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9540
      return
9541
    iprot.readStructBegin()
9542
    while True:
9543
      (fname, ftype, fid) = iprot.readFieldBegin()
9544
      if ftype == TType.STOP:
9545
        break
9546
      if fid == 1:
9547
        if ftype == TType.STRUCT:
9548
          self.item = Item()
9549
          self.item.read(iprot)
9550
        else:
9551
          iprot.skip(ftype)
9552
      else:
9553
        iprot.skip(ftype)
9554
      iprot.readFieldEnd()
9555
    iprot.readStructEnd()
9556
 
9557
  def write(self, oprot):
9558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9560
      return
9561
    oprot.writeStructBegin('updateItem_args')
9562
    if self.item is not None:
9563
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9564
      self.item.write(oprot)
9565
      oprot.writeFieldEnd()
9566
    oprot.writeFieldStop()
9567
    oprot.writeStructEnd()
9568
 
9569
  def validate(self):
9570
    return
9571
 
9572
 
9573
  def __repr__(self):
9574
    L = ['%s=%r' % (key, value)
9575
      for key, value in self.__dict__.iteritems()]
9576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9577
 
9578
  def __eq__(self, other):
9579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9580
 
9581
  def __ne__(self, other):
9582
    return not (self == other)
9583
 
9584
class updateItem_result:
9585
  """
9586
  Attributes:
9587
   - success
9588
   - cex
9589
  """
9590
 
9591
  thrift_spec = (
9592
    (0, TType.I64, 'success', None, None, ), # 0
9593
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9594
  )
9595
 
9596
  def __init__(self, success=None, cex=None,):
9597
    self.success = success
9598
    self.cex = cex
9599
 
9600
  def read(self, iprot):
9601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9603
      return
9604
    iprot.readStructBegin()
9605
    while True:
9606
      (fname, ftype, fid) = iprot.readFieldBegin()
9607
      if ftype == TType.STOP:
9608
        break
9609
      if fid == 0:
9610
        if ftype == TType.I64:
9611
          self.success = iprot.readI64();
9612
        else:
9613
          iprot.skip(ftype)
9614
      elif fid == 1:
9615
        if ftype == TType.STRUCT:
9616
          self.cex = CatalogServiceException()
9617
          self.cex.read(iprot)
9618
        else:
9619
          iprot.skip(ftype)
9620
      else:
9621
        iprot.skip(ftype)
9622
      iprot.readFieldEnd()
9623
    iprot.readStructEnd()
9624
 
9625
  def write(self, oprot):
9626
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9627
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9628
      return
9629
    oprot.writeStructBegin('updateItem_result')
9630
    if self.success is not None:
9631
      oprot.writeFieldBegin('success', TType.I64, 0)
9632
      oprot.writeI64(self.success)
9633
      oprot.writeFieldEnd()
9634
    if self.cex is not None:
9635
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9636
      self.cex.write(oprot)
9637
      oprot.writeFieldEnd()
9638
    oprot.writeFieldStop()
9639
    oprot.writeStructEnd()
9640
 
9641
  def validate(self):
9642
    return
9643
 
9644
 
9645
  def __repr__(self):
9646
    L = ['%s=%r' % (key, value)
9647
      for key, value in self.__dict__.iteritems()]
9648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9649
 
9650
  def __eq__(self, other):
9651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9652
 
9653
  def __ne__(self, other):
9654
    return not (self == other)
9655
 
9656
class isActive_args:
9657
  """
9658
  Attributes:
9659
   - itemId
9660
  """
9661
 
9662
  thrift_spec = (
9663
    None, # 0
9664
    (1, TType.I64, 'itemId', None, None, ), # 1
9665
  )
9666
 
9667
  def __init__(self, itemId=None,):
9668
    self.itemId = itemId
9669
 
9670
  def read(self, iprot):
9671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9673
      return
9674
    iprot.readStructBegin()
9675
    while True:
9676
      (fname, ftype, fid) = iprot.readFieldBegin()
9677
      if ftype == TType.STOP:
9678
        break
9679
      if fid == 1:
9680
        if ftype == TType.I64:
9681
          self.itemId = iprot.readI64();
9682
        else:
9683
          iprot.skip(ftype)
9684
      else:
9685
        iprot.skip(ftype)
9686
      iprot.readFieldEnd()
9687
    iprot.readStructEnd()
9688
 
9689
  def write(self, oprot):
9690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9692
      return
9693
    oprot.writeStructBegin('isActive_args')
9694
    if self.itemId is not None:
9695
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9696
      oprot.writeI64(self.itemId)
9697
      oprot.writeFieldEnd()
9698
    oprot.writeFieldStop()
9699
    oprot.writeStructEnd()
9700
 
9701
  def validate(self):
9702
    return
9703
 
9704
 
9705
  def __repr__(self):
9706
    L = ['%s=%r' % (key, value)
9707
      for key, value in self.__dict__.iteritems()]
9708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9709
 
9710
  def __eq__(self, other):
9711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9712
 
9713
  def __ne__(self, other):
9714
    return not (self == other)
9715
 
9716
class isActive_result:
9717
  """
9718
  Attributes:
9719
   - success
9720
   - isex
9721
  """
9722
 
9723
  thrift_spec = (
9724
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
9725
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9726
  )
9727
 
9728
  def __init__(self, success=None, isex=None,):
9729
    self.success = success
9730
    self.isex = isex
9731
 
9732
  def read(self, iprot):
9733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9735
      return
9736
    iprot.readStructBegin()
9737
    while True:
9738
      (fname, ftype, fid) = iprot.readFieldBegin()
9739
      if ftype == TType.STOP:
9740
        break
9741
      if fid == 0:
9742
        if ftype == TType.STRUCT:
9743
          self.success = ItemShippingInfo()
9744
          self.success.read(iprot)
9745
        else:
9746
          iprot.skip(ftype)
9747
      elif fid == 1:
9748
        if ftype == TType.STRUCT:
9749
          self.isex = CatalogServiceException()
9750
          self.isex.read(iprot)
9751
        else:
9752
          iprot.skip(ftype)
9753
      else:
9754
        iprot.skip(ftype)
9755
      iprot.readFieldEnd()
9756
    iprot.readStructEnd()
9757
 
9758
  def write(self, oprot):
9759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9761
      return
9762
    oprot.writeStructBegin('isActive_result')
9763
    if self.success is not None:
9764
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9765
      self.success.write(oprot)
9766
      oprot.writeFieldEnd()
9767
    if self.isex is not None:
9768
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9769
      self.isex.write(oprot)
9770
      oprot.writeFieldEnd()
9771
    oprot.writeFieldStop()
9772
    oprot.writeStructEnd()
9773
 
9774
  def validate(self):
9775
    return
9776
 
9777
 
9778
  def __repr__(self):
9779
    L = ['%s=%r' % (key, value)
9780
      for key, value in self.__dict__.iteritems()]
9781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9782
 
9783
  def __eq__(self, other):
9784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9785
 
9786
  def __ne__(self, other):
9787
    return not (self == other)
9788
 
7438 amit.gupta 9789
class getItemsStatus_args:
9790
  """
9791
  Attributes:
9792
   - itemIds
9793
  """
9794
 
9795
  thrift_spec = (
9796
    None, # 0
9797
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
9798
  )
9799
 
9800
  def __init__(self, itemIds=None,):
9801
    self.itemIds = itemIds
9802
 
9803
  def read(self, iprot):
9804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9806
      return
9807
    iprot.readStructBegin()
9808
    while True:
9809
      (fname, ftype, fid) = iprot.readFieldBegin()
9810
      if ftype == TType.STOP:
9811
        break
9812
      if fid == 1:
9813
        if ftype == TType.LIST:
9814
          self.itemIds = []
8590 kshitij.so 9815
          (_etype33, _size30) = iprot.readListBegin()
9816
          for _i34 in xrange(_size30):
9817
            _elem35 = iprot.readI64();
9818
            self.itemIds.append(_elem35)
7438 amit.gupta 9819
          iprot.readListEnd()
9820
        else:
9821
          iprot.skip(ftype)
9822
      else:
9823
        iprot.skip(ftype)
9824
      iprot.readFieldEnd()
9825
    iprot.readStructEnd()
9826
 
9827
  def write(self, oprot):
9828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9830
      return
9831
    oprot.writeStructBegin('getItemsStatus_args')
9832
    if self.itemIds is not None:
9833
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
9834
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 9835
      for iter36 in self.itemIds:
9836
        oprot.writeI64(iter36)
7438 amit.gupta 9837
      oprot.writeListEnd()
9838
      oprot.writeFieldEnd()
9839
    oprot.writeFieldStop()
9840
    oprot.writeStructEnd()
9841
 
9842
  def validate(self):
9843
    return
9844
 
9845
 
9846
  def __repr__(self):
9847
    L = ['%s=%r' % (key, value)
9848
      for key, value in self.__dict__.iteritems()]
9849
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9850
 
9851
  def __eq__(self, other):
9852
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9853
 
9854
  def __ne__(self, other):
9855
    return not (self == other)
9856
 
9857
class getItemsStatus_result:
9858
  """
9859
  Attributes:
9860
   - success
9861
   - isex
9862
  """
9863
 
9864
  thrift_spec = (
9865
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
9866
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9867
  )
9868
 
9869
  def __init__(self, success=None, isex=None,):
9870
    self.success = success
9871
    self.isex = isex
9872
 
9873
  def read(self, iprot):
9874
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9875
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9876
      return
9877
    iprot.readStructBegin()
9878
    while True:
9879
      (fname, ftype, fid) = iprot.readFieldBegin()
9880
      if ftype == TType.STOP:
9881
        break
9882
      if fid == 0:
9883
        if ftype == TType.MAP:
9884
          self.success = {}
8590 kshitij.so 9885
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
9886
          for _i41 in xrange(_size37):
9887
            _key42 = iprot.readI64();
9888
            _val43 = iprot.readBool();
9889
            self.success[_key42] = _val43
7438 amit.gupta 9890
          iprot.readMapEnd()
9891
        else:
9892
          iprot.skip(ftype)
9893
      elif fid == 1:
9894
        if ftype == TType.STRUCT:
9895
          self.isex = CatalogServiceException()
9896
          self.isex.read(iprot)
9897
        else:
9898
          iprot.skip(ftype)
9899
      else:
9900
        iprot.skip(ftype)
9901
      iprot.readFieldEnd()
9902
    iprot.readStructEnd()
9903
 
9904
  def write(self, oprot):
9905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9907
      return
9908
    oprot.writeStructBegin('getItemsStatus_result')
9909
    if self.success is not None:
9910
      oprot.writeFieldBegin('success', TType.MAP, 0)
9911
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 9912
      for kiter44,viter45 in self.success.items():
9913
        oprot.writeI64(kiter44)
9914
        oprot.writeBool(viter45)
7438 amit.gupta 9915
      oprot.writeMapEnd()
9916
      oprot.writeFieldEnd()
9917
    if self.isex is not None:
9918
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9919
      self.isex.write(oprot)
9920
      oprot.writeFieldEnd()
9921
    oprot.writeFieldStop()
9922
    oprot.writeStructEnd()
9923
 
9924
  def validate(self):
9925
    return
9926
 
9927
 
9928
  def __repr__(self):
9929
    L = ['%s=%r' % (key, value)
9930
      for key, value in self.__dict__.iteritems()]
9931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9932
 
9933
  def __eq__(self, other):
9934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9935
 
9936
  def __ne__(self, other):
9937
    return not (self == other)
9938
 
5944 mandeep.dh 9939
class getItemStatusDescription_args:
9940
  """
9941
  Attributes:
9942
   - itemId
9943
  """
9944
 
9945
  thrift_spec = (
9946
    None, # 0
9947
    (1, TType.I64, 'itemId', None, None, ), # 1
9948
  )
9949
 
9950
  def __init__(self, itemId=None,):
9951
    self.itemId = itemId
9952
 
9953
  def read(self, iprot):
9954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9956
      return
9957
    iprot.readStructBegin()
9958
    while True:
9959
      (fname, ftype, fid) = iprot.readFieldBegin()
9960
      if ftype == TType.STOP:
9961
        break
9962
      if fid == 1:
9963
        if ftype == TType.I64:
9964
          self.itemId = iprot.readI64();
9965
        else:
9966
          iprot.skip(ftype)
9967
      else:
9968
        iprot.skip(ftype)
9969
      iprot.readFieldEnd()
9970
    iprot.readStructEnd()
9971
 
9972
  def write(self, oprot):
9973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9975
      return
9976
    oprot.writeStructBegin('getItemStatusDescription_args')
9977
    if self.itemId is not None:
9978
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9979
      oprot.writeI64(self.itemId)
9980
      oprot.writeFieldEnd()
9981
    oprot.writeFieldStop()
9982
    oprot.writeStructEnd()
9983
 
9984
  def validate(self):
9985
    return
9986
 
9987
 
9988
  def __repr__(self):
9989
    L = ['%s=%r' % (key, value)
9990
      for key, value in self.__dict__.iteritems()]
9991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9992
 
9993
  def __eq__(self, other):
9994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9995
 
9996
  def __ne__(self, other):
9997
    return not (self == other)
9998
 
9999
class getItemStatusDescription_result:
10000
  """
10001
  Attributes:
10002
   - success
10003
   - isex
10004
  """
10005
 
10006
  thrift_spec = (
10007
    (0, TType.STRING, 'success', None, None, ), # 0
10008
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10009
  )
10010
 
10011
  def __init__(self, success=None, isex=None,):
10012
    self.success = success
10013
    self.isex = isex
10014
 
10015
  def read(self, iprot):
10016
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10017
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10018
      return
10019
    iprot.readStructBegin()
10020
    while True:
10021
      (fname, ftype, fid) = iprot.readFieldBegin()
10022
      if ftype == TType.STOP:
10023
        break
10024
      if fid == 0:
10025
        if ftype == TType.STRING:
10026
          self.success = iprot.readString();
10027
        else:
10028
          iprot.skip(ftype)
10029
      elif fid == 1:
10030
        if ftype == TType.STRUCT:
10031
          self.isex = CatalogServiceException()
10032
          self.isex.read(iprot)
10033
        else:
10034
          iprot.skip(ftype)
10035
      else:
10036
        iprot.skip(ftype)
10037
      iprot.readFieldEnd()
10038
    iprot.readStructEnd()
10039
 
10040
  def write(self, oprot):
10041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10043
      return
10044
    oprot.writeStructBegin('getItemStatusDescription_result')
10045
    if self.success is not None:
10046
      oprot.writeFieldBegin('success', TType.STRING, 0)
10047
      oprot.writeString(self.success)
10048
      oprot.writeFieldEnd()
10049
    if self.isex is not None:
10050
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
10051
      self.isex.write(oprot)
10052
      oprot.writeFieldEnd()
10053
    oprot.writeFieldStop()
10054
    oprot.writeStructEnd()
10055
 
10056
  def validate(self):
10057
    return
10058
 
10059
 
10060
  def __repr__(self):
10061
    L = ['%s=%r' % (key, value)
10062
      for key, value in self.__dict__.iteritems()]
10063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10064
 
10065
  def __eq__(self, other):
10066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10067
 
10068
  def __ne__(self, other):
10069
    return not (self == other)
10070
 
10071
class startItemOn_args:
10072
  """
10073
  Attributes:
10074
   - item_id
10075
   - timestamp
10076
  """
10077
 
10078
  thrift_spec = (
10079
    None, # 0
10080
    (1, TType.I64, 'item_id', None, None, ), # 1
10081
    (2, TType.I64, 'timestamp', None, None, ), # 2
10082
  )
10083
 
10084
  def __init__(self, item_id=None, timestamp=None,):
10085
    self.item_id = item_id
10086
    self.timestamp = timestamp
10087
 
10088
  def read(self, iprot):
10089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10091
      return
10092
    iprot.readStructBegin()
10093
    while True:
10094
      (fname, ftype, fid) = iprot.readFieldBegin()
10095
      if ftype == TType.STOP:
10096
        break
10097
      if fid == 1:
10098
        if ftype == TType.I64:
10099
          self.item_id = iprot.readI64();
10100
        else:
10101
          iprot.skip(ftype)
10102
      elif fid == 2:
10103
        if ftype == TType.I64:
10104
          self.timestamp = iprot.readI64();
10105
        else:
10106
          iprot.skip(ftype)
10107
      else:
10108
        iprot.skip(ftype)
10109
      iprot.readFieldEnd()
10110
    iprot.readStructEnd()
10111
 
10112
  def write(self, oprot):
10113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10115
      return
10116
    oprot.writeStructBegin('startItemOn_args')
10117
    if self.item_id is not None:
10118
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10119
      oprot.writeI64(self.item_id)
10120
      oprot.writeFieldEnd()
10121
    if self.timestamp is not None:
10122
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10123
      oprot.writeI64(self.timestamp)
10124
      oprot.writeFieldEnd()
10125
    oprot.writeFieldStop()
10126
    oprot.writeStructEnd()
10127
 
10128
  def validate(self):
10129
    return
10130
 
10131
 
10132
  def __repr__(self):
10133
    L = ['%s=%r' % (key, value)
10134
      for key, value in self.__dict__.iteritems()]
10135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10136
 
10137
  def __eq__(self, other):
10138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10139
 
10140
  def __ne__(self, other):
10141
    return not (self == other)
10142
 
10143
class startItemOn_result:
10144
  """
10145
  Attributes:
10146
   - cex
10147
  """
10148
 
10149
  thrift_spec = (
10150
    None, # 0
10151
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10152
  )
10153
 
10154
  def __init__(self, cex=None,):
10155
    self.cex = cex
10156
 
10157
  def read(self, iprot):
10158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10160
      return
10161
    iprot.readStructBegin()
10162
    while True:
10163
      (fname, ftype, fid) = iprot.readFieldBegin()
10164
      if ftype == TType.STOP:
10165
        break
10166
      if fid == 1:
10167
        if ftype == TType.STRUCT:
10168
          self.cex = CatalogServiceException()
10169
          self.cex.read(iprot)
10170
        else:
10171
          iprot.skip(ftype)
10172
      else:
10173
        iprot.skip(ftype)
10174
      iprot.readFieldEnd()
10175
    iprot.readStructEnd()
10176
 
10177
  def write(self, oprot):
10178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10180
      return
10181
    oprot.writeStructBegin('startItemOn_result')
10182
    if self.cex is not None:
10183
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10184
      self.cex.write(oprot)
10185
      oprot.writeFieldEnd()
10186
    oprot.writeFieldStop()
10187
    oprot.writeStructEnd()
10188
 
10189
  def validate(self):
10190
    return
10191
 
10192
 
10193
  def __repr__(self):
10194
    L = ['%s=%r' % (key, value)
10195
      for key, value in self.__dict__.iteritems()]
10196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10197
 
10198
  def __eq__(self, other):
10199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10200
 
10201
  def __ne__(self, other):
10202
    return not (self == other)
10203
 
10204
class retireItemOn_args:
10205
  """
10206
  Attributes:
10207
   - item_id
10208
   - timestamp
10209
  """
10210
 
10211
  thrift_spec = (
10212
    None, # 0
10213
    (1, TType.I64, 'item_id', None, None, ), # 1
10214
    (2, TType.I64, 'timestamp', None, None, ), # 2
10215
  )
10216
 
10217
  def __init__(self, item_id=None, timestamp=None,):
10218
    self.item_id = item_id
10219
    self.timestamp = timestamp
10220
 
10221
  def read(self, iprot):
10222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10224
      return
10225
    iprot.readStructBegin()
10226
    while True:
10227
      (fname, ftype, fid) = iprot.readFieldBegin()
10228
      if ftype == TType.STOP:
10229
        break
10230
      if fid == 1:
10231
        if ftype == TType.I64:
10232
          self.item_id = iprot.readI64();
10233
        else:
10234
          iprot.skip(ftype)
10235
      elif fid == 2:
10236
        if ftype == TType.I64:
10237
          self.timestamp = iprot.readI64();
10238
        else:
10239
          iprot.skip(ftype)
10240
      else:
10241
        iprot.skip(ftype)
10242
      iprot.readFieldEnd()
10243
    iprot.readStructEnd()
10244
 
10245
  def write(self, oprot):
10246
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10247
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10248
      return
10249
    oprot.writeStructBegin('retireItemOn_args')
10250
    if self.item_id is not None:
10251
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10252
      oprot.writeI64(self.item_id)
10253
      oprot.writeFieldEnd()
10254
    if self.timestamp is not None:
10255
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10256
      oprot.writeI64(self.timestamp)
10257
      oprot.writeFieldEnd()
10258
    oprot.writeFieldStop()
10259
    oprot.writeStructEnd()
10260
 
10261
  def validate(self):
10262
    return
10263
 
10264
 
10265
  def __repr__(self):
10266
    L = ['%s=%r' % (key, value)
10267
      for key, value in self.__dict__.iteritems()]
10268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10269
 
10270
  def __eq__(self, other):
10271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10272
 
10273
  def __ne__(self, other):
10274
    return not (self == other)
10275
 
10276
class retireItemOn_result:
10277
  """
10278
  Attributes:
10279
   - cex
10280
  """
10281
 
10282
  thrift_spec = (
10283
    None, # 0
10284
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10285
  )
10286
 
10287
  def __init__(self, cex=None,):
10288
    self.cex = cex
10289
 
10290
  def read(self, iprot):
10291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10293
      return
10294
    iprot.readStructBegin()
10295
    while True:
10296
      (fname, ftype, fid) = iprot.readFieldBegin()
10297
      if ftype == TType.STOP:
10298
        break
10299
      if fid == 1:
10300
        if ftype == TType.STRUCT:
10301
          self.cex = CatalogServiceException()
10302
          self.cex.read(iprot)
10303
        else:
10304
          iprot.skip(ftype)
10305
      else:
10306
        iprot.skip(ftype)
10307
      iprot.readFieldEnd()
10308
    iprot.readStructEnd()
10309
 
10310
  def write(self, oprot):
10311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10313
      return
10314
    oprot.writeStructBegin('retireItemOn_result')
10315
    if self.cex is not None:
10316
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10317
      self.cex.write(oprot)
10318
      oprot.writeFieldEnd()
10319
    oprot.writeFieldStop()
10320
    oprot.writeStructEnd()
10321
 
10322
  def validate(self):
10323
    return
10324
 
10325
 
10326
  def __repr__(self):
10327
    L = ['%s=%r' % (key, value)
10328
      for key, value in self.__dict__.iteritems()]
10329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10330
 
10331
  def __eq__(self, other):
10332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10333
 
10334
  def __ne__(self, other):
10335
    return not (self == other)
10336
 
10337
class changeItemStatus_args:
10338
  """
10339
  Attributes:
10340
   - item_id
10341
   - timestamp
10342
   - newstatus
10343
  """
10344
 
10345
  thrift_spec = (
10346
    None, # 0
10347
    (1, TType.I64, 'item_id', None, None, ), # 1
10348
    (2, TType.I64, 'timestamp', None, None, ), # 2
10349
    (3, TType.I32, 'newstatus', None, None, ), # 3
10350
  )
10351
 
10352
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
10353
    self.item_id = item_id
10354
    self.timestamp = timestamp
10355
    self.newstatus = newstatus
10356
 
10357
  def read(self, iprot):
10358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10360
      return
10361
    iprot.readStructBegin()
10362
    while True:
10363
      (fname, ftype, fid) = iprot.readFieldBegin()
10364
      if ftype == TType.STOP:
10365
        break
10366
      if fid == 1:
10367
        if ftype == TType.I64:
10368
          self.item_id = iprot.readI64();
10369
        else:
10370
          iprot.skip(ftype)
10371
      elif fid == 2:
10372
        if ftype == TType.I64:
10373
          self.timestamp = iprot.readI64();
10374
        else:
10375
          iprot.skip(ftype)
10376
      elif fid == 3:
10377
        if ftype == TType.I32:
10378
          self.newstatus = iprot.readI32();
10379
        else:
10380
          iprot.skip(ftype)
10381
      else:
10382
        iprot.skip(ftype)
10383
      iprot.readFieldEnd()
10384
    iprot.readStructEnd()
10385
 
10386
  def write(self, oprot):
10387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10389
      return
10390
    oprot.writeStructBegin('changeItemStatus_args')
10391
    if self.item_id is not None:
10392
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10393
      oprot.writeI64(self.item_id)
10394
      oprot.writeFieldEnd()
10395
    if self.timestamp is not None:
10396
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10397
      oprot.writeI64(self.timestamp)
10398
      oprot.writeFieldEnd()
10399
    if self.newstatus is not None:
10400
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
10401
      oprot.writeI32(self.newstatus)
10402
      oprot.writeFieldEnd()
10403
    oprot.writeFieldStop()
10404
    oprot.writeStructEnd()
10405
 
10406
  def validate(self):
10407
    return
10408
 
10409
 
10410
  def __repr__(self):
10411
    L = ['%s=%r' % (key, value)
10412
      for key, value in self.__dict__.iteritems()]
10413
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10414
 
10415
  def __eq__(self, other):
10416
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10417
 
10418
  def __ne__(self, other):
10419
    return not (self == other)
10420
 
10421
class changeItemStatus_result:
10422
  """
10423
  Attributes:
10424
   - cex
10425
  """
10426
 
10427
  thrift_spec = (
10428
    None, # 0
10429
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10430
  )
10431
 
10432
  def __init__(self, cex=None,):
10433
    self.cex = cex
10434
 
10435
  def read(self, iprot):
10436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10438
      return
10439
    iprot.readStructBegin()
10440
    while True:
10441
      (fname, ftype, fid) = iprot.readFieldBegin()
10442
      if ftype == TType.STOP:
10443
        break
10444
      if fid == 1:
10445
        if ftype == TType.STRUCT:
10446
          self.cex = CatalogServiceException()
10447
          self.cex.read(iprot)
10448
        else:
10449
          iprot.skip(ftype)
10450
      else:
10451
        iprot.skip(ftype)
10452
      iprot.readFieldEnd()
10453
    iprot.readStructEnd()
10454
 
10455
  def write(self, oprot):
10456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10458
      return
10459
    oprot.writeStructBegin('changeItemStatus_result')
10460
    if self.cex is not None:
10461
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10462
      self.cex.write(oprot)
10463
      oprot.writeFieldEnd()
10464
    oprot.writeFieldStop()
10465
    oprot.writeStructEnd()
10466
 
10467
  def validate(self):
10468
    return
10469
 
10470
 
10471
  def __repr__(self):
10472
    L = ['%s=%r' % (key, value)
10473
      for key, value in self.__dict__.iteritems()]
10474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10475
 
10476
  def __eq__(self, other):
10477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10478
 
10479
  def __ne__(self, other):
10480
    return not (self == other)
10481
 
10482
class getItem_args:
10483
  """
10484
  Attributes:
10485
   - item_id
10486
  """
10487
 
10488
  thrift_spec = (
10489
    None, # 0
10490
    (1, TType.I64, 'item_id', None, None, ), # 1
10491
  )
10492
 
10493
  def __init__(self, item_id=None,):
10494
    self.item_id = item_id
10495
 
10496
  def read(self, iprot):
10497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10499
      return
10500
    iprot.readStructBegin()
10501
    while True:
10502
      (fname, ftype, fid) = iprot.readFieldBegin()
10503
      if ftype == TType.STOP:
10504
        break
10505
      if fid == 1:
10506
        if ftype == TType.I64:
10507
          self.item_id = iprot.readI64();
10508
        else:
10509
          iprot.skip(ftype)
10510
      else:
10511
        iprot.skip(ftype)
10512
      iprot.readFieldEnd()
10513
    iprot.readStructEnd()
10514
 
10515
  def write(self, oprot):
10516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10518
      return
10519
    oprot.writeStructBegin('getItem_args')
10520
    if self.item_id is not None:
10521
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10522
      oprot.writeI64(self.item_id)
10523
      oprot.writeFieldEnd()
10524
    oprot.writeFieldStop()
10525
    oprot.writeStructEnd()
10526
 
10527
  def validate(self):
10528
    return
10529
 
10530
 
10531
  def __repr__(self):
10532
    L = ['%s=%r' % (key, value)
10533
      for key, value in self.__dict__.iteritems()]
10534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10535
 
10536
  def __eq__(self, other):
10537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10538
 
10539
  def __ne__(self, other):
10540
    return not (self == other)
10541
 
10542
class getItem_result:
10543
  """
10544
  Attributes:
10545
   - success
10546
   - cex
10547
  """
10548
 
10549
  thrift_spec = (
10550
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10551
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10552
  )
10553
 
10554
  def __init__(self, success=None, cex=None,):
10555
    self.success = success
10556
    self.cex = cex
10557
 
10558
  def read(self, iprot):
10559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10561
      return
10562
    iprot.readStructBegin()
10563
    while True:
10564
      (fname, ftype, fid) = iprot.readFieldBegin()
10565
      if ftype == TType.STOP:
10566
        break
10567
      if fid == 0:
10568
        if ftype == TType.STRUCT:
10569
          self.success = Item()
10570
          self.success.read(iprot)
10571
        else:
10572
          iprot.skip(ftype)
10573
      elif fid == 1:
10574
        if ftype == TType.STRUCT:
10575
          self.cex = CatalogServiceException()
10576
          self.cex.read(iprot)
10577
        else:
10578
          iprot.skip(ftype)
10579
      else:
10580
        iprot.skip(ftype)
10581
      iprot.readFieldEnd()
10582
    iprot.readStructEnd()
10583
 
10584
  def write(self, oprot):
10585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10587
      return
10588
    oprot.writeStructBegin('getItem_result')
10589
    if self.success is not None:
10590
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10591
      self.success.write(oprot)
10592
      oprot.writeFieldEnd()
10593
    if self.cex is not None:
10594
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10595
      self.cex.write(oprot)
10596
      oprot.writeFieldEnd()
10597
    oprot.writeFieldStop()
10598
    oprot.writeStructEnd()
10599
 
10600
  def validate(self):
10601
    return
10602
 
10603
 
10604
  def __repr__(self):
10605
    L = ['%s=%r' % (key, value)
10606
      for key, value in self.__dict__.iteritems()]
10607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10608
 
10609
  def __eq__(self, other):
10610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10611
 
10612
  def __ne__(self, other):
10613
    return not (self == other)
10614
 
13493 amit.gupta 10615
class getItems_args:
10616
  """
10617
  Attributes:
10618
   - item_ids
10619
  """
10620
 
10621
  thrift_spec = (
10622
    None, # 0
10623
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
10624
  )
10625
 
10626
  def __init__(self, item_ids=None,):
10627
    self.item_ids = item_ids
10628
 
10629
  def read(self, iprot):
10630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10632
      return
10633
    iprot.readStructBegin()
10634
    while True:
10635
      (fname, ftype, fid) = iprot.readFieldBegin()
10636
      if ftype == TType.STOP:
10637
        break
10638
      if fid == 1:
10639
        if ftype == TType.LIST:
10640
          self.item_ids = []
10641
          (_etype49, _size46) = iprot.readListBegin()
10642
          for _i50 in xrange(_size46):
10643
            _elem51 = iprot.readI64();
10644
            self.item_ids.append(_elem51)
10645
          iprot.readListEnd()
10646
        else:
10647
          iprot.skip(ftype)
10648
      else:
10649
        iprot.skip(ftype)
10650
      iprot.readFieldEnd()
10651
    iprot.readStructEnd()
10652
 
10653
  def write(self, oprot):
10654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10656
      return
10657
    oprot.writeStructBegin('getItems_args')
10658
    if self.item_ids is not None:
10659
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
10660
      oprot.writeListBegin(TType.I64, len(self.item_ids))
10661
      for iter52 in self.item_ids:
10662
        oprot.writeI64(iter52)
10663
      oprot.writeListEnd()
10664
      oprot.writeFieldEnd()
10665
    oprot.writeFieldStop()
10666
    oprot.writeStructEnd()
10667
 
10668
  def validate(self):
10669
    return
10670
 
10671
 
10672
  def __repr__(self):
10673
    L = ['%s=%r' % (key, value)
10674
      for key, value in self.__dict__.iteritems()]
10675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10676
 
10677
  def __eq__(self, other):
10678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10679
 
10680
  def __ne__(self, other):
10681
    return not (self == other)
10682
 
10683
class getItems_result:
10684
  """
10685
  Attributes:
10686
   - success
10687
   - cex
10688
  """
10689
 
10690
  thrift_spec = (
10691
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10692
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10693
  )
10694
 
10695
  def __init__(self, success=None, cex=None,):
10696
    self.success = success
10697
    self.cex = cex
10698
 
10699
  def read(self, iprot):
10700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10702
      return
10703
    iprot.readStructBegin()
10704
    while True:
10705
      (fname, ftype, fid) = iprot.readFieldBegin()
10706
      if ftype == TType.STOP:
10707
        break
10708
      if fid == 0:
10709
        if ftype == TType.MAP:
10710
          self.success = {}
10711
          (_ktype54, _vtype55, _size53 ) = iprot.readMapBegin() 
10712
          for _i57 in xrange(_size53):
10713
            _key58 = iprot.readI64();
10714
            _val59 = Item()
10715
            _val59.read(iprot)
10716
            self.success[_key58] = _val59
10717
          iprot.readMapEnd()
10718
        else:
10719
          iprot.skip(ftype)
10720
      elif fid == 1:
10721
        if ftype == TType.STRUCT:
10722
          self.cex = CatalogServiceException()
10723
          self.cex.read(iprot)
10724
        else:
10725
          iprot.skip(ftype)
10726
      else:
10727
        iprot.skip(ftype)
10728
      iprot.readFieldEnd()
10729
    iprot.readStructEnd()
10730
 
10731
  def write(self, oprot):
10732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10734
      return
10735
    oprot.writeStructBegin('getItems_result')
10736
    if self.success is not None:
10737
      oprot.writeFieldBegin('success', TType.MAP, 0)
10738
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
10739
      for kiter60,viter61 in self.success.items():
10740
        oprot.writeI64(kiter60)
10741
        viter61.write(oprot)
10742
      oprot.writeMapEnd()
10743
      oprot.writeFieldEnd()
10744
    if self.cex is not None:
10745
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10746
      self.cex.write(oprot)
10747
      oprot.writeFieldEnd()
10748
    oprot.writeFieldStop()
10749
    oprot.writeStructEnd()
10750
 
10751
  def validate(self):
10752
    return
10753
 
10754
 
10755
  def __repr__(self):
10756
    L = ['%s=%r' % (key, value)
10757
      for key, value in self.__dict__.iteritems()]
10758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10759
 
10760
  def __eq__(self, other):
10761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10762
 
10763
  def __ne__(self, other):
10764
    return not (self == other)
10765
 
5944 mandeep.dh 10766
class getItemsByCatalogId_args:
10767
  """
10768
  Attributes:
10769
   - catalog_item_id
10770
  """
10771
 
10772
  thrift_spec = (
10773
    None, # 0
10774
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10775
  )
10776
 
10777
  def __init__(self, catalog_item_id=None,):
10778
    self.catalog_item_id = catalog_item_id
10779
 
10780
  def read(self, iprot):
10781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10783
      return
10784
    iprot.readStructBegin()
10785
    while True:
10786
      (fname, ftype, fid) = iprot.readFieldBegin()
10787
      if ftype == TType.STOP:
10788
        break
10789
      if fid == 1:
10790
        if ftype == TType.I64:
10791
          self.catalog_item_id = iprot.readI64();
10792
        else:
10793
          iprot.skip(ftype)
10794
      else:
10795
        iprot.skip(ftype)
10796
      iprot.readFieldEnd()
10797
    iprot.readStructEnd()
10798
 
10799
  def write(self, oprot):
10800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10802
      return
10803
    oprot.writeStructBegin('getItemsByCatalogId_args')
10804
    if self.catalog_item_id is not None:
10805
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10806
      oprot.writeI64(self.catalog_item_id)
10807
      oprot.writeFieldEnd()
10808
    oprot.writeFieldStop()
10809
    oprot.writeStructEnd()
10810
 
10811
  def validate(self):
10812
    return
10813
 
10814
 
10815
  def __repr__(self):
10816
    L = ['%s=%r' % (key, value)
10817
      for key, value in self.__dict__.iteritems()]
10818
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10819
 
10820
  def __eq__(self, other):
10821
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10822
 
10823
  def __ne__(self, other):
10824
    return not (self == other)
10825
 
10826
class getItemsByCatalogId_result:
10827
  """
10828
  Attributes:
10829
   - success
10830
   - cex
10831
  """
10832
 
10833
  thrift_spec = (
10834
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10835
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10836
  )
10837
 
10838
  def __init__(self, success=None, cex=None,):
10839
    self.success = success
10840
    self.cex = cex
10841
 
10842
  def read(self, iprot):
10843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10845
      return
10846
    iprot.readStructBegin()
10847
    while True:
10848
      (fname, ftype, fid) = iprot.readFieldBegin()
10849
      if ftype == TType.STOP:
10850
        break
10851
      if fid == 0:
10852
        if ftype == TType.LIST:
10853
          self.success = []
13493 amit.gupta 10854
          (_etype65, _size62) = iprot.readListBegin()
10855
          for _i66 in xrange(_size62):
10856
            _elem67 = Item()
10857
            _elem67.read(iprot)
10858
            self.success.append(_elem67)
5944 mandeep.dh 10859
          iprot.readListEnd()
10860
        else:
10861
          iprot.skip(ftype)
10862
      elif fid == 1:
10863
        if ftype == TType.STRUCT:
10864
          self.cex = CatalogServiceException()
10865
          self.cex.read(iprot)
10866
        else:
10867
          iprot.skip(ftype)
10868
      else:
10869
        iprot.skip(ftype)
10870
      iprot.readFieldEnd()
10871
    iprot.readStructEnd()
10872
 
10873
  def write(self, oprot):
10874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10876
      return
10877
    oprot.writeStructBegin('getItemsByCatalogId_result')
10878
    if self.success is not None:
10879
      oprot.writeFieldBegin('success', TType.LIST, 0)
10880
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 10881
      for iter68 in self.success:
10882
        iter68.write(oprot)
5944 mandeep.dh 10883
      oprot.writeListEnd()
10884
      oprot.writeFieldEnd()
10885
    if self.cex is not None:
10886
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10887
      self.cex.write(oprot)
10888
      oprot.writeFieldEnd()
10889
    oprot.writeFieldStop()
10890
    oprot.writeStructEnd()
10891
 
10892
  def validate(self):
10893
    return
10894
 
10895
 
10896
  def __repr__(self):
10897
    L = ['%s=%r' % (key, value)
10898
      for key, value in self.__dict__.iteritems()]
10899
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10900
 
10901
  def __eq__(self, other):
10902
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10903
 
10904
  def __ne__(self, other):
10905
    return not (self == other)
10906
 
10907
class getValidItemsByCatalogId_args:
10908
  """
10909
  Attributes:
10910
   - catalog_item_id
10911
  """
10912
 
10913
  thrift_spec = (
10914
    None, # 0
10915
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10916
  )
10917
 
10918
  def __init__(self, catalog_item_id=None,):
10919
    self.catalog_item_id = catalog_item_id
10920
 
10921
  def read(self, iprot):
10922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10924
      return
10925
    iprot.readStructBegin()
10926
    while True:
10927
      (fname, ftype, fid) = iprot.readFieldBegin()
10928
      if ftype == TType.STOP:
10929
        break
10930
      if fid == 1:
10931
        if ftype == TType.I64:
10932
          self.catalog_item_id = iprot.readI64();
10933
        else:
10934
          iprot.skip(ftype)
10935
      else:
10936
        iprot.skip(ftype)
10937
      iprot.readFieldEnd()
10938
    iprot.readStructEnd()
10939
 
10940
  def write(self, oprot):
10941
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10942
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10943
      return
10944
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
10945
    if self.catalog_item_id is not None:
10946
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10947
      oprot.writeI64(self.catalog_item_id)
10948
      oprot.writeFieldEnd()
10949
    oprot.writeFieldStop()
10950
    oprot.writeStructEnd()
10951
 
10952
  def validate(self):
10953
    return
10954
 
10955
 
10956
  def __repr__(self):
10957
    L = ['%s=%r' % (key, value)
10958
      for key, value in self.__dict__.iteritems()]
10959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10960
 
10961
  def __eq__(self, other):
10962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10963
 
10964
  def __ne__(self, other):
10965
    return not (self == other)
10966
 
10967
class getValidItemsByCatalogId_result:
10968
  """
10969
  Attributes:
10970
   - success
10971
   - cex
10972
  """
10973
 
10974
  thrift_spec = (
10975
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10976
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10977
  )
10978
 
10979
  def __init__(self, success=None, cex=None,):
10980
    self.success = success
10981
    self.cex = cex
10982
 
10983
  def read(self, iprot):
10984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10986
      return
10987
    iprot.readStructBegin()
10988
    while True:
10989
      (fname, ftype, fid) = iprot.readFieldBegin()
10990
      if ftype == TType.STOP:
10991
        break
10992
      if fid == 0:
10993
        if ftype == TType.LIST:
10994
          self.success = []
13493 amit.gupta 10995
          (_etype72, _size69) = iprot.readListBegin()
10996
          for _i73 in xrange(_size69):
10997
            _elem74 = Item()
10998
            _elem74.read(iprot)
10999
            self.success.append(_elem74)
5944 mandeep.dh 11000
          iprot.readListEnd()
11001
        else:
11002
          iprot.skip(ftype)
11003
      elif fid == 1:
11004
        if ftype == TType.STRUCT:
11005
          self.cex = CatalogServiceException()
11006
          self.cex.read(iprot)
11007
        else:
11008
          iprot.skip(ftype)
11009
      else:
11010
        iprot.skip(ftype)
11011
      iprot.readFieldEnd()
11012
    iprot.readStructEnd()
11013
 
11014
  def write(self, oprot):
11015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11017
      return
11018
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
11019
    if self.success is not None:
11020
      oprot.writeFieldBegin('success', TType.LIST, 0)
11021
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11022
      for iter75 in self.success:
11023
        iter75.write(oprot)
5944 mandeep.dh 11024
      oprot.writeListEnd()
11025
      oprot.writeFieldEnd()
11026
    if self.cex is not None:
11027
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11028
      self.cex.write(oprot)
11029
      oprot.writeFieldEnd()
11030
    oprot.writeFieldStop()
11031
    oprot.writeStructEnd()
11032
 
11033
  def validate(self):
11034
    return
11035
 
11036
 
11037
  def __repr__(self):
11038
    L = ['%s=%r' % (key, value)
11039
      for key, value in self.__dict__.iteritems()]
11040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11041
 
11042
  def __eq__(self, other):
11043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11044
 
11045
  def __ne__(self, other):
11046
    return not (self == other)
11047
 
11048
class getAllItems_args:
11049
  """
11050
  Attributes:
11051
   - isActive
11052
  """
11053
 
11054
  thrift_spec = (
11055
    None, # 0
11056
    (1, TType.BOOL, 'isActive', None, None, ), # 1
11057
  )
11058
 
11059
  def __init__(self, isActive=None,):
11060
    self.isActive = isActive
11061
 
11062
  def read(self, iprot):
11063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11065
      return
11066
    iprot.readStructBegin()
11067
    while True:
11068
      (fname, ftype, fid) = iprot.readFieldBegin()
11069
      if ftype == TType.STOP:
11070
        break
11071
      if fid == 1:
11072
        if ftype == TType.BOOL:
11073
          self.isActive = iprot.readBool();
11074
        else:
11075
          iprot.skip(ftype)
11076
      else:
11077
        iprot.skip(ftype)
11078
      iprot.readFieldEnd()
11079
    iprot.readStructEnd()
11080
 
11081
  def write(self, oprot):
11082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11084
      return
11085
    oprot.writeStructBegin('getAllItems_args')
11086
    if self.isActive is not None:
11087
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
11088
      oprot.writeBool(self.isActive)
11089
      oprot.writeFieldEnd()
11090
    oprot.writeFieldStop()
11091
    oprot.writeStructEnd()
11092
 
11093
  def validate(self):
11094
    return
11095
 
11096
 
11097
  def __repr__(self):
11098
    L = ['%s=%r' % (key, value)
11099
      for key, value in self.__dict__.iteritems()]
11100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11101
 
11102
  def __eq__(self, other):
11103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11104
 
11105
  def __ne__(self, other):
11106
    return not (self == other)
11107
 
11108
class getAllItems_result:
11109
  """
11110
  Attributes:
11111
   - success
11112
   - cex
11113
  """
11114
 
11115
  thrift_spec = (
11116
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11117
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11118
  )
11119
 
11120
  def __init__(self, success=None, cex=None,):
11121
    self.success = success
11122
    self.cex = cex
11123
 
11124
  def read(self, iprot):
11125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11127
      return
11128
    iprot.readStructBegin()
11129
    while True:
11130
      (fname, ftype, fid) = iprot.readFieldBegin()
11131
      if ftype == TType.STOP:
11132
        break
11133
      if fid == 0:
11134
        if ftype == TType.LIST:
11135
          self.success = []
13493 amit.gupta 11136
          (_etype79, _size76) = iprot.readListBegin()
11137
          for _i80 in xrange(_size76):
11138
            _elem81 = Item()
11139
            _elem81.read(iprot)
11140
            self.success.append(_elem81)
5944 mandeep.dh 11141
          iprot.readListEnd()
11142
        else:
11143
          iprot.skip(ftype)
11144
      elif fid == 1:
11145
        if ftype == TType.STRUCT:
11146
          self.cex = CatalogServiceException()
11147
          self.cex.read(iprot)
11148
        else:
11149
          iprot.skip(ftype)
11150
      else:
11151
        iprot.skip(ftype)
11152
      iprot.readFieldEnd()
11153
    iprot.readStructEnd()
11154
 
11155
  def write(self, oprot):
11156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11158
      return
11159
    oprot.writeStructBegin('getAllItems_result')
11160
    if self.success is not None:
11161
      oprot.writeFieldBegin('success', TType.LIST, 0)
11162
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11163
      for iter82 in self.success:
11164
        iter82.write(oprot)
5944 mandeep.dh 11165
      oprot.writeListEnd()
11166
      oprot.writeFieldEnd()
11167
    if self.cex is not None:
11168
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11169
      self.cex.write(oprot)
11170
      oprot.writeFieldEnd()
11171
    oprot.writeFieldStop()
11172
    oprot.writeStructEnd()
11173
 
11174
  def validate(self):
11175
    return
11176
 
11177
 
11178
  def __repr__(self):
11179
    L = ['%s=%r' % (key, value)
11180
      for key, value in self.__dict__.iteritems()]
11181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11182
 
11183
  def __eq__(self, other):
11184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11185
 
11186
  def __ne__(self, other):
11187
    return not (self == other)
11188
 
11189
class getAllItemsByStatus_args:
11190
  """
11191
  Attributes:
11192
   - itemStatus
11193
  """
11194
 
11195
  thrift_spec = (
11196
    None, # 0
11197
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11198
  )
11199
 
11200
  def __init__(self, itemStatus=None,):
11201
    self.itemStatus = itemStatus
11202
 
11203
  def read(self, iprot):
11204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11206
      return
11207
    iprot.readStructBegin()
11208
    while True:
11209
      (fname, ftype, fid) = iprot.readFieldBegin()
11210
      if ftype == TType.STOP:
11211
        break
11212
      if fid == 1:
11213
        if ftype == TType.I32:
11214
          self.itemStatus = iprot.readI32();
11215
        else:
11216
          iprot.skip(ftype)
11217
      else:
11218
        iprot.skip(ftype)
11219
      iprot.readFieldEnd()
11220
    iprot.readStructEnd()
11221
 
11222
  def write(self, oprot):
11223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11225
      return
11226
    oprot.writeStructBegin('getAllItemsByStatus_args')
11227
    if self.itemStatus is not None:
11228
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11229
      oprot.writeI32(self.itemStatus)
11230
      oprot.writeFieldEnd()
11231
    oprot.writeFieldStop()
11232
    oprot.writeStructEnd()
11233
 
11234
  def validate(self):
11235
    return
11236
 
11237
 
11238
  def __repr__(self):
11239
    L = ['%s=%r' % (key, value)
11240
      for key, value in self.__dict__.iteritems()]
11241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11242
 
11243
  def __eq__(self, other):
11244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11245
 
11246
  def __ne__(self, other):
11247
    return not (self == other)
11248
 
11249
class getAllItemsByStatus_result:
11250
  """
11251
  Attributes:
11252
   - success
11253
   - cex
11254
  """
11255
 
11256
  thrift_spec = (
11257
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11258
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11259
  )
11260
 
11261
  def __init__(self, success=None, cex=None,):
11262
    self.success = success
11263
    self.cex = cex
11264
 
11265
  def read(self, iprot):
11266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11268
      return
11269
    iprot.readStructBegin()
11270
    while True:
11271
      (fname, ftype, fid) = iprot.readFieldBegin()
11272
      if ftype == TType.STOP:
11273
        break
11274
      if fid == 0:
11275
        if ftype == TType.LIST:
11276
          self.success = []
13493 amit.gupta 11277
          (_etype86, _size83) = iprot.readListBegin()
11278
          for _i87 in xrange(_size83):
11279
            _elem88 = Item()
11280
            _elem88.read(iprot)
11281
            self.success.append(_elem88)
5944 mandeep.dh 11282
          iprot.readListEnd()
11283
        else:
11284
          iprot.skip(ftype)
11285
      elif fid == 1:
11286
        if ftype == TType.STRUCT:
11287
          self.cex = CatalogServiceException()
11288
          self.cex.read(iprot)
11289
        else:
11290
          iprot.skip(ftype)
11291
      else:
11292
        iprot.skip(ftype)
11293
      iprot.readFieldEnd()
11294
    iprot.readStructEnd()
11295
 
11296
  def write(self, oprot):
11297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11299
      return
11300
    oprot.writeStructBegin('getAllItemsByStatus_result')
11301
    if self.success is not None:
11302
      oprot.writeFieldBegin('success', TType.LIST, 0)
11303
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11304
      for iter89 in self.success:
11305
        iter89.write(oprot)
5944 mandeep.dh 11306
      oprot.writeListEnd()
11307
      oprot.writeFieldEnd()
11308
    if self.cex is not None:
11309
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11310
      self.cex.write(oprot)
11311
      oprot.writeFieldEnd()
11312
    oprot.writeFieldStop()
11313
    oprot.writeStructEnd()
11314
 
11315
  def validate(self):
11316
    return
11317
 
11318
 
11319
  def __repr__(self):
11320
    L = ['%s=%r' % (key, value)
11321
      for key, value in self.__dict__.iteritems()]
11322
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11323
 
11324
  def __eq__(self, other):
11325
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11326
 
11327
  def __ne__(self, other):
11328
    return not (self == other)
11329
 
11330
class markItemAsContentComplete_args:
11331
  """
11332
  Attributes:
11333
   - entityId
11334
   - category
11335
   - brand
11336
   - modelName
11337
   - modelNumber
9253 rajveer 11338
   - isAndroid
5944 mandeep.dh 11339
  """
11340
 
11341
  thrift_spec = (
11342
    None, # 0
11343
    (1, TType.I64, 'entityId', None, None, ), # 1
11344
    (2, TType.I64, 'category', None, None, ), # 2
11345
    (3, TType.STRING, 'brand', None, None, ), # 3
11346
    (4, TType.STRING, 'modelName', None, None, ), # 4
11347
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 11348
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 11349
  )
11350
 
9253 rajveer 11351
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 11352
    self.entityId = entityId
11353
    self.category = category
11354
    self.brand = brand
11355
    self.modelName = modelName
11356
    self.modelNumber = modelNumber
9253 rajveer 11357
    self.isAndroid = isAndroid
5944 mandeep.dh 11358
 
11359
  def read(self, iprot):
11360
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11361
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11362
      return
11363
    iprot.readStructBegin()
11364
    while True:
11365
      (fname, ftype, fid) = iprot.readFieldBegin()
11366
      if ftype == TType.STOP:
11367
        break
11368
      if fid == 1:
11369
        if ftype == TType.I64:
11370
          self.entityId = iprot.readI64();
11371
        else:
11372
          iprot.skip(ftype)
11373
      elif fid == 2:
11374
        if ftype == TType.I64:
11375
          self.category = iprot.readI64();
11376
        else:
11377
          iprot.skip(ftype)
11378
      elif fid == 3:
11379
        if ftype == TType.STRING:
11380
          self.brand = iprot.readString();
11381
        else:
11382
          iprot.skip(ftype)
11383
      elif fid == 4:
11384
        if ftype == TType.STRING:
11385
          self.modelName = iprot.readString();
11386
        else:
11387
          iprot.skip(ftype)
11388
      elif fid == 5:
11389
        if ftype == TType.STRING:
11390
          self.modelNumber = iprot.readString();
11391
        else:
11392
          iprot.skip(ftype)
9253 rajveer 11393
      elif fid == 6:
11394
        if ftype == TType.BOOL:
11395
          self.isAndroid = iprot.readBool();
11396
        else:
11397
          iprot.skip(ftype)
5944 mandeep.dh 11398
      else:
11399
        iprot.skip(ftype)
11400
      iprot.readFieldEnd()
11401
    iprot.readStructEnd()
11402
 
11403
  def write(self, oprot):
11404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11406
      return
11407
    oprot.writeStructBegin('markItemAsContentComplete_args')
11408
    if self.entityId is not None:
11409
      oprot.writeFieldBegin('entityId', TType.I64, 1)
11410
      oprot.writeI64(self.entityId)
11411
      oprot.writeFieldEnd()
11412
    if self.category is not None:
11413
      oprot.writeFieldBegin('category', TType.I64, 2)
11414
      oprot.writeI64(self.category)
11415
      oprot.writeFieldEnd()
11416
    if self.brand is not None:
11417
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11418
      oprot.writeString(self.brand)
11419
      oprot.writeFieldEnd()
11420
    if self.modelName is not None:
11421
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
11422
      oprot.writeString(self.modelName)
11423
      oprot.writeFieldEnd()
11424
    if self.modelNumber is not None:
11425
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
11426
      oprot.writeString(self.modelNumber)
11427
      oprot.writeFieldEnd()
9253 rajveer 11428
    if self.isAndroid is not None:
11429
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
11430
      oprot.writeBool(self.isAndroid)
11431
      oprot.writeFieldEnd()
5944 mandeep.dh 11432
    oprot.writeFieldStop()
11433
    oprot.writeStructEnd()
11434
 
11435
  def validate(self):
11436
    return
11437
 
11438
 
11439
  def __repr__(self):
11440
    L = ['%s=%r' % (key, value)
11441
      for key, value in self.__dict__.iteritems()]
11442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11443
 
11444
  def __eq__(self, other):
11445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11446
 
11447
  def __ne__(self, other):
11448
    return not (self == other)
11449
 
11450
class markItemAsContentComplete_result:
11451
  """
11452
  Attributes:
11453
   - success
11454
   - cex
11455
  """
11456
 
11457
  thrift_spec = (
11458
    (0, TType.BOOL, 'success', None, None, ), # 0
11459
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11460
  )
11461
 
11462
  def __init__(self, success=None, cex=None,):
11463
    self.success = success
11464
    self.cex = cex
11465
 
11466
  def read(self, iprot):
11467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11469
      return
11470
    iprot.readStructBegin()
11471
    while True:
11472
      (fname, ftype, fid) = iprot.readFieldBegin()
11473
      if ftype == TType.STOP:
11474
        break
11475
      if fid == 0:
11476
        if ftype == TType.BOOL:
11477
          self.success = iprot.readBool();
11478
        else:
11479
          iprot.skip(ftype)
11480
      elif fid == 1:
11481
        if ftype == TType.STRUCT:
11482
          self.cex = CatalogServiceException()
11483
          self.cex.read(iprot)
11484
        else:
11485
          iprot.skip(ftype)
11486
      else:
11487
        iprot.skip(ftype)
11488
      iprot.readFieldEnd()
11489
    iprot.readStructEnd()
11490
 
11491
  def write(self, oprot):
11492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11494
      return
11495
    oprot.writeStructBegin('markItemAsContentComplete_result')
11496
    if self.success is not None:
11497
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11498
      oprot.writeBool(self.success)
11499
      oprot.writeFieldEnd()
11500
    if self.cex is not None:
11501
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11502
      self.cex.write(oprot)
11503
      oprot.writeFieldEnd()
11504
    oprot.writeFieldStop()
11505
    oprot.writeStructEnd()
11506
 
11507
  def validate(self):
11508
    return
11509
 
11510
 
11511
  def __repr__(self):
11512
    L = ['%s=%r' % (key, value)
11513
      for key, value in self.__dict__.iteritems()]
11514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11515
 
11516
  def __eq__(self, other):
11517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11518
 
11519
  def __ne__(self, other):
11520
    return not (self == other)
11521
 
12567 amit.gupta 11522
class getVatRates_args:
11523
  """
11524
  Attributes:
11525
   - itemId
11526
   - categoryId
11527
  """
11528
 
11529
  thrift_spec = (
11530
    None, # 0
11531
    (1, TType.I64, 'itemId', None, None, ), # 1
11532
    (2, TType.I64, 'categoryId', None, None, ), # 2
11533
  )
11534
 
11535
  def __init__(self, itemId=None, categoryId=None,):
11536
    self.itemId = itemId
11537
    self.categoryId = categoryId
11538
 
11539
  def read(self, iprot):
11540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11542
      return
11543
    iprot.readStructBegin()
11544
    while True:
11545
      (fname, ftype, fid) = iprot.readFieldBegin()
11546
      if ftype == TType.STOP:
11547
        break
11548
      if fid == 1:
11549
        if ftype == TType.I64:
11550
          self.itemId = iprot.readI64();
11551
        else:
11552
          iprot.skip(ftype)
11553
      elif fid == 2:
11554
        if ftype == TType.I64:
11555
          self.categoryId = iprot.readI64();
11556
        else:
11557
          iprot.skip(ftype)
11558
      else:
11559
        iprot.skip(ftype)
11560
      iprot.readFieldEnd()
11561
    iprot.readStructEnd()
11562
 
11563
  def write(self, oprot):
11564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11566
      return
11567
    oprot.writeStructBegin('getVatRates_args')
11568
    if self.itemId is not None:
11569
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11570
      oprot.writeI64(self.itemId)
11571
      oprot.writeFieldEnd()
11572
    if self.categoryId is not None:
11573
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
11574
      oprot.writeI64(self.categoryId)
11575
      oprot.writeFieldEnd()
11576
    oprot.writeFieldStop()
11577
    oprot.writeStructEnd()
11578
 
11579
  def validate(self):
11580
    return
11581
 
11582
 
11583
  def __repr__(self):
11584
    L = ['%s=%r' % (key, value)
11585
      for key, value in self.__dict__.iteritems()]
11586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11587
 
11588
  def __eq__(self, other):
11589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11590
 
11591
  def __ne__(self, other):
11592
    return not (self == other)
11593
 
11594
class getVatRates_result:
11595
  """
11596
  Attributes:
11597
   - success
11598
   - cex
11599
  """
11600
 
11601
  thrift_spec = (
11602
    (0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,None), None, ), # 0
11603
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11604
  )
11605
 
11606
  def __init__(self, success=None, cex=None,):
11607
    self.success = success
11608
    self.cex = cex
11609
 
11610
  def read(self, iprot):
11611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11613
      return
11614
    iprot.readStructBegin()
11615
    while True:
11616
      (fname, ftype, fid) = iprot.readFieldBegin()
11617
      if ftype == TType.STOP:
11618
        break
11619
      if fid == 0:
11620
        if ftype == TType.MAP:
11621
          self.success = {}
13493 amit.gupta 11622
          (_ktype91, _vtype92, _size90 ) = iprot.readMapBegin() 
11623
          for _i94 in xrange(_size90):
11624
            _key95 = iprot.readI64();
11625
            _val96 = iprot.readDouble();
11626
            self.success[_key95] = _val96
12567 amit.gupta 11627
          iprot.readMapEnd()
11628
        else:
11629
          iprot.skip(ftype)
11630
      elif fid == 1:
11631
        if ftype == TType.STRUCT:
11632
          self.cex = CatalogServiceException()
11633
          self.cex.read(iprot)
11634
        else:
11635
          iprot.skip(ftype)
11636
      else:
11637
        iprot.skip(ftype)
11638
      iprot.readFieldEnd()
11639
    iprot.readStructEnd()
11640
 
11641
  def write(self, oprot):
11642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11644
      return
11645
    oprot.writeStructBegin('getVatRates_result')
11646
    if self.success is not None:
11647
      oprot.writeFieldBegin('success', TType.MAP, 0)
11648
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
13493 amit.gupta 11649
      for kiter97,viter98 in self.success.items():
11650
        oprot.writeI64(kiter97)
11651
        oprot.writeDouble(viter98)
12567 amit.gupta 11652
      oprot.writeMapEnd()
11653
      oprot.writeFieldEnd()
11654
    if self.cex is not None:
11655
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11656
      self.cex.write(oprot)
11657
      oprot.writeFieldEnd()
11658
    oprot.writeFieldStop()
11659
    oprot.writeStructEnd()
11660
 
11661
  def validate(self):
11662
    return
11663
 
11664
 
11665
  def __repr__(self):
11666
    L = ['%s=%r' % (key, value)
11667
      for key, value in self.__dict__.iteritems()]
11668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11669
 
11670
  def __eq__(self, other):
11671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11672
 
11673
  def __ne__(self, other):
11674
    return not (self == other)
11675
 
5944 mandeep.dh 11676
class getAllItemsInRange_args:
11677
  """
11678
  Attributes:
11679
   - offset
11680
   - limit
11681
  """
11682
 
11683
  thrift_spec = (
11684
    None, # 0
11685
    (1, TType.I64, 'offset', None, None, ), # 1
11686
    (2, TType.I64, 'limit', None, None, ), # 2
11687
  )
11688
 
11689
  def __init__(self, offset=None, limit=None,):
11690
    self.offset = offset
11691
    self.limit = limit
11692
 
11693
  def read(self, iprot):
11694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11696
      return
11697
    iprot.readStructBegin()
11698
    while True:
11699
      (fname, ftype, fid) = iprot.readFieldBegin()
11700
      if ftype == TType.STOP:
11701
        break
11702
      if fid == 1:
11703
        if ftype == TType.I64:
11704
          self.offset = iprot.readI64();
11705
        else:
11706
          iprot.skip(ftype)
11707
      elif fid == 2:
11708
        if ftype == TType.I64:
11709
          self.limit = iprot.readI64();
11710
        else:
11711
          iprot.skip(ftype)
11712
      else:
11713
        iprot.skip(ftype)
11714
      iprot.readFieldEnd()
11715
    iprot.readStructEnd()
11716
 
11717
  def write(self, oprot):
11718
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11719
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11720
      return
11721
    oprot.writeStructBegin('getAllItemsInRange_args')
11722
    if self.offset is not None:
11723
      oprot.writeFieldBegin('offset', TType.I64, 1)
11724
      oprot.writeI64(self.offset)
11725
      oprot.writeFieldEnd()
11726
    if self.limit is not None:
11727
      oprot.writeFieldBegin('limit', TType.I64, 2)
11728
      oprot.writeI64(self.limit)
11729
      oprot.writeFieldEnd()
11730
    oprot.writeFieldStop()
11731
    oprot.writeStructEnd()
11732
 
11733
  def validate(self):
11734
    return
11735
 
11736
 
11737
  def __repr__(self):
11738
    L = ['%s=%r' % (key, value)
11739
      for key, value in self.__dict__.iteritems()]
11740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11741
 
11742
  def __eq__(self, other):
11743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11744
 
11745
  def __ne__(self, other):
11746
    return not (self == other)
11747
 
11748
class getAllItemsInRange_result:
11749
  """
11750
  Attributes:
11751
   - success
11752
   - cex
11753
  """
11754
 
11755
  thrift_spec = (
11756
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11757
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11758
  )
11759
 
11760
  def __init__(self, success=None, cex=None,):
11761
    self.success = success
11762
    self.cex = cex
11763
 
11764
  def read(self, iprot):
11765
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11766
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11767
      return
11768
    iprot.readStructBegin()
11769
    while True:
11770
      (fname, ftype, fid) = iprot.readFieldBegin()
11771
      if ftype == TType.STOP:
11772
        break
11773
      if fid == 0:
11774
        if ftype == TType.LIST:
11775
          self.success = []
13493 amit.gupta 11776
          (_etype102, _size99) = iprot.readListBegin()
11777
          for _i103 in xrange(_size99):
11778
            _elem104 = Item()
11779
            _elem104.read(iprot)
11780
            self.success.append(_elem104)
5944 mandeep.dh 11781
          iprot.readListEnd()
11782
        else:
11783
          iprot.skip(ftype)
11784
      elif fid == 1:
11785
        if ftype == TType.STRUCT:
11786
          self.cex = CatalogServiceException()
11787
          self.cex.read(iprot)
11788
        else:
11789
          iprot.skip(ftype)
11790
      else:
11791
        iprot.skip(ftype)
11792
      iprot.readFieldEnd()
11793
    iprot.readStructEnd()
11794
 
11795
  def write(self, oprot):
11796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11798
      return
11799
    oprot.writeStructBegin('getAllItemsInRange_result')
11800
    if self.success is not None:
11801
      oprot.writeFieldBegin('success', TType.LIST, 0)
11802
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11803
      for iter105 in self.success:
11804
        iter105.write(oprot)
5944 mandeep.dh 11805
      oprot.writeListEnd()
11806
      oprot.writeFieldEnd()
11807
    if self.cex is not None:
11808
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11809
      self.cex.write(oprot)
11810
      oprot.writeFieldEnd()
11811
    oprot.writeFieldStop()
11812
    oprot.writeStructEnd()
11813
 
11814
  def validate(self):
11815
    return
11816
 
11817
 
11818
  def __repr__(self):
11819
    L = ['%s=%r' % (key, value)
11820
      for key, value in self.__dict__.iteritems()]
11821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11822
 
11823
  def __eq__(self, other):
11824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11825
 
11826
  def __ne__(self, other):
11827
    return not (self == other)
11828
 
11829
class getAllItemsByStatusInRange_args:
11830
  """
11831
  Attributes:
11832
   - itemStatus
11833
   - offset
11834
   - limit
11835
  """
11836
 
11837
  thrift_spec = (
11838
    None, # 0
11839
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11840
    (2, TType.I64, 'offset', None, None, ), # 2
11841
    (3, TType.I64, 'limit', None, None, ), # 3
11842
  )
11843
 
11844
  def __init__(self, itemStatus=None, offset=None, limit=None,):
11845
    self.itemStatus = itemStatus
11846
    self.offset = offset
11847
    self.limit = limit
11848
 
11849
  def read(self, iprot):
11850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11852
      return
11853
    iprot.readStructBegin()
11854
    while True:
11855
      (fname, ftype, fid) = iprot.readFieldBegin()
11856
      if ftype == TType.STOP:
11857
        break
11858
      if fid == 1:
11859
        if ftype == TType.I32:
11860
          self.itemStatus = iprot.readI32();
11861
        else:
11862
          iprot.skip(ftype)
11863
      elif fid == 2:
11864
        if ftype == TType.I64:
11865
          self.offset = iprot.readI64();
11866
        else:
11867
          iprot.skip(ftype)
11868
      elif fid == 3:
11869
        if ftype == TType.I64:
11870
          self.limit = iprot.readI64();
11871
        else:
11872
          iprot.skip(ftype)
11873
      else:
11874
        iprot.skip(ftype)
11875
      iprot.readFieldEnd()
11876
    iprot.readStructEnd()
11877
 
11878
  def write(self, oprot):
11879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11881
      return
11882
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
11883
    if self.itemStatus is not None:
11884
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11885
      oprot.writeI32(self.itemStatus)
11886
      oprot.writeFieldEnd()
11887
    if self.offset is not None:
11888
      oprot.writeFieldBegin('offset', TType.I64, 2)
11889
      oprot.writeI64(self.offset)
11890
      oprot.writeFieldEnd()
11891
    if self.limit is not None:
11892
      oprot.writeFieldBegin('limit', TType.I64, 3)
11893
      oprot.writeI64(self.limit)
11894
      oprot.writeFieldEnd()
11895
    oprot.writeFieldStop()
11896
    oprot.writeStructEnd()
11897
 
11898
  def validate(self):
11899
    return
11900
 
11901
 
11902
  def __repr__(self):
11903
    L = ['%s=%r' % (key, value)
11904
      for key, value in self.__dict__.iteritems()]
11905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11906
 
11907
  def __eq__(self, other):
11908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11909
 
11910
  def __ne__(self, other):
11911
    return not (self == other)
11912
 
11913
class getAllItemsByStatusInRange_result:
11914
  """
11915
  Attributes:
11916
   - success
11917
   - cex
11918
  """
11919
 
11920
  thrift_spec = (
11921
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11922
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11923
  )
11924
 
11925
  def __init__(self, success=None, cex=None,):
11926
    self.success = success
11927
    self.cex = cex
11928
 
11929
  def read(self, iprot):
11930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11932
      return
11933
    iprot.readStructBegin()
11934
    while True:
11935
      (fname, ftype, fid) = iprot.readFieldBegin()
11936
      if ftype == TType.STOP:
11937
        break
11938
      if fid == 0:
11939
        if ftype == TType.LIST:
11940
          self.success = []
13493 amit.gupta 11941
          (_etype109, _size106) = iprot.readListBegin()
11942
          for _i110 in xrange(_size106):
11943
            _elem111 = Item()
11944
            _elem111.read(iprot)
11945
            self.success.append(_elem111)
5944 mandeep.dh 11946
          iprot.readListEnd()
11947
        else:
11948
          iprot.skip(ftype)
11949
      elif fid == 1:
11950
        if ftype == TType.STRUCT:
11951
          self.cex = CatalogServiceException()
11952
          self.cex.read(iprot)
11953
        else:
11954
          iprot.skip(ftype)
11955
      else:
11956
        iprot.skip(ftype)
11957
      iprot.readFieldEnd()
11958
    iprot.readStructEnd()
11959
 
11960
  def write(self, oprot):
11961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11963
      return
11964
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
11965
    if self.success is not None:
11966
      oprot.writeFieldBegin('success', TType.LIST, 0)
11967
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11968
      for iter112 in self.success:
11969
        iter112.write(oprot)
5944 mandeep.dh 11970
      oprot.writeListEnd()
11971
      oprot.writeFieldEnd()
11972
    if self.cex is not None:
11973
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11974
      self.cex.write(oprot)
11975
      oprot.writeFieldEnd()
11976
    oprot.writeFieldStop()
11977
    oprot.writeStructEnd()
11978
 
11979
  def validate(self):
11980
    return
11981
 
11982
 
11983
  def __repr__(self):
11984
    L = ['%s=%r' % (key, value)
11985
      for key, value in self.__dict__.iteritems()]
11986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11987
 
11988
  def __eq__(self, other):
11989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11990
 
11991
  def __ne__(self, other):
11992
    return not (self == other)
11993
 
11994
class getItemCountByStatus_args:
11995
  """
11996
  Attributes:
11997
   - useStatus
11998
   - itemStatus
11999
  """
12000
 
12001
  thrift_spec = (
12002
    None, # 0
12003
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
12004
    (2, TType.I32, 'itemStatus', None, None, ), # 2
12005
  )
12006
 
12007
  def __init__(self, useStatus=None, itemStatus=None,):
12008
    self.useStatus = useStatus
12009
    self.itemStatus = itemStatus
12010
 
12011
  def read(self, iprot):
12012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12014
      return
12015
    iprot.readStructBegin()
12016
    while True:
12017
      (fname, ftype, fid) = iprot.readFieldBegin()
12018
      if ftype == TType.STOP:
12019
        break
12020
      if fid == 1:
12021
        if ftype == TType.BOOL:
12022
          self.useStatus = iprot.readBool();
12023
        else:
12024
          iprot.skip(ftype)
12025
      elif fid == 2:
12026
        if ftype == TType.I32:
12027
          self.itemStatus = iprot.readI32();
12028
        else:
12029
          iprot.skip(ftype)
12030
      else:
12031
        iprot.skip(ftype)
12032
      iprot.readFieldEnd()
12033
    iprot.readStructEnd()
12034
 
12035
  def write(self, oprot):
12036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12038
      return
12039
    oprot.writeStructBegin('getItemCountByStatus_args')
12040
    if self.useStatus is not None:
12041
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
12042
      oprot.writeBool(self.useStatus)
12043
      oprot.writeFieldEnd()
12044
    if self.itemStatus is not None:
12045
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
12046
      oprot.writeI32(self.itemStatus)
12047
      oprot.writeFieldEnd()
12048
    oprot.writeFieldStop()
12049
    oprot.writeStructEnd()
12050
 
12051
  def validate(self):
12052
    return
12053
 
12054
 
12055
  def __repr__(self):
12056
    L = ['%s=%r' % (key, value)
12057
      for key, value in self.__dict__.iteritems()]
12058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12059
 
12060
  def __eq__(self, other):
12061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12062
 
12063
  def __ne__(self, other):
12064
    return not (self == other)
12065
 
12066
class getItemCountByStatus_result:
12067
  """
12068
  Attributes:
12069
   - success
12070
  """
12071
 
12072
  thrift_spec = (
12073
    (0, TType.I32, 'success', None, None, ), # 0
12074
  )
12075
 
12076
  def __init__(self, success=None,):
12077
    self.success = success
12078
 
12079
  def read(self, iprot):
12080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12082
      return
12083
    iprot.readStructBegin()
12084
    while True:
12085
      (fname, ftype, fid) = iprot.readFieldBegin()
12086
      if ftype == TType.STOP:
12087
        break
12088
      if fid == 0:
12089
        if ftype == TType.I32:
12090
          self.success = iprot.readI32();
12091
        else:
12092
          iprot.skip(ftype)
12093
      else:
12094
        iprot.skip(ftype)
12095
      iprot.readFieldEnd()
12096
    iprot.readStructEnd()
12097
 
12098
  def write(self, oprot):
12099
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12100
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12101
      return
12102
    oprot.writeStructBegin('getItemCountByStatus_result')
12103
    if self.success is not None:
12104
      oprot.writeFieldBegin('success', TType.I32, 0)
12105
      oprot.writeI32(self.success)
12106
      oprot.writeFieldEnd()
12107
    oprot.writeFieldStop()
12108
    oprot.writeStructEnd()
12109
 
12110
  def validate(self):
12111
    return
12112
 
12113
 
12114
  def __repr__(self):
12115
    L = ['%s=%r' % (key, value)
12116
      for key, value in self.__dict__.iteritems()]
12117
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12118
 
12119
  def __eq__(self, other):
12120
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12121
 
12122
  def __ne__(self, other):
12123
    return not (self == other)
12124
 
12125
class getBestSellers_args:
12126
 
12127
  thrift_spec = (
12128
  )
12129
 
12130
  def read(self, iprot):
12131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12133
      return
12134
    iprot.readStructBegin()
12135
    while True:
12136
      (fname, ftype, fid) = iprot.readFieldBegin()
12137
      if ftype == TType.STOP:
12138
        break
12139
      else:
12140
        iprot.skip(ftype)
12141
      iprot.readFieldEnd()
12142
    iprot.readStructEnd()
12143
 
12144
  def write(self, oprot):
12145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12147
      return
12148
    oprot.writeStructBegin('getBestSellers_args')
12149
    oprot.writeFieldStop()
12150
    oprot.writeStructEnd()
12151
 
12152
  def validate(self):
12153
    return
12154
 
12155
 
12156
  def __repr__(self):
12157
    L = ['%s=%r' % (key, value)
12158
      for key, value in self.__dict__.iteritems()]
12159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12160
 
12161
  def __eq__(self, other):
12162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12163
 
12164
  def __ne__(self, other):
12165
    return not (self == other)
12166
 
12167
class getBestSellers_result:
12168
  """
12169
  Attributes:
12170
   - success
12171
   - isex
12172
  """
12173
 
12174
  thrift_spec = (
12175
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12176
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12177
  )
12178
 
12179
  def __init__(self, success=None, isex=None,):
12180
    self.success = success
12181
    self.isex = isex
12182
 
12183
  def read(self, iprot):
12184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12186
      return
12187
    iprot.readStructBegin()
12188
    while True:
12189
      (fname, ftype, fid) = iprot.readFieldBegin()
12190
      if ftype == TType.STOP:
12191
        break
12192
      if fid == 0:
12193
        if ftype == TType.LIST:
12194
          self.success = []
13493 amit.gupta 12195
          (_etype116, _size113) = iprot.readListBegin()
12196
          for _i117 in xrange(_size113):
12197
            _elem118 = Item()
12198
            _elem118.read(iprot)
12199
            self.success.append(_elem118)
5944 mandeep.dh 12200
          iprot.readListEnd()
12201
        else:
12202
          iprot.skip(ftype)
12203
      elif fid == 1:
12204
        if ftype == TType.STRUCT:
12205
          self.isex = CatalogServiceException()
12206
          self.isex.read(iprot)
12207
        else:
12208
          iprot.skip(ftype)
12209
      else:
12210
        iprot.skip(ftype)
12211
      iprot.readFieldEnd()
12212
    iprot.readStructEnd()
12213
 
12214
  def write(self, oprot):
12215
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12216
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12217
      return
12218
    oprot.writeStructBegin('getBestSellers_result')
12219
    if self.success is not None:
12220
      oprot.writeFieldBegin('success', TType.LIST, 0)
12221
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 12222
      for iter119 in self.success:
12223
        iter119.write(oprot)
5944 mandeep.dh 12224
      oprot.writeListEnd()
12225
      oprot.writeFieldEnd()
12226
    if self.isex is not None:
12227
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12228
      self.isex.write(oprot)
12229
      oprot.writeFieldEnd()
12230
    oprot.writeFieldStop()
12231
    oprot.writeStructEnd()
12232
 
12233
  def validate(self):
12234
    return
12235
 
12236
 
12237
  def __repr__(self):
12238
    L = ['%s=%r' % (key, value)
12239
      for key, value in self.__dict__.iteritems()]
12240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12241
 
12242
  def __eq__(self, other):
12243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12244
 
12245
  def __ne__(self, other):
12246
    return not (self == other)
12247
 
12248
class getBestSellersCatalogIds_args:
12249
  """
12250
  Attributes:
12251
   - beginIndex
12252
   - totalItems
12253
   - brand
12254
   - category
12255
  """
12256
 
12257
  thrift_spec = (
12258
    None, # 0
12259
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12260
    (2, TType.I64, 'totalItems', None, None, ), # 2
12261
    (3, TType.STRING, 'brand', None, None, ), # 3
12262
    (4, TType.I64, 'category', None, None, ), # 4
12263
  )
12264
 
12265
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12266
    self.beginIndex = beginIndex
12267
    self.totalItems = totalItems
12268
    self.brand = brand
12269
    self.category = category
12270
 
12271
  def read(self, iprot):
12272
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12273
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12274
      return
12275
    iprot.readStructBegin()
12276
    while True:
12277
      (fname, ftype, fid) = iprot.readFieldBegin()
12278
      if ftype == TType.STOP:
12279
        break
12280
      if fid == 1:
12281
        if ftype == TType.I64:
12282
          self.beginIndex = iprot.readI64();
12283
        else:
12284
          iprot.skip(ftype)
12285
      elif fid == 2:
12286
        if ftype == TType.I64:
12287
          self.totalItems = iprot.readI64();
12288
        else:
12289
          iprot.skip(ftype)
12290
      elif fid == 3:
12291
        if ftype == TType.STRING:
12292
          self.brand = iprot.readString();
12293
        else:
12294
          iprot.skip(ftype)
12295
      elif fid == 4:
12296
        if ftype == TType.I64:
12297
          self.category = iprot.readI64();
12298
        else:
12299
          iprot.skip(ftype)
12300
      else:
12301
        iprot.skip(ftype)
12302
      iprot.readFieldEnd()
12303
    iprot.readStructEnd()
12304
 
12305
  def write(self, oprot):
12306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12308
      return
12309
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
12310
    if self.beginIndex is not None:
12311
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12312
      oprot.writeI64(self.beginIndex)
12313
      oprot.writeFieldEnd()
12314
    if self.totalItems is not None:
12315
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12316
      oprot.writeI64(self.totalItems)
12317
      oprot.writeFieldEnd()
12318
    if self.brand is not None:
12319
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12320
      oprot.writeString(self.brand)
12321
      oprot.writeFieldEnd()
12322
    if self.category is not None:
12323
      oprot.writeFieldBegin('category', TType.I64, 4)
12324
      oprot.writeI64(self.category)
12325
      oprot.writeFieldEnd()
12326
    oprot.writeFieldStop()
12327
    oprot.writeStructEnd()
12328
 
12329
  def validate(self):
12330
    return
12331
 
12332
 
12333
  def __repr__(self):
12334
    L = ['%s=%r' % (key, value)
12335
      for key, value in self.__dict__.iteritems()]
12336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12337
 
12338
  def __eq__(self, other):
12339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12340
 
12341
  def __ne__(self, other):
12342
    return not (self == other)
12343
 
12344
class getBestSellersCatalogIds_result:
12345
  """
12346
  Attributes:
12347
   - success
12348
   - cex
12349
  """
12350
 
12351
  thrift_spec = (
12352
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12353
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12354
  )
12355
 
12356
  def __init__(self, success=None, cex=None,):
12357
    self.success = success
12358
    self.cex = cex
12359
 
12360
  def read(self, iprot):
12361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12363
      return
12364
    iprot.readStructBegin()
12365
    while True:
12366
      (fname, ftype, fid) = iprot.readFieldBegin()
12367
      if ftype == TType.STOP:
12368
        break
12369
      if fid == 0:
12370
        if ftype == TType.LIST:
12371
          self.success = []
13493 amit.gupta 12372
          (_etype123, _size120) = iprot.readListBegin()
12373
          for _i124 in xrange(_size120):
12374
            _elem125 = iprot.readI64();
12375
            self.success.append(_elem125)
5944 mandeep.dh 12376
          iprot.readListEnd()
12377
        else:
12378
          iprot.skip(ftype)
12379
      elif fid == 1:
12380
        if ftype == TType.STRUCT:
12381
          self.cex = CatalogServiceException()
12382
          self.cex.read(iprot)
12383
        else:
12384
          iprot.skip(ftype)
12385
      else:
12386
        iprot.skip(ftype)
12387
      iprot.readFieldEnd()
12388
    iprot.readStructEnd()
12389
 
12390
  def write(self, oprot):
12391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12393
      return
12394
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
12395
    if self.success is not None:
12396
      oprot.writeFieldBegin('success', TType.LIST, 0)
12397
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 12398
      for iter126 in self.success:
12399
        oprot.writeI64(iter126)
5944 mandeep.dh 12400
      oprot.writeListEnd()
12401
      oprot.writeFieldEnd()
12402
    if self.cex is not None:
12403
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12404
      self.cex.write(oprot)
12405
      oprot.writeFieldEnd()
12406
    oprot.writeFieldStop()
12407
    oprot.writeStructEnd()
12408
 
12409
  def validate(self):
12410
    return
12411
 
12412
 
12413
  def __repr__(self):
12414
    L = ['%s=%r' % (key, value)
12415
      for key, value in self.__dict__.iteritems()]
12416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12417
 
12418
  def __eq__(self, other):
12419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12420
 
12421
  def __ne__(self, other):
12422
    return not (self == other)
12423
 
12424
class getBestSellersCount_args:
12425
 
12426
  thrift_spec = (
12427
  )
12428
 
12429
  def read(self, iprot):
12430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12432
      return
12433
    iprot.readStructBegin()
12434
    while True:
12435
      (fname, ftype, fid) = iprot.readFieldBegin()
12436
      if ftype == TType.STOP:
12437
        break
12438
      else:
12439
        iprot.skip(ftype)
12440
      iprot.readFieldEnd()
12441
    iprot.readStructEnd()
12442
 
12443
  def write(self, oprot):
12444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12446
      return
12447
    oprot.writeStructBegin('getBestSellersCount_args')
12448
    oprot.writeFieldStop()
12449
    oprot.writeStructEnd()
12450
 
12451
  def validate(self):
12452
    return
12453
 
12454
 
12455
  def __repr__(self):
12456
    L = ['%s=%r' % (key, value)
12457
      for key, value in self.__dict__.iteritems()]
12458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12459
 
12460
  def __eq__(self, other):
12461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12462
 
12463
  def __ne__(self, other):
12464
    return not (self == other)
12465
 
12466
class getBestSellersCount_result:
12467
  """
12468
  Attributes:
12469
   - success
12470
   - cex
12471
  """
12472
 
12473
  thrift_spec = (
12474
    (0, TType.I64, 'success', None, None, ), # 0
12475
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12476
  )
12477
 
12478
  def __init__(self, success=None, cex=None,):
12479
    self.success = success
12480
    self.cex = cex
12481
 
12482
  def read(self, iprot):
12483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12485
      return
12486
    iprot.readStructBegin()
12487
    while True:
12488
      (fname, ftype, fid) = iprot.readFieldBegin()
12489
      if ftype == TType.STOP:
12490
        break
12491
      if fid == 0:
12492
        if ftype == TType.I64:
12493
          self.success = iprot.readI64();
12494
        else:
12495
          iprot.skip(ftype)
12496
      elif fid == 1:
12497
        if ftype == TType.STRUCT:
12498
          self.cex = CatalogServiceException()
12499
          self.cex.read(iprot)
12500
        else:
12501
          iprot.skip(ftype)
12502
      else:
12503
        iprot.skip(ftype)
12504
      iprot.readFieldEnd()
12505
    iprot.readStructEnd()
12506
 
12507
  def write(self, oprot):
12508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12510
      return
12511
    oprot.writeStructBegin('getBestSellersCount_result')
12512
    if self.success is not None:
12513
      oprot.writeFieldBegin('success', TType.I64, 0)
12514
      oprot.writeI64(self.success)
12515
      oprot.writeFieldEnd()
12516
    if self.cex is not None:
12517
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12518
      self.cex.write(oprot)
12519
      oprot.writeFieldEnd()
12520
    oprot.writeFieldStop()
12521
    oprot.writeStructEnd()
12522
 
12523
  def validate(self):
12524
    return
12525
 
12526
 
12527
  def __repr__(self):
12528
    L = ['%s=%r' % (key, value)
12529
      for key, value in self.__dict__.iteritems()]
12530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12531
 
12532
  def __eq__(self, other):
12533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12534
 
12535
  def __ne__(self, other):
12536
    return not (self == other)
12537
 
12538
class getBestDeals_args:
12539
 
12540
  thrift_spec = (
12541
  )
12542
 
12543
  def read(self, iprot):
12544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12546
      return
12547
    iprot.readStructBegin()
12548
    while True:
12549
      (fname, ftype, fid) = iprot.readFieldBegin()
12550
      if ftype == TType.STOP:
12551
        break
12552
      else:
12553
        iprot.skip(ftype)
12554
      iprot.readFieldEnd()
12555
    iprot.readStructEnd()
12556
 
12557
  def write(self, oprot):
12558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12560
      return
12561
    oprot.writeStructBegin('getBestDeals_args')
12562
    oprot.writeFieldStop()
12563
    oprot.writeStructEnd()
12564
 
12565
  def validate(self):
12566
    return
12567
 
12568
 
12569
  def __repr__(self):
12570
    L = ['%s=%r' % (key, value)
12571
      for key, value in self.__dict__.iteritems()]
12572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12573
 
12574
  def __eq__(self, other):
12575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12576
 
12577
  def __ne__(self, other):
12578
    return not (self == other)
12579
 
12580
class getBestDeals_result:
12581
  """
12582
  Attributes:
12583
   - success
12584
   - isex
12585
  """
12586
 
12587
  thrift_spec = (
12588
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12589
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12590
  )
12591
 
12592
  def __init__(self, success=None, isex=None,):
12593
    self.success = success
12594
    self.isex = isex
12595
 
12596
  def read(self, iprot):
12597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12599
      return
12600
    iprot.readStructBegin()
12601
    while True:
12602
      (fname, ftype, fid) = iprot.readFieldBegin()
12603
      if ftype == TType.STOP:
12604
        break
12605
      if fid == 0:
12606
        if ftype == TType.LIST:
12607
          self.success = []
13493 amit.gupta 12608
          (_etype130, _size127) = iprot.readListBegin()
12609
          for _i131 in xrange(_size127):
12610
            _elem132 = Item()
12611
            _elem132.read(iprot)
12612
            self.success.append(_elem132)
5944 mandeep.dh 12613
          iprot.readListEnd()
12614
        else:
12615
          iprot.skip(ftype)
12616
      elif fid == 1:
12617
        if ftype == TType.STRUCT:
12618
          self.isex = CatalogServiceException()
12619
          self.isex.read(iprot)
12620
        else:
12621
          iprot.skip(ftype)
12622
      else:
12623
        iprot.skip(ftype)
12624
      iprot.readFieldEnd()
12625
    iprot.readStructEnd()
12626
 
12627
  def write(self, oprot):
12628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12630
      return
12631
    oprot.writeStructBegin('getBestDeals_result')
12632
    if self.success is not None:
12633
      oprot.writeFieldBegin('success', TType.LIST, 0)
12634
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 12635
      for iter133 in self.success:
12636
        iter133.write(oprot)
5944 mandeep.dh 12637
      oprot.writeListEnd()
12638
      oprot.writeFieldEnd()
12639
    if self.isex is not None:
12640
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12641
      self.isex.write(oprot)
12642
      oprot.writeFieldEnd()
12643
    oprot.writeFieldStop()
12644
    oprot.writeStructEnd()
12645
 
12646
  def validate(self):
12647
    return
12648
 
12649
 
12650
  def __repr__(self):
12651
    L = ['%s=%r' % (key, value)
12652
      for key, value in self.__dict__.iteritems()]
12653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12654
 
12655
  def __eq__(self, other):
12656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12657
 
12658
  def __ne__(self, other):
12659
    return not (self == other)
12660
 
12661
class getBestDealsCatalogIds_args:
12662
  """
12663
  Attributes:
12664
   - beginIndex
12665
   - totalItems
12666
   - brand
12667
   - category
12668
  """
12669
 
12670
  thrift_spec = (
12671
    None, # 0
12672
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12673
    (2, TType.I64, 'totalItems', None, None, ), # 2
12674
    (3, TType.STRING, 'brand', None, None, ), # 3
12675
    (4, TType.I64, 'category', None, None, ), # 4
12676
  )
12677
 
12678
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12679
    self.beginIndex = beginIndex
12680
    self.totalItems = totalItems
12681
    self.brand = brand
12682
    self.category = category
12683
 
12684
  def read(self, iprot):
12685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12687
      return
12688
    iprot.readStructBegin()
12689
    while True:
12690
      (fname, ftype, fid) = iprot.readFieldBegin()
12691
      if ftype == TType.STOP:
12692
        break
12693
      if fid == 1:
12694
        if ftype == TType.I64:
12695
          self.beginIndex = iprot.readI64();
12696
        else:
12697
          iprot.skip(ftype)
12698
      elif fid == 2:
12699
        if ftype == TType.I64:
12700
          self.totalItems = iprot.readI64();
12701
        else:
12702
          iprot.skip(ftype)
12703
      elif fid == 3:
12704
        if ftype == TType.STRING:
12705
          self.brand = iprot.readString();
12706
        else:
12707
          iprot.skip(ftype)
12708
      elif fid == 4:
12709
        if ftype == TType.I64:
12710
          self.category = iprot.readI64();
12711
        else:
12712
          iprot.skip(ftype)
12713
      else:
12714
        iprot.skip(ftype)
12715
      iprot.readFieldEnd()
12716
    iprot.readStructEnd()
12717
 
12718
  def write(self, oprot):
12719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12721
      return
12722
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
12723
    if self.beginIndex is not None:
12724
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12725
      oprot.writeI64(self.beginIndex)
12726
      oprot.writeFieldEnd()
12727
    if self.totalItems is not None:
12728
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12729
      oprot.writeI64(self.totalItems)
12730
      oprot.writeFieldEnd()
12731
    if self.brand is not None:
12732
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12733
      oprot.writeString(self.brand)
12734
      oprot.writeFieldEnd()
12735
    if self.category is not None:
12736
      oprot.writeFieldBegin('category', TType.I64, 4)
12737
      oprot.writeI64(self.category)
12738
      oprot.writeFieldEnd()
12739
    oprot.writeFieldStop()
12740
    oprot.writeStructEnd()
12741
 
12742
  def validate(self):
12743
    return
12744
 
12745
 
12746
  def __repr__(self):
12747
    L = ['%s=%r' % (key, value)
12748
      for key, value in self.__dict__.iteritems()]
12749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12750
 
12751
  def __eq__(self, other):
12752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12753
 
12754
  def __ne__(self, other):
12755
    return not (self == other)
12756
 
12757
class getBestDealsCatalogIds_result:
12758
  """
12759
  Attributes:
12760
   - success
12761
   - cex
12762
  """
12763
 
12764
  thrift_spec = (
12765
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12766
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12767
  )
12768
 
12769
  def __init__(self, success=None, cex=None,):
12770
    self.success = success
12771
    self.cex = cex
12772
 
12773
  def read(self, iprot):
12774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12776
      return
12777
    iprot.readStructBegin()
12778
    while True:
12779
      (fname, ftype, fid) = iprot.readFieldBegin()
12780
      if ftype == TType.STOP:
12781
        break
12782
      if fid == 0:
12783
        if ftype == TType.LIST:
12784
          self.success = []
13493 amit.gupta 12785
          (_etype137, _size134) = iprot.readListBegin()
12786
          for _i138 in xrange(_size134):
12787
            _elem139 = iprot.readI64();
12788
            self.success.append(_elem139)
5944 mandeep.dh 12789
          iprot.readListEnd()
12790
        else:
12791
          iprot.skip(ftype)
12792
      elif fid == 1:
12793
        if ftype == TType.STRUCT:
12794
          self.cex = CatalogServiceException()
12795
          self.cex.read(iprot)
12796
        else:
12797
          iprot.skip(ftype)
12798
      else:
12799
        iprot.skip(ftype)
12800
      iprot.readFieldEnd()
12801
    iprot.readStructEnd()
12802
 
12803
  def write(self, oprot):
12804
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12805
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12806
      return
12807
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
12808
    if self.success is not None:
12809
      oprot.writeFieldBegin('success', TType.LIST, 0)
12810
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 12811
      for iter140 in self.success:
12812
        oprot.writeI64(iter140)
5944 mandeep.dh 12813
      oprot.writeListEnd()
12814
      oprot.writeFieldEnd()
12815
    if self.cex is not None:
12816
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12817
      self.cex.write(oprot)
12818
      oprot.writeFieldEnd()
12819
    oprot.writeFieldStop()
12820
    oprot.writeStructEnd()
12821
 
12822
  def validate(self):
12823
    return
12824
 
12825
 
12826
  def __repr__(self):
12827
    L = ['%s=%r' % (key, value)
12828
      for key, value in self.__dict__.iteritems()]
12829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12830
 
12831
  def __eq__(self, other):
12832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12833
 
12834
  def __ne__(self, other):
12835
    return not (self == other)
12836
 
12837
class getBestDealsCount_args:
12838
 
12839
  thrift_spec = (
12840
  )
12841
 
12842
  def read(self, iprot):
12843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12845
      return
12846
    iprot.readStructBegin()
12847
    while True:
12848
      (fname, ftype, fid) = iprot.readFieldBegin()
12849
      if ftype == TType.STOP:
12850
        break
12851
      else:
12852
        iprot.skip(ftype)
12853
      iprot.readFieldEnd()
12854
    iprot.readStructEnd()
12855
 
12856
  def write(self, oprot):
12857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12859
      return
12860
    oprot.writeStructBegin('getBestDealsCount_args')
12861
    oprot.writeFieldStop()
12862
    oprot.writeStructEnd()
12863
 
12864
  def validate(self):
12865
    return
12866
 
12867
 
12868
  def __repr__(self):
12869
    L = ['%s=%r' % (key, value)
12870
      for key, value in self.__dict__.iteritems()]
12871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12872
 
12873
  def __eq__(self, other):
12874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12875
 
12876
  def __ne__(self, other):
12877
    return not (self == other)
12878
 
12879
class getBestDealsCount_result:
12880
  """
12881
  Attributes:
12882
   - success
12883
   - cex
12884
  """
12885
 
12886
  thrift_spec = (
12887
    (0, TType.I64, 'success', None, None, ), # 0
12888
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12889
  )
12890
 
12891
  def __init__(self, success=None, cex=None,):
12892
    self.success = success
12893
    self.cex = cex
12894
 
12895
  def read(self, iprot):
12896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12898
      return
12899
    iprot.readStructBegin()
12900
    while True:
12901
      (fname, ftype, fid) = iprot.readFieldBegin()
12902
      if ftype == TType.STOP:
12903
        break
12904
      if fid == 0:
12905
        if ftype == TType.I64:
12906
          self.success = iprot.readI64();
12907
        else:
12908
          iprot.skip(ftype)
12909
      elif fid == 1:
12910
        if ftype == TType.STRUCT:
12911
          self.cex = CatalogServiceException()
12912
          self.cex.read(iprot)
12913
        else:
12914
          iprot.skip(ftype)
12915
      else:
12916
        iprot.skip(ftype)
12917
      iprot.readFieldEnd()
12918
    iprot.readStructEnd()
12919
 
12920
  def write(self, oprot):
12921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12923
      return
12924
    oprot.writeStructBegin('getBestDealsCount_result')
12925
    if self.success is not None:
12926
      oprot.writeFieldBegin('success', TType.I64, 0)
12927
      oprot.writeI64(self.success)
12928
      oprot.writeFieldEnd()
12929
    if self.cex is not None:
12930
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12931
      self.cex.write(oprot)
12932
      oprot.writeFieldEnd()
12933
    oprot.writeFieldStop()
12934
    oprot.writeStructEnd()
12935
 
12936
  def validate(self):
12937
    return
12938
 
12939
 
12940
  def __repr__(self):
12941
    L = ['%s=%r' % (key, value)
12942
      for key, value in self.__dict__.iteritems()]
12943
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12944
 
12945
  def __eq__(self, other):
12946
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12947
 
12948
  def __ne__(self, other):
12949
    return not (self == other)
12950
 
12951
class getComingSoon_args:
12952
 
12953
  thrift_spec = (
12954
  )
12955
 
12956
  def read(self, iprot):
12957
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12958
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12959
      return
12960
    iprot.readStructBegin()
12961
    while True:
12962
      (fname, ftype, fid) = iprot.readFieldBegin()
12963
      if ftype == TType.STOP:
12964
        break
12965
      else:
12966
        iprot.skip(ftype)
12967
      iprot.readFieldEnd()
12968
    iprot.readStructEnd()
12969
 
12970
  def write(self, oprot):
12971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12973
      return
12974
    oprot.writeStructBegin('getComingSoon_args')
12975
    oprot.writeFieldStop()
12976
    oprot.writeStructEnd()
12977
 
12978
  def validate(self):
12979
    return
12980
 
12981
 
12982
  def __repr__(self):
12983
    L = ['%s=%r' % (key, value)
12984
      for key, value in self.__dict__.iteritems()]
12985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12986
 
12987
  def __eq__(self, other):
12988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12989
 
12990
  def __ne__(self, other):
12991
    return not (self == other)
12992
 
12993
class getComingSoon_result:
12994
  """
12995
  Attributes:
12996
   - success
12997
   - isex
12998
  """
12999
 
13000
  thrift_spec = (
13001
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13002
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13003
  )
13004
 
13005
  def __init__(self, success=None, isex=None,):
13006
    self.success = success
13007
    self.isex = isex
13008
 
13009
  def read(self, iprot):
13010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13012
      return
13013
    iprot.readStructBegin()
13014
    while True:
13015
      (fname, ftype, fid) = iprot.readFieldBegin()
13016
      if ftype == TType.STOP:
13017
        break
13018
      if fid == 0:
13019
        if ftype == TType.LIST:
13020
          self.success = []
13493 amit.gupta 13021
          (_etype144, _size141) = iprot.readListBegin()
13022
          for _i145 in xrange(_size141):
13023
            _elem146 = Item()
13024
            _elem146.read(iprot)
13025
            self.success.append(_elem146)
5944 mandeep.dh 13026
          iprot.readListEnd()
13027
        else:
13028
          iprot.skip(ftype)
13029
      elif fid == 1:
13030
        if ftype == TType.STRUCT:
13031
          self.isex = CatalogServiceException()
13032
          self.isex.read(iprot)
13033
        else:
13034
          iprot.skip(ftype)
13035
      else:
13036
        iprot.skip(ftype)
13037
      iprot.readFieldEnd()
13038
    iprot.readStructEnd()
13039
 
13040
  def write(self, oprot):
13041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13043
      return
13044
    oprot.writeStructBegin('getComingSoon_result')
13045
    if self.success is not None:
13046
      oprot.writeFieldBegin('success', TType.LIST, 0)
13047
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 13048
      for iter147 in self.success:
13049
        iter147.write(oprot)
5944 mandeep.dh 13050
      oprot.writeListEnd()
13051
      oprot.writeFieldEnd()
13052
    if self.isex is not None:
13053
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
13054
      self.isex.write(oprot)
13055
      oprot.writeFieldEnd()
13056
    oprot.writeFieldStop()
13057
    oprot.writeStructEnd()
13058
 
13059
  def validate(self):
13060
    return
13061
 
13062
 
13063
  def __repr__(self):
13064
    L = ['%s=%r' % (key, value)
13065
      for key, value in self.__dict__.iteritems()]
13066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13067
 
13068
  def __eq__(self, other):
13069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13070
 
13071
  def __ne__(self, other):
13072
    return not (self == other)
13073
 
13074
class getComingSoonCatalogIds_args:
13075
  """
13076
  Attributes:
13077
   - beginIndex
13078
   - totalItems
13079
   - brand
13080
   - category
13081
  """
13082
 
13083
  thrift_spec = (
13084
    None, # 0
13085
    (1, TType.I64, 'beginIndex', None, None, ), # 1
13086
    (2, TType.I64, 'totalItems', None, None, ), # 2
13087
    (3, TType.STRING, 'brand', None, None, ), # 3
13088
    (4, TType.I64, 'category', None, None, ), # 4
13089
  )
13090
 
13091
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
13092
    self.beginIndex = beginIndex
13093
    self.totalItems = totalItems
13094
    self.brand = brand
13095
    self.category = category
13096
 
13097
  def read(self, iprot):
13098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13100
      return
13101
    iprot.readStructBegin()
13102
    while True:
13103
      (fname, ftype, fid) = iprot.readFieldBegin()
13104
      if ftype == TType.STOP:
13105
        break
13106
      if fid == 1:
13107
        if ftype == TType.I64:
13108
          self.beginIndex = iprot.readI64();
13109
        else:
13110
          iprot.skip(ftype)
13111
      elif fid == 2:
13112
        if ftype == TType.I64:
13113
          self.totalItems = iprot.readI64();
13114
        else:
13115
          iprot.skip(ftype)
13116
      elif fid == 3:
13117
        if ftype == TType.STRING:
13118
          self.brand = iprot.readString();
13119
        else:
13120
          iprot.skip(ftype)
13121
      elif fid == 4:
13122
        if ftype == TType.I64:
13123
          self.category = iprot.readI64();
13124
        else:
13125
          iprot.skip(ftype)
13126
      else:
13127
        iprot.skip(ftype)
13128
      iprot.readFieldEnd()
13129
    iprot.readStructEnd()
13130
 
13131
  def write(self, oprot):
13132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13134
      return
13135
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
13136
    if self.beginIndex is not None:
13137
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
13138
      oprot.writeI64(self.beginIndex)
13139
      oprot.writeFieldEnd()
13140
    if self.totalItems is not None:
13141
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
13142
      oprot.writeI64(self.totalItems)
13143
      oprot.writeFieldEnd()
13144
    if self.brand is not None:
13145
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13146
      oprot.writeString(self.brand)
13147
      oprot.writeFieldEnd()
13148
    if self.category is not None:
13149
      oprot.writeFieldBegin('category', TType.I64, 4)
13150
      oprot.writeI64(self.category)
13151
      oprot.writeFieldEnd()
13152
    oprot.writeFieldStop()
13153
    oprot.writeStructEnd()
13154
 
13155
  def validate(self):
13156
    return
13157
 
13158
 
13159
  def __repr__(self):
13160
    L = ['%s=%r' % (key, value)
13161
      for key, value in self.__dict__.iteritems()]
13162
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13163
 
13164
  def __eq__(self, other):
13165
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13166
 
13167
  def __ne__(self, other):
13168
    return not (self == other)
13169
 
13170
class getComingSoonCatalogIds_result:
13171
  """
13172
  Attributes:
13173
   - success
13174
   - cex
13175
  """
13176
 
13177
  thrift_spec = (
13178
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13179
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13180
  )
13181
 
13182
  def __init__(self, success=None, cex=None,):
13183
    self.success = success
13184
    self.cex = cex
13185
 
13186
  def read(self, iprot):
13187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13189
      return
13190
    iprot.readStructBegin()
13191
    while True:
13192
      (fname, ftype, fid) = iprot.readFieldBegin()
13193
      if ftype == TType.STOP:
13194
        break
13195
      if fid == 0:
13196
        if ftype == TType.LIST:
13197
          self.success = []
13493 amit.gupta 13198
          (_etype151, _size148) = iprot.readListBegin()
13199
          for _i152 in xrange(_size148):
13200
            _elem153 = iprot.readI64();
13201
            self.success.append(_elem153)
5944 mandeep.dh 13202
          iprot.readListEnd()
13203
        else:
13204
          iprot.skip(ftype)
13205
      elif fid == 1:
13206
        if ftype == TType.STRUCT:
13207
          self.cex = CatalogServiceException()
13208
          self.cex.read(iprot)
13209
        else:
13210
          iprot.skip(ftype)
13211
      else:
13212
        iprot.skip(ftype)
13213
      iprot.readFieldEnd()
13214
    iprot.readStructEnd()
13215
 
13216
  def write(self, oprot):
13217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13219
      return
13220
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
13221
    if self.success is not None:
13222
      oprot.writeFieldBegin('success', TType.LIST, 0)
13223
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 13224
      for iter154 in self.success:
13225
        oprot.writeI64(iter154)
5944 mandeep.dh 13226
      oprot.writeListEnd()
13227
      oprot.writeFieldEnd()
13228
    if self.cex is not None:
13229
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13230
      self.cex.write(oprot)
13231
      oprot.writeFieldEnd()
13232
    oprot.writeFieldStop()
13233
    oprot.writeStructEnd()
13234
 
13235
  def validate(self):
13236
    return
13237
 
13238
 
13239
  def __repr__(self):
13240
    L = ['%s=%r' % (key, value)
13241
      for key, value in self.__dict__.iteritems()]
13242
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13243
 
13244
  def __eq__(self, other):
13245
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13246
 
13247
  def __ne__(self, other):
13248
    return not (self == other)
13249
 
13250
class getComingSoonCount_args:
13251
 
13252
  thrift_spec = (
13253
  )
13254
 
13255
  def read(self, iprot):
13256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13258
      return
13259
    iprot.readStructBegin()
13260
    while True:
13261
      (fname, ftype, fid) = iprot.readFieldBegin()
13262
      if ftype == TType.STOP:
13263
        break
13264
      else:
13265
        iprot.skip(ftype)
13266
      iprot.readFieldEnd()
13267
    iprot.readStructEnd()
13268
 
13269
  def write(self, oprot):
13270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13272
      return
13273
    oprot.writeStructBegin('getComingSoonCount_args')
13274
    oprot.writeFieldStop()
13275
    oprot.writeStructEnd()
13276
 
13277
  def validate(self):
13278
    return
13279
 
13280
 
13281
  def __repr__(self):
13282
    L = ['%s=%r' % (key, value)
13283
      for key, value in self.__dict__.iteritems()]
13284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13285
 
13286
  def __eq__(self, other):
13287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13288
 
13289
  def __ne__(self, other):
13290
    return not (self == other)
13291
 
13292
class getComingSoonCount_result:
13293
  """
13294
  Attributes:
13295
   - success
13296
   - cex
13297
  """
13298
 
13299
  thrift_spec = (
13300
    (0, TType.I64, 'success', None, None, ), # 0
13301
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13302
  )
13303
 
13304
  def __init__(self, success=None, cex=None,):
13305
    self.success = success
13306
    self.cex = cex
13307
 
13308
  def read(self, iprot):
13309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13311
      return
13312
    iprot.readStructBegin()
13313
    while True:
13314
      (fname, ftype, fid) = iprot.readFieldBegin()
13315
      if ftype == TType.STOP:
13316
        break
13317
      if fid == 0:
13318
        if ftype == TType.I64:
13319
          self.success = iprot.readI64();
13320
        else:
13321
          iprot.skip(ftype)
13322
      elif fid == 1:
13323
        if ftype == TType.STRUCT:
13324
          self.cex = CatalogServiceException()
13325
          self.cex.read(iprot)
13326
        else:
13327
          iprot.skip(ftype)
13328
      else:
13329
        iprot.skip(ftype)
13330
      iprot.readFieldEnd()
13331
    iprot.readStructEnd()
13332
 
13333
  def write(self, oprot):
13334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13336
      return
13337
    oprot.writeStructBegin('getComingSoonCount_result')
13338
    if self.success is not None:
13339
      oprot.writeFieldBegin('success', TType.I64, 0)
13340
      oprot.writeI64(self.success)
13341
      oprot.writeFieldEnd()
13342
    if self.cex is not None:
13343
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13344
      self.cex.write(oprot)
13345
      oprot.writeFieldEnd()
13346
    oprot.writeFieldStop()
13347
    oprot.writeStructEnd()
13348
 
13349
  def validate(self):
13350
    return
13351
 
13352
 
13353
  def __repr__(self):
13354
    L = ['%s=%r' % (key, value)
13355
      for key, value in self.__dict__.iteritems()]
13356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13357
 
13358
  def __eq__(self, other):
13359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13360
 
13361
  def __ne__(self, other):
13362
    return not (self == other)
13363
 
13364
class getLatestArrivals_args:
13365
 
13366
  thrift_spec = (
13367
  )
13368
 
13369
  def read(self, iprot):
13370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13372
      return
13373
    iprot.readStructBegin()
13374
    while True:
13375
      (fname, ftype, fid) = iprot.readFieldBegin()
13376
      if ftype == TType.STOP:
13377
        break
13378
      else:
13379
        iprot.skip(ftype)
13380
      iprot.readFieldEnd()
13381
    iprot.readStructEnd()
13382
 
13383
  def write(self, oprot):
13384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13386
      return
13387
    oprot.writeStructBegin('getLatestArrivals_args')
13388
    oprot.writeFieldStop()
13389
    oprot.writeStructEnd()
13390
 
13391
  def validate(self):
13392
    return
13393
 
13394
 
13395
  def __repr__(self):
13396
    L = ['%s=%r' % (key, value)
13397
      for key, value in self.__dict__.iteritems()]
13398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13399
 
13400
  def __eq__(self, other):
13401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13402
 
13403
  def __ne__(self, other):
13404
    return not (self == other)
13405
 
13406
class getLatestArrivals_result:
13407
  """
13408
  Attributes:
13409
   - success
13410
   - isex
13411
  """
13412
 
13413
  thrift_spec = (
13414
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13415
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13416
  )
13417
 
13418
  def __init__(self, success=None, isex=None,):
13419
    self.success = success
13420
    self.isex = isex
13421
 
13422
  def read(self, iprot):
13423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13425
      return
13426
    iprot.readStructBegin()
13427
    while True:
13428
      (fname, ftype, fid) = iprot.readFieldBegin()
13429
      if ftype == TType.STOP:
13430
        break
13431
      if fid == 0:
13432
        if ftype == TType.LIST:
13433
          self.success = []
13493 amit.gupta 13434
          (_etype158, _size155) = iprot.readListBegin()
13435
          for _i159 in xrange(_size155):
13436
            _elem160 = Item()
13437
            _elem160.read(iprot)
13438
            self.success.append(_elem160)
5944 mandeep.dh 13439
          iprot.readListEnd()
13440
        else:
13441
          iprot.skip(ftype)
13442
      elif fid == 1:
13443
        if ftype == TType.STRUCT:
13444
          self.isex = CatalogServiceException()
13445
          self.isex.read(iprot)
13446
        else:
13447
          iprot.skip(ftype)
13448
      else:
13449
        iprot.skip(ftype)
13450
      iprot.readFieldEnd()
13451
    iprot.readStructEnd()
13452
 
13453
  def write(self, oprot):
13454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13456
      return
13457
    oprot.writeStructBegin('getLatestArrivals_result')
13458
    if self.success is not None:
13459
      oprot.writeFieldBegin('success', TType.LIST, 0)
13460
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 13461
      for iter161 in self.success:
13462
        iter161.write(oprot)
5944 mandeep.dh 13463
      oprot.writeListEnd()
13464
      oprot.writeFieldEnd()
13465
    if self.isex is not None:
13466
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
13467
      self.isex.write(oprot)
13468
      oprot.writeFieldEnd()
13469
    oprot.writeFieldStop()
13470
    oprot.writeStructEnd()
13471
 
13472
  def validate(self):
13473
    return
13474
 
13475
 
13476
  def __repr__(self):
13477
    L = ['%s=%r' % (key, value)
13478
      for key, value in self.__dict__.iteritems()]
13479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13480
 
13481
  def __eq__(self, other):
13482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13483
 
13484
  def __ne__(self, other):
13485
    return not (self == other)
13486
 
13487
class getLatestArrivalsCatalogIds_args:
13488
  """
13489
  Attributes:
13490
   - beginIndex
13491
   - totalItems
13492
   - brand
13493
   - categories
13494
  """
13495
 
13496
  thrift_spec = (
13497
    None, # 0
13498
    (1, TType.I64, 'beginIndex', None, None, ), # 1
13499
    (2, TType.I64, 'totalItems', None, None, ), # 2
13500
    (3, TType.STRING, 'brand', None, None, ), # 3
13501
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
13502
  )
13503
 
13504
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
13505
    self.beginIndex = beginIndex
13506
    self.totalItems = totalItems
13507
    self.brand = brand
13508
    self.categories = categories
13509
 
13510
  def read(self, iprot):
13511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13513
      return
13514
    iprot.readStructBegin()
13515
    while True:
13516
      (fname, ftype, fid) = iprot.readFieldBegin()
13517
      if ftype == TType.STOP:
13518
        break
13519
      if fid == 1:
13520
        if ftype == TType.I64:
13521
          self.beginIndex = iprot.readI64();
13522
        else:
13523
          iprot.skip(ftype)
13524
      elif fid == 2:
13525
        if ftype == TType.I64:
13526
          self.totalItems = iprot.readI64();
13527
        else:
13528
          iprot.skip(ftype)
13529
      elif fid == 3:
13530
        if ftype == TType.STRING:
13531
          self.brand = iprot.readString();
13532
        else:
13533
          iprot.skip(ftype)
13534
      elif fid == 4:
13535
        if ftype == TType.LIST:
13536
          self.categories = []
13493 amit.gupta 13537
          (_etype165, _size162) = iprot.readListBegin()
13538
          for _i166 in xrange(_size162):
13539
            _elem167 = iprot.readI64();
13540
            self.categories.append(_elem167)
5944 mandeep.dh 13541
          iprot.readListEnd()
13542
        else:
13543
          iprot.skip(ftype)
13544
      else:
13545
        iprot.skip(ftype)
13546
      iprot.readFieldEnd()
13547
    iprot.readStructEnd()
13548
 
13549
  def write(self, oprot):
13550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13552
      return
13553
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
13554
    if self.beginIndex is not None:
13555
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
13556
      oprot.writeI64(self.beginIndex)
13557
      oprot.writeFieldEnd()
13558
    if self.totalItems is not None:
13559
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
13560
      oprot.writeI64(self.totalItems)
13561
      oprot.writeFieldEnd()
13562
    if self.brand is not None:
13563
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13564
      oprot.writeString(self.brand)
13565
      oprot.writeFieldEnd()
13566
    if self.categories is not None:
13567
      oprot.writeFieldBegin('categories', TType.LIST, 4)
13568
      oprot.writeListBegin(TType.I64, len(self.categories))
13493 amit.gupta 13569
      for iter168 in self.categories:
13570
        oprot.writeI64(iter168)
5944 mandeep.dh 13571
      oprot.writeListEnd()
13572
      oprot.writeFieldEnd()
13573
    oprot.writeFieldStop()
13574
    oprot.writeStructEnd()
13575
 
13576
  def validate(self):
13577
    return
13578
 
13579
 
13580
  def __repr__(self):
13581
    L = ['%s=%r' % (key, value)
13582
      for key, value in self.__dict__.iteritems()]
13583
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13584
 
13585
  def __eq__(self, other):
13586
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13587
 
13588
  def __ne__(self, other):
13589
    return not (self == other)
13590
 
13591
class getLatestArrivalsCatalogIds_result:
13592
  """
13593
  Attributes:
13594
   - success
13595
   - cex
13596
  """
13597
 
13598
  thrift_spec = (
13599
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13600
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13601
  )
13602
 
13603
  def __init__(self, success=None, cex=None,):
13604
    self.success = success
13605
    self.cex = cex
13606
 
13607
  def read(self, iprot):
13608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13610
      return
13611
    iprot.readStructBegin()
13612
    while True:
13613
      (fname, ftype, fid) = iprot.readFieldBegin()
13614
      if ftype == TType.STOP:
13615
        break
13616
      if fid == 0:
13617
        if ftype == TType.LIST:
13618
          self.success = []
13493 amit.gupta 13619
          (_etype172, _size169) = iprot.readListBegin()
13620
          for _i173 in xrange(_size169):
13621
            _elem174 = iprot.readI64();
13622
            self.success.append(_elem174)
5944 mandeep.dh 13623
          iprot.readListEnd()
13624
        else:
13625
          iprot.skip(ftype)
13626
      elif fid == 1:
13627
        if ftype == TType.STRUCT:
13628
          self.cex = CatalogServiceException()
13629
          self.cex.read(iprot)
13630
        else:
13631
          iprot.skip(ftype)
13632
      else:
13633
        iprot.skip(ftype)
13634
      iprot.readFieldEnd()
13635
    iprot.readStructEnd()
13636
 
13637
  def write(self, oprot):
13638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13640
      return
13641
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
13642
    if self.success is not None:
13643
      oprot.writeFieldBegin('success', TType.LIST, 0)
13644
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 13645
      for iter175 in self.success:
13646
        oprot.writeI64(iter175)
5944 mandeep.dh 13647
      oprot.writeListEnd()
13648
      oprot.writeFieldEnd()
13649
    if self.cex is not None:
13650
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13651
      self.cex.write(oprot)
13652
      oprot.writeFieldEnd()
13653
    oprot.writeFieldStop()
13654
    oprot.writeStructEnd()
13655
 
13656
  def validate(self):
13657
    return
13658
 
13659
 
13660
  def __repr__(self):
13661
    L = ['%s=%r' % (key, value)
13662
      for key, value in self.__dict__.iteritems()]
13663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13664
 
13665
  def __eq__(self, other):
13666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13667
 
13668
  def __ne__(self, other):
13669
    return not (self == other)
13670
 
13671
class getLatestArrivalsCount_args:
13672
 
13673
  thrift_spec = (
13674
  )
13675
 
13676
  def read(self, iprot):
13677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13679
      return
13680
    iprot.readStructBegin()
13681
    while True:
13682
      (fname, ftype, fid) = iprot.readFieldBegin()
13683
      if ftype == TType.STOP:
13684
        break
13685
      else:
13686
        iprot.skip(ftype)
13687
      iprot.readFieldEnd()
13688
    iprot.readStructEnd()
13689
 
13690
  def write(self, oprot):
13691
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13692
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13693
      return
13694
    oprot.writeStructBegin('getLatestArrivalsCount_args')
13695
    oprot.writeFieldStop()
13696
    oprot.writeStructEnd()
13697
 
13698
  def validate(self):
13699
    return
13700
 
13701
 
13702
  def __repr__(self):
13703
    L = ['%s=%r' % (key, value)
13704
      for key, value in self.__dict__.iteritems()]
13705
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13706
 
13707
  def __eq__(self, other):
13708
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13709
 
13710
  def __ne__(self, other):
13711
    return not (self == other)
13712
 
13713
class getLatestArrivalsCount_result:
13714
  """
13715
  Attributes:
13716
   - success
13717
   - cex
13718
  """
13719
 
13720
  thrift_spec = (
13721
    (0, TType.I64, 'success', None, None, ), # 0
13722
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13723
  )
13724
 
13725
  def __init__(self, success=None, cex=None,):
13726
    self.success = success
13727
    self.cex = cex
13728
 
13729
  def read(self, iprot):
13730
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13731
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13732
      return
13733
    iprot.readStructBegin()
13734
    while True:
13735
      (fname, ftype, fid) = iprot.readFieldBegin()
13736
      if ftype == TType.STOP:
13737
        break
13738
      if fid == 0:
13739
        if ftype == TType.I64:
13740
          self.success = iprot.readI64();
13741
        else:
13742
          iprot.skip(ftype)
13743
      elif fid == 1:
13744
        if ftype == TType.STRUCT:
13745
          self.cex = CatalogServiceException()
13746
          self.cex.read(iprot)
13747
        else:
13748
          iprot.skip(ftype)
13749
      else:
13750
        iprot.skip(ftype)
13751
      iprot.readFieldEnd()
13752
    iprot.readStructEnd()
13753
 
13754
  def write(self, oprot):
13755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13757
      return
13758
    oprot.writeStructBegin('getLatestArrivalsCount_result')
13759
    if self.success is not None:
13760
      oprot.writeFieldBegin('success', TType.I64, 0)
13761
      oprot.writeI64(self.success)
13762
      oprot.writeFieldEnd()
13763
    if self.cex is not None:
13764
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13765
      self.cex.write(oprot)
13766
      oprot.writeFieldEnd()
13767
    oprot.writeFieldStop()
13768
    oprot.writeStructEnd()
13769
 
13770
  def validate(self):
13771
    return
13772
 
13773
 
13774
  def __repr__(self):
13775
    L = ['%s=%r' % (key, value)
13776
      for key, value in self.__dict__.iteritems()]
13777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13778
 
13779
  def __eq__(self, other):
13780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13781
 
13782
  def __ne__(self, other):
13783
    return not (self == other)
13784
 
13785
class generateNewEntityID_args:
13786
 
13787
  thrift_spec = (
13788
  )
13789
 
13790
  def read(self, iprot):
13791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13793
      return
13794
    iprot.readStructBegin()
13795
    while True:
13796
      (fname, ftype, fid) = iprot.readFieldBegin()
13797
      if ftype == TType.STOP:
13798
        break
13799
      else:
13800
        iprot.skip(ftype)
13801
      iprot.readFieldEnd()
13802
    iprot.readStructEnd()
13803
 
13804
  def write(self, oprot):
13805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13807
      return
13808
    oprot.writeStructBegin('generateNewEntityID_args')
13809
    oprot.writeFieldStop()
13810
    oprot.writeStructEnd()
13811
 
13812
  def validate(self):
13813
    return
13814
 
13815
 
13816
  def __repr__(self):
13817
    L = ['%s=%r' % (key, value)
13818
      for key, value in self.__dict__.iteritems()]
13819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13820
 
13821
  def __eq__(self, other):
13822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13823
 
13824
  def __ne__(self, other):
13825
    return not (self == other)
13826
 
13827
class generateNewEntityID_result:
13828
  """
13829
  Attributes:
13830
   - success
13831
  """
13832
 
13833
  thrift_spec = (
13834
    (0, TType.I64, 'success', None, None, ), # 0
13835
  )
13836
 
13837
  def __init__(self, success=None,):
13838
    self.success = success
13839
 
13840
  def read(self, iprot):
13841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13843
      return
13844
    iprot.readStructBegin()
13845
    while True:
13846
      (fname, ftype, fid) = iprot.readFieldBegin()
13847
      if ftype == TType.STOP:
13848
        break
13849
      if fid == 0:
13850
        if ftype == TType.I64:
13851
          self.success = iprot.readI64();
13852
        else:
13853
          iprot.skip(ftype)
13854
      else:
13855
        iprot.skip(ftype)
13856
      iprot.readFieldEnd()
13857
    iprot.readStructEnd()
13858
 
13859
  def write(self, oprot):
13860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13862
      return
13863
    oprot.writeStructBegin('generateNewEntityID_result')
13864
    if self.success is not None:
13865
      oprot.writeFieldBegin('success', TType.I64, 0)
13866
      oprot.writeI64(self.success)
13867
      oprot.writeFieldEnd()
13868
    oprot.writeFieldStop()
13869
    oprot.writeStructEnd()
13870
 
13871
  def validate(self):
13872
    return
13873
 
13874
 
13875
  def __repr__(self):
13876
    L = ['%s=%r' % (key, value)
13877
      for key, value in self.__dict__.iteritems()]
13878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13879
 
13880
  def __eq__(self, other):
13881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13882
 
13883
  def __ne__(self, other):
13884
    return not (self == other)
13885
 
13886
class addCategory_args:
13887
  """
13888
  Attributes:
13889
   - category
13890
  """
13891
 
13892
  thrift_spec = (
13893
    None, # 0
13894
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
13895
  )
13896
 
13897
  def __init__(self, category=None,):
13898
    self.category = category
13899
 
13900
  def read(self, iprot):
13901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13903
      return
13904
    iprot.readStructBegin()
13905
    while True:
13906
      (fname, ftype, fid) = iprot.readFieldBegin()
13907
      if ftype == TType.STOP:
13908
        break
13909
      if fid == 1:
13910
        if ftype == TType.STRUCT:
13911
          self.category = Category()
13912
          self.category.read(iprot)
13913
        else:
13914
          iprot.skip(ftype)
13915
      else:
13916
        iprot.skip(ftype)
13917
      iprot.readFieldEnd()
13918
    iprot.readStructEnd()
13919
 
13920
  def write(self, oprot):
13921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13923
      return
13924
    oprot.writeStructBegin('addCategory_args')
13925
    if self.category is not None:
13926
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
13927
      self.category.write(oprot)
13928
      oprot.writeFieldEnd()
13929
    oprot.writeFieldStop()
13930
    oprot.writeStructEnd()
13931
 
13932
  def validate(self):
13933
    return
13934
 
13935
 
13936
  def __repr__(self):
13937
    L = ['%s=%r' % (key, value)
13938
      for key, value in self.__dict__.iteritems()]
13939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13940
 
13941
  def __eq__(self, other):
13942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13943
 
13944
  def __ne__(self, other):
13945
    return not (self == other)
13946
 
13947
class addCategory_result:
13948
  """
13949
  Attributes:
13950
   - success
13951
  """
13952
 
13953
  thrift_spec = (
13954
    (0, TType.BOOL, 'success', None, None, ), # 0
13955
  )
13956
 
13957
  def __init__(self, success=None,):
13958
    self.success = success
13959
 
13960
  def read(self, iprot):
13961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13963
      return
13964
    iprot.readStructBegin()
13965
    while True:
13966
      (fname, ftype, fid) = iprot.readFieldBegin()
13967
      if ftype == TType.STOP:
13968
        break
13969
      if fid == 0:
13970
        if ftype == TType.BOOL:
13971
          self.success = iprot.readBool();
13972
        else:
13973
          iprot.skip(ftype)
13974
      else:
13975
        iprot.skip(ftype)
13976
      iprot.readFieldEnd()
13977
    iprot.readStructEnd()
13978
 
13979
  def write(self, oprot):
13980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13982
      return
13983
    oprot.writeStructBegin('addCategory_result')
13984
    if self.success is not None:
13985
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13986
      oprot.writeBool(self.success)
13987
      oprot.writeFieldEnd()
13988
    oprot.writeFieldStop()
13989
    oprot.writeStructEnd()
13990
 
13991
  def validate(self):
13992
    return
13993
 
13994
 
13995
  def __repr__(self):
13996
    L = ['%s=%r' % (key, value)
13997
      for key, value in self.__dict__.iteritems()]
13998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13999
 
14000
  def __eq__(self, other):
14001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14002
 
14003
  def __ne__(self, other):
14004
    return not (self == other)
14005
 
14006
class getCategory_args:
14007
  """
14008
  Attributes:
14009
   - id
14010
  """
14011
 
14012
  thrift_spec = (
14013
    None, # 0
14014
    (1, TType.I64, 'id', None, None, ), # 1
14015
  )
14016
 
14017
  def __init__(self, id=None,):
14018
    self.id = id
14019
 
14020
  def read(self, iprot):
14021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14023
      return
14024
    iprot.readStructBegin()
14025
    while True:
14026
      (fname, ftype, fid) = iprot.readFieldBegin()
14027
      if ftype == TType.STOP:
14028
        break
14029
      if fid == 1:
14030
        if ftype == TType.I64:
14031
          self.id = iprot.readI64();
14032
        else:
14033
          iprot.skip(ftype)
14034
      else:
14035
        iprot.skip(ftype)
14036
      iprot.readFieldEnd()
14037
    iprot.readStructEnd()
14038
 
14039
  def write(self, oprot):
14040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14042
      return
14043
    oprot.writeStructBegin('getCategory_args')
14044
    if self.id is not None:
14045
      oprot.writeFieldBegin('id', TType.I64, 1)
14046
      oprot.writeI64(self.id)
14047
      oprot.writeFieldEnd()
14048
    oprot.writeFieldStop()
14049
    oprot.writeStructEnd()
14050
 
14051
  def validate(self):
14052
    return
14053
 
14054
 
14055
  def __repr__(self):
14056
    L = ['%s=%r' % (key, value)
14057
      for key, value in self.__dict__.iteritems()]
14058
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14059
 
14060
  def __eq__(self, other):
14061
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14062
 
14063
  def __ne__(self, other):
14064
    return not (self == other)
14065
 
14066
class getCategory_result:
14067
  """
14068
  Attributes:
14069
   - success
14070
  """
14071
 
14072
  thrift_spec = (
14073
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
14074
  )
14075
 
14076
  def __init__(self, success=None,):
14077
    self.success = success
14078
 
14079
  def read(self, iprot):
14080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14082
      return
14083
    iprot.readStructBegin()
14084
    while True:
14085
      (fname, ftype, fid) = iprot.readFieldBegin()
14086
      if ftype == TType.STOP:
14087
        break
14088
      if fid == 0:
14089
        if ftype == TType.STRUCT:
14090
          self.success = Category()
14091
          self.success.read(iprot)
14092
        else:
14093
          iprot.skip(ftype)
14094
      else:
14095
        iprot.skip(ftype)
14096
      iprot.readFieldEnd()
14097
    iprot.readStructEnd()
14098
 
14099
  def write(self, oprot):
14100
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14101
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14102
      return
14103
    oprot.writeStructBegin('getCategory_result')
14104
    if self.success is not None:
14105
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14106
      self.success.write(oprot)
14107
      oprot.writeFieldEnd()
14108
    oprot.writeFieldStop()
14109
    oprot.writeStructEnd()
14110
 
14111
  def validate(self):
14112
    return
14113
 
14114
 
14115
  def __repr__(self):
14116
    L = ['%s=%r' % (key, value)
14117
      for key, value in self.__dict__.iteritems()]
14118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14119
 
14120
  def __eq__(self, other):
14121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14122
 
14123
  def __ne__(self, other):
14124
    return not (self == other)
14125
 
14126
class getAllCategories_args:
14127
 
14128
  thrift_spec = (
14129
  )
14130
 
14131
  def read(self, iprot):
14132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14134
      return
14135
    iprot.readStructBegin()
14136
    while True:
14137
      (fname, ftype, fid) = iprot.readFieldBegin()
14138
      if ftype == TType.STOP:
14139
        break
14140
      else:
14141
        iprot.skip(ftype)
14142
      iprot.readFieldEnd()
14143
    iprot.readStructEnd()
14144
 
14145
  def write(self, oprot):
14146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14148
      return
14149
    oprot.writeStructBegin('getAllCategories_args')
14150
    oprot.writeFieldStop()
14151
    oprot.writeStructEnd()
14152
 
14153
  def validate(self):
14154
    return
14155
 
14156
 
14157
  def __repr__(self):
14158
    L = ['%s=%r' % (key, value)
14159
      for key, value in self.__dict__.iteritems()]
14160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14161
 
14162
  def __eq__(self, other):
14163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14164
 
14165
  def __ne__(self, other):
14166
    return not (self == other)
14167
 
14168
class getAllCategories_result:
14169
  """
14170
  Attributes:
14171
   - success
14172
  """
14173
 
14174
  thrift_spec = (
14175
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
14176
  )
14177
 
14178
  def __init__(self, success=None,):
14179
    self.success = success
14180
 
14181
  def read(self, iprot):
14182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14184
      return
14185
    iprot.readStructBegin()
14186
    while True:
14187
      (fname, ftype, fid) = iprot.readFieldBegin()
14188
      if ftype == TType.STOP:
14189
        break
14190
      if fid == 0:
14191
        if ftype == TType.LIST:
14192
          self.success = []
13493 amit.gupta 14193
          (_etype179, _size176) = iprot.readListBegin()
14194
          for _i180 in xrange(_size176):
14195
            _elem181 = Category()
14196
            _elem181.read(iprot)
14197
            self.success.append(_elem181)
5944 mandeep.dh 14198
          iprot.readListEnd()
14199
        else:
14200
          iprot.skip(ftype)
14201
      else:
14202
        iprot.skip(ftype)
14203
      iprot.readFieldEnd()
14204
    iprot.readStructEnd()
14205
 
14206
  def write(self, oprot):
14207
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14208
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14209
      return
14210
    oprot.writeStructBegin('getAllCategories_result')
14211
    if self.success is not None:
14212
      oprot.writeFieldBegin('success', TType.LIST, 0)
14213
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 14214
      for iter182 in self.success:
14215
        iter182.write(oprot)
5944 mandeep.dh 14216
      oprot.writeListEnd()
14217
      oprot.writeFieldEnd()
14218
    oprot.writeFieldStop()
14219
    oprot.writeStructEnd()
14220
 
14221
  def validate(self):
14222
    return
14223
 
14224
 
14225
  def __repr__(self):
14226
    L = ['%s=%r' % (key, value)
14227
      for key, value in self.__dict__.iteritems()]
14228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14229
 
14230
  def __eq__(self, other):
14231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14232
 
14233
  def __ne__(self, other):
14234
    return not (self == other)
14235
 
14236
class getAllSimilarItems_args:
14237
  """
14238
  Attributes:
14239
   - itemId
14240
  """
14241
 
14242
  thrift_spec = (
14243
    None, # 0
14244
    (1, TType.I64, 'itemId', None, None, ), # 1
14245
  )
14246
 
14247
  def __init__(self, itemId=None,):
14248
    self.itemId = itemId
14249
 
14250
  def read(self, iprot):
14251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14253
      return
14254
    iprot.readStructBegin()
14255
    while True:
14256
      (fname, ftype, fid) = iprot.readFieldBegin()
14257
      if ftype == TType.STOP:
14258
        break
14259
      if fid == 1:
14260
        if ftype == TType.I64:
14261
          self.itemId = iprot.readI64();
14262
        else:
14263
          iprot.skip(ftype)
14264
      else:
14265
        iprot.skip(ftype)
14266
      iprot.readFieldEnd()
14267
    iprot.readStructEnd()
14268
 
14269
  def write(self, oprot):
14270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14272
      return
14273
    oprot.writeStructBegin('getAllSimilarItems_args')
14274
    if self.itemId is not None:
14275
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14276
      oprot.writeI64(self.itemId)
14277
      oprot.writeFieldEnd()
14278
    oprot.writeFieldStop()
14279
    oprot.writeStructEnd()
14280
 
14281
  def validate(self):
14282
    return
14283
 
14284
 
14285
  def __repr__(self):
14286
    L = ['%s=%r' % (key, value)
14287
      for key, value in self.__dict__.iteritems()]
14288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14289
 
14290
  def __eq__(self, other):
14291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14292
 
14293
  def __ne__(self, other):
14294
    return not (self == other)
14295
 
14296
class getAllSimilarItems_result:
14297
  """
14298
  Attributes:
14299
   - success
14300
  """
14301
 
14302
  thrift_spec = (
14303
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14304
  )
14305
 
14306
  def __init__(self, success=None,):
14307
    self.success = success
14308
 
14309
  def read(self, iprot):
14310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14312
      return
14313
    iprot.readStructBegin()
14314
    while True:
14315
      (fname, ftype, fid) = iprot.readFieldBegin()
14316
      if ftype == TType.STOP:
14317
        break
14318
      if fid == 0:
14319
        if ftype == TType.LIST:
14320
          self.success = []
13493 amit.gupta 14321
          (_etype186, _size183) = iprot.readListBegin()
14322
          for _i187 in xrange(_size183):
14323
            _elem188 = Item()
14324
            _elem188.read(iprot)
14325
            self.success.append(_elem188)
5944 mandeep.dh 14326
          iprot.readListEnd()
14327
        else:
14328
          iprot.skip(ftype)
14329
      else:
14330
        iprot.skip(ftype)
14331
      iprot.readFieldEnd()
14332
    iprot.readStructEnd()
14333
 
14334
  def write(self, oprot):
14335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14337
      return
14338
    oprot.writeStructBegin('getAllSimilarItems_result')
14339
    if self.success is not None:
14340
      oprot.writeFieldBegin('success', TType.LIST, 0)
14341
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 14342
      for iter189 in self.success:
14343
        iter189.write(oprot)
5944 mandeep.dh 14344
      oprot.writeListEnd()
14345
      oprot.writeFieldEnd()
14346
    oprot.writeFieldStop()
14347
    oprot.writeStructEnd()
14348
 
14349
  def validate(self):
14350
    return
14351
 
14352
 
14353
  def __repr__(self):
14354
    L = ['%s=%r' % (key, value)
14355
      for key, value in self.__dict__.iteritems()]
14356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14357
 
14358
  def __eq__(self, other):
14359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14360
 
14361
  def __ne__(self, other):
14362
    return not (self == other)
14363
 
14364
class addSimilarItem_args:
14365
  """
14366
  Attributes:
14367
   - itemId
14368
   - catalogItemId
14369
  """
14370
 
14371
  thrift_spec = (
14372
    None, # 0
14373
    (1, TType.I64, 'itemId', None, None, ), # 1
14374
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
14375
  )
14376
 
14377
  def __init__(self, itemId=None, catalogItemId=None,):
14378
    self.itemId = itemId
14379
    self.catalogItemId = catalogItemId
14380
 
14381
  def read(self, iprot):
14382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14384
      return
14385
    iprot.readStructBegin()
14386
    while True:
14387
      (fname, ftype, fid) = iprot.readFieldBegin()
14388
      if ftype == TType.STOP:
14389
        break
14390
      if fid == 1:
14391
        if ftype == TType.I64:
14392
          self.itemId = iprot.readI64();
14393
        else:
14394
          iprot.skip(ftype)
14395
      elif fid == 2:
14396
        if ftype == TType.I64:
14397
          self.catalogItemId = iprot.readI64();
14398
        else:
14399
          iprot.skip(ftype)
14400
      else:
14401
        iprot.skip(ftype)
14402
      iprot.readFieldEnd()
14403
    iprot.readStructEnd()
14404
 
14405
  def write(self, oprot):
14406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14408
      return
14409
    oprot.writeStructBegin('addSimilarItem_args')
14410
    if self.itemId is not None:
14411
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14412
      oprot.writeI64(self.itemId)
14413
      oprot.writeFieldEnd()
14414
    if self.catalogItemId is not None:
14415
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
14416
      oprot.writeI64(self.catalogItemId)
14417
      oprot.writeFieldEnd()
14418
    oprot.writeFieldStop()
14419
    oprot.writeStructEnd()
14420
 
14421
  def validate(self):
14422
    return
14423
 
14424
 
14425
  def __repr__(self):
14426
    L = ['%s=%r' % (key, value)
14427
      for key, value in self.__dict__.iteritems()]
14428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14429
 
14430
  def __eq__(self, other):
14431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14432
 
14433
  def __ne__(self, other):
14434
    return not (self == other)
14435
 
14436
class addSimilarItem_result:
14437
  """
14438
  Attributes:
14439
   - success
14440
   - cex
14441
  """
14442
 
14443
  thrift_spec = (
14444
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
14445
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14446
  )
14447
 
14448
  def __init__(self, success=None, cex=None,):
14449
    self.success = success
14450
    self.cex = cex
14451
 
14452
  def read(self, iprot):
14453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14455
      return
14456
    iprot.readStructBegin()
14457
    while True:
14458
      (fname, ftype, fid) = iprot.readFieldBegin()
14459
      if ftype == TType.STOP:
14460
        break
14461
      if fid == 0:
14462
        if ftype == TType.STRUCT:
14463
          self.success = Item()
14464
          self.success.read(iprot)
14465
        else:
14466
          iprot.skip(ftype)
14467
      elif fid == 1:
14468
        if ftype == TType.STRUCT:
14469
          self.cex = CatalogServiceException()
14470
          self.cex.read(iprot)
14471
        else:
14472
          iprot.skip(ftype)
14473
      else:
14474
        iprot.skip(ftype)
14475
      iprot.readFieldEnd()
14476
    iprot.readStructEnd()
14477
 
14478
  def write(self, oprot):
14479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14481
      return
14482
    oprot.writeStructBegin('addSimilarItem_result')
14483
    if self.success is not None:
14484
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14485
      self.success.write(oprot)
14486
      oprot.writeFieldEnd()
14487
    if self.cex is not None:
14488
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14489
      self.cex.write(oprot)
14490
      oprot.writeFieldEnd()
14491
    oprot.writeFieldStop()
14492
    oprot.writeStructEnd()
14493
 
14494
  def validate(self):
14495
    return
14496
 
14497
 
14498
  def __repr__(self):
14499
    L = ['%s=%r' % (key, value)
14500
      for key, value in self.__dict__.iteritems()]
14501
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14502
 
14503
  def __eq__(self, other):
14504
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14505
 
14506
  def __ne__(self, other):
14507
    return not (self == other)
14508
 
6512 kshitij.so 14509
class addTag_args:
14510
  """
14511
  Attributes:
14512
   - displayName
14513
   - itemId
14514
  """
14515
 
14516
  thrift_spec = (
14517
    None, # 0
14518
    (1, TType.STRING, 'displayName', None, None, ), # 1
14519
    (2, TType.I64, 'itemId', None, None, ), # 2
14520
  )
14521
 
14522
  def __init__(self, displayName=None, itemId=None,):
14523
    self.displayName = displayName
14524
    self.itemId = itemId
14525
 
14526
  def read(self, iprot):
14527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14529
      return
14530
    iprot.readStructBegin()
14531
    while True:
14532
      (fname, ftype, fid) = iprot.readFieldBegin()
14533
      if ftype == TType.STOP:
14534
        break
14535
      if fid == 1:
14536
        if ftype == TType.STRING:
14537
          self.displayName = iprot.readString();
14538
        else:
14539
          iprot.skip(ftype)
14540
      elif fid == 2:
14541
        if ftype == TType.I64:
14542
          self.itemId = iprot.readI64();
14543
        else:
14544
          iprot.skip(ftype)
14545
      else:
14546
        iprot.skip(ftype)
14547
      iprot.readFieldEnd()
14548
    iprot.readStructEnd()
14549
 
14550
  def write(self, oprot):
14551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14553
      return
14554
    oprot.writeStructBegin('addTag_args')
14555
    if self.displayName is not None:
14556
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14557
      oprot.writeString(self.displayName)
14558
      oprot.writeFieldEnd()
14559
    if self.itemId is not None:
14560
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14561
      oprot.writeI64(self.itemId)
14562
      oprot.writeFieldEnd()
14563
    oprot.writeFieldStop()
14564
    oprot.writeStructEnd()
14565
 
14566
  def validate(self):
14567
    return
14568
 
14569
 
14570
  def __repr__(self):
14571
    L = ['%s=%r' % (key, value)
14572
      for key, value in self.__dict__.iteritems()]
14573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14574
 
14575
  def __eq__(self, other):
14576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14577
 
14578
  def __ne__(self, other):
14579
    return not (self == other)
14580
 
14581
class addTag_result:
14582
  """
14583
  Attributes:
14584
   - success
14585
  """
14586
 
14587
  thrift_spec = (
14588
    (0, TType.BOOL, 'success', None, None, ), # 0
14589
  )
14590
 
14591
  def __init__(self, success=None,):
14592
    self.success = success
14593
 
14594
  def read(self, iprot):
14595
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14596
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14597
      return
14598
    iprot.readStructBegin()
14599
    while True:
14600
      (fname, ftype, fid) = iprot.readFieldBegin()
14601
      if ftype == TType.STOP:
14602
        break
14603
      if fid == 0:
14604
        if ftype == TType.BOOL:
14605
          self.success = iprot.readBool();
14606
        else:
14607
          iprot.skip(ftype)
14608
      else:
14609
        iprot.skip(ftype)
14610
      iprot.readFieldEnd()
14611
    iprot.readStructEnd()
14612
 
14613
  def write(self, oprot):
14614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14616
      return
14617
    oprot.writeStructBegin('addTag_result')
14618
    if self.success is not None:
14619
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14620
      oprot.writeBool(self.success)
14621
      oprot.writeFieldEnd()
14622
    oprot.writeFieldStop()
14623
    oprot.writeStructEnd()
14624
 
14625
  def validate(self):
14626
    return
14627
 
14628
 
14629
  def __repr__(self):
14630
    L = ['%s=%r' % (key, value)
14631
      for key, value in self.__dict__.iteritems()]
14632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14633
 
14634
  def __eq__(self, other):
14635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14636
 
14637
  def __ne__(self, other):
14638
    return not (self == other)
14639
 
14640
class deleteEntityTag_args:
14641
  """
14642
  Attributes:
14643
   - displayName
14644
   - itemId
14645
  """
14646
 
14647
  thrift_spec = (
14648
    None, # 0
14649
    (1, TType.STRING, 'displayName', None, None, ), # 1
14650
    (2, TType.I64, 'itemId', None, None, ), # 2
14651
  )
14652
 
14653
  def __init__(self, displayName=None, itemId=None,):
14654
    self.displayName = displayName
14655
    self.itemId = itemId
14656
 
14657
  def read(self, iprot):
14658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14660
      return
14661
    iprot.readStructBegin()
14662
    while True:
14663
      (fname, ftype, fid) = iprot.readFieldBegin()
14664
      if ftype == TType.STOP:
14665
        break
14666
      if fid == 1:
14667
        if ftype == TType.STRING:
14668
          self.displayName = iprot.readString();
14669
        else:
14670
          iprot.skip(ftype)
14671
      elif fid == 2:
14672
        if ftype == TType.I64:
14673
          self.itemId = iprot.readI64();
14674
        else:
14675
          iprot.skip(ftype)
14676
      else:
14677
        iprot.skip(ftype)
14678
      iprot.readFieldEnd()
14679
    iprot.readStructEnd()
14680
 
14681
  def write(self, oprot):
14682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14684
      return
14685
    oprot.writeStructBegin('deleteEntityTag_args')
14686
    if self.displayName is not None:
14687
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14688
      oprot.writeString(self.displayName)
14689
      oprot.writeFieldEnd()
14690
    if self.itemId is not None:
14691
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14692
      oprot.writeI64(self.itemId)
14693
      oprot.writeFieldEnd()
14694
    oprot.writeFieldStop()
14695
    oprot.writeStructEnd()
14696
 
14697
  def validate(self):
14698
    return
14699
 
14700
 
14701
  def __repr__(self):
14702
    L = ['%s=%r' % (key, value)
14703
      for key, value in self.__dict__.iteritems()]
14704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14705
 
14706
  def __eq__(self, other):
14707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14708
 
14709
  def __ne__(self, other):
14710
    return not (self == other)
14711
 
14712
class deleteEntityTag_result:
14713
  """
14714
  Attributes:
14715
   - success
14716
  """
14717
 
14718
  thrift_spec = (
14719
    (0, TType.BOOL, 'success', None, None, ), # 0
14720
  )
14721
 
14722
  def __init__(self, success=None,):
14723
    self.success = success
14724
 
14725
  def read(self, iprot):
14726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14728
      return
14729
    iprot.readStructBegin()
14730
    while True:
14731
      (fname, ftype, fid) = iprot.readFieldBegin()
14732
      if ftype == TType.STOP:
14733
        break
14734
      if fid == 0:
14735
        if ftype == TType.BOOL:
14736
          self.success = iprot.readBool();
14737
        else:
14738
          iprot.skip(ftype)
14739
      else:
14740
        iprot.skip(ftype)
14741
      iprot.readFieldEnd()
14742
    iprot.readStructEnd()
14743
 
14744
  def write(self, oprot):
14745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14747
      return
14748
    oprot.writeStructBegin('deleteEntityTag_result')
14749
    if self.success is not None:
14750
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14751
      oprot.writeBool(self.success)
14752
      oprot.writeFieldEnd()
14753
    oprot.writeFieldStop()
14754
    oprot.writeStructEnd()
14755
 
14756
  def validate(self):
14757
    return
14758
 
14759
 
14760
  def __repr__(self):
14761
    L = ['%s=%r' % (key, value)
14762
      for key, value in self.__dict__.iteritems()]
14763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14764
 
14765
  def __eq__(self, other):
14766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14767
 
14768
  def __ne__(self, other):
14769
    return not (self == other)
14770
 
14771
class deleteTag_args:
14772
  """
14773
  Attributes:
14774
   - displayName
14775
  """
14776
 
14777
  thrift_spec = (
14778
    None, # 0
14779
    (1, TType.STRING, 'displayName', None, None, ), # 1
14780
  )
14781
 
14782
  def __init__(self, displayName=None,):
14783
    self.displayName = displayName
14784
 
14785
  def read(self, iprot):
14786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14788
      return
14789
    iprot.readStructBegin()
14790
    while True:
14791
      (fname, ftype, fid) = iprot.readFieldBegin()
14792
      if ftype == TType.STOP:
14793
        break
14794
      if fid == 1:
14795
        if ftype == TType.STRING:
14796
          self.displayName = iprot.readString();
14797
        else:
14798
          iprot.skip(ftype)
14799
      else:
14800
        iprot.skip(ftype)
14801
      iprot.readFieldEnd()
14802
    iprot.readStructEnd()
14803
 
14804
  def write(self, oprot):
14805
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14806
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14807
      return
14808
    oprot.writeStructBegin('deleteTag_args')
14809
    if self.displayName is not None:
14810
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14811
      oprot.writeString(self.displayName)
14812
      oprot.writeFieldEnd()
14813
    oprot.writeFieldStop()
14814
    oprot.writeStructEnd()
14815
 
14816
  def validate(self):
14817
    return
14818
 
14819
 
14820
  def __repr__(self):
14821
    L = ['%s=%r' % (key, value)
14822
      for key, value in self.__dict__.iteritems()]
14823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14824
 
14825
  def __eq__(self, other):
14826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14827
 
14828
  def __ne__(self, other):
14829
    return not (self == other)
14830
 
14831
class deleteTag_result:
14832
  """
14833
  Attributes:
14834
   - success
14835
  """
14836
 
14837
  thrift_spec = (
14838
    (0, TType.BOOL, 'success', None, None, ), # 0
14839
  )
14840
 
14841
  def __init__(self, success=None,):
14842
    self.success = success
14843
 
14844
  def read(self, iprot):
14845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14847
      return
14848
    iprot.readStructBegin()
14849
    while True:
14850
      (fname, ftype, fid) = iprot.readFieldBegin()
14851
      if ftype == TType.STOP:
14852
        break
14853
      if fid == 0:
14854
        if ftype == TType.BOOL:
14855
          self.success = iprot.readBool();
14856
        else:
14857
          iprot.skip(ftype)
14858
      else:
14859
        iprot.skip(ftype)
14860
      iprot.readFieldEnd()
14861
    iprot.readStructEnd()
14862
 
14863
  def write(self, oprot):
14864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14866
      return
14867
    oprot.writeStructBegin('deleteTag_result')
14868
    if self.success is not None:
14869
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14870
      oprot.writeBool(self.success)
14871
      oprot.writeFieldEnd()
14872
    oprot.writeFieldStop()
14873
    oprot.writeStructEnd()
14874
 
14875
  def validate(self):
14876
    return
14877
 
14878
 
14879
  def __repr__(self):
14880
    L = ['%s=%r' % (key, value)
14881
      for key, value in self.__dict__.iteritems()]
14882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14883
 
14884
  def __eq__(self, other):
14885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14886
 
14887
  def __ne__(self, other):
14888
    return not (self == other)
14889
 
14890
class getAllTags_args:
14891
 
14892
  thrift_spec = (
14893
  )
14894
 
14895
  def read(self, iprot):
14896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14898
      return
14899
    iprot.readStructBegin()
14900
    while True:
14901
      (fname, ftype, fid) = iprot.readFieldBegin()
14902
      if ftype == TType.STOP:
14903
        break
14904
      else:
14905
        iprot.skip(ftype)
14906
      iprot.readFieldEnd()
14907
    iprot.readStructEnd()
14908
 
14909
  def write(self, oprot):
14910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14912
      return
14913
    oprot.writeStructBegin('getAllTags_args')
14914
    oprot.writeFieldStop()
14915
    oprot.writeStructEnd()
14916
 
14917
  def validate(self):
14918
    return
14919
 
14920
 
14921
  def __repr__(self):
14922
    L = ['%s=%r' % (key, value)
14923
      for key, value in self.__dict__.iteritems()]
14924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14925
 
14926
  def __eq__(self, other):
14927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14928
 
14929
  def __ne__(self, other):
14930
    return not (self == other)
14931
 
14932
class getAllTags_result:
14933
  """
14934
  Attributes:
14935
   - success
14936
  """
14937
 
14938
  thrift_spec = (
14939
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14940
  )
14941
 
14942
  def __init__(self, success=None,):
14943
    self.success = success
14944
 
14945
  def read(self, iprot):
14946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14948
      return
14949
    iprot.readStructBegin()
14950
    while True:
14951
      (fname, ftype, fid) = iprot.readFieldBegin()
14952
      if ftype == TType.STOP:
14953
        break
14954
      if fid == 0:
14955
        if ftype == TType.LIST:
14956
          self.success = []
13493 amit.gupta 14957
          (_etype193, _size190) = iprot.readListBegin()
14958
          for _i194 in xrange(_size190):
14959
            _elem195 = iprot.readString();
14960
            self.success.append(_elem195)
6512 kshitij.so 14961
          iprot.readListEnd()
14962
        else:
14963
          iprot.skip(ftype)
14964
      else:
14965
        iprot.skip(ftype)
14966
      iprot.readFieldEnd()
14967
    iprot.readStructEnd()
14968
 
14969
  def write(self, oprot):
14970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14972
      return
14973
    oprot.writeStructBegin('getAllTags_result')
14974
    if self.success is not None:
14975
      oprot.writeFieldBegin('success', TType.LIST, 0)
14976
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 14977
      for iter196 in self.success:
14978
        oprot.writeString(iter196)
6512 kshitij.so 14979
      oprot.writeListEnd()
14980
      oprot.writeFieldEnd()
14981
    oprot.writeFieldStop()
14982
    oprot.writeStructEnd()
14983
 
14984
  def validate(self):
14985
    return
14986
 
14987
 
14988
  def __repr__(self):
14989
    L = ['%s=%r' % (key, value)
14990
      for key, value in self.__dict__.iteritems()]
14991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14992
 
14993
  def __eq__(self, other):
14994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14995
 
14996
  def __ne__(self, other):
14997
    return not (self == other)
14998
 
14999
class getAllEntitiesByTagName_args:
15000
  """
15001
  Attributes:
15002
   - displayName
15003
  """
15004
 
15005
  thrift_spec = (
15006
    None, # 0
15007
    (1, TType.STRING, 'displayName', None, None, ), # 1
15008
  )
15009
 
15010
  def __init__(self, displayName=None,):
15011
    self.displayName = displayName
15012
 
15013
  def read(self, iprot):
15014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15016
      return
15017
    iprot.readStructBegin()
15018
    while True:
15019
      (fname, ftype, fid) = iprot.readFieldBegin()
15020
      if ftype == TType.STOP:
15021
        break
15022
      if fid == 1:
15023
        if ftype == TType.STRING:
15024
          self.displayName = iprot.readString();
15025
        else:
15026
          iprot.skip(ftype)
15027
      else:
15028
        iprot.skip(ftype)
15029
      iprot.readFieldEnd()
15030
    iprot.readStructEnd()
15031
 
15032
  def write(self, oprot):
15033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15035
      return
15036
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
15037
    if self.displayName is not None:
15038
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
15039
      oprot.writeString(self.displayName)
15040
      oprot.writeFieldEnd()
15041
    oprot.writeFieldStop()
15042
    oprot.writeStructEnd()
15043
 
15044
  def validate(self):
15045
    return
15046
 
15047
 
15048
  def __repr__(self):
15049
    L = ['%s=%r' % (key, value)
15050
      for key, value in self.__dict__.iteritems()]
15051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15052
 
15053
  def __eq__(self, other):
15054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15055
 
15056
  def __ne__(self, other):
15057
    return not (self == other)
15058
 
15059
class getAllEntitiesByTagName_result:
15060
  """
15061
  Attributes:
15062
   - success
15063
  """
15064
 
15065
  thrift_spec = (
15066
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
15067
  )
15068
 
15069
  def __init__(self, success=None,):
15070
    self.success = success
15071
 
15072
  def read(self, iprot):
15073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15075
      return
15076
    iprot.readStructBegin()
15077
    while True:
15078
      (fname, ftype, fid) = iprot.readFieldBegin()
15079
      if ftype == TType.STOP:
15080
        break
15081
      if fid == 0:
15082
        if ftype == TType.LIST:
15083
          self.success = []
13493 amit.gupta 15084
          (_etype200, _size197) = iprot.readListBegin()
15085
          for _i201 in xrange(_size197):
15086
            _elem202 = iprot.readI64();
15087
            self.success.append(_elem202)
6512 kshitij.so 15088
          iprot.readListEnd()
15089
        else:
15090
          iprot.skip(ftype)
15091
      else:
15092
        iprot.skip(ftype)
15093
      iprot.readFieldEnd()
15094
    iprot.readStructEnd()
15095
 
15096
  def write(self, oprot):
15097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15099
      return
15100
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
15101
    if self.success is not None:
15102
      oprot.writeFieldBegin('success', TType.LIST, 0)
15103
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 15104
      for iter203 in self.success:
15105
        oprot.writeI64(iter203)
6512 kshitij.so 15106
      oprot.writeListEnd()
15107
      oprot.writeFieldEnd()
15108
    oprot.writeFieldStop()
15109
    oprot.writeStructEnd()
15110
 
15111
  def validate(self):
15112
    return
15113
 
15114
 
15115
  def __repr__(self):
15116
    L = ['%s=%r' % (key, value)
15117
      for key, value in self.__dict__.iteritems()]
15118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15119
 
15120
  def __eq__(self, other):
15121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15122
 
15123
  def __ne__(self, other):
15124
    return not (self == other)
15125
 
6845 amit.gupta 15126
class getAllEntityTags_args:
15127
 
15128
  thrift_spec = (
15129
  )
15130
 
15131
  def read(self, iprot):
15132
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15133
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15134
      return
15135
    iprot.readStructBegin()
15136
    while True:
15137
      (fname, ftype, fid) = iprot.readFieldBegin()
15138
      if ftype == TType.STOP:
15139
        break
15140
      else:
15141
        iprot.skip(ftype)
15142
      iprot.readFieldEnd()
15143
    iprot.readStructEnd()
15144
 
15145
  def write(self, oprot):
15146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15148
      return
15149
    oprot.writeStructBegin('getAllEntityTags_args')
15150
    oprot.writeFieldStop()
15151
    oprot.writeStructEnd()
15152
 
15153
  def validate(self):
15154
    return
15155
 
15156
 
15157
  def __repr__(self):
15158
    L = ['%s=%r' % (key, value)
15159
      for key, value in self.__dict__.iteritems()]
15160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15161
 
15162
  def __eq__(self, other):
15163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15164
 
15165
  def __ne__(self, other):
15166
    return not (self == other)
15167
 
15168
class getAllEntityTags_result:
15169
  """
15170
  Attributes:
15171
   - success
15172
  """
15173
 
15174
  thrift_spec = (
15175
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
15176
  )
15177
 
15178
  def __init__(self, success=None,):
15179
    self.success = success
15180
 
15181
  def read(self, iprot):
15182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15184
      return
15185
    iprot.readStructBegin()
15186
    while True:
15187
      (fname, ftype, fid) = iprot.readFieldBegin()
15188
      if ftype == TType.STOP:
15189
        break
15190
      if fid == 0:
15191
        if ftype == TType.MAP:
15192
          self.success = {}
13493 amit.gupta 15193
          (_ktype205, _vtype206, _size204 ) = iprot.readMapBegin() 
15194
          for _i208 in xrange(_size204):
15195
            _key209 = iprot.readI64();
15196
            _val210 = []
15197
            (_etype214, _size211) = iprot.readListBegin()
15198
            for _i215 in xrange(_size211):
15199
              _elem216 = iprot.readString();
15200
              _val210.append(_elem216)
6845 amit.gupta 15201
            iprot.readListEnd()
13493 amit.gupta 15202
            self.success[_key209] = _val210
6845 amit.gupta 15203
          iprot.readMapEnd()
15204
        else:
15205
          iprot.skip(ftype)
15206
      else:
15207
        iprot.skip(ftype)
15208
      iprot.readFieldEnd()
15209
    iprot.readStructEnd()
15210
 
15211
  def write(self, oprot):
15212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15214
      return
15215
    oprot.writeStructBegin('getAllEntityTags_result')
15216
    if self.success is not None:
15217
      oprot.writeFieldBegin('success', TType.MAP, 0)
15218
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
13493 amit.gupta 15219
      for kiter217,viter218 in self.success.items():
15220
        oprot.writeI64(kiter217)
15221
        oprot.writeListBegin(TType.STRING, len(viter218))
15222
        for iter219 in viter218:
15223
          oprot.writeString(iter219)
6845 amit.gupta 15224
        oprot.writeListEnd()
15225
      oprot.writeMapEnd()
15226
      oprot.writeFieldEnd()
15227
    oprot.writeFieldStop()
15228
    oprot.writeStructEnd()
15229
 
15230
  def validate(self):
15231
    return
15232
 
15233
 
15234
  def __repr__(self):
15235
    L = ['%s=%r' % (key, value)
15236
      for key, value in self.__dict__.iteritems()]
15237
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15238
 
15239
  def __eq__(self, other):
15240
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15241
 
15242
  def __ne__(self, other):
15243
    return not (self == other)
15244
 
6850 kshitij.so 15245
class addBanner_args:
15246
  """
15247
  Attributes:
8590 kshitij.so 15248
   - bannerCongregate
6850 kshitij.so 15249
  """
15250
 
15251
  thrift_spec = (
15252
    None, # 0
8590 kshitij.so 15253
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 15254
  )
15255
 
8590 kshitij.so 15256
  def __init__(self, bannerCongregate=None,):
15257
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 15258
 
15259
  def read(self, iprot):
15260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15262
      return
15263
    iprot.readStructBegin()
15264
    while True:
15265
      (fname, ftype, fid) = iprot.readFieldBegin()
15266
      if ftype == TType.STOP:
15267
        break
15268
      if fid == 1:
8579 kshitij.so 15269
        if ftype == TType.STRUCT:
8590 kshitij.so 15270
          self.bannerCongregate = BannerCongregate()
15271
          self.bannerCongregate.read(iprot)
6850 kshitij.so 15272
        else:
15273
          iprot.skip(ftype)
8579 kshitij.so 15274
      else:
15275
        iprot.skip(ftype)
15276
      iprot.readFieldEnd()
15277
    iprot.readStructEnd()
15278
 
15279
  def write(self, oprot):
15280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15282
      return
15283
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 15284
    if self.bannerCongregate is not None:
15285
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
15286
      self.bannerCongregate.write(oprot)
8579 kshitij.so 15287
      oprot.writeFieldEnd()
15288
    oprot.writeFieldStop()
15289
    oprot.writeStructEnd()
15290
 
15291
  def validate(self):
15292
    return
15293
 
15294
 
15295
  def __repr__(self):
15296
    L = ['%s=%r' % (key, value)
15297
      for key, value in self.__dict__.iteritems()]
15298
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15299
 
15300
  def __eq__(self, other):
15301
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15302
 
15303
  def __ne__(self, other):
15304
    return not (self == other)
15305
 
15306
class addBanner_result:
10097 kshitij.so 15307
  """
15308
  Attributes:
15309
   - success
15310
  """
8579 kshitij.so 15311
 
15312
  thrift_spec = (
10097 kshitij.so 15313
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 15314
  )
15315
 
10097 kshitij.so 15316
  def __init__(self, success=None,):
15317
    self.success = success
15318
 
8579 kshitij.so 15319
  def read(self, iprot):
15320
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15321
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15322
      return
15323
    iprot.readStructBegin()
15324
    while True:
15325
      (fname, ftype, fid) = iprot.readFieldBegin()
15326
      if ftype == TType.STOP:
15327
        break
10097 kshitij.so 15328
      if fid == 0:
15329
        if ftype == TType.BOOL:
15330
          self.success = iprot.readBool();
15331
        else:
15332
          iprot.skip(ftype)
8579 kshitij.so 15333
      else:
15334
        iprot.skip(ftype)
15335
      iprot.readFieldEnd()
15336
    iprot.readStructEnd()
15337
 
15338
  def write(self, oprot):
15339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15341
      return
15342
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 15343
    if self.success is not None:
15344
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15345
      oprot.writeBool(self.success)
15346
      oprot.writeFieldEnd()
8579 kshitij.so 15347
    oprot.writeFieldStop()
15348
    oprot.writeStructEnd()
15349
 
15350
  def validate(self):
15351
    return
15352
 
15353
 
15354
  def __repr__(self):
15355
    L = ['%s=%r' % (key, value)
15356
      for key, value in self.__dict__.iteritems()]
15357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15358
 
15359
  def __eq__(self, other):
15360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15361
 
15362
  def __ne__(self, other):
15363
    return not (self == other)
15364
 
15365
class updateBanner_args:
15366
  """
15367
  Attributes:
15368
   - banner
15369
  """
15370
 
15371
  thrift_spec = (
15372
    None, # 0
15373
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
15374
  )
15375
 
15376
  def __init__(self, banner=None,):
15377
    self.banner = banner
15378
 
15379
  def read(self, iprot):
15380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15382
      return
15383
    iprot.readStructBegin()
15384
    while True:
15385
      (fname, ftype, fid) = iprot.readFieldBegin()
15386
      if ftype == TType.STOP:
15387
        break
15388
      if fid == 1:
15389
        if ftype == TType.STRUCT:
15390
          self.banner = Banner()
15391
          self.banner.read(iprot)
6850 kshitij.so 15392
        else:
15393
          iprot.skip(ftype)
15394
      else:
15395
        iprot.skip(ftype)
15396
      iprot.readFieldEnd()
15397
    iprot.readStructEnd()
15398
 
15399
  def write(self, oprot):
15400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15402
      return
8579 kshitij.so 15403
    oprot.writeStructBegin('updateBanner_args')
15404
    if self.banner is not None:
15405
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
15406
      self.banner.write(oprot)
6850 kshitij.so 15407
      oprot.writeFieldEnd()
15408
    oprot.writeFieldStop()
15409
    oprot.writeStructEnd()
15410
 
15411
  def validate(self):
15412
    return
15413
 
15414
 
15415
  def __repr__(self):
15416
    L = ['%s=%r' % (key, value)
15417
      for key, value in self.__dict__.iteritems()]
15418
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15419
 
15420
  def __eq__(self, other):
15421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15422
 
15423
  def __ne__(self, other):
15424
    return not (self == other)
15425
 
8579 kshitij.so 15426
class updateBanner_result:
6850 kshitij.so 15427
  """
15428
  Attributes:
15429
   - success
15430
  """
15431
 
15432
  thrift_spec = (
15433
    (0, TType.BOOL, 'success', None, None, ), # 0
15434
  )
15435
 
15436
  def __init__(self, success=None,):
15437
    self.success = success
15438
 
15439
  def read(self, iprot):
15440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15442
      return
15443
    iprot.readStructBegin()
15444
    while True:
15445
      (fname, ftype, fid) = iprot.readFieldBegin()
15446
      if ftype == TType.STOP:
15447
        break
15448
      if fid == 0:
15449
        if ftype == TType.BOOL:
15450
          self.success = iprot.readBool();
15451
        else:
15452
          iprot.skip(ftype)
15453
      else:
15454
        iprot.skip(ftype)
15455
      iprot.readFieldEnd()
15456
    iprot.readStructEnd()
15457
 
15458
  def write(self, oprot):
15459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15461
      return
8579 kshitij.so 15462
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 15463
    if self.success is not None:
15464
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15465
      oprot.writeBool(self.success)
15466
      oprot.writeFieldEnd()
15467
    oprot.writeFieldStop()
15468
    oprot.writeStructEnd()
15469
 
15470
  def validate(self):
15471
    return
15472
 
15473
 
15474
  def __repr__(self):
15475
    L = ['%s=%r' % (key, value)
15476
      for key, value in self.__dict__.iteritems()]
15477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15478
 
15479
  def __eq__(self, other):
15480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15481
 
15482
  def __ne__(self, other):
15483
    return not (self == other)
15484
 
15485
class getAllBanners_args:
15486
 
15487
  thrift_spec = (
15488
  )
15489
 
15490
  def read(self, iprot):
15491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15493
      return
15494
    iprot.readStructBegin()
15495
    while True:
15496
      (fname, ftype, fid) = iprot.readFieldBegin()
15497
      if ftype == TType.STOP:
15498
        break
15499
      else:
15500
        iprot.skip(ftype)
15501
      iprot.readFieldEnd()
15502
    iprot.readStructEnd()
15503
 
15504
  def write(self, oprot):
15505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15507
      return
15508
    oprot.writeStructBegin('getAllBanners_args')
15509
    oprot.writeFieldStop()
15510
    oprot.writeStructEnd()
15511
 
15512
  def validate(self):
15513
    return
15514
 
15515
 
15516
  def __repr__(self):
15517
    L = ['%s=%r' % (key, value)
15518
      for key, value in self.__dict__.iteritems()]
15519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15520
 
15521
  def __eq__(self, other):
15522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15523
 
15524
  def __ne__(self, other):
15525
    return not (self == other)
15526
 
15527
class getAllBanners_result:
15528
  """
15529
  Attributes:
15530
   - success
15531
  """
15532
 
15533
  thrift_spec = (
8579 kshitij.so 15534
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 15535
  )
15536
 
15537
  def __init__(self, success=None,):
15538
    self.success = success
15539
 
15540
  def read(self, iprot):
15541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15543
      return
15544
    iprot.readStructBegin()
15545
    while True:
15546
      (fname, ftype, fid) = iprot.readFieldBegin()
15547
      if ftype == TType.STOP:
15548
        break
15549
      if fid == 0:
15550
        if ftype == TType.LIST:
15551
          self.success = []
13493 amit.gupta 15552
          (_etype223, _size220) = iprot.readListBegin()
15553
          for _i224 in xrange(_size220):
15554
            _elem225 = Banner()
15555
            _elem225.read(iprot)
15556
            self.success.append(_elem225)
6850 kshitij.so 15557
          iprot.readListEnd()
15558
        else:
15559
          iprot.skip(ftype)
15560
      else:
15561
        iprot.skip(ftype)
15562
      iprot.readFieldEnd()
15563
    iprot.readStructEnd()
15564
 
15565
  def write(self, oprot):
15566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15568
      return
15569
    oprot.writeStructBegin('getAllBanners_result')
15570
    if self.success is not None:
15571
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 15572
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 15573
      for iter226 in self.success:
15574
        iter226.write(oprot)
6850 kshitij.so 15575
      oprot.writeListEnd()
15576
      oprot.writeFieldEnd()
15577
    oprot.writeFieldStop()
15578
    oprot.writeStructEnd()
15579
 
15580
  def validate(self):
15581
    return
15582
 
15583
 
15584
  def __repr__(self):
15585
    L = ['%s=%r' % (key, value)
15586
      for key, value in self.__dict__.iteritems()]
15587
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15588
 
15589
  def __eq__(self, other):
15590
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15591
 
15592
  def __ne__(self, other):
15593
    return not (self == other)
15594
 
15595
class deleteBanner_args:
15596
  """
15597
  Attributes:
15598
   - bannerName
9155 kshitij.so 15599
   - bannerType
6850 kshitij.so 15600
  """
15601
 
15602
  thrift_spec = (
15603
    None, # 0
15604
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15605
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15606
  )
15607
 
9155 kshitij.so 15608
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15609
    self.bannerName = bannerName
9155 kshitij.so 15610
    self.bannerType = bannerType
6850 kshitij.so 15611
 
15612
  def read(self, iprot):
15613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15615
      return
15616
    iprot.readStructBegin()
15617
    while True:
15618
      (fname, ftype, fid) = iprot.readFieldBegin()
15619
      if ftype == TType.STOP:
15620
        break
15621
      if fid == 1:
15622
        if ftype == TType.STRING:
15623
          self.bannerName = iprot.readString();
15624
        else:
15625
          iprot.skip(ftype)
9155 kshitij.so 15626
      elif fid == 2:
15627
        if ftype == TType.I32:
15628
          self.bannerType = iprot.readI32();
15629
        else:
15630
          iprot.skip(ftype)
6850 kshitij.so 15631
      else:
15632
        iprot.skip(ftype)
15633
      iprot.readFieldEnd()
15634
    iprot.readStructEnd()
15635
 
15636
  def write(self, oprot):
15637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15639
      return
15640
    oprot.writeStructBegin('deleteBanner_args')
15641
    if self.bannerName is not None:
15642
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15643
      oprot.writeString(self.bannerName)
15644
      oprot.writeFieldEnd()
9155 kshitij.so 15645
    if self.bannerType is not None:
15646
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15647
      oprot.writeI32(self.bannerType)
15648
      oprot.writeFieldEnd()
6850 kshitij.so 15649
    oprot.writeFieldStop()
15650
    oprot.writeStructEnd()
15651
 
15652
  def validate(self):
15653
    return
15654
 
15655
 
15656
  def __repr__(self):
15657
    L = ['%s=%r' % (key, value)
15658
      for key, value in self.__dict__.iteritems()]
15659
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15660
 
15661
  def __eq__(self, other):
15662
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15663
 
15664
  def __ne__(self, other):
15665
    return not (self == other)
15666
 
15667
class deleteBanner_result:
15668
  """
15669
  Attributes:
15670
   - success
15671
  """
15672
 
15673
  thrift_spec = (
15674
    (0, TType.BOOL, 'success', None, None, ), # 0
15675
  )
15676
 
15677
  def __init__(self, success=None,):
15678
    self.success = success
15679
 
15680
  def read(self, iprot):
15681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15683
      return
15684
    iprot.readStructBegin()
15685
    while True:
15686
      (fname, ftype, fid) = iprot.readFieldBegin()
15687
      if ftype == TType.STOP:
15688
        break
15689
      if fid == 0:
15690
        if ftype == TType.BOOL:
15691
          self.success = iprot.readBool();
15692
        else:
15693
          iprot.skip(ftype)
15694
      else:
15695
        iprot.skip(ftype)
15696
      iprot.readFieldEnd()
15697
    iprot.readStructEnd()
15698
 
15699
  def write(self, oprot):
15700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15702
      return
15703
    oprot.writeStructBegin('deleteBanner_result')
15704
    if self.success is not None:
15705
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15706
      oprot.writeBool(self.success)
15707
      oprot.writeFieldEnd()
15708
    oprot.writeFieldStop()
15709
    oprot.writeStructEnd()
15710
 
15711
  def validate(self):
15712
    return
15713
 
15714
 
15715
  def __repr__(self):
15716
    L = ['%s=%r' % (key, value)
15717
      for key, value in self.__dict__.iteritems()]
15718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15719
 
15720
  def __eq__(self, other):
15721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15722
 
15723
  def __ne__(self, other):
15724
    return not (self == other)
15725
 
15726
class getBannerDetails_args:
15727
  """
15728
  Attributes:
15729
   - bannerName
9155 kshitij.so 15730
   - bannerType
6850 kshitij.so 15731
  """
15732
 
15733
  thrift_spec = (
15734
    None, # 0
15735
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15736
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15737
  )
15738
 
9155 kshitij.so 15739
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15740
    self.bannerName = bannerName
9155 kshitij.so 15741
    self.bannerType = bannerType
6850 kshitij.so 15742
 
15743
  def read(self, iprot):
15744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15746
      return
15747
    iprot.readStructBegin()
15748
    while True:
15749
      (fname, ftype, fid) = iprot.readFieldBegin()
15750
      if ftype == TType.STOP:
15751
        break
15752
      if fid == 1:
15753
        if ftype == TType.STRING:
15754
          self.bannerName = iprot.readString();
15755
        else:
15756
          iprot.skip(ftype)
9155 kshitij.so 15757
      elif fid == 2:
15758
        if ftype == TType.I32:
15759
          self.bannerType = iprot.readI32();
15760
        else:
15761
          iprot.skip(ftype)
6850 kshitij.so 15762
      else:
15763
        iprot.skip(ftype)
15764
      iprot.readFieldEnd()
15765
    iprot.readStructEnd()
15766
 
15767
  def write(self, oprot):
15768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15770
      return
15771
    oprot.writeStructBegin('getBannerDetails_args')
15772
    if self.bannerName is not None:
15773
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15774
      oprot.writeString(self.bannerName)
15775
      oprot.writeFieldEnd()
9155 kshitij.so 15776
    if self.bannerType is not None:
15777
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15778
      oprot.writeI32(self.bannerType)
15779
      oprot.writeFieldEnd()
6850 kshitij.so 15780
    oprot.writeFieldStop()
15781
    oprot.writeStructEnd()
15782
 
15783
  def validate(self):
15784
    return
15785
 
15786
 
15787
  def __repr__(self):
15788
    L = ['%s=%r' % (key, value)
15789
      for key, value in self.__dict__.iteritems()]
15790
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15791
 
15792
  def __eq__(self, other):
15793
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15794
 
15795
  def __ne__(self, other):
15796
    return not (self == other)
15797
 
15798
class getBannerDetails_result:
15799
  """
15800
  Attributes:
15801
   - success
15802
  """
15803
 
15804
  thrift_spec = (
15805
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
15806
  )
15807
 
15808
  def __init__(self, success=None,):
15809
    self.success = success
15810
 
15811
  def read(self, iprot):
15812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15814
      return
15815
    iprot.readStructBegin()
15816
    while True:
15817
      (fname, ftype, fid) = iprot.readFieldBegin()
15818
      if ftype == TType.STOP:
15819
        break
15820
      if fid == 0:
15821
        if ftype == TType.STRUCT:
15822
          self.success = Banner()
15823
          self.success.read(iprot)
15824
        else:
15825
          iprot.skip(ftype)
15826
      else:
15827
        iprot.skip(ftype)
15828
      iprot.readFieldEnd()
15829
    iprot.readStructEnd()
15830
 
15831
  def write(self, oprot):
15832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15834
      return
15835
    oprot.writeStructBegin('getBannerDetails_result')
15836
    if self.success is not None:
15837
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15838
      self.success.write(oprot)
15839
      oprot.writeFieldEnd()
15840
    oprot.writeFieldStop()
15841
    oprot.writeStructEnd()
15842
 
15843
  def validate(self):
15844
    return
15845
 
15846
 
15847
  def __repr__(self):
15848
    L = ['%s=%r' % (key, value)
15849
      for key, value in self.__dict__.iteritems()]
15850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15851
 
15852
  def __eq__(self, other):
15853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15854
 
15855
  def __ne__(self, other):
15856
    return not (self == other)
15857
 
15858
class getActiveBanners_args:
15859
 
15860
  thrift_spec = (
15861
  )
15862
 
15863
  def read(self, iprot):
15864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15866
      return
15867
    iprot.readStructBegin()
15868
    while True:
15869
      (fname, ftype, fid) = iprot.readFieldBegin()
15870
      if ftype == TType.STOP:
15871
        break
15872
      else:
15873
        iprot.skip(ftype)
15874
      iprot.readFieldEnd()
15875
    iprot.readStructEnd()
15876
 
15877
  def write(self, oprot):
15878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15880
      return
15881
    oprot.writeStructBegin('getActiveBanners_args')
15882
    oprot.writeFieldStop()
15883
    oprot.writeStructEnd()
15884
 
15885
  def validate(self):
15886
    return
15887
 
15888
 
15889
  def __repr__(self):
15890
    L = ['%s=%r' % (key, value)
15891
      for key, value in self.__dict__.iteritems()]
15892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15893
 
15894
  def __eq__(self, other):
15895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15896
 
15897
  def __ne__(self, other):
15898
    return not (self == other)
15899
 
15900
class getActiveBanners_result:
15901
  """
15902
  Attributes:
15903
   - success
15904
  """
15905
 
15906
  thrift_spec = (
8579 kshitij.so 15907
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 15908
  )
15909
 
15910
  def __init__(self, success=None,):
15911
    self.success = success
15912
 
15913
  def read(self, iprot):
15914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15916
      return
15917
    iprot.readStructBegin()
15918
    while True:
15919
      (fname, ftype, fid) = iprot.readFieldBegin()
15920
      if ftype == TType.STOP:
15921
        break
15922
      if fid == 0:
8579 kshitij.so 15923
        if ftype == TType.MAP:
15924
          self.success = {}
13493 amit.gupta 15925
          (_ktype228, _vtype229, _size227 ) = iprot.readMapBegin() 
15926
          for _i231 in xrange(_size227):
15927
            _key232 = iprot.readString();
15928
            _val233 = []
15929
            (_etype237, _size234) = iprot.readListBegin()
15930
            for _i238 in xrange(_size234):
15931
              _elem239 = Banner()
15932
              _elem239.read(iprot)
15933
              _val233.append(_elem239)
8579 kshitij.so 15934
            iprot.readListEnd()
13493 amit.gupta 15935
            self.success[_key232] = _val233
8579 kshitij.so 15936
          iprot.readMapEnd()
6850 kshitij.so 15937
        else:
15938
          iprot.skip(ftype)
15939
      else:
15940
        iprot.skip(ftype)
15941
      iprot.readFieldEnd()
15942
    iprot.readStructEnd()
15943
 
15944
  def write(self, oprot):
15945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15947
      return
15948
    oprot.writeStructBegin('getActiveBanners_result')
15949
    if self.success is not None:
8579 kshitij.so 15950
      oprot.writeFieldBegin('success', TType.MAP, 0)
15951
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
13493 amit.gupta 15952
      for kiter240,viter241 in self.success.items():
15953
        oprot.writeString(kiter240)
15954
        oprot.writeListBegin(TType.STRUCT, len(viter241))
15955
        for iter242 in viter241:
15956
          iter242.write(oprot)
8579 kshitij.so 15957
        oprot.writeListEnd()
15958
      oprot.writeMapEnd()
6850 kshitij.so 15959
      oprot.writeFieldEnd()
15960
    oprot.writeFieldStop()
15961
    oprot.writeStructEnd()
15962
 
15963
  def validate(self):
15964
    return
15965
 
15966
 
15967
  def __repr__(self):
15968
    L = ['%s=%r' % (key, value)
15969
      for key, value in self.__dict__.iteritems()]
15970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15971
 
15972
  def __eq__(self, other):
15973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15974
 
15975
  def __ne__(self, other):
15976
    return not (self == other)
15977
 
6849 kshitij.so 15978
class addBannerMap_args:
15979
  """
15980
  Attributes:
8579 kshitij.so 15981
   - bannerMaps
6849 kshitij.so 15982
  """
15983
 
15984
  thrift_spec = (
15985
    None, # 0
8579 kshitij.so 15986
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 15987
  )
15988
 
8579 kshitij.so 15989
  def __init__(self, bannerMaps=None,):
15990
    self.bannerMaps = bannerMaps
6849 kshitij.so 15991
 
15992
  def read(self, iprot):
15993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15995
      return
15996
    iprot.readStructBegin()
15997
    while True:
15998
      (fname, ftype, fid) = iprot.readFieldBegin()
15999
      if ftype == TType.STOP:
16000
        break
16001
      if fid == 1:
8579 kshitij.so 16002
        if ftype == TType.LIST:
16003
          self.bannerMaps = []
13493 amit.gupta 16004
          (_etype246, _size243) = iprot.readListBegin()
16005
          for _i247 in xrange(_size243):
16006
            _elem248 = BannerMap()
16007
            _elem248.read(iprot)
16008
            self.bannerMaps.append(_elem248)
8579 kshitij.so 16009
          iprot.readListEnd()
6849 kshitij.so 16010
        else:
16011
          iprot.skip(ftype)
8579 kshitij.so 16012
      else:
16013
        iprot.skip(ftype)
16014
      iprot.readFieldEnd()
16015
    iprot.readStructEnd()
16016
 
16017
  def write(self, oprot):
16018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16020
      return
16021
    oprot.writeStructBegin('addBannerMap_args')
16022
    if self.bannerMaps is not None:
16023
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
16024
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
13493 amit.gupta 16025
      for iter249 in self.bannerMaps:
16026
        iter249.write(oprot)
8579 kshitij.so 16027
      oprot.writeListEnd()
16028
      oprot.writeFieldEnd()
16029
    oprot.writeFieldStop()
16030
    oprot.writeStructEnd()
16031
 
16032
  def validate(self):
16033
    return
16034
 
16035
 
16036
  def __repr__(self):
16037
    L = ['%s=%r' % (key, value)
16038
      for key, value in self.__dict__.iteritems()]
16039
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16040
 
16041
  def __eq__(self, other):
16042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16043
 
16044
  def __ne__(self, other):
16045
    return not (self == other)
16046
 
16047
class addBannerMap_result:
16048
  """
16049
  Attributes:
16050
   - success
16051
  """
16052
 
16053
  thrift_spec = (
16054
    (0, TType.BOOL, 'success', None, None, ), # 0
16055
  )
16056
 
16057
  def __init__(self, success=None,):
16058
    self.success = success
16059
 
16060
  def read(self, iprot):
16061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16063
      return
16064
    iprot.readStructBegin()
16065
    while True:
16066
      (fname, ftype, fid) = iprot.readFieldBegin()
16067
      if ftype == TType.STOP:
16068
        break
16069
      if fid == 0:
16070
        if ftype == TType.BOOL:
16071
          self.success = iprot.readBool();
6849 kshitij.so 16072
        else:
16073
          iprot.skip(ftype)
8579 kshitij.so 16074
      else:
16075
        iprot.skip(ftype)
16076
      iprot.readFieldEnd()
16077
    iprot.readStructEnd()
16078
 
16079
  def write(self, oprot):
16080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16082
      return
16083
    oprot.writeStructBegin('addBannerMap_result')
16084
    if self.success is not None:
16085
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16086
      oprot.writeBool(self.success)
16087
      oprot.writeFieldEnd()
16088
    oprot.writeFieldStop()
16089
    oprot.writeStructEnd()
16090
 
16091
  def validate(self):
16092
    return
16093
 
16094
 
16095
  def __repr__(self):
16096
    L = ['%s=%r' % (key, value)
16097
      for key, value in self.__dict__.iteritems()]
16098
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16099
 
16100
  def __eq__(self, other):
16101
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16102
 
16103
  def __ne__(self, other):
16104
    return not (self == other)
16105
 
16106
class updateBannerMap_args:
16107
  """
16108
  Attributes:
16109
   - bannerMap
16110
  """
16111
 
16112
  thrift_spec = (
16113
    None, # 0
16114
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
16115
  )
16116
 
16117
  def __init__(self, bannerMap=None,):
16118
    self.bannerMap = bannerMap
16119
 
16120
  def read(self, iprot):
16121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16123
      return
16124
    iprot.readStructBegin()
16125
    while True:
16126
      (fname, ftype, fid) = iprot.readFieldBegin()
16127
      if ftype == TType.STOP:
16128
        break
16129
      if fid == 1:
16130
        if ftype == TType.STRUCT:
16131
          self.bannerMap = BannerMap()
16132
          self.bannerMap.read(iprot)
6849 kshitij.so 16133
        else:
16134
          iprot.skip(ftype)
16135
      else:
16136
        iprot.skip(ftype)
16137
      iprot.readFieldEnd()
16138
    iprot.readStructEnd()
16139
 
16140
  def write(self, oprot):
16141
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16142
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16143
      return
8579 kshitij.so 16144
    oprot.writeStructBegin('updateBannerMap_args')
16145
    if self.bannerMap is not None:
16146
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
16147
      self.bannerMap.write(oprot)
6849 kshitij.so 16148
      oprot.writeFieldEnd()
16149
    oprot.writeFieldStop()
16150
    oprot.writeStructEnd()
16151
 
16152
  def validate(self):
16153
    return
16154
 
16155
 
16156
  def __repr__(self):
16157
    L = ['%s=%r' % (key, value)
16158
      for key, value in self.__dict__.iteritems()]
16159
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16160
 
16161
  def __eq__(self, other):
16162
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16163
 
16164
  def __ne__(self, other):
16165
    return not (self == other)
16166
 
8579 kshitij.so 16167
class updateBannerMap_result:
6849 kshitij.so 16168
  """
16169
  Attributes:
16170
   - success
16171
  """
16172
 
16173
  thrift_spec = (
16174
    (0, TType.BOOL, 'success', None, None, ), # 0
16175
  )
16176
 
16177
  def __init__(self, success=None,):
16178
    self.success = success
16179
 
16180
  def read(self, iprot):
16181
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16182
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16183
      return
16184
    iprot.readStructBegin()
16185
    while True:
16186
      (fname, ftype, fid) = iprot.readFieldBegin()
16187
      if ftype == TType.STOP:
16188
        break
16189
      if fid == 0:
16190
        if ftype == TType.BOOL:
16191
          self.success = iprot.readBool();
16192
        else:
16193
          iprot.skip(ftype)
16194
      else:
16195
        iprot.skip(ftype)
16196
      iprot.readFieldEnd()
16197
    iprot.readStructEnd()
16198
 
16199
  def write(self, oprot):
16200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16202
      return
8579 kshitij.so 16203
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 16204
    if self.success is not None:
16205
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16206
      oprot.writeBool(self.success)
16207
      oprot.writeFieldEnd()
16208
    oprot.writeFieldStop()
16209
    oprot.writeStructEnd()
16210
 
16211
  def validate(self):
16212
    return
16213
 
16214
 
16215
  def __repr__(self):
16216
    L = ['%s=%r' % (key, value)
16217
      for key, value in self.__dict__.iteritems()]
16218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16219
 
16220
  def __eq__(self, other):
16221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16222
 
16223
  def __ne__(self, other):
16224
    return not (self == other)
16225
 
16226
class deleteBannerMap_args:
16227
  """
16228
  Attributes:
16229
   - bannerName
16230
  """
16231
 
16232
  thrift_spec = (
16233
    None, # 0
16234
    (1, TType.STRING, 'bannerName', None, None, ), # 1
16235
  )
16236
 
16237
  def __init__(self, bannerName=None,):
16238
    self.bannerName = bannerName
16239
 
16240
  def read(self, iprot):
16241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16243
      return
16244
    iprot.readStructBegin()
16245
    while True:
16246
      (fname, ftype, fid) = iprot.readFieldBegin()
16247
      if ftype == TType.STOP:
16248
        break
16249
      if fid == 1:
16250
        if ftype == TType.STRING:
16251
          self.bannerName = iprot.readString();
16252
        else:
16253
          iprot.skip(ftype)
16254
      else:
16255
        iprot.skip(ftype)
16256
      iprot.readFieldEnd()
16257
    iprot.readStructEnd()
16258
 
16259
  def write(self, oprot):
16260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16262
      return
16263
    oprot.writeStructBegin('deleteBannerMap_args')
16264
    if self.bannerName is not None:
16265
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16266
      oprot.writeString(self.bannerName)
16267
      oprot.writeFieldEnd()
16268
    oprot.writeFieldStop()
16269
    oprot.writeStructEnd()
16270
 
16271
  def validate(self):
16272
    return
16273
 
16274
 
16275
  def __repr__(self):
16276
    L = ['%s=%r' % (key, value)
16277
      for key, value in self.__dict__.iteritems()]
16278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16279
 
16280
  def __eq__(self, other):
16281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16282
 
16283
  def __ne__(self, other):
16284
    return not (self == other)
16285
 
16286
class deleteBannerMap_result:
16287
  """
16288
  Attributes:
16289
   - success
16290
  """
16291
 
16292
  thrift_spec = (
16293
    (0, TType.BOOL, 'success', None, None, ), # 0
16294
  )
16295
 
16296
  def __init__(self, success=None,):
16297
    self.success = success
16298
 
16299
  def read(self, iprot):
16300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16302
      return
16303
    iprot.readStructBegin()
16304
    while True:
16305
      (fname, ftype, fid) = iprot.readFieldBegin()
16306
      if ftype == TType.STOP:
16307
        break
16308
      if fid == 0:
16309
        if ftype == TType.BOOL:
16310
          self.success = iprot.readBool();
16311
        else:
16312
          iprot.skip(ftype)
16313
      else:
16314
        iprot.skip(ftype)
16315
      iprot.readFieldEnd()
16316
    iprot.readStructEnd()
16317
 
16318
  def write(self, oprot):
16319
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16320
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16321
      return
16322
    oprot.writeStructBegin('deleteBannerMap_result')
16323
    if self.success is not None:
16324
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16325
      oprot.writeBool(self.success)
16326
      oprot.writeFieldEnd()
16327
    oprot.writeFieldStop()
16328
    oprot.writeStructEnd()
16329
 
16330
  def validate(self):
16331
    return
16332
 
16333
 
16334
  def __repr__(self):
16335
    L = ['%s=%r' % (key, value)
16336
      for key, value in self.__dict__.iteritems()]
16337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16338
 
16339
  def __eq__(self, other):
16340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16341
 
16342
  def __ne__(self, other):
16343
    return not (self == other)
16344
 
16345
class getBannerMapDetails_args:
16346
  """
16347
  Attributes:
16348
   - bannerName
9155 kshitij.so 16349
   - bannerType
6849 kshitij.so 16350
  """
16351
 
16352
  thrift_spec = (
16353
    None, # 0
16354
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16355
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 16356
  )
16357
 
9155 kshitij.so 16358
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 16359
    self.bannerName = bannerName
9155 kshitij.so 16360
    self.bannerType = bannerType
6849 kshitij.so 16361
 
16362
  def read(self, iprot):
16363
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16364
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16365
      return
16366
    iprot.readStructBegin()
16367
    while True:
16368
      (fname, ftype, fid) = iprot.readFieldBegin()
16369
      if ftype == TType.STOP:
16370
        break
16371
      if fid == 1:
16372
        if ftype == TType.STRING:
16373
          self.bannerName = iprot.readString();
16374
        else:
16375
          iprot.skip(ftype)
9155 kshitij.so 16376
      elif fid == 2:
16377
        if ftype == TType.I32:
16378
          self.bannerType = iprot.readI32();
16379
        else:
16380
          iprot.skip(ftype)
6849 kshitij.so 16381
      else:
16382
        iprot.skip(ftype)
16383
      iprot.readFieldEnd()
16384
    iprot.readStructEnd()
16385
 
16386
  def write(self, oprot):
16387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16389
      return
16390
    oprot.writeStructBegin('getBannerMapDetails_args')
16391
    if self.bannerName is not None:
16392
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16393
      oprot.writeString(self.bannerName)
16394
      oprot.writeFieldEnd()
9155 kshitij.so 16395
    if self.bannerType is not None:
16396
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16397
      oprot.writeI32(self.bannerType)
16398
      oprot.writeFieldEnd()
6849 kshitij.so 16399
    oprot.writeFieldStop()
16400
    oprot.writeStructEnd()
16401
 
16402
  def validate(self):
16403
    return
16404
 
16405
 
16406
  def __repr__(self):
16407
    L = ['%s=%r' % (key, value)
16408
      for key, value in self.__dict__.iteritems()]
16409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16410
 
16411
  def __eq__(self, other):
16412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16413
 
16414
  def __ne__(self, other):
16415
    return not (self == other)
16416
 
16417
class getBannerMapDetails_result:
16418
  """
16419
  Attributes:
16420
   - success
16421
  """
16422
 
16423
  thrift_spec = (
16424
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
16425
  )
16426
 
16427
  def __init__(self, success=None,):
16428
    self.success = success
16429
 
16430
  def read(self, iprot):
16431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16433
      return
16434
    iprot.readStructBegin()
16435
    while True:
16436
      (fname, ftype, fid) = iprot.readFieldBegin()
16437
      if ftype == TType.STOP:
16438
        break
16439
      if fid == 0:
16440
        if ftype == TType.LIST:
16441
          self.success = []
13493 amit.gupta 16442
          (_etype253, _size250) = iprot.readListBegin()
16443
          for _i254 in xrange(_size250):
16444
            _elem255 = BannerMap()
16445
            _elem255.read(iprot)
16446
            self.success.append(_elem255)
6849 kshitij.so 16447
          iprot.readListEnd()
16448
        else:
16449
          iprot.skip(ftype)
16450
      else:
16451
        iprot.skip(ftype)
16452
      iprot.readFieldEnd()
16453
    iprot.readStructEnd()
16454
 
16455
  def write(self, oprot):
16456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16458
      return
16459
    oprot.writeStructBegin('getBannerMapDetails_result')
16460
    if self.success is not None:
16461
      oprot.writeFieldBegin('success', TType.LIST, 0)
16462
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 16463
      for iter256 in self.success:
16464
        iter256.write(oprot)
6849 kshitij.so 16465
      oprot.writeListEnd()
16466
      oprot.writeFieldEnd()
16467
    oprot.writeFieldStop()
16468
    oprot.writeStructEnd()
16469
 
16470
  def validate(self):
16471
    return
16472
 
16473
 
16474
  def __repr__(self):
16475
    L = ['%s=%r' % (key, value)
16476
      for key, value in self.__dict__.iteritems()]
16477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16478
 
16479
  def __eq__(self, other):
16480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16481
 
16482
  def __ne__(self, other):
16483
    return not (self == other)
16484
 
8579 kshitij.so 16485
class addBannerUri_args:
16486
  """
16487
  Attributes:
16488
   - bannerUriMappings
16489
  """
16490
 
16491
  thrift_spec = (
16492
    None, # 0
16493
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
16494
  )
16495
 
16496
  def __init__(self, bannerUriMappings=None,):
16497
    self.bannerUriMappings = bannerUriMappings
16498
 
16499
  def read(self, iprot):
16500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16502
      return
16503
    iprot.readStructBegin()
16504
    while True:
16505
      (fname, ftype, fid) = iprot.readFieldBegin()
16506
      if ftype == TType.STOP:
16507
        break
16508
      if fid == 1:
16509
        if ftype == TType.LIST:
16510
          self.bannerUriMappings = []
13493 amit.gupta 16511
          (_etype260, _size257) = iprot.readListBegin()
16512
          for _i261 in xrange(_size257):
16513
            _elem262 = BannerUriMapping()
16514
            _elem262.read(iprot)
16515
            self.bannerUriMappings.append(_elem262)
8579 kshitij.so 16516
          iprot.readListEnd()
16517
        else:
16518
          iprot.skip(ftype)
16519
      else:
16520
        iprot.skip(ftype)
16521
      iprot.readFieldEnd()
16522
    iprot.readStructEnd()
16523
 
16524
  def write(self, oprot):
16525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16527
      return
16528
    oprot.writeStructBegin('addBannerUri_args')
16529
    if self.bannerUriMappings is not None:
16530
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
16531
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
13493 amit.gupta 16532
      for iter263 in self.bannerUriMappings:
16533
        iter263.write(oprot)
8579 kshitij.so 16534
      oprot.writeListEnd()
16535
      oprot.writeFieldEnd()
16536
    oprot.writeFieldStop()
16537
    oprot.writeStructEnd()
16538
 
16539
  def validate(self):
16540
    return
16541
 
16542
 
16543
  def __repr__(self):
16544
    L = ['%s=%r' % (key, value)
16545
      for key, value in self.__dict__.iteritems()]
16546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16547
 
16548
  def __eq__(self, other):
16549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16550
 
16551
  def __ne__(self, other):
16552
    return not (self == other)
16553
 
16554
class addBannerUri_result:
16555
 
16556
  thrift_spec = (
16557
  )
16558
 
16559
  def read(self, iprot):
16560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16562
      return
16563
    iprot.readStructBegin()
16564
    while True:
16565
      (fname, ftype, fid) = iprot.readFieldBegin()
16566
      if ftype == TType.STOP:
16567
        break
16568
      else:
16569
        iprot.skip(ftype)
16570
      iprot.readFieldEnd()
16571
    iprot.readStructEnd()
16572
 
16573
  def write(self, oprot):
16574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16576
      return
16577
    oprot.writeStructBegin('addBannerUri_result')
16578
    oprot.writeFieldStop()
16579
    oprot.writeStructEnd()
16580
 
16581
  def validate(self):
16582
    return
16583
 
16584
 
16585
  def __repr__(self):
16586
    L = ['%s=%r' % (key, value)
16587
      for key, value in self.__dict__.iteritems()]
16588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16589
 
16590
  def __eq__(self, other):
16591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16592
 
16593
  def __ne__(self, other):
16594
    return not (self == other)
16595
 
16596
class getUriMapping_args:
16597
  """
16598
  Attributes:
16599
   - bannerName
9155 kshitij.so 16600
   - bannerType
8579 kshitij.so 16601
  """
16602
 
16603
  thrift_spec = (
16604
    None, # 0
16605
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16606
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 16607
  )
16608
 
9155 kshitij.so 16609
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 16610
    self.bannerName = bannerName
9155 kshitij.so 16611
    self.bannerType = bannerType
8579 kshitij.so 16612
 
16613
  def read(self, iprot):
16614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16616
      return
16617
    iprot.readStructBegin()
16618
    while True:
16619
      (fname, ftype, fid) = iprot.readFieldBegin()
16620
      if ftype == TType.STOP:
16621
        break
16622
      if fid == 1:
16623
        if ftype == TType.STRING:
16624
          self.bannerName = iprot.readString();
16625
        else:
16626
          iprot.skip(ftype)
9155 kshitij.so 16627
      elif fid == 2:
16628
        if ftype == TType.I32:
16629
          self.bannerType = iprot.readI32();
16630
        else:
16631
          iprot.skip(ftype)
8579 kshitij.so 16632
      else:
16633
        iprot.skip(ftype)
16634
      iprot.readFieldEnd()
16635
    iprot.readStructEnd()
16636
 
16637
  def write(self, oprot):
16638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16640
      return
16641
    oprot.writeStructBegin('getUriMapping_args')
16642
    if self.bannerName is not None:
16643
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16644
      oprot.writeString(self.bannerName)
16645
      oprot.writeFieldEnd()
9155 kshitij.so 16646
    if self.bannerType is not None:
16647
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16648
      oprot.writeI32(self.bannerType)
16649
      oprot.writeFieldEnd()
8579 kshitij.so 16650
    oprot.writeFieldStop()
16651
    oprot.writeStructEnd()
16652
 
16653
  def validate(self):
16654
    return
16655
 
16656
 
16657
  def __repr__(self):
16658
    L = ['%s=%r' % (key, value)
16659
      for key, value in self.__dict__.iteritems()]
16660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16661
 
16662
  def __eq__(self, other):
16663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16664
 
16665
  def __ne__(self, other):
16666
    return not (self == other)
16667
 
16668
class getUriMapping_result:
16669
  """
16670
  Attributes:
16671
   - success
16672
  """
16673
 
16674
  thrift_spec = (
16675
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
16676
  )
16677
 
16678
  def __init__(self, success=None,):
16679
    self.success = success
16680
 
16681
  def read(self, iprot):
16682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16684
      return
16685
    iprot.readStructBegin()
16686
    while True:
16687
      (fname, ftype, fid) = iprot.readFieldBegin()
16688
      if ftype == TType.STOP:
16689
        break
16690
      if fid == 0:
16691
        if ftype == TType.LIST:
16692
          self.success = []
13493 amit.gupta 16693
          (_etype267, _size264) = iprot.readListBegin()
16694
          for _i268 in xrange(_size264):
16695
            _elem269 = BannerUriMapping()
16696
            _elem269.read(iprot)
16697
            self.success.append(_elem269)
8579 kshitij.so 16698
          iprot.readListEnd()
16699
        else:
16700
          iprot.skip(ftype)
16701
      else:
16702
        iprot.skip(ftype)
16703
      iprot.readFieldEnd()
16704
    iprot.readStructEnd()
16705
 
16706
  def write(self, oprot):
16707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16709
      return
16710
    oprot.writeStructBegin('getUriMapping_result')
16711
    if self.success is not None:
16712
      oprot.writeFieldBegin('success', TType.LIST, 0)
16713
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 16714
      for iter270 in self.success:
16715
        iter270.write(oprot)
8579 kshitij.so 16716
      oprot.writeListEnd()
16717
      oprot.writeFieldEnd()
16718
    oprot.writeFieldStop()
16719
    oprot.writeStructEnd()
16720
 
16721
  def validate(self):
16722
    return
16723
 
16724
 
16725
  def __repr__(self):
16726
    L = ['%s=%r' % (key, value)
16727
      for key, value in self.__dict__.iteritems()]
16728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16729
 
16730
  def __eq__(self, other):
16731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16732
 
16733
  def __ne__(self, other):
16734
    return not (self == other)
16735
 
16736
class addCampaign_args:
16737
  """
16738
  Attributes:
16739
   - campaign
16740
  """
16741
 
16742
  thrift_spec = (
16743
    None, # 0
16744
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
16745
  )
16746
 
16747
  def __init__(self, campaign=None,):
16748
    self.campaign = campaign
16749
 
16750
  def read(self, iprot):
16751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16753
      return
16754
    iprot.readStructBegin()
16755
    while True:
16756
      (fname, ftype, fid) = iprot.readFieldBegin()
16757
      if ftype == TType.STOP:
16758
        break
16759
      if fid == 1:
16760
        if ftype == TType.STRUCT:
16761
          self.campaign = Campaign()
16762
          self.campaign.read(iprot)
16763
        else:
16764
          iprot.skip(ftype)
16765
      else:
16766
        iprot.skip(ftype)
16767
      iprot.readFieldEnd()
16768
    iprot.readStructEnd()
16769
 
16770
  def write(self, oprot):
16771
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16772
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16773
      return
16774
    oprot.writeStructBegin('addCampaign_args')
16775
    if self.campaign is not None:
16776
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
16777
      self.campaign.write(oprot)
16778
      oprot.writeFieldEnd()
16779
    oprot.writeFieldStop()
16780
    oprot.writeStructEnd()
16781
 
16782
  def validate(self):
16783
    return
16784
 
16785
 
16786
  def __repr__(self):
16787
    L = ['%s=%r' % (key, value)
16788
      for key, value in self.__dict__.iteritems()]
16789
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16790
 
16791
  def __eq__(self, other):
16792
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16793
 
16794
  def __ne__(self, other):
16795
    return not (self == other)
16796
 
16797
class addCampaign_result:
16798
 
16799
  thrift_spec = (
16800
  )
16801
 
16802
  def read(self, iprot):
16803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16805
      return
16806
    iprot.readStructBegin()
16807
    while True:
16808
      (fname, ftype, fid) = iprot.readFieldBegin()
16809
      if ftype == TType.STOP:
16810
        break
16811
      else:
16812
        iprot.skip(ftype)
16813
      iprot.readFieldEnd()
16814
    iprot.readStructEnd()
16815
 
16816
  def write(self, oprot):
16817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16819
      return
16820
    oprot.writeStructBegin('addCampaign_result')
16821
    oprot.writeFieldStop()
16822
    oprot.writeStructEnd()
16823
 
16824
  def validate(self):
16825
    return
16826
 
16827
 
16828
  def __repr__(self):
16829
    L = ['%s=%r' % (key, value)
16830
      for key, value in self.__dict__.iteritems()]
16831
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16832
 
16833
  def __eq__(self, other):
16834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16835
 
16836
  def __ne__(self, other):
16837
    return not (self == other)
16838
 
16839
class getCampaigns_args:
16840
  """
16841
  Attributes:
16842
   - campaignName
16843
  """
16844
 
16845
  thrift_spec = (
16846
    None, # 0
16847
    (1, TType.STRING, 'campaignName', None, None, ), # 1
16848
  )
16849
 
16850
  def __init__(self, campaignName=None,):
16851
    self.campaignName = campaignName
16852
 
16853
  def read(self, iprot):
16854
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16855
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16856
      return
16857
    iprot.readStructBegin()
16858
    while True:
16859
      (fname, ftype, fid) = iprot.readFieldBegin()
16860
      if ftype == TType.STOP:
16861
        break
16862
      if fid == 1:
16863
        if ftype == TType.STRING:
16864
          self.campaignName = iprot.readString();
16865
        else:
16866
          iprot.skip(ftype)
16867
      else:
16868
        iprot.skip(ftype)
16869
      iprot.readFieldEnd()
16870
    iprot.readStructEnd()
16871
 
16872
  def write(self, oprot):
16873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16875
      return
16876
    oprot.writeStructBegin('getCampaigns_args')
16877
    if self.campaignName is not None:
16878
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
16879
      oprot.writeString(self.campaignName)
16880
      oprot.writeFieldEnd()
16881
    oprot.writeFieldStop()
16882
    oprot.writeStructEnd()
16883
 
16884
  def validate(self):
16885
    return
16886
 
16887
 
16888
  def __repr__(self):
16889
    L = ['%s=%r' % (key, value)
16890
      for key, value in self.__dict__.iteritems()]
16891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16892
 
16893
  def __eq__(self, other):
16894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16895
 
16896
  def __ne__(self, other):
16897
    return not (self == other)
16898
 
16899
class getCampaigns_result:
16900
  """
16901
  Attributes:
16902
   - success
16903
  """
16904
 
16905
  thrift_spec = (
16906
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
16907
  )
16908
 
16909
  def __init__(self, success=None,):
16910
    self.success = success
16911
 
16912
  def read(self, iprot):
16913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16915
      return
16916
    iprot.readStructBegin()
16917
    while True:
16918
      (fname, ftype, fid) = iprot.readFieldBegin()
16919
      if ftype == TType.STOP:
16920
        break
16921
      if fid == 0:
16922
        if ftype == TType.LIST:
16923
          self.success = []
13493 amit.gupta 16924
          (_etype274, _size271) = iprot.readListBegin()
16925
          for _i275 in xrange(_size271):
16926
            _elem276 = Campaign()
16927
            _elem276.read(iprot)
16928
            self.success.append(_elem276)
8579 kshitij.so 16929
          iprot.readListEnd()
16930
        else:
16931
          iprot.skip(ftype)
16932
      else:
16933
        iprot.skip(ftype)
16934
      iprot.readFieldEnd()
16935
    iprot.readStructEnd()
16936
 
16937
  def write(self, oprot):
16938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16940
      return
16941
    oprot.writeStructBegin('getCampaigns_result')
16942
    if self.success is not None:
16943
      oprot.writeFieldBegin('success', TType.LIST, 0)
16944
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 16945
      for iter277 in self.success:
16946
        iter277.write(oprot)
8579 kshitij.so 16947
      oprot.writeListEnd()
16948
      oprot.writeFieldEnd()
16949
    oprot.writeFieldStop()
16950
    oprot.writeStructEnd()
16951
 
16952
  def validate(self):
16953
    return
16954
 
16955
 
16956
  def __repr__(self):
16957
    L = ['%s=%r' % (key, value)
16958
      for key, value in self.__dict__.iteritems()]
16959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16960
 
16961
  def __eq__(self, other):
16962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16963
 
16964
  def __ne__(self, other):
16965
    return not (self == other)
16966
 
16967
class deleteCampaign_args:
16968
  """
16969
  Attributes:
16970
   - campaignId
16971
  """
16972
 
16973
  thrift_spec = (
16974
    None, # 0
16975
    (1, TType.I64, 'campaignId', None, None, ), # 1
16976
  )
16977
 
16978
  def __init__(self, campaignId=None,):
16979
    self.campaignId = campaignId
16980
 
16981
  def read(self, iprot):
16982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16984
      return
16985
    iprot.readStructBegin()
16986
    while True:
16987
      (fname, ftype, fid) = iprot.readFieldBegin()
16988
      if ftype == TType.STOP:
16989
        break
16990
      if fid == 1:
16991
        if ftype == TType.I64:
16992
          self.campaignId = iprot.readI64();
16993
        else:
16994
          iprot.skip(ftype)
16995
      else:
16996
        iprot.skip(ftype)
16997
      iprot.readFieldEnd()
16998
    iprot.readStructEnd()
16999
 
17000
  def write(self, oprot):
17001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17003
      return
17004
    oprot.writeStructBegin('deleteCampaign_args')
17005
    if self.campaignId is not None:
17006
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
17007
      oprot.writeI64(self.campaignId)
17008
      oprot.writeFieldEnd()
17009
    oprot.writeFieldStop()
17010
    oprot.writeStructEnd()
17011
 
17012
  def validate(self):
17013
    return
17014
 
17015
 
17016
  def __repr__(self):
17017
    L = ['%s=%r' % (key, value)
17018
      for key, value in self.__dict__.iteritems()]
17019
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17020
 
17021
  def __eq__(self, other):
17022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17023
 
17024
  def __ne__(self, other):
17025
    return not (self == other)
17026
 
17027
class deleteCampaign_result:
17028
 
17029
  thrift_spec = (
17030
  )
17031
 
17032
  def read(self, iprot):
17033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17035
      return
17036
    iprot.readStructBegin()
17037
    while True:
17038
      (fname, ftype, fid) = iprot.readFieldBegin()
17039
      if ftype == TType.STOP:
17040
        break
17041
      else:
17042
        iprot.skip(ftype)
17043
      iprot.readFieldEnd()
17044
    iprot.readStructEnd()
17045
 
17046
  def write(self, oprot):
17047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17049
      return
17050
    oprot.writeStructBegin('deleteCampaign_result')
17051
    oprot.writeFieldStop()
17052
    oprot.writeStructEnd()
17053
 
17054
  def validate(self):
17055
    return
17056
 
17057
 
17058
  def __repr__(self):
17059
    L = ['%s=%r' % (key, value)
17060
      for key, value in self.__dict__.iteritems()]
17061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17062
 
17063
  def __eq__(self, other):
17064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17065
 
17066
  def __ne__(self, other):
17067
    return not (self == other)
17068
 
17069
class getAllCampaigns_args:
17070
 
17071
  thrift_spec = (
17072
  )
17073
 
17074
  def read(self, iprot):
17075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17077
      return
17078
    iprot.readStructBegin()
17079
    while True:
17080
      (fname, ftype, fid) = iprot.readFieldBegin()
17081
      if ftype == TType.STOP:
17082
        break
17083
      else:
17084
        iprot.skip(ftype)
17085
      iprot.readFieldEnd()
17086
    iprot.readStructEnd()
17087
 
17088
  def write(self, oprot):
17089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17091
      return
17092
    oprot.writeStructBegin('getAllCampaigns_args')
17093
    oprot.writeFieldStop()
17094
    oprot.writeStructEnd()
17095
 
17096
  def validate(self):
17097
    return
17098
 
17099
 
17100
  def __repr__(self):
17101
    L = ['%s=%r' % (key, value)
17102
      for key, value in self.__dict__.iteritems()]
17103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17104
 
17105
  def __eq__(self, other):
17106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17107
 
17108
  def __ne__(self, other):
17109
    return not (self == other)
17110
 
17111
class getAllCampaigns_result:
17112
  """
17113
  Attributes:
17114
   - success
17115
  """
17116
 
17117
  thrift_spec = (
17118
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
17119
  )
17120
 
17121
  def __init__(self, success=None,):
17122
    self.success = success
17123
 
17124
  def read(self, iprot):
17125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17127
      return
17128
    iprot.readStructBegin()
17129
    while True:
17130
      (fname, ftype, fid) = iprot.readFieldBegin()
17131
      if ftype == TType.STOP:
17132
        break
17133
      if fid == 0:
17134
        if ftype == TType.LIST:
17135
          self.success = []
13493 amit.gupta 17136
          (_etype281, _size278) = iprot.readListBegin()
17137
          for _i282 in xrange(_size278):
17138
            _elem283 = iprot.readString();
17139
            self.success.append(_elem283)
8579 kshitij.so 17140
          iprot.readListEnd()
17141
        else:
17142
          iprot.skip(ftype)
17143
      else:
17144
        iprot.skip(ftype)
17145
      iprot.readFieldEnd()
17146
    iprot.readStructEnd()
17147
 
17148
  def write(self, oprot):
17149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17151
      return
17152
    oprot.writeStructBegin('getAllCampaigns_result')
17153
    if self.success is not None:
17154
      oprot.writeFieldBegin('success', TType.LIST, 0)
17155
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 17156
      for iter284 in self.success:
17157
        oprot.writeString(iter284)
8579 kshitij.so 17158
      oprot.writeListEnd()
17159
      oprot.writeFieldEnd()
17160
    oprot.writeFieldStop()
17161
    oprot.writeStructEnd()
17162
 
17163
  def validate(self):
17164
    return
17165
 
17166
 
17167
  def __repr__(self):
17168
    L = ['%s=%r' % (key, value)
17169
      for key, value in self.__dict__.iteritems()]
17170
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17171
 
17172
  def __eq__(self, other):
17173
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17174
 
17175
  def __ne__(self, other):
17176
    return not (self == other)
17177
 
9155 kshitij.so 17178
class getActiveBannersForMobileSite_args:
17179
 
17180
  thrift_spec = (
17181
  )
17182
 
17183
  def read(self, iprot):
17184
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17185
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17186
      return
17187
    iprot.readStructBegin()
17188
    while True:
17189
      (fname, ftype, fid) = iprot.readFieldBegin()
17190
      if ftype == TType.STOP:
17191
        break
17192
      else:
17193
        iprot.skip(ftype)
17194
      iprot.readFieldEnd()
17195
    iprot.readStructEnd()
17196
 
17197
  def write(self, oprot):
17198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17200
      return
17201
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
17202
    oprot.writeFieldStop()
17203
    oprot.writeStructEnd()
17204
 
17205
  def validate(self):
17206
    return
17207
 
17208
 
17209
  def __repr__(self):
17210
    L = ['%s=%r' % (key, value)
17211
      for key, value in self.__dict__.iteritems()]
17212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17213
 
17214
  def __eq__(self, other):
17215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17216
 
17217
  def __ne__(self, other):
17218
    return not (self == other)
17219
 
17220
class getActiveBannersForMobileSite_result:
17221
  """
17222
  Attributes:
17223
   - success
17224
  """
17225
 
17226
  thrift_spec = (
17227
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
17228
  )
17229
 
17230
  def __init__(self, success=None,):
17231
    self.success = success
17232
 
17233
  def read(self, iprot):
17234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17236
      return
17237
    iprot.readStructBegin()
17238
    while True:
17239
      (fname, ftype, fid) = iprot.readFieldBegin()
17240
      if ftype == TType.STOP:
17241
        break
17242
      if fid == 0:
17243
        if ftype == TType.MAP:
17244
          self.success = {}
13493 amit.gupta 17245
          (_ktype286, _vtype287, _size285 ) = iprot.readMapBegin() 
17246
          for _i289 in xrange(_size285):
17247
            _key290 = iprot.readString();
17248
            _val291 = []
17249
            (_etype295, _size292) = iprot.readListBegin()
17250
            for _i296 in xrange(_size292):
17251
              _elem297 = Banner()
17252
              _elem297.read(iprot)
17253
              _val291.append(_elem297)
9155 kshitij.so 17254
            iprot.readListEnd()
13493 amit.gupta 17255
            self.success[_key290] = _val291
9155 kshitij.so 17256
          iprot.readMapEnd()
17257
        else:
17258
          iprot.skip(ftype)
17259
      else:
17260
        iprot.skip(ftype)
17261
      iprot.readFieldEnd()
17262
    iprot.readStructEnd()
17263
 
17264
  def write(self, oprot):
17265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17267
      return
17268
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
17269
    if self.success is not None:
17270
      oprot.writeFieldBegin('success', TType.MAP, 0)
17271
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
13493 amit.gupta 17272
      for kiter298,viter299 in self.success.items():
17273
        oprot.writeString(kiter298)
17274
        oprot.writeListBegin(TType.STRUCT, len(viter299))
17275
        for iter300 in viter299:
17276
          iter300.write(oprot)
9155 kshitij.so 17277
        oprot.writeListEnd()
17278
      oprot.writeMapEnd()
17279
      oprot.writeFieldEnd()
17280
    oprot.writeFieldStop()
17281
    oprot.writeStructEnd()
17282
 
17283
  def validate(self):
17284
    return
17285
 
17286
 
17287
  def __repr__(self):
17288
    L = ['%s=%r' % (key, value)
17289
      for key, value in self.__dict__.iteritems()]
17290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17291
 
17292
  def __eq__(self, other):
17293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17294
 
17295
  def __ne__(self, other):
17296
    return not (self == other)
17297
 
5944 mandeep.dh 17298
class deleteSimilarItem_args:
17299
  """
17300
  Attributes:
17301
   - itemId
17302
   - catalogItemId
17303
  """
17304
 
17305
  thrift_spec = (
17306
    None, # 0
17307
    (1, TType.I64, 'itemId', None, None, ), # 1
17308
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
17309
  )
17310
 
17311
  def __init__(self, itemId=None, catalogItemId=None,):
17312
    self.itemId = itemId
17313
    self.catalogItemId = catalogItemId
17314
 
17315
  def read(self, iprot):
17316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17318
      return
17319
    iprot.readStructBegin()
17320
    while True:
17321
      (fname, ftype, fid) = iprot.readFieldBegin()
17322
      if ftype == TType.STOP:
17323
        break
17324
      if fid == 1:
17325
        if ftype == TType.I64:
17326
          self.itemId = iprot.readI64();
17327
        else:
17328
          iprot.skip(ftype)
17329
      elif fid == 2:
17330
        if ftype == TType.I64:
17331
          self.catalogItemId = iprot.readI64();
17332
        else:
17333
          iprot.skip(ftype)
17334
      else:
17335
        iprot.skip(ftype)
17336
      iprot.readFieldEnd()
17337
    iprot.readStructEnd()
17338
 
17339
  def write(self, oprot):
17340
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17341
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17342
      return
17343
    oprot.writeStructBegin('deleteSimilarItem_args')
17344
    if self.itemId is not None:
17345
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17346
      oprot.writeI64(self.itemId)
17347
      oprot.writeFieldEnd()
17348
    if self.catalogItemId is not None:
17349
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
17350
      oprot.writeI64(self.catalogItemId)
17351
      oprot.writeFieldEnd()
17352
    oprot.writeFieldStop()
17353
    oprot.writeStructEnd()
17354
 
17355
  def validate(self):
17356
    return
17357
 
17358
 
17359
  def __repr__(self):
17360
    L = ['%s=%r' % (key, value)
17361
      for key, value in self.__dict__.iteritems()]
17362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17363
 
17364
  def __eq__(self, other):
17365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17366
 
17367
  def __ne__(self, other):
17368
    return not (self == other)
17369
 
17370
class deleteSimilarItem_result:
17371
  """
17372
  Attributes:
17373
   - success
17374
   - cex
17375
  """
17376
 
17377
  thrift_spec = (
17378
    (0, TType.BOOL, 'success', None, None, ), # 0
17379
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17380
  )
17381
 
17382
  def __init__(self, success=None, cex=None,):
17383
    self.success = success
17384
    self.cex = cex
17385
 
17386
  def read(self, iprot):
17387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17389
      return
17390
    iprot.readStructBegin()
17391
    while True:
17392
      (fname, ftype, fid) = iprot.readFieldBegin()
17393
      if ftype == TType.STOP:
17394
        break
17395
      if fid == 0:
17396
        if ftype == TType.BOOL:
17397
          self.success = iprot.readBool();
17398
        else:
17399
          iprot.skip(ftype)
17400
      elif fid == 1:
17401
        if ftype == TType.STRUCT:
17402
          self.cex = CatalogServiceException()
17403
          self.cex.read(iprot)
17404
        else:
17405
          iprot.skip(ftype)
17406
      else:
17407
        iprot.skip(ftype)
17408
      iprot.readFieldEnd()
17409
    iprot.readStructEnd()
17410
 
17411
  def write(self, oprot):
17412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17414
      return
17415
    oprot.writeStructBegin('deleteSimilarItem_result')
17416
    if self.success is not None:
17417
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17418
      oprot.writeBool(self.success)
17419
      oprot.writeFieldEnd()
17420
    if self.cex is not None:
17421
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17422
      self.cex.write(oprot)
17423
      oprot.writeFieldEnd()
17424
    oprot.writeFieldStop()
17425
    oprot.writeStructEnd()
17426
 
17427
  def validate(self):
17428
    return
17429
 
17430
 
17431
  def __repr__(self):
17432
    L = ['%s=%r' % (key, value)
17433
      for key, value in self.__dict__.iteritems()]
17434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17435
 
17436
  def __eq__(self, other):
17437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17438
 
17439
  def __ne__(self, other):
17440
    return not (self == other)
17441
 
17442
class checkSimilarItem_args:
17443
  """
17444
  Attributes:
17445
   - brand
17446
   - modelNumber
17447
   - modelName
17448
   - color
17449
  """
17450
 
17451
  thrift_spec = (
17452
    None, # 0
17453
    (1, TType.STRING, 'brand', None, None, ), # 1
17454
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
17455
    (3, TType.STRING, 'modelName', None, None, ), # 3
17456
    (4, TType.STRING, 'color', None, None, ), # 4
17457
  )
17458
 
17459
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
17460
    self.brand = brand
17461
    self.modelNumber = modelNumber
17462
    self.modelName = modelName
17463
    self.color = color
17464
 
17465
  def read(self, iprot):
17466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17468
      return
17469
    iprot.readStructBegin()
17470
    while True:
17471
      (fname, ftype, fid) = iprot.readFieldBegin()
17472
      if ftype == TType.STOP:
17473
        break
17474
      if fid == 1:
17475
        if ftype == TType.STRING:
17476
          self.brand = iprot.readString();
17477
        else:
17478
          iprot.skip(ftype)
17479
      elif fid == 2:
17480
        if ftype == TType.STRING:
17481
          self.modelNumber = iprot.readString();
17482
        else:
17483
          iprot.skip(ftype)
17484
      elif fid == 3:
17485
        if ftype == TType.STRING:
17486
          self.modelName = iprot.readString();
17487
        else:
17488
          iprot.skip(ftype)
17489
      elif fid == 4:
17490
        if ftype == TType.STRING:
17491
          self.color = iprot.readString();
17492
        else:
17493
          iprot.skip(ftype)
17494
      else:
17495
        iprot.skip(ftype)
17496
      iprot.readFieldEnd()
17497
    iprot.readStructEnd()
17498
 
17499
  def write(self, oprot):
17500
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17501
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17502
      return
17503
    oprot.writeStructBegin('checkSimilarItem_args')
17504
    if self.brand is not None:
17505
      oprot.writeFieldBegin('brand', TType.STRING, 1)
17506
      oprot.writeString(self.brand)
17507
      oprot.writeFieldEnd()
17508
    if self.modelNumber is not None:
17509
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
17510
      oprot.writeString(self.modelNumber)
17511
      oprot.writeFieldEnd()
17512
    if self.modelName is not None:
17513
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
17514
      oprot.writeString(self.modelName)
17515
      oprot.writeFieldEnd()
17516
    if self.color is not None:
17517
      oprot.writeFieldBegin('color', TType.STRING, 4)
17518
      oprot.writeString(self.color)
17519
      oprot.writeFieldEnd()
17520
    oprot.writeFieldStop()
17521
    oprot.writeStructEnd()
17522
 
17523
  def validate(self):
17524
    return
17525
 
17526
 
17527
  def __repr__(self):
17528
    L = ['%s=%r' % (key, value)
17529
      for key, value in self.__dict__.iteritems()]
17530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17531
 
17532
  def __eq__(self, other):
17533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17534
 
17535
  def __ne__(self, other):
17536
    return not (self == other)
17537
 
17538
class checkSimilarItem_result:
17539
  """
17540
  Attributes:
17541
   - success
17542
  """
17543
 
17544
  thrift_spec = (
17545
    (0, TType.I64, 'success', None, None, ), # 0
17546
  )
17547
 
17548
  def __init__(self, success=None,):
17549
    self.success = success
17550
 
17551
  def read(self, iprot):
17552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17554
      return
17555
    iprot.readStructBegin()
17556
    while True:
17557
      (fname, ftype, fid) = iprot.readFieldBegin()
17558
      if ftype == TType.STOP:
17559
        break
17560
      if fid == 0:
17561
        if ftype == TType.I64:
17562
          self.success = iprot.readI64();
17563
        else:
17564
          iprot.skip(ftype)
17565
      else:
17566
        iprot.skip(ftype)
17567
      iprot.readFieldEnd()
17568
    iprot.readStructEnd()
17569
 
17570
  def write(self, oprot):
17571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17573
      return
17574
    oprot.writeStructBegin('checkSimilarItem_result')
17575
    if self.success is not None:
17576
      oprot.writeFieldBegin('success', TType.I64, 0)
17577
      oprot.writeI64(self.success)
17578
      oprot.writeFieldEnd()
17579
    oprot.writeFieldStop()
17580
    oprot.writeStructEnd()
17581
 
17582
  def validate(self):
17583
    return
17584
 
17585
 
17586
  def __repr__(self):
17587
    L = ['%s=%r' % (key, value)
17588
      for key, value in self.__dict__.iteritems()]
17589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17590
 
17591
  def __eq__(self, other):
17592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17593
 
17594
  def __ne__(self, other):
17595
    return not (self == other)
17596
 
17597
class validateRiskyStatus_args:
17598
  """
17599
  Attributes:
17600
   - itemId
17601
  """
17602
 
17603
  thrift_spec = (
17604
    None, # 0
17605
    (1, TType.I64, 'itemId', None, None, ), # 1
17606
  )
17607
 
17608
  def __init__(self, itemId=None,):
17609
    self.itemId = itemId
17610
 
17611
  def read(self, iprot):
17612
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17613
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17614
      return
17615
    iprot.readStructBegin()
17616
    while True:
17617
      (fname, ftype, fid) = iprot.readFieldBegin()
17618
      if ftype == TType.STOP:
17619
        break
17620
      if fid == 1:
17621
        if ftype == TType.I64:
17622
          self.itemId = iprot.readI64();
17623
        else:
17624
          iprot.skip(ftype)
17625
      else:
17626
        iprot.skip(ftype)
17627
      iprot.readFieldEnd()
17628
    iprot.readStructEnd()
17629
 
17630
  def write(self, oprot):
17631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17633
      return
17634
    oprot.writeStructBegin('validateRiskyStatus_args')
17635
    if self.itemId is not None:
17636
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17637
      oprot.writeI64(self.itemId)
17638
      oprot.writeFieldEnd()
17639
    oprot.writeFieldStop()
17640
    oprot.writeStructEnd()
17641
 
17642
  def validate(self):
17643
    return
17644
 
17645
 
17646
  def __repr__(self):
17647
    L = ['%s=%r' % (key, value)
17648
      for key, value in self.__dict__.iteritems()]
17649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17650
 
17651
  def __eq__(self, other):
17652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17653
 
17654
  def __ne__(self, other):
17655
    return not (self == other)
17656
 
17657
class validateRiskyStatus_result:
17658
 
17659
  thrift_spec = (
17660
  )
17661
 
17662
  def read(self, iprot):
17663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17665
      return
17666
    iprot.readStructBegin()
17667
    while True:
17668
      (fname, ftype, fid) = iprot.readFieldBegin()
17669
      if ftype == TType.STOP:
17670
        break
17671
      else:
17672
        iprot.skip(ftype)
17673
      iprot.readFieldEnd()
17674
    iprot.readStructEnd()
17675
 
17676
  def write(self, oprot):
17677
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17678
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17679
      return
17680
    oprot.writeStructBegin('validateRiskyStatus_result')
17681
    oprot.writeFieldStop()
17682
    oprot.writeStructEnd()
17683
 
17684
  def validate(self):
17685
    return
17686
 
17687
 
17688
  def __repr__(self):
17689
    L = ['%s=%r' % (key, value)
17690
      for key, value in self.__dict__.iteritems()]
17691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17692
 
17693
  def __eq__(self, other):
17694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17695
 
17696
  def __ne__(self, other):
17697
    return not (self == other)
17698
 
17699
class changeItemRiskyFlag_args:
17700
  """
17701
  Attributes:
17702
   - itemId
17703
   - risky
17704
  """
17705
 
17706
  thrift_spec = (
17707
    None, # 0
17708
    (1, TType.I64, 'itemId', None, None, ), # 1
17709
    (2, TType.BOOL, 'risky', None, None, ), # 2
17710
  )
17711
 
17712
  def __init__(self, itemId=None, risky=None,):
17713
    self.itemId = itemId
17714
    self.risky = risky
17715
 
17716
  def read(self, iprot):
17717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17719
      return
17720
    iprot.readStructBegin()
17721
    while True:
17722
      (fname, ftype, fid) = iprot.readFieldBegin()
17723
      if ftype == TType.STOP:
17724
        break
17725
      if fid == 1:
17726
        if ftype == TType.I64:
17727
          self.itemId = iprot.readI64();
17728
        else:
17729
          iprot.skip(ftype)
17730
      elif fid == 2:
17731
        if ftype == TType.BOOL:
17732
          self.risky = iprot.readBool();
17733
        else:
17734
          iprot.skip(ftype)
17735
      else:
17736
        iprot.skip(ftype)
17737
      iprot.readFieldEnd()
17738
    iprot.readStructEnd()
17739
 
17740
  def write(self, oprot):
17741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17743
      return
17744
    oprot.writeStructBegin('changeItemRiskyFlag_args')
17745
    if self.itemId is not None:
17746
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17747
      oprot.writeI64(self.itemId)
17748
      oprot.writeFieldEnd()
17749
    if self.risky is not None:
17750
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
17751
      oprot.writeBool(self.risky)
17752
      oprot.writeFieldEnd()
17753
    oprot.writeFieldStop()
17754
    oprot.writeStructEnd()
17755
 
17756
  def validate(self):
17757
    return
17758
 
17759
 
17760
  def __repr__(self):
17761
    L = ['%s=%r' % (key, value)
17762
      for key, value in self.__dict__.iteritems()]
17763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17764
 
17765
  def __eq__(self, other):
17766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17767
 
17768
  def __ne__(self, other):
17769
    return not (self == other)
17770
 
17771
class changeItemRiskyFlag_result:
17772
 
17773
  thrift_spec = (
17774
  )
17775
 
17776
  def read(self, iprot):
17777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17779
      return
17780
    iprot.readStructBegin()
17781
    while True:
17782
      (fname, ftype, fid) = iprot.readFieldBegin()
17783
      if ftype == TType.STOP:
17784
        break
17785
      else:
17786
        iprot.skip(ftype)
17787
      iprot.readFieldEnd()
17788
    iprot.readStructEnd()
17789
 
17790
  def write(self, oprot):
17791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17793
      return
17794
    oprot.writeStructBegin('changeItemRiskyFlag_result')
17795
    oprot.writeFieldStop()
17796
    oprot.writeStructEnd()
17797
 
17798
  def validate(self):
17799
    return
17800
 
17801
 
17802
  def __repr__(self):
17803
    L = ['%s=%r' % (key, value)
17804
      for key, value in self.__dict__.iteritems()]
17805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17806
 
17807
  def __eq__(self, other):
17808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17809
 
17810
  def __ne__(self, other):
17811
    return not (self == other)
17812
 
17813
class getItemsByRiskyFlag_args:
17814
 
17815
  thrift_spec = (
17816
  )
17817
 
17818
  def read(self, iprot):
17819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17821
      return
17822
    iprot.readStructBegin()
17823
    while True:
17824
      (fname, ftype, fid) = iprot.readFieldBegin()
17825
      if ftype == TType.STOP:
17826
        break
17827
      else:
17828
        iprot.skip(ftype)
17829
      iprot.readFieldEnd()
17830
    iprot.readStructEnd()
17831
 
17832
  def write(self, oprot):
17833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17835
      return
17836
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
17837
    oprot.writeFieldStop()
17838
    oprot.writeStructEnd()
17839
 
17840
  def validate(self):
17841
    return
17842
 
17843
 
17844
  def __repr__(self):
17845
    L = ['%s=%r' % (key, value)
17846
      for key, value in self.__dict__.iteritems()]
17847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17848
 
17849
  def __eq__(self, other):
17850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17851
 
17852
  def __ne__(self, other):
17853
    return not (self == other)
17854
 
17855
class getItemsByRiskyFlag_result:
17856
  """
17857
  Attributes:
17858
   - success
17859
  """
17860
 
17861
  thrift_spec = (
17862
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17863
  )
17864
 
17865
  def __init__(self, success=None,):
17866
    self.success = success
17867
 
17868
  def read(self, iprot):
17869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17871
      return
17872
    iprot.readStructBegin()
17873
    while True:
17874
      (fname, ftype, fid) = iprot.readFieldBegin()
17875
      if ftype == TType.STOP:
17876
        break
17877
      if fid == 0:
17878
        if ftype == TType.LIST:
17879
          self.success = []
13493 amit.gupta 17880
          (_etype304, _size301) = iprot.readListBegin()
17881
          for _i305 in xrange(_size301):
17882
            _elem306 = Item()
17883
            _elem306.read(iprot)
17884
            self.success.append(_elem306)
5944 mandeep.dh 17885
          iprot.readListEnd()
17886
        else:
17887
          iprot.skip(ftype)
17888
      else:
17889
        iprot.skip(ftype)
17890
      iprot.readFieldEnd()
17891
    iprot.readStructEnd()
17892
 
17893
  def write(self, oprot):
17894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17896
      return
17897
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
17898
    if self.success is not None:
17899
      oprot.writeFieldBegin('success', TType.LIST, 0)
17900
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 17901
      for iter307 in self.success:
17902
        iter307.write(oprot)
5944 mandeep.dh 17903
      oprot.writeListEnd()
17904
      oprot.writeFieldEnd()
17905
    oprot.writeFieldStop()
17906
    oprot.writeStructEnd()
17907
 
17908
  def validate(self):
17909
    return
17910
 
17911
 
17912
  def __repr__(self):
17913
    L = ['%s=%r' % (key, value)
17914
      for key, value in self.__dict__.iteritems()]
17915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17916
 
17917
  def __eq__(self, other):
17918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17919
 
17920
  def __ne__(self, other):
17921
    return not (self == other)
17922
 
17923
class getItemsForMasterSheet_args:
17924
  """
17925
  Attributes:
17926
   - category
17927
   - brand
17928
  """
17929
 
17930
  thrift_spec = (
17931
    None, # 0
17932
    (1, TType.STRING, 'category', None, None, ), # 1
17933
    (2, TType.STRING, 'brand', None, None, ), # 2
17934
  )
17935
 
17936
  def __init__(self, category=None, brand=None,):
17937
    self.category = category
17938
    self.brand = brand
17939
 
17940
  def read(self, iprot):
17941
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17942
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17943
      return
17944
    iprot.readStructBegin()
17945
    while True:
17946
      (fname, ftype, fid) = iprot.readFieldBegin()
17947
      if ftype == TType.STOP:
17948
        break
17949
      if fid == 1:
17950
        if ftype == TType.STRING:
17951
          self.category = iprot.readString();
17952
        else:
17953
          iprot.skip(ftype)
17954
      elif fid == 2:
17955
        if ftype == TType.STRING:
17956
          self.brand = iprot.readString();
17957
        else:
17958
          iprot.skip(ftype)
17959
      else:
17960
        iprot.skip(ftype)
17961
      iprot.readFieldEnd()
17962
    iprot.readStructEnd()
17963
 
17964
  def write(self, oprot):
17965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17967
      return
17968
    oprot.writeStructBegin('getItemsForMasterSheet_args')
17969
    if self.category is not None:
17970
      oprot.writeFieldBegin('category', TType.STRING, 1)
17971
      oprot.writeString(self.category)
17972
      oprot.writeFieldEnd()
17973
    if self.brand is not None:
17974
      oprot.writeFieldBegin('brand', TType.STRING, 2)
17975
      oprot.writeString(self.brand)
17976
      oprot.writeFieldEnd()
17977
    oprot.writeFieldStop()
17978
    oprot.writeStructEnd()
17979
 
17980
  def validate(self):
17981
    return
17982
 
17983
 
17984
  def __repr__(self):
17985
    L = ['%s=%r' % (key, value)
17986
      for key, value in self.__dict__.iteritems()]
17987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17988
 
17989
  def __eq__(self, other):
17990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17991
 
17992
  def __ne__(self, other):
17993
    return not (self == other)
17994
 
17995
class getItemsForMasterSheet_result:
17996
  """
17997
  Attributes:
17998
   - success
17999
  """
18000
 
18001
  thrift_spec = (
18002
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18003
  )
18004
 
18005
  def __init__(self, success=None,):
18006
    self.success = success
18007
 
18008
  def read(self, iprot):
18009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18011
      return
18012
    iprot.readStructBegin()
18013
    while True:
18014
      (fname, ftype, fid) = iprot.readFieldBegin()
18015
      if ftype == TType.STOP:
18016
        break
18017
      if fid == 0:
18018
        if ftype == TType.LIST:
18019
          self.success = []
13493 amit.gupta 18020
          (_etype311, _size308) = iprot.readListBegin()
18021
          for _i312 in xrange(_size308):
18022
            _elem313 = Item()
18023
            _elem313.read(iprot)
18024
            self.success.append(_elem313)
5944 mandeep.dh 18025
          iprot.readListEnd()
18026
        else:
18027
          iprot.skip(ftype)
18028
      else:
18029
        iprot.skip(ftype)
18030
      iprot.readFieldEnd()
18031
    iprot.readStructEnd()
18032
 
18033
  def write(self, oprot):
18034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18036
      return
18037
    oprot.writeStructBegin('getItemsForMasterSheet_result')
18038
    if self.success is not None:
18039
      oprot.writeFieldBegin('success', TType.LIST, 0)
18040
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 18041
      for iter314 in self.success:
18042
        iter314.write(oprot)
5944 mandeep.dh 18043
      oprot.writeListEnd()
18044
      oprot.writeFieldEnd()
18045
    oprot.writeFieldStop()
18046
    oprot.writeStructEnd()
18047
 
18048
  def validate(self):
18049
    return
18050
 
18051
 
18052
  def __repr__(self):
18053
    L = ['%s=%r' % (key, value)
18054
      for key, value in self.__dict__.iteritems()]
18055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18056
 
18057
  def __eq__(self, other):
18058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18059
 
18060
  def __ne__(self, other):
18061
    return not (self == other)
18062
 
18063
class getSimilarItemsCatalogIds_args:
18064
  """
18065
  Attributes:
18066
   - beginIndex
18067
   - totalItems
18068
   - itemId
18069
  """
18070
 
18071
  thrift_spec = (
18072
    None, # 0
18073
    (1, TType.I64, 'beginIndex', None, None, ), # 1
18074
    (2, TType.I64, 'totalItems', None, None, ), # 2
18075
    (3, TType.I64, 'itemId', None, None, ), # 3
18076
  )
18077
 
18078
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
18079
    self.beginIndex = beginIndex
18080
    self.totalItems = totalItems
18081
    self.itemId = itemId
18082
 
18083
  def read(self, iprot):
18084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18086
      return
18087
    iprot.readStructBegin()
18088
    while True:
18089
      (fname, ftype, fid) = iprot.readFieldBegin()
18090
      if ftype == TType.STOP:
18091
        break
18092
      if fid == 1:
18093
        if ftype == TType.I64:
18094
          self.beginIndex = iprot.readI64();
18095
        else:
18096
          iprot.skip(ftype)
18097
      elif fid == 2:
18098
        if ftype == TType.I64:
18099
          self.totalItems = iprot.readI64();
18100
        else:
18101
          iprot.skip(ftype)
18102
      elif fid == 3:
18103
        if ftype == TType.I64:
18104
          self.itemId = iprot.readI64();
18105
        else:
18106
          iprot.skip(ftype)
18107
      else:
18108
        iprot.skip(ftype)
18109
      iprot.readFieldEnd()
18110
    iprot.readStructEnd()
18111
 
18112
  def write(self, oprot):
18113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18115
      return
18116
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
18117
    if self.beginIndex is not None:
18118
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
18119
      oprot.writeI64(self.beginIndex)
18120
      oprot.writeFieldEnd()
18121
    if self.totalItems is not None:
18122
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
18123
      oprot.writeI64(self.totalItems)
18124
      oprot.writeFieldEnd()
18125
    if self.itemId is not None:
18126
      oprot.writeFieldBegin('itemId', TType.I64, 3)
18127
      oprot.writeI64(self.itemId)
18128
      oprot.writeFieldEnd()
18129
    oprot.writeFieldStop()
18130
    oprot.writeStructEnd()
18131
 
18132
  def validate(self):
18133
    return
18134
 
18135
 
18136
  def __repr__(self):
18137
    L = ['%s=%r' % (key, value)
18138
      for key, value in self.__dict__.iteritems()]
18139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18140
 
18141
  def __eq__(self, other):
18142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18143
 
18144
  def __ne__(self, other):
18145
    return not (self == other)
18146
 
18147
class getSimilarItemsCatalogIds_result:
18148
  """
18149
  Attributes:
18150
   - success
18151
  """
18152
 
18153
  thrift_spec = (
18154
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
18155
  )
18156
 
18157
  def __init__(self, success=None,):
18158
    self.success = success
18159
 
18160
  def read(self, iprot):
18161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18163
      return
18164
    iprot.readStructBegin()
18165
    while True:
18166
      (fname, ftype, fid) = iprot.readFieldBegin()
18167
      if ftype == TType.STOP:
18168
        break
18169
      if fid == 0:
18170
        if ftype == TType.LIST:
18171
          self.success = []
13493 amit.gupta 18172
          (_etype318, _size315) = iprot.readListBegin()
18173
          for _i319 in xrange(_size315):
18174
            _elem320 = iprot.readI64();
18175
            self.success.append(_elem320)
5944 mandeep.dh 18176
          iprot.readListEnd()
18177
        else:
18178
          iprot.skip(ftype)
18179
      else:
18180
        iprot.skip(ftype)
18181
      iprot.readFieldEnd()
18182
    iprot.readStructEnd()
18183
 
18184
  def write(self, oprot):
18185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18187
      return
18188
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
18189
    if self.success is not None:
18190
      oprot.writeFieldBegin('success', TType.LIST, 0)
18191
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 18192
      for iter321 in self.success:
18193
        oprot.writeI64(iter321)
5944 mandeep.dh 18194
      oprot.writeListEnd()
18195
      oprot.writeFieldEnd()
18196
    oprot.writeFieldStop()
18197
    oprot.writeStructEnd()
18198
 
18199
  def validate(self):
18200
    return
18201
 
18202
 
18203
  def __repr__(self):
18204
    L = ['%s=%r' % (key, value)
18205
      for key, value in self.__dict__.iteritems()]
18206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18207
 
18208
  def __eq__(self, other):
18209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18210
 
18211
  def __ne__(self, other):
18212
    return not (self == other)
18213
 
18214
class addProductNotification_args:
18215
  """
18216
  Attributes:
18217
   - itemId
18218
   - email
18219
  """
18220
 
18221
  thrift_spec = None
18222
  def __init__(self, itemId=None, email=None,):
18223
    self.itemId = itemId
18224
    self.email = email
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
      elif fid == -2:
18241
        if ftype == TType.STRING:
18242
          self.email = iprot.readString();
18243
        else:
18244
          iprot.skip(ftype)
18245
      else:
18246
        iprot.skip(ftype)
18247
      iprot.readFieldEnd()
18248
    iprot.readStructEnd()
18249
 
18250
  def write(self, oprot):
18251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18253
      return
18254
    oprot.writeStructBegin('addProductNotification_args')
18255
    if self.email is not None:
18256
      oprot.writeFieldBegin('email', TType.STRING, -2)
18257
      oprot.writeString(self.email)
18258
      oprot.writeFieldEnd()
18259
    if self.itemId is not None:
18260
      oprot.writeFieldBegin('itemId', TType.I64, -1)
18261
      oprot.writeI64(self.itemId)
18262
      oprot.writeFieldEnd()
18263
    oprot.writeFieldStop()
18264
    oprot.writeStructEnd()
18265
 
18266
  def validate(self):
18267
    return
18268
 
18269
 
18270
  def __repr__(self):
18271
    L = ['%s=%r' % (key, value)
18272
      for key, value in self.__dict__.iteritems()]
18273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18274
 
18275
  def __eq__(self, other):
18276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18277
 
18278
  def __ne__(self, other):
18279
    return not (self == other)
18280
 
18281
class addProductNotification_result:
18282
  """
18283
  Attributes:
18284
   - success
18285
  """
18286
 
18287
  thrift_spec = (
18288
    (0, TType.BOOL, 'success', None, None, ), # 0
18289
  )
18290
 
18291
  def __init__(self, success=None,):
18292
    self.success = success
18293
 
18294
  def read(self, iprot):
18295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18297
      return
18298
    iprot.readStructBegin()
18299
    while True:
18300
      (fname, ftype, fid) = iprot.readFieldBegin()
18301
      if ftype == TType.STOP:
18302
        break
18303
      if fid == 0:
18304
        if ftype == TType.BOOL:
18305
          self.success = iprot.readBool();
18306
        else:
18307
          iprot.skip(ftype)
18308
      else:
18309
        iprot.skip(ftype)
18310
      iprot.readFieldEnd()
18311
    iprot.readStructEnd()
18312
 
18313
  def write(self, oprot):
18314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18316
      return
18317
    oprot.writeStructBegin('addProductNotification_result')
18318
    if self.success is not None:
18319
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18320
      oprot.writeBool(self.success)
18321
      oprot.writeFieldEnd()
18322
    oprot.writeFieldStop()
18323
    oprot.writeStructEnd()
18324
 
18325
  def validate(self):
18326
    return
18327
 
18328
 
18329
  def __repr__(self):
18330
    L = ['%s=%r' % (key, value)
18331
      for key, value in self.__dict__.iteritems()]
18332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18333
 
18334
  def __eq__(self, other):
18335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18336
 
18337
  def __ne__(self, other):
18338
    return not (self == other)
18339
 
18340
class sendProductNotifications_args:
18341
 
18342
  thrift_spec = (
18343
  )
18344
 
18345
  def read(self, iprot):
18346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18348
      return
18349
    iprot.readStructBegin()
18350
    while True:
18351
      (fname, ftype, fid) = iprot.readFieldBegin()
18352
      if ftype == TType.STOP:
18353
        break
18354
      else:
18355
        iprot.skip(ftype)
18356
      iprot.readFieldEnd()
18357
    iprot.readStructEnd()
18358
 
18359
  def write(self, oprot):
18360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18362
      return
18363
    oprot.writeStructBegin('sendProductNotifications_args')
18364
    oprot.writeFieldStop()
18365
    oprot.writeStructEnd()
18366
 
18367
  def validate(self):
18368
    return
18369
 
18370
 
18371
  def __repr__(self):
18372
    L = ['%s=%r' % (key, value)
18373
      for key, value in self.__dict__.iteritems()]
18374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18375
 
18376
  def __eq__(self, other):
18377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18378
 
18379
  def __ne__(self, other):
18380
    return not (self == other)
18381
 
18382
class sendProductNotifications_result:
18383
  """
18384
  Attributes:
18385
   - success
18386
  """
18387
 
18388
  thrift_spec = (
18389
    (0, TType.BOOL, 'success', None, None, ), # 0
18390
  )
18391
 
18392
  def __init__(self, success=None,):
18393
    self.success = success
18394
 
18395
  def read(self, iprot):
18396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18398
      return
18399
    iprot.readStructBegin()
18400
    while True:
18401
      (fname, ftype, fid) = iprot.readFieldBegin()
18402
      if ftype == TType.STOP:
18403
        break
18404
      if fid == 0:
18405
        if ftype == TType.BOOL:
18406
          self.success = iprot.readBool();
18407
        else:
18408
          iprot.skip(ftype)
18409
      else:
18410
        iprot.skip(ftype)
18411
      iprot.readFieldEnd()
18412
    iprot.readStructEnd()
18413
 
18414
  def write(self, oprot):
18415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18417
      return
18418
    oprot.writeStructBegin('sendProductNotifications_result')
18419
    if self.success is not None:
18420
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18421
      oprot.writeBool(self.success)
18422
      oprot.writeFieldEnd()
18423
    oprot.writeFieldStop()
18424
    oprot.writeStructEnd()
18425
 
18426
  def validate(self):
18427
    return
18428
 
18429
 
18430
  def __repr__(self):
18431
    L = ['%s=%r' % (key, value)
18432
      for key, value in self.__dict__.iteritems()]
18433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18434
 
18435
  def __eq__(self, other):
18436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18437
 
18438
  def __ne__(self, other):
18439
    return not (self == other)
18440
 
18441
class getAllBrandsByCategory_args:
18442
  """
18443
  Attributes:
18444
   - categoryId
18445
  """
18446
 
18447
  thrift_spec = (
18448
    None, # 0
18449
    (1, TType.I64, 'categoryId', None, None, ), # 1
18450
  )
18451
 
18452
  def __init__(self, categoryId=None,):
18453
    self.categoryId = categoryId
18454
 
18455
  def read(self, iprot):
18456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18458
      return
18459
    iprot.readStructBegin()
18460
    while True:
18461
      (fname, ftype, fid) = iprot.readFieldBegin()
18462
      if ftype == TType.STOP:
18463
        break
18464
      if fid == 1:
18465
        if ftype == TType.I64:
18466
          self.categoryId = iprot.readI64();
18467
        else:
18468
          iprot.skip(ftype)
18469
      else:
18470
        iprot.skip(ftype)
18471
      iprot.readFieldEnd()
18472
    iprot.readStructEnd()
18473
 
18474
  def write(self, oprot):
18475
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18476
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18477
      return
18478
    oprot.writeStructBegin('getAllBrandsByCategory_args')
18479
    if self.categoryId is not None:
18480
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
18481
      oprot.writeI64(self.categoryId)
18482
      oprot.writeFieldEnd()
18483
    oprot.writeFieldStop()
18484
    oprot.writeStructEnd()
18485
 
18486
  def validate(self):
18487
    return
18488
 
18489
 
18490
  def __repr__(self):
18491
    L = ['%s=%r' % (key, value)
18492
      for key, value in self.__dict__.iteritems()]
18493
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18494
 
18495
  def __eq__(self, other):
18496
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18497
 
18498
  def __ne__(self, other):
18499
    return not (self == other)
18500
 
18501
class getAllBrandsByCategory_result:
18502
  """
18503
  Attributes:
18504
   - success
18505
  """
18506
 
18507
  thrift_spec = (
18508
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18509
  )
18510
 
18511
  def __init__(self, success=None,):
18512
    self.success = success
18513
 
18514
  def read(self, iprot):
18515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18517
      return
18518
    iprot.readStructBegin()
18519
    while True:
18520
      (fname, ftype, fid) = iprot.readFieldBegin()
18521
      if ftype == TType.STOP:
18522
        break
18523
      if fid == 0:
18524
        if ftype == TType.LIST:
18525
          self.success = []
13493 amit.gupta 18526
          (_etype325, _size322) = iprot.readListBegin()
18527
          for _i326 in xrange(_size322):
18528
            _elem327 = iprot.readString();
18529
            self.success.append(_elem327)
5944 mandeep.dh 18530
          iprot.readListEnd()
18531
        else:
18532
          iprot.skip(ftype)
18533
      else:
18534
        iprot.skip(ftype)
18535
      iprot.readFieldEnd()
18536
    iprot.readStructEnd()
18537
 
18538
  def write(self, oprot):
18539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18541
      return
18542
    oprot.writeStructBegin('getAllBrandsByCategory_result')
18543
    if self.success is not None:
18544
      oprot.writeFieldBegin('success', TType.LIST, 0)
18545
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 18546
      for iter328 in self.success:
18547
        oprot.writeString(iter328)
5944 mandeep.dh 18548
      oprot.writeListEnd()
18549
      oprot.writeFieldEnd()
18550
    oprot.writeFieldStop()
18551
    oprot.writeStructEnd()
18552
 
18553
  def validate(self):
18554
    return
18555
 
18556
 
18557
  def __repr__(self):
18558
    L = ['%s=%r' % (key, value)
18559
      for key, value in self.__dict__.iteritems()]
18560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18561
 
18562
  def __eq__(self, other):
18563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18564
 
18565
  def __ne__(self, other):
18566
    return not (self == other)
18567
 
18568
class getAllBrands_args:
18569
 
18570
  thrift_spec = (
18571
  )
18572
 
18573
  def read(self, iprot):
18574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18576
      return
18577
    iprot.readStructBegin()
18578
    while True:
18579
      (fname, ftype, fid) = iprot.readFieldBegin()
18580
      if ftype == TType.STOP:
18581
        break
18582
      else:
18583
        iprot.skip(ftype)
18584
      iprot.readFieldEnd()
18585
    iprot.readStructEnd()
18586
 
18587
  def write(self, oprot):
18588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18590
      return
18591
    oprot.writeStructBegin('getAllBrands_args')
18592
    oprot.writeFieldStop()
18593
    oprot.writeStructEnd()
18594
 
18595
  def validate(self):
18596
    return
18597
 
18598
 
18599
  def __repr__(self):
18600
    L = ['%s=%r' % (key, value)
18601
      for key, value in self.__dict__.iteritems()]
18602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18603
 
18604
  def __eq__(self, other):
18605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18606
 
18607
  def __ne__(self, other):
18608
    return not (self == other)
18609
 
18610
class getAllBrands_result:
18611
  """
18612
  Attributes:
18613
   - success
18614
  """
18615
 
18616
  thrift_spec = (
18617
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18618
  )
18619
 
18620
  def __init__(self, success=None,):
18621
    self.success = success
18622
 
18623
  def read(self, iprot):
18624
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18625
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18626
      return
18627
    iprot.readStructBegin()
18628
    while True:
18629
      (fname, ftype, fid) = iprot.readFieldBegin()
18630
      if ftype == TType.STOP:
18631
        break
18632
      if fid == 0:
18633
        if ftype == TType.LIST:
18634
          self.success = []
13493 amit.gupta 18635
          (_etype332, _size329) = iprot.readListBegin()
18636
          for _i333 in xrange(_size329):
18637
            _elem334 = iprot.readString();
18638
            self.success.append(_elem334)
5944 mandeep.dh 18639
          iprot.readListEnd()
18640
        else:
18641
          iprot.skip(ftype)
18642
      else:
18643
        iprot.skip(ftype)
18644
      iprot.readFieldEnd()
18645
    iprot.readStructEnd()
18646
 
18647
  def write(self, oprot):
18648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18650
      return
18651
    oprot.writeStructBegin('getAllBrands_result')
18652
    if self.success is not None:
18653
      oprot.writeFieldBegin('success', TType.LIST, 0)
18654
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 18655
      for iter335 in self.success:
18656
        oprot.writeString(iter335)
5944 mandeep.dh 18657
      oprot.writeListEnd()
18658
      oprot.writeFieldEnd()
18659
    oprot.writeFieldStop()
18660
    oprot.writeStructEnd()
18661
 
18662
  def validate(self):
18663
    return
18664
 
18665
 
18666
  def __repr__(self):
18667
    L = ['%s=%r' % (key, value)
18668
      for key, value in self.__dict__.iteritems()]
18669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18670
 
18671
  def __eq__(self, other):
18672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18673
 
18674
  def __ne__(self, other):
18675
    return not (self == other)
18676
 
18677
class getAllSources_args:
18678
 
18679
  thrift_spec = (
18680
  )
18681
 
18682
  def read(self, iprot):
18683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18685
      return
18686
    iprot.readStructBegin()
18687
    while True:
18688
      (fname, ftype, fid) = iprot.readFieldBegin()
18689
      if ftype == TType.STOP:
18690
        break
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('getAllSources_args')
18701
    oprot.writeFieldStop()
18702
    oprot.writeStructEnd()
18703
 
18704
  def validate(self):
18705
    return
18706
 
18707
 
18708
  def __repr__(self):
18709
    L = ['%s=%r' % (key, value)
18710
      for key, value in self.__dict__.iteritems()]
18711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18712
 
18713
  def __eq__(self, other):
18714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18715
 
18716
  def __ne__(self, other):
18717
    return not (self == other)
18718
 
18719
class getAllSources_result:
18720
  """
18721
  Attributes:
18722
   - success
18723
  """
18724
 
18725
  thrift_spec = (
18726
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
18727
  )
18728
 
18729
  def __init__(self, success=None,):
18730
    self.success = success
18731
 
18732
  def read(self, iprot):
18733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18735
      return
18736
    iprot.readStructBegin()
18737
    while True:
18738
      (fname, ftype, fid) = iprot.readFieldBegin()
18739
      if ftype == TType.STOP:
18740
        break
18741
      if fid == 0:
18742
        if ftype == TType.LIST:
18743
          self.success = []
13493 amit.gupta 18744
          (_etype339, _size336) = iprot.readListBegin()
18745
          for _i340 in xrange(_size336):
18746
            _elem341 = Source()
18747
            _elem341.read(iprot)
18748
            self.success.append(_elem341)
5944 mandeep.dh 18749
          iprot.readListEnd()
18750
        else:
18751
          iprot.skip(ftype)
18752
      else:
18753
        iprot.skip(ftype)
18754
      iprot.readFieldEnd()
18755
    iprot.readStructEnd()
18756
 
18757
  def write(self, oprot):
18758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18760
      return
18761
    oprot.writeStructBegin('getAllSources_result')
18762
    if self.success is not None:
18763
      oprot.writeFieldBegin('success', TType.LIST, 0)
18764
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 18765
      for iter342 in self.success:
18766
        iter342.write(oprot)
5944 mandeep.dh 18767
      oprot.writeListEnd()
18768
      oprot.writeFieldEnd()
18769
    oprot.writeFieldStop()
18770
    oprot.writeStructEnd()
18771
 
18772
  def validate(self):
18773
    return
18774
 
18775
 
18776
  def __repr__(self):
18777
    L = ['%s=%r' % (key, value)
18778
      for key, value in self.__dict__.iteritems()]
18779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18780
 
18781
  def __eq__(self, other):
18782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18783
 
18784
  def __ne__(self, other):
18785
    return not (self == other)
18786
 
18787
class getItemPricingBySource_args:
18788
  """
18789
  Attributes:
18790
   - itemId
18791
   - sourceId
18792
  """
18793
 
18794
  thrift_spec = (
18795
    None, # 0
18796
    (1, TType.I64, 'itemId', None, None, ), # 1
18797
    (2, TType.I64, 'sourceId', None, None, ), # 2
18798
  )
18799
 
18800
  def __init__(self, itemId=None, sourceId=None,):
18801
    self.itemId = itemId
18802
    self.sourceId = sourceId
18803
 
18804
  def read(self, iprot):
18805
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18806
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18807
      return
18808
    iprot.readStructBegin()
18809
    while True:
18810
      (fname, ftype, fid) = iprot.readFieldBegin()
18811
      if ftype == TType.STOP:
18812
        break
18813
      if fid == 1:
18814
        if ftype == TType.I64:
18815
          self.itemId = iprot.readI64();
18816
        else:
18817
          iprot.skip(ftype)
18818
      elif fid == 2:
18819
        if ftype == TType.I64:
18820
          self.sourceId = iprot.readI64();
18821
        else:
18822
          iprot.skip(ftype)
18823
      else:
18824
        iprot.skip(ftype)
18825
      iprot.readFieldEnd()
18826
    iprot.readStructEnd()
18827
 
18828
  def write(self, oprot):
18829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18831
      return
18832
    oprot.writeStructBegin('getItemPricingBySource_args')
18833
    if self.itemId is not None:
18834
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18835
      oprot.writeI64(self.itemId)
18836
      oprot.writeFieldEnd()
18837
    if self.sourceId is not None:
18838
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18839
      oprot.writeI64(self.sourceId)
18840
      oprot.writeFieldEnd()
18841
    oprot.writeFieldStop()
18842
    oprot.writeStructEnd()
18843
 
18844
  def validate(self):
18845
    return
18846
 
18847
 
18848
  def __repr__(self):
18849
    L = ['%s=%r' % (key, value)
18850
      for key, value in self.__dict__.iteritems()]
18851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18852
 
18853
  def __eq__(self, other):
18854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18855
 
18856
  def __ne__(self, other):
18857
    return not (self == other)
18858
 
18859
class getItemPricingBySource_result:
18860
  """
18861
  Attributes:
18862
   - success
18863
   - cex
18864
  """
18865
 
18866
  thrift_spec = (
18867
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
18868
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18869
  )
18870
 
18871
  def __init__(self, success=None, cex=None,):
18872
    self.success = success
18873
    self.cex = cex
18874
 
18875
  def read(self, iprot):
18876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18878
      return
18879
    iprot.readStructBegin()
18880
    while True:
18881
      (fname, ftype, fid) = iprot.readFieldBegin()
18882
      if ftype == TType.STOP:
18883
        break
18884
      if fid == 0:
18885
        if ftype == TType.STRUCT:
18886
          self.success = SourceItemPricing()
18887
          self.success.read(iprot)
18888
        else:
18889
          iprot.skip(ftype)
18890
      elif fid == 1:
18891
        if ftype == TType.STRUCT:
18892
          self.cex = CatalogServiceException()
18893
          self.cex.read(iprot)
18894
        else:
18895
          iprot.skip(ftype)
18896
      else:
18897
        iprot.skip(ftype)
18898
      iprot.readFieldEnd()
18899
    iprot.readStructEnd()
18900
 
18901
  def write(self, oprot):
18902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18904
      return
18905
    oprot.writeStructBegin('getItemPricingBySource_result')
18906
    if self.success is not None:
18907
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18908
      self.success.write(oprot)
18909
      oprot.writeFieldEnd()
18910
    if self.cex is not None:
18911
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18912
      self.cex.write(oprot)
18913
      oprot.writeFieldEnd()
18914
    oprot.writeFieldStop()
18915
    oprot.writeStructEnd()
18916
 
18917
  def validate(self):
18918
    return
18919
 
18920
 
18921
  def __repr__(self):
18922
    L = ['%s=%r' % (key, value)
18923
      for key, value in self.__dict__.iteritems()]
18924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18925
 
18926
  def __eq__(self, other):
18927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18928
 
18929
  def __ne__(self, other):
18930
    return not (self == other)
18931
 
18932
class addSourceItemPricing_args:
18933
  """
18934
  Attributes:
18935
   - sourceItemPricing
18936
  """
18937
 
18938
  thrift_spec = (
18939
    None, # 0
18940
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
18941
  )
18942
 
18943
  def __init__(self, sourceItemPricing=None,):
18944
    self.sourceItemPricing = sourceItemPricing
18945
 
18946
  def read(self, iprot):
18947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18949
      return
18950
    iprot.readStructBegin()
18951
    while True:
18952
      (fname, ftype, fid) = iprot.readFieldBegin()
18953
      if ftype == TType.STOP:
18954
        break
18955
      if fid == 1:
18956
        if ftype == TType.STRUCT:
18957
          self.sourceItemPricing = SourceItemPricing()
18958
          self.sourceItemPricing.read(iprot)
18959
        else:
18960
          iprot.skip(ftype)
18961
      else:
18962
        iprot.skip(ftype)
18963
      iprot.readFieldEnd()
18964
    iprot.readStructEnd()
18965
 
18966
  def write(self, oprot):
18967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18969
      return
18970
    oprot.writeStructBegin('addSourceItemPricing_args')
18971
    if self.sourceItemPricing is not None:
18972
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
18973
      self.sourceItemPricing.write(oprot)
18974
      oprot.writeFieldEnd()
18975
    oprot.writeFieldStop()
18976
    oprot.writeStructEnd()
18977
 
18978
  def validate(self):
18979
    return
18980
 
18981
 
18982
  def __repr__(self):
18983
    L = ['%s=%r' % (key, value)
18984
      for key, value in self.__dict__.iteritems()]
18985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18986
 
18987
  def __eq__(self, other):
18988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18989
 
18990
  def __ne__(self, other):
18991
    return not (self == other)
18992
 
18993
class addSourceItemPricing_result:
18994
  """
18995
  Attributes:
18996
   - cex
18997
  """
18998
 
18999
  thrift_spec = (
19000
    None, # 0
19001
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19002
  )
19003
 
19004
  def __init__(self, cex=None,):
19005
    self.cex = cex
19006
 
19007
  def read(self, iprot):
19008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19010
      return
19011
    iprot.readStructBegin()
19012
    while True:
19013
      (fname, ftype, fid) = iprot.readFieldBegin()
19014
      if ftype == TType.STOP:
19015
        break
19016
      if fid == 1:
19017
        if ftype == TType.STRUCT:
19018
          self.cex = CatalogServiceException()
19019
          self.cex.read(iprot)
19020
        else:
19021
          iprot.skip(ftype)
19022
      else:
19023
        iprot.skip(ftype)
19024
      iprot.readFieldEnd()
19025
    iprot.readStructEnd()
19026
 
19027
  def write(self, oprot):
19028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19030
      return
19031
    oprot.writeStructBegin('addSourceItemPricing_result')
19032
    if self.cex is not None:
19033
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19034
      self.cex.write(oprot)
19035
      oprot.writeFieldEnd()
19036
    oprot.writeFieldStop()
19037
    oprot.writeStructEnd()
19038
 
19039
  def validate(self):
19040
    return
19041
 
19042
 
19043
  def __repr__(self):
19044
    L = ['%s=%r' % (key, value)
19045
      for key, value in self.__dict__.iteritems()]
19046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19047
 
19048
  def __eq__(self, other):
19049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19050
 
19051
  def __ne__(self, other):
19052
    return not (self == other)
19053
 
19054
class getAllSourcePricing_args:
19055
  """
19056
  Attributes:
19057
   - itemId
19058
  """
19059
 
19060
  thrift_spec = (
19061
    None, # 0
19062
    (1, TType.I64, 'itemId', None, None, ), # 1
19063
  )
19064
 
19065
  def __init__(self, itemId=None,):
19066
    self.itemId = itemId
19067
 
19068
  def read(self, iprot):
19069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19071
      return
19072
    iprot.readStructBegin()
19073
    while True:
19074
      (fname, ftype, fid) = iprot.readFieldBegin()
19075
      if ftype == TType.STOP:
19076
        break
19077
      if fid == 1:
19078
        if ftype == TType.I64:
19079
          self.itemId = iprot.readI64();
19080
        else:
19081
          iprot.skip(ftype)
19082
      else:
19083
        iprot.skip(ftype)
19084
      iprot.readFieldEnd()
19085
    iprot.readStructEnd()
19086
 
19087
  def write(self, oprot):
19088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19090
      return
19091
    oprot.writeStructBegin('getAllSourcePricing_args')
19092
    if self.itemId is not None:
19093
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19094
      oprot.writeI64(self.itemId)
19095
      oprot.writeFieldEnd()
19096
    oprot.writeFieldStop()
19097
    oprot.writeStructEnd()
19098
 
19099
  def validate(self):
19100
    return
19101
 
19102
 
19103
  def __repr__(self):
19104
    L = ['%s=%r' % (key, value)
19105
      for key, value in self.__dict__.iteritems()]
19106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19107
 
19108
  def __eq__(self, other):
19109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19110
 
19111
  def __ne__(self, other):
19112
    return not (self == other)
19113
 
19114
class getAllSourcePricing_result:
19115
  """
19116
  Attributes:
19117
   - success
19118
   - cex
19119
  """
19120
 
19121
  thrift_spec = (
19122
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
19123
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19124
  )
19125
 
19126
  def __init__(self, success=None, cex=None,):
19127
    self.success = success
19128
    self.cex = cex
19129
 
19130
  def read(self, iprot):
19131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19133
      return
19134
    iprot.readStructBegin()
19135
    while True:
19136
      (fname, ftype, fid) = iprot.readFieldBegin()
19137
      if ftype == TType.STOP:
19138
        break
19139
      if fid == 0:
19140
        if ftype == TType.LIST:
19141
          self.success = []
13493 amit.gupta 19142
          (_etype346, _size343) = iprot.readListBegin()
19143
          for _i347 in xrange(_size343):
19144
            _elem348 = SourceItemPricing()
19145
            _elem348.read(iprot)
19146
            self.success.append(_elem348)
5944 mandeep.dh 19147
          iprot.readListEnd()
19148
        else:
19149
          iprot.skip(ftype)
19150
      elif fid == 1:
19151
        if ftype == TType.STRUCT:
19152
          self.cex = CatalogServiceException()
19153
          self.cex.read(iprot)
19154
        else:
19155
          iprot.skip(ftype)
19156
      else:
19157
        iprot.skip(ftype)
19158
      iprot.readFieldEnd()
19159
    iprot.readStructEnd()
19160
 
19161
  def write(self, oprot):
19162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19164
      return
19165
    oprot.writeStructBegin('getAllSourcePricing_result')
19166
    if self.success is not None:
19167
      oprot.writeFieldBegin('success', TType.LIST, 0)
19168
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 19169
      for iter349 in self.success:
19170
        iter349.write(oprot)
5944 mandeep.dh 19171
      oprot.writeListEnd()
19172
      oprot.writeFieldEnd()
19173
    if self.cex is not None:
19174
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19175
      self.cex.write(oprot)
19176
      oprot.writeFieldEnd()
19177
    oprot.writeFieldStop()
19178
    oprot.writeStructEnd()
19179
 
19180
  def validate(self):
19181
    return
19182
 
19183
 
19184
  def __repr__(self):
19185
    L = ['%s=%r' % (key, value)
19186
      for key, value in self.__dict__.iteritems()]
19187
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19188
 
19189
  def __eq__(self, other):
19190
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19191
 
19192
  def __ne__(self, other):
19193
    return not (self == other)
19194
 
19195
class getItemForSource_args:
19196
  """
19197
  Attributes:
19198
   - item_id
19199
   - sourceId
19200
  """
19201
 
19202
  thrift_spec = (
19203
    None, # 0
19204
    (1, TType.I64, 'item_id', None, None, ), # 1
19205
    (2, TType.I64, 'sourceId', None, None, ), # 2
19206
  )
19207
 
19208
  def __init__(self, item_id=None, sourceId=None,):
19209
    self.item_id = item_id
19210
    self.sourceId = sourceId
19211
 
19212
  def read(self, iprot):
19213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19215
      return
19216
    iprot.readStructBegin()
19217
    while True:
19218
      (fname, ftype, fid) = iprot.readFieldBegin()
19219
      if ftype == TType.STOP:
19220
        break
19221
      if fid == 1:
19222
        if ftype == TType.I64:
19223
          self.item_id = iprot.readI64();
19224
        else:
19225
          iprot.skip(ftype)
19226
      elif fid == 2:
19227
        if ftype == TType.I64:
19228
          self.sourceId = iprot.readI64();
19229
        else:
19230
          iprot.skip(ftype)
19231
      else:
19232
        iprot.skip(ftype)
19233
      iprot.readFieldEnd()
19234
    iprot.readStructEnd()
19235
 
19236
  def write(self, oprot):
19237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19239
      return
19240
    oprot.writeStructBegin('getItemForSource_args')
19241
    if self.item_id is not None:
19242
      oprot.writeFieldBegin('item_id', TType.I64, 1)
19243
      oprot.writeI64(self.item_id)
19244
      oprot.writeFieldEnd()
19245
    if self.sourceId is not None:
19246
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
19247
      oprot.writeI64(self.sourceId)
19248
      oprot.writeFieldEnd()
19249
    oprot.writeFieldStop()
19250
    oprot.writeStructEnd()
19251
 
19252
  def validate(self):
19253
    return
19254
 
19255
 
19256
  def __repr__(self):
19257
    L = ['%s=%r' % (key, value)
19258
      for key, value in self.__dict__.iteritems()]
19259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19260
 
19261
  def __eq__(self, other):
19262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19263
 
19264
  def __ne__(self, other):
19265
    return not (self == other)
19266
 
19267
class getItemForSource_result:
19268
  """
19269
  Attributes:
19270
   - success
19271
   - cex
19272
  """
19273
 
19274
  thrift_spec = (
19275
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
19276
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19277
  )
19278
 
19279
  def __init__(self, success=None, cex=None,):
19280
    self.success = success
19281
    self.cex = cex
19282
 
19283
  def read(self, iprot):
19284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19286
      return
19287
    iprot.readStructBegin()
19288
    while True:
19289
      (fname, ftype, fid) = iprot.readFieldBegin()
19290
      if ftype == TType.STOP:
19291
        break
19292
      if fid == 0:
19293
        if ftype == TType.STRUCT:
19294
          self.success = Item()
19295
          self.success.read(iprot)
19296
        else:
19297
          iprot.skip(ftype)
19298
      elif fid == 1:
19299
        if ftype == TType.STRUCT:
19300
          self.cex = CatalogServiceException()
19301
          self.cex.read(iprot)
19302
        else:
19303
          iprot.skip(ftype)
19304
      else:
19305
        iprot.skip(ftype)
19306
      iprot.readFieldEnd()
19307
    iprot.readStructEnd()
19308
 
19309
  def write(self, oprot):
19310
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19311
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19312
      return
19313
    oprot.writeStructBegin('getItemForSource_result')
19314
    if self.success is not None:
19315
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19316
      self.success.write(oprot)
19317
      oprot.writeFieldEnd()
19318
    if self.cex is not None:
19319
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19320
      self.cex.write(oprot)
19321
      oprot.writeFieldEnd()
19322
    oprot.writeFieldStop()
19323
    oprot.writeStructEnd()
19324
 
19325
  def validate(self):
19326
    return
19327
 
19328
 
19329
  def __repr__(self):
19330
    L = ['%s=%r' % (key, value)
19331
      for key, value in self.__dict__.iteritems()]
19332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19333
 
19334
  def __eq__(self, other):
19335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19336
 
19337
  def __ne__(self, other):
19338
    return not (self == other)
19339
 
19340
class searchItemsInRange_args:
19341
  """
19342
  Attributes:
19343
   - searchTerms
19344
   - offset
19345
   - limit
19346
  """
19347
 
19348
  thrift_spec = (
19349
    None, # 0
19350
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19351
    (2, TType.I64, 'offset', None, None, ), # 2
19352
    (3, TType.I64, 'limit', None, None, ), # 3
19353
  )
19354
 
19355
  def __init__(self, searchTerms=None, offset=None, limit=None,):
19356
    self.searchTerms = searchTerms
19357
    self.offset = offset
19358
    self.limit = limit
19359
 
19360
  def read(self, iprot):
19361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19363
      return
19364
    iprot.readStructBegin()
19365
    while True:
19366
      (fname, ftype, fid) = iprot.readFieldBegin()
19367
      if ftype == TType.STOP:
19368
        break
19369
      if fid == 1:
19370
        if ftype == TType.LIST:
19371
          self.searchTerms = []
13493 amit.gupta 19372
          (_etype353, _size350) = iprot.readListBegin()
19373
          for _i354 in xrange(_size350):
19374
            _elem355 = iprot.readString();
19375
            self.searchTerms.append(_elem355)
5944 mandeep.dh 19376
          iprot.readListEnd()
19377
        else:
19378
          iprot.skip(ftype)
19379
      elif fid == 2:
19380
        if ftype == TType.I64:
19381
          self.offset = iprot.readI64();
19382
        else:
19383
          iprot.skip(ftype)
19384
      elif fid == 3:
19385
        if ftype == TType.I64:
19386
          self.limit = iprot.readI64();
19387
        else:
19388
          iprot.skip(ftype)
19389
      else:
19390
        iprot.skip(ftype)
19391
      iprot.readFieldEnd()
19392
    iprot.readStructEnd()
19393
 
19394
  def write(self, oprot):
19395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19397
      return
19398
    oprot.writeStructBegin('searchItemsInRange_args')
19399
    if self.searchTerms is not None:
19400
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19401
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
13493 amit.gupta 19402
      for iter356 in self.searchTerms:
19403
        oprot.writeString(iter356)
5944 mandeep.dh 19404
      oprot.writeListEnd()
19405
      oprot.writeFieldEnd()
19406
    if self.offset is not None:
19407
      oprot.writeFieldBegin('offset', TType.I64, 2)
19408
      oprot.writeI64(self.offset)
19409
      oprot.writeFieldEnd()
19410
    if self.limit is not None:
19411
      oprot.writeFieldBegin('limit', TType.I64, 3)
19412
      oprot.writeI64(self.limit)
19413
      oprot.writeFieldEnd()
19414
    oprot.writeFieldStop()
19415
    oprot.writeStructEnd()
19416
 
19417
  def validate(self):
19418
    return
19419
 
19420
 
19421
  def __repr__(self):
19422
    L = ['%s=%r' % (key, value)
19423
      for key, value in self.__dict__.iteritems()]
19424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19425
 
19426
  def __eq__(self, other):
19427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19428
 
19429
  def __ne__(self, other):
19430
    return not (self == other)
19431
 
19432
class searchItemsInRange_result:
19433
  """
19434
  Attributes:
19435
   - success
19436
  """
19437
 
19438
  thrift_spec = (
19439
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
19440
  )
19441
 
19442
  def __init__(self, success=None,):
19443
    self.success = success
19444
 
19445
  def read(self, iprot):
19446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19448
      return
19449
    iprot.readStructBegin()
19450
    while True:
19451
      (fname, ftype, fid) = iprot.readFieldBegin()
19452
      if ftype == TType.STOP:
19453
        break
19454
      if fid == 0:
19455
        if ftype == TType.LIST:
19456
          self.success = []
13493 amit.gupta 19457
          (_etype360, _size357) = iprot.readListBegin()
19458
          for _i361 in xrange(_size357):
19459
            _elem362 = Item()
19460
            _elem362.read(iprot)
19461
            self.success.append(_elem362)
5944 mandeep.dh 19462
          iprot.readListEnd()
19463
        else:
19464
          iprot.skip(ftype)
19465
      else:
19466
        iprot.skip(ftype)
19467
      iprot.readFieldEnd()
19468
    iprot.readStructEnd()
19469
 
19470
  def write(self, oprot):
19471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19473
      return
19474
    oprot.writeStructBegin('searchItemsInRange_result')
19475
    if self.success is not None:
19476
      oprot.writeFieldBegin('success', TType.LIST, 0)
19477
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 19478
      for iter363 in self.success:
19479
        iter363.write(oprot)
5944 mandeep.dh 19480
      oprot.writeListEnd()
19481
      oprot.writeFieldEnd()
19482
    oprot.writeFieldStop()
19483
    oprot.writeStructEnd()
19484
 
19485
  def validate(self):
19486
    return
19487
 
19488
 
19489
  def __repr__(self):
19490
    L = ['%s=%r' % (key, value)
19491
      for key, value in self.__dict__.iteritems()]
19492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19493
 
19494
  def __eq__(self, other):
19495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19496
 
19497
  def __ne__(self, other):
19498
    return not (self == other)
19499
 
19500
class getSearchResultCount_args:
19501
  """
19502
  Attributes:
19503
   - searchTerms
19504
  """
19505
 
19506
  thrift_spec = (
19507
    None, # 0
19508
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19509
  )
19510
 
19511
  def __init__(self, searchTerms=None,):
19512
    self.searchTerms = searchTerms
19513
 
19514
  def read(self, iprot):
19515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19517
      return
19518
    iprot.readStructBegin()
19519
    while True:
19520
      (fname, ftype, fid) = iprot.readFieldBegin()
19521
      if ftype == TType.STOP:
19522
        break
19523
      if fid == 1:
19524
        if ftype == TType.LIST:
19525
          self.searchTerms = []
13493 amit.gupta 19526
          (_etype367, _size364) = iprot.readListBegin()
19527
          for _i368 in xrange(_size364):
19528
            _elem369 = iprot.readString();
19529
            self.searchTerms.append(_elem369)
5944 mandeep.dh 19530
          iprot.readListEnd()
19531
        else:
19532
          iprot.skip(ftype)
19533
      else:
19534
        iprot.skip(ftype)
19535
      iprot.readFieldEnd()
19536
    iprot.readStructEnd()
19537
 
19538
  def write(self, oprot):
19539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19541
      return
19542
    oprot.writeStructBegin('getSearchResultCount_args')
19543
    if self.searchTerms is not None:
19544
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19545
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
13493 amit.gupta 19546
      for iter370 in self.searchTerms:
19547
        oprot.writeString(iter370)
5944 mandeep.dh 19548
      oprot.writeListEnd()
19549
      oprot.writeFieldEnd()
19550
    oprot.writeFieldStop()
19551
    oprot.writeStructEnd()
19552
 
19553
  def validate(self):
19554
    return
19555
 
19556
 
19557
  def __repr__(self):
19558
    L = ['%s=%r' % (key, value)
19559
      for key, value in self.__dict__.iteritems()]
19560
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19561
 
19562
  def __eq__(self, other):
19563
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19564
 
19565
  def __ne__(self, other):
19566
    return not (self == other)
19567
 
19568
class getSearchResultCount_result:
19569
  """
19570
  Attributes:
19571
   - success
19572
  """
19573
 
19574
  thrift_spec = (
19575
    (0, TType.I32, 'success', None, None, ), # 0
19576
  )
19577
 
19578
  def __init__(self, success=None,):
19579
    self.success = success
19580
 
19581
  def read(self, iprot):
19582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19584
      return
19585
    iprot.readStructBegin()
19586
    while True:
19587
      (fname, ftype, fid) = iprot.readFieldBegin()
19588
      if ftype == TType.STOP:
19589
        break
19590
      if fid == 0:
19591
        if ftype == TType.I32:
19592
          self.success = iprot.readI32();
19593
        else:
19594
          iprot.skip(ftype)
19595
      else:
19596
        iprot.skip(ftype)
19597
      iprot.readFieldEnd()
19598
    iprot.readStructEnd()
19599
 
19600
  def write(self, oprot):
19601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19603
      return
19604
    oprot.writeStructBegin('getSearchResultCount_result')
19605
    if self.success is not None:
19606
      oprot.writeFieldBegin('success', TType.I32, 0)
19607
      oprot.writeI32(self.success)
19608
      oprot.writeFieldEnd()
19609
    oprot.writeFieldStop()
19610
    oprot.writeStructEnd()
19611
 
19612
  def validate(self):
19613
    return
19614
 
19615
 
19616
  def __repr__(self):
19617
    L = ['%s=%r' % (key, value)
19618
      for key, value in self.__dict__.iteritems()]
19619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19620
 
19621
  def __eq__(self, other):
19622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19623
 
19624
  def __ne__(self, other):
19625
    return not (self == other)
19626
 
19627
class getProductNotifications_args:
19628
  """
19629
  Attributes:
19630
   - startDateTime
19631
  """
19632
 
19633
  thrift_spec = (
19634
    None, # 0
19635
    (1, TType.I64, 'startDateTime', None, None, ), # 1
19636
  )
19637
 
19638
  def __init__(self, startDateTime=None,):
19639
    self.startDateTime = startDateTime
19640
 
19641
  def read(self, iprot):
19642
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19643
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19644
      return
19645
    iprot.readStructBegin()
19646
    while True:
19647
      (fname, ftype, fid) = iprot.readFieldBegin()
19648
      if ftype == TType.STOP:
19649
        break
19650
      if fid == 1:
19651
        if ftype == TType.I64:
19652
          self.startDateTime = iprot.readI64();
19653
        else:
19654
          iprot.skip(ftype)
19655
      else:
19656
        iprot.skip(ftype)
19657
      iprot.readFieldEnd()
19658
    iprot.readStructEnd()
19659
 
19660
  def write(self, oprot):
19661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19663
      return
19664
    oprot.writeStructBegin('getProductNotifications_args')
19665
    if self.startDateTime is not None:
19666
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19667
      oprot.writeI64(self.startDateTime)
19668
      oprot.writeFieldEnd()
19669
    oprot.writeFieldStop()
19670
    oprot.writeStructEnd()
19671
 
19672
  def validate(self):
19673
    return
19674
 
19675
 
19676
  def __repr__(self):
19677
    L = ['%s=%r' % (key, value)
19678
      for key, value in self.__dict__.iteritems()]
19679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19680
 
19681
  def __eq__(self, other):
19682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19683
 
19684
  def __ne__(self, other):
19685
    return not (self == other)
19686
 
19687
class getProductNotifications_result:
19688
  """
19689
  Attributes:
19690
   - success
19691
  """
19692
 
19693
  thrift_spec = (
19694
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
19695
  )
19696
 
19697
  def __init__(self, success=None,):
19698
    self.success = success
19699
 
19700
  def read(self, iprot):
19701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19703
      return
19704
    iprot.readStructBegin()
19705
    while True:
19706
      (fname, ftype, fid) = iprot.readFieldBegin()
19707
      if ftype == TType.STOP:
19708
        break
19709
      if fid == 0:
19710
        if ftype == TType.LIST:
19711
          self.success = []
13493 amit.gupta 19712
          (_etype374, _size371) = iprot.readListBegin()
19713
          for _i375 in xrange(_size371):
19714
            _elem376 = ProductNotificationRequest()
19715
            _elem376.read(iprot)
19716
            self.success.append(_elem376)
5944 mandeep.dh 19717
          iprot.readListEnd()
19718
        else:
19719
          iprot.skip(ftype)
19720
      else:
19721
        iprot.skip(ftype)
19722
      iprot.readFieldEnd()
19723
    iprot.readStructEnd()
19724
 
19725
  def write(self, oprot):
19726
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19727
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19728
      return
19729
    oprot.writeStructBegin('getProductNotifications_result')
19730
    if self.success is not None:
19731
      oprot.writeFieldBegin('success', TType.LIST, 0)
19732
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 19733
      for iter377 in self.success:
19734
        iter377.write(oprot)
5944 mandeep.dh 19735
      oprot.writeListEnd()
19736
      oprot.writeFieldEnd()
19737
    oprot.writeFieldStop()
19738
    oprot.writeStructEnd()
19739
 
19740
  def validate(self):
19741
    return
19742
 
19743
 
19744
  def __repr__(self):
19745
    L = ['%s=%r' % (key, value)
19746
      for key, value in self.__dict__.iteritems()]
19747
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19748
 
19749
  def __eq__(self, other):
19750
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19751
 
19752
  def __ne__(self, other):
19753
    return not (self == other)
19754
 
19755
class getProductNotificationRequestCount_args:
19756
  """
19757
  Attributes:
19758
   - startDateTime
7897 amar.kumar 19759
   - categoryId
5944 mandeep.dh 19760
  """
19761
 
19762
  thrift_spec = (
19763
    None, # 0
19764
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 19765
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 19766
  )
19767
 
7897 amar.kumar 19768
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 19769
    self.startDateTime = startDateTime
7897 amar.kumar 19770
    self.categoryId = categoryId
5944 mandeep.dh 19771
 
19772
  def read(self, iprot):
19773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19775
      return
19776
    iprot.readStructBegin()
19777
    while True:
19778
      (fname, ftype, fid) = iprot.readFieldBegin()
19779
      if ftype == TType.STOP:
19780
        break
19781
      if fid == 1:
19782
        if ftype == TType.I64:
19783
          self.startDateTime = iprot.readI64();
19784
        else:
19785
          iprot.skip(ftype)
7897 amar.kumar 19786
      elif fid == 2:
19787
        if ftype == TType.I64:
19788
          self.categoryId = iprot.readI64();
19789
        else:
19790
          iprot.skip(ftype)
5944 mandeep.dh 19791
      else:
19792
        iprot.skip(ftype)
19793
      iprot.readFieldEnd()
19794
    iprot.readStructEnd()
19795
 
19796
  def write(self, oprot):
19797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19799
      return
19800
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
19801
    if self.startDateTime is not None:
19802
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19803
      oprot.writeI64(self.startDateTime)
19804
      oprot.writeFieldEnd()
7897 amar.kumar 19805
    if self.categoryId is not None:
19806
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
19807
      oprot.writeI64(self.categoryId)
19808
      oprot.writeFieldEnd()
5944 mandeep.dh 19809
    oprot.writeFieldStop()
19810
    oprot.writeStructEnd()
19811
 
19812
  def validate(self):
19813
    return
19814
 
19815
 
19816
  def __repr__(self):
19817
    L = ['%s=%r' % (key, value)
19818
      for key, value in self.__dict__.iteritems()]
19819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19820
 
19821
  def __eq__(self, other):
19822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19823
 
19824
  def __ne__(self, other):
19825
    return not (self == other)
19826
 
19827
class getProductNotificationRequestCount_result:
19828
  """
19829
  Attributes:
19830
   - success
19831
  """
19832
 
19833
  thrift_spec = (
19834
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
19835
  )
19836
 
19837
  def __init__(self, success=None,):
19838
    self.success = success
19839
 
19840
  def read(self, iprot):
19841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19843
      return
19844
    iprot.readStructBegin()
19845
    while True:
19846
      (fname, ftype, fid) = iprot.readFieldBegin()
19847
      if ftype == TType.STOP:
19848
        break
19849
      if fid == 0:
19850
        if ftype == TType.LIST:
19851
          self.success = []
13493 amit.gupta 19852
          (_etype381, _size378) = iprot.readListBegin()
19853
          for _i382 in xrange(_size378):
19854
            _elem383 = ProductNotificationRequestCount()
19855
            _elem383.read(iprot)
19856
            self.success.append(_elem383)
5944 mandeep.dh 19857
          iprot.readListEnd()
19858
        else:
19859
          iprot.skip(ftype)
19860
      else:
19861
        iprot.skip(ftype)
19862
      iprot.readFieldEnd()
19863
    iprot.readStructEnd()
19864
 
19865
  def write(self, oprot):
19866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19868
      return
19869
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
19870
    if self.success is not None:
19871
      oprot.writeFieldBegin('success', TType.LIST, 0)
19872
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 19873
      for iter384 in self.success:
19874
        iter384.write(oprot)
5944 mandeep.dh 19875
      oprot.writeListEnd()
19876
      oprot.writeFieldEnd()
19877
    oprot.writeFieldStop()
19878
    oprot.writeStructEnd()
19879
 
19880
  def validate(self):
19881
    return
19882
 
19883
 
19884
  def __repr__(self):
19885
    L = ['%s=%r' % (key, value)
19886
      for key, value in self.__dict__.iteritems()]
19887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19888
 
19889
  def __eq__(self, other):
19890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19891
 
19892
  def __ne__(self, other):
19893
    return not (self == other)
19894
 
19895
class addAuthorizationLog_args:
19896
  """
19897
  Attributes:
19898
   - itemId
19899
   - username
19900
   - reason
19901
  """
19902
 
19903
  thrift_spec = (
19904
    None, # 0
19905
    (1, TType.I64, 'itemId', None, None, ), # 1
19906
    (2, TType.STRING, 'username', None, None, ), # 2
19907
    (3, TType.STRING, 'reason', None, None, ), # 3
19908
  )
19909
 
19910
  def __init__(self, itemId=None, username=None, reason=None,):
19911
    self.itemId = itemId
19912
    self.username = username
19913
    self.reason = reason
19914
 
19915
  def read(self, iprot):
19916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19918
      return
19919
    iprot.readStructBegin()
19920
    while True:
19921
      (fname, ftype, fid) = iprot.readFieldBegin()
19922
      if ftype == TType.STOP:
19923
        break
19924
      if fid == 1:
19925
        if ftype == TType.I64:
19926
          self.itemId = iprot.readI64();
19927
        else:
19928
          iprot.skip(ftype)
19929
      elif fid == 2:
19930
        if ftype == TType.STRING:
19931
          self.username = iprot.readString();
19932
        else:
19933
          iprot.skip(ftype)
19934
      elif fid == 3:
19935
        if ftype == TType.STRING:
19936
          self.reason = iprot.readString();
19937
        else:
19938
          iprot.skip(ftype)
19939
      else:
19940
        iprot.skip(ftype)
19941
      iprot.readFieldEnd()
19942
    iprot.readStructEnd()
19943
 
19944
  def write(self, oprot):
19945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19947
      return
19948
    oprot.writeStructBegin('addAuthorizationLog_args')
19949
    if self.itemId is not None:
19950
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19951
      oprot.writeI64(self.itemId)
19952
      oprot.writeFieldEnd()
19953
    if self.username is not None:
19954
      oprot.writeFieldBegin('username', TType.STRING, 2)
19955
      oprot.writeString(self.username)
19956
      oprot.writeFieldEnd()
19957
    if self.reason is not None:
19958
      oprot.writeFieldBegin('reason', TType.STRING, 3)
19959
      oprot.writeString(self.reason)
19960
      oprot.writeFieldEnd()
19961
    oprot.writeFieldStop()
19962
    oprot.writeStructEnd()
19963
 
19964
  def validate(self):
19965
    return
19966
 
19967
 
19968
  def __repr__(self):
19969
    L = ['%s=%r' % (key, value)
19970
      for key, value in self.__dict__.iteritems()]
19971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19972
 
19973
  def __eq__(self, other):
19974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19975
 
19976
  def __ne__(self, other):
19977
    return not (self == other)
19978
 
19979
class addAuthorizationLog_result:
19980
  """
19981
  Attributes:
19982
   - success
19983
   - cex
19984
  """
19985
 
19986
  thrift_spec = (
19987
    (0, TType.BOOL, 'success', None, None, ), # 0
19988
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19989
  )
19990
 
19991
  def __init__(self, success=None, cex=None,):
19992
    self.success = success
19993
    self.cex = cex
19994
 
19995
  def read(self, iprot):
19996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19998
      return
19999
    iprot.readStructBegin()
20000
    while True:
20001
      (fname, ftype, fid) = iprot.readFieldBegin()
20002
      if ftype == TType.STOP:
20003
        break
20004
      if fid == 0:
20005
        if ftype == TType.BOOL:
20006
          self.success = iprot.readBool();
20007
        else:
20008
          iprot.skip(ftype)
20009
      elif fid == 1:
20010
        if ftype == TType.STRUCT:
20011
          self.cex = CatalogServiceException()
20012
          self.cex.read(iprot)
20013
        else:
20014
          iprot.skip(ftype)
20015
      else:
20016
        iprot.skip(ftype)
20017
      iprot.readFieldEnd()
20018
    iprot.readStructEnd()
20019
 
20020
  def write(self, oprot):
20021
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20022
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20023
      return
20024
    oprot.writeStructBegin('addAuthorizationLog_result')
20025
    if self.success is not None:
20026
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20027
      oprot.writeBool(self.success)
20028
      oprot.writeFieldEnd()
20029
    if self.cex is not None:
20030
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20031
      self.cex.write(oprot)
20032
      oprot.writeFieldEnd()
20033
    oprot.writeFieldStop()
20034
    oprot.writeStructEnd()
20035
 
20036
  def validate(self):
20037
    return
20038
 
20039
 
20040
  def __repr__(self):
20041
    L = ['%s=%r' % (key, value)
20042
      for key, value in self.__dict__.iteritems()]
20043
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20044
 
20045
  def __eq__(self, other):
20046
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20047
 
20048
  def __ne__(self, other):
20049
    return not (self == other)
20050
 
20051
class addupdateVoucherForItem_args:
20052
  """
20053
  Attributes:
20054
   - catalog_item_id
20055
   - voucherType
20056
   - voucherAmount
20057
  """
20058
 
20059
  thrift_spec = (
20060
    None, # 0
20061
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20062
    (2, TType.I64, 'voucherType', None, None, ), # 2
20063
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
20064
  )
20065
 
20066
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
20067
    self.catalog_item_id = catalog_item_id
20068
    self.voucherType = voucherType
20069
    self.voucherAmount = voucherAmount
20070
 
20071
  def read(self, iprot):
20072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20074
      return
20075
    iprot.readStructBegin()
20076
    while True:
20077
      (fname, ftype, fid) = iprot.readFieldBegin()
20078
      if ftype == TType.STOP:
20079
        break
20080
      if fid == 1:
20081
        if ftype == TType.I64:
20082
          self.catalog_item_id = iprot.readI64();
20083
        else:
20084
          iprot.skip(ftype)
20085
      elif fid == 2:
20086
        if ftype == TType.I64:
20087
          self.voucherType = iprot.readI64();
20088
        else:
20089
          iprot.skip(ftype)
20090
      elif fid == 3:
20091
        if ftype == TType.I64:
20092
          self.voucherAmount = iprot.readI64();
20093
        else:
20094
          iprot.skip(ftype)
20095
      else:
20096
        iprot.skip(ftype)
20097
      iprot.readFieldEnd()
20098
    iprot.readStructEnd()
20099
 
20100
  def write(self, oprot):
20101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20103
      return
20104
    oprot.writeStructBegin('addupdateVoucherForItem_args')
20105
    if self.catalog_item_id is not None:
20106
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20107
      oprot.writeI64(self.catalog_item_id)
20108
      oprot.writeFieldEnd()
20109
    if self.voucherType is not None:
20110
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
20111
      oprot.writeI64(self.voucherType)
20112
      oprot.writeFieldEnd()
20113
    if self.voucherAmount is not None:
20114
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
20115
      oprot.writeI64(self.voucherAmount)
20116
      oprot.writeFieldEnd()
20117
    oprot.writeFieldStop()
20118
    oprot.writeStructEnd()
20119
 
20120
  def validate(self):
20121
    return
20122
 
20123
 
20124
  def __repr__(self):
20125
    L = ['%s=%r' % (key, value)
20126
      for key, value in self.__dict__.iteritems()]
20127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20128
 
20129
  def __eq__(self, other):
20130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20131
 
20132
  def __ne__(self, other):
20133
    return not (self == other)
20134
 
20135
class addupdateVoucherForItem_result:
20136
  """
20137
  Attributes:
20138
   - success
20139
   - cex
20140
  """
20141
 
20142
  thrift_spec = (
20143
    (0, TType.BOOL, 'success', None, None, ), # 0
20144
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
20145
  )
20146
 
20147
  def __init__(self, success=None, cex=None,):
20148
    self.success = success
20149
    self.cex = cex
20150
 
20151
  def read(self, iprot):
20152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20154
      return
20155
    iprot.readStructBegin()
20156
    while True:
20157
      (fname, ftype, fid) = iprot.readFieldBegin()
20158
      if ftype == TType.STOP:
20159
        break
20160
      if fid == 0:
20161
        if ftype == TType.BOOL:
20162
          self.success = iprot.readBool();
20163
        else:
20164
          iprot.skip(ftype)
20165
      elif fid == 1:
20166
        if ftype == TType.STRUCT:
20167
          self.cex = CatalogServiceException()
20168
          self.cex.read(iprot)
20169
        else:
20170
          iprot.skip(ftype)
20171
      else:
20172
        iprot.skip(ftype)
20173
      iprot.readFieldEnd()
20174
    iprot.readStructEnd()
20175
 
20176
  def write(self, oprot):
20177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20179
      return
20180
    oprot.writeStructBegin('addupdateVoucherForItem_result')
20181
    if self.success is not None:
20182
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20183
      oprot.writeBool(self.success)
20184
      oprot.writeFieldEnd()
20185
    if self.cex is not None:
20186
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20187
      self.cex.write(oprot)
20188
      oprot.writeFieldEnd()
20189
    oprot.writeFieldStop()
20190
    oprot.writeStructEnd()
20191
 
20192
  def validate(self):
20193
    return
20194
 
20195
 
20196
  def __repr__(self):
20197
    L = ['%s=%r' % (key, value)
20198
      for key, value in self.__dict__.iteritems()]
20199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20200
 
20201
  def __eq__(self, other):
20202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20203
 
20204
  def __ne__(self, other):
20205
    return not (self == other)
20206
 
20207
class deleteVoucherForItem_args:
20208
  """
20209
  Attributes:
20210
   - catalog_item_id
20211
   - voucherType
20212
  """
20213
 
20214
  thrift_spec = (
20215
    None, # 0
20216
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20217
    (2, TType.I64, 'voucherType', None, None, ), # 2
20218
  )
20219
 
20220
  def __init__(self, catalog_item_id=None, voucherType=None,):
20221
    self.catalog_item_id = catalog_item_id
20222
    self.voucherType = voucherType
20223
 
20224
  def read(self, iprot):
20225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20227
      return
20228
    iprot.readStructBegin()
20229
    while True:
20230
      (fname, ftype, fid) = iprot.readFieldBegin()
20231
      if ftype == TType.STOP:
20232
        break
20233
      if fid == 1:
20234
        if ftype == TType.I64:
20235
          self.catalog_item_id = iprot.readI64();
20236
        else:
20237
          iprot.skip(ftype)
20238
      elif fid == 2:
20239
        if ftype == TType.I64:
20240
          self.voucherType = iprot.readI64();
20241
        else:
20242
          iprot.skip(ftype)
20243
      else:
20244
        iprot.skip(ftype)
20245
      iprot.readFieldEnd()
20246
    iprot.readStructEnd()
20247
 
20248
  def write(self, oprot):
20249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20251
      return
20252
    oprot.writeStructBegin('deleteVoucherForItem_args')
20253
    if self.catalog_item_id is not None:
20254
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20255
      oprot.writeI64(self.catalog_item_id)
20256
      oprot.writeFieldEnd()
20257
    if self.voucherType is not None:
20258
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
20259
      oprot.writeI64(self.voucherType)
20260
      oprot.writeFieldEnd()
20261
    oprot.writeFieldStop()
20262
    oprot.writeStructEnd()
20263
 
20264
  def validate(self):
20265
    return
20266
 
20267
 
20268
  def __repr__(self):
20269
    L = ['%s=%r' % (key, value)
20270
      for key, value in self.__dict__.iteritems()]
20271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20272
 
20273
  def __eq__(self, other):
20274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20275
 
20276
  def __ne__(self, other):
20277
    return not (self == other)
20278
 
20279
class deleteVoucherForItem_result:
20280
  """
20281
  Attributes:
20282
   - success
20283
   - cex
20284
  """
20285
 
20286
  thrift_spec = (
20287
    (0, TType.BOOL, 'success', None, None, ), # 0
20288
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
20289
  )
20290
 
20291
  def __init__(self, success=None, cex=None,):
20292
    self.success = success
20293
    self.cex = cex
20294
 
20295
  def read(self, iprot):
20296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20298
      return
20299
    iprot.readStructBegin()
20300
    while True:
20301
      (fname, ftype, fid) = iprot.readFieldBegin()
20302
      if ftype == TType.STOP:
20303
        break
20304
      if fid == 0:
20305
        if ftype == TType.BOOL:
20306
          self.success = iprot.readBool();
20307
        else:
20308
          iprot.skip(ftype)
20309
      elif fid == 1:
20310
        if ftype == TType.STRUCT:
20311
          self.cex = CatalogServiceException()
20312
          self.cex.read(iprot)
20313
        else:
20314
          iprot.skip(ftype)
20315
      else:
20316
        iprot.skip(ftype)
20317
      iprot.readFieldEnd()
20318
    iprot.readStructEnd()
20319
 
20320
  def write(self, oprot):
20321
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20322
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20323
      return
20324
    oprot.writeStructBegin('deleteVoucherForItem_result')
20325
    if self.success is not None:
20326
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20327
      oprot.writeBool(self.success)
20328
      oprot.writeFieldEnd()
20329
    if self.cex is not None:
20330
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20331
      self.cex.write(oprot)
20332
      oprot.writeFieldEnd()
20333
    oprot.writeFieldStop()
20334
    oprot.writeStructEnd()
20335
 
20336
  def validate(self):
20337
    return
20338
 
20339
 
20340
  def __repr__(self):
20341
    L = ['%s=%r' % (key, value)
20342
      for key, value in self.__dict__.iteritems()]
20343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20344
 
20345
  def __eq__(self, other):
20346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20347
 
20348
  def __ne__(self, other):
20349
    return not (self == other)
20350
 
20351
class getVoucherAmount_args:
20352
  """
20353
  Attributes:
20354
   - itemId
20355
   - voucherType
20356
  """
20357
 
20358
  thrift_spec = (
20359
    None, # 0
20360
    (1, TType.I64, 'itemId', None, None, ), # 1
20361
    (2, TType.I64, 'voucherType', None, None, ), # 2
20362
  )
20363
 
20364
  def __init__(self, itemId=None, voucherType=None,):
20365
    self.itemId = itemId
20366
    self.voucherType = voucherType
20367
 
20368
  def read(self, iprot):
20369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20371
      return
20372
    iprot.readStructBegin()
20373
    while True:
20374
      (fname, ftype, fid) = iprot.readFieldBegin()
20375
      if ftype == TType.STOP:
20376
        break
20377
      if fid == 1:
20378
        if ftype == TType.I64:
20379
          self.itemId = iprot.readI64();
20380
        else:
20381
          iprot.skip(ftype)
20382
      elif fid == 2:
20383
        if ftype == TType.I64:
20384
          self.voucherType = iprot.readI64();
20385
        else:
20386
          iprot.skip(ftype)
20387
      else:
20388
        iprot.skip(ftype)
20389
      iprot.readFieldEnd()
20390
    iprot.readStructEnd()
20391
 
20392
  def write(self, oprot):
20393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20395
      return
20396
    oprot.writeStructBegin('getVoucherAmount_args')
20397
    if self.itemId is not None:
20398
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20399
      oprot.writeI64(self.itemId)
20400
      oprot.writeFieldEnd()
20401
    if self.voucherType is not None:
20402
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
20403
      oprot.writeI64(self.voucherType)
20404
      oprot.writeFieldEnd()
20405
    oprot.writeFieldStop()
20406
    oprot.writeStructEnd()
20407
 
20408
  def validate(self):
20409
    return
20410
 
20411
 
20412
  def __repr__(self):
20413
    L = ['%s=%r' % (key, value)
20414
      for key, value in self.__dict__.iteritems()]
20415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20416
 
20417
  def __eq__(self, other):
20418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20419
 
20420
  def __ne__(self, other):
20421
    return not (self == other)
20422
 
20423
class getVoucherAmount_result:
20424
  """
20425
  Attributes:
20426
   - success
20427
  """
20428
 
20429
  thrift_spec = (
20430
    (0, TType.I64, 'success', None, None, ), # 0
20431
  )
20432
 
20433
  def __init__(self, success=None,):
20434
    self.success = success
20435
 
20436
  def read(self, iprot):
20437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20439
      return
20440
    iprot.readStructBegin()
20441
    while True:
20442
      (fname, ftype, fid) = iprot.readFieldBegin()
20443
      if ftype == TType.STOP:
20444
        break
20445
      if fid == 0:
20446
        if ftype == TType.I64:
20447
          self.success = iprot.readI64();
20448
        else:
20449
          iprot.skip(ftype)
20450
      else:
20451
        iprot.skip(ftype)
20452
      iprot.readFieldEnd()
20453
    iprot.readStructEnd()
20454
 
20455
  def write(self, oprot):
20456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20458
      return
20459
    oprot.writeStructBegin('getVoucherAmount_result')
20460
    if self.success is not None:
20461
      oprot.writeFieldBegin('success', TType.I64, 0)
20462
      oprot.writeI64(self.success)
20463
      oprot.writeFieldEnd()
20464
    oprot.writeFieldStop()
20465
    oprot.writeStructEnd()
20466
 
20467
  def validate(self):
20468
    return
20469
 
20470
 
20471
  def __repr__(self):
20472
    L = ['%s=%r' % (key, value)
20473
      for key, value in self.__dict__.iteritems()]
20474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20475
 
20476
  def __eq__(self, other):
20477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20478
 
20479
  def __ne__(self, other):
20480
    return not (self == other)
20481
 
20482
class getAllItemVouchers_args:
20483
  """
20484
  Attributes:
20485
   - itemId
20486
  """
20487
 
20488
  thrift_spec = (
20489
    None, # 0
20490
    (1, TType.I64, 'itemId', None, None, ), # 1
20491
  )
20492
 
20493
  def __init__(self, itemId=None,):
20494
    self.itemId = itemId
20495
 
20496
  def read(self, iprot):
20497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20499
      return
20500
    iprot.readStructBegin()
20501
    while True:
20502
      (fname, ftype, fid) = iprot.readFieldBegin()
20503
      if ftype == TType.STOP:
20504
        break
20505
      if fid == 1:
20506
        if ftype == TType.I64:
20507
          self.itemId = iprot.readI64();
20508
        else:
20509
          iprot.skip(ftype)
20510
      else:
20511
        iprot.skip(ftype)
20512
      iprot.readFieldEnd()
20513
    iprot.readStructEnd()
20514
 
20515
  def write(self, oprot):
20516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20518
      return
20519
    oprot.writeStructBegin('getAllItemVouchers_args')
20520
    if self.itemId is not None:
20521
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20522
      oprot.writeI64(self.itemId)
20523
      oprot.writeFieldEnd()
20524
    oprot.writeFieldStop()
20525
    oprot.writeStructEnd()
20526
 
20527
  def validate(self):
20528
    return
20529
 
20530
 
20531
  def __repr__(self):
20532
    L = ['%s=%r' % (key, value)
20533
      for key, value in self.__dict__.iteritems()]
20534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20535
 
20536
  def __eq__(self, other):
20537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20538
 
20539
  def __ne__(self, other):
20540
    return not (self == other)
20541
 
20542
class getAllItemVouchers_result:
20543
  """
20544
  Attributes:
20545
   - success
20546
  """
20547
 
20548
  thrift_spec = (
20549
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
20550
  )
20551
 
20552
  def __init__(self, success=None,):
20553
    self.success = success
20554
 
20555
  def read(self, iprot):
20556
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20557
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20558
      return
20559
    iprot.readStructBegin()
20560
    while True:
20561
      (fname, ftype, fid) = iprot.readFieldBegin()
20562
      if ftype == TType.STOP:
20563
        break
20564
      if fid == 0:
20565
        if ftype == TType.LIST:
20566
          self.success = []
13493 amit.gupta 20567
          (_etype388, _size385) = iprot.readListBegin()
20568
          for _i389 in xrange(_size385):
20569
            _elem390 = VoucherItemMapping()
20570
            _elem390.read(iprot)
20571
            self.success.append(_elem390)
5944 mandeep.dh 20572
          iprot.readListEnd()
20573
        else:
20574
          iprot.skip(ftype)
20575
      else:
20576
        iprot.skip(ftype)
20577
      iprot.readFieldEnd()
20578
    iprot.readStructEnd()
20579
 
20580
  def write(self, oprot):
20581
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20582
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20583
      return
20584
    oprot.writeStructBegin('getAllItemVouchers_result')
20585
    if self.success is not None:
20586
      oprot.writeFieldBegin('success', TType.LIST, 0)
20587
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 20588
      for iter391 in self.success:
20589
        iter391.write(oprot)
5944 mandeep.dh 20590
      oprot.writeListEnd()
20591
      oprot.writeFieldEnd()
20592
    oprot.writeFieldStop()
20593
    oprot.writeStructEnd()
20594
 
20595
  def validate(self):
20596
    return
20597
 
20598
 
20599
  def __repr__(self):
20600
    L = ['%s=%r' % (key, value)
20601
      for key, value in self.__dict__.iteritems()]
20602
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20603
 
20604
  def __eq__(self, other):
20605
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20606
 
20607
  def __ne__(self, other):
20608
    return not (self == other)
20609
 
20610
class isValidCatalogItemId_args:
20611
  """
20612
  Attributes:
20613
   - catalog_item_id
20614
  """
20615
 
20616
  thrift_spec = (
20617
    None, # 0
20618
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20619
  )
20620
 
20621
  def __init__(self, catalog_item_id=None,):
20622
    self.catalog_item_id = catalog_item_id
20623
 
20624
  def read(self, iprot):
20625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20627
      return
20628
    iprot.readStructBegin()
20629
    while True:
20630
      (fname, ftype, fid) = iprot.readFieldBegin()
20631
      if ftype == TType.STOP:
20632
        break
20633
      if fid == 1:
20634
        if ftype == TType.I64:
20635
          self.catalog_item_id = iprot.readI64();
20636
        else:
20637
          iprot.skip(ftype)
20638
      else:
20639
        iprot.skip(ftype)
20640
      iprot.readFieldEnd()
20641
    iprot.readStructEnd()
20642
 
20643
  def write(self, oprot):
20644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20646
      return
20647
    oprot.writeStructBegin('isValidCatalogItemId_args')
20648
    if self.catalog_item_id is not None:
20649
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20650
      oprot.writeI64(self.catalog_item_id)
20651
      oprot.writeFieldEnd()
20652
    oprot.writeFieldStop()
20653
    oprot.writeStructEnd()
20654
 
20655
  def validate(self):
20656
    return
20657
 
20658
 
20659
  def __repr__(self):
20660
    L = ['%s=%r' % (key, value)
20661
      for key, value in self.__dict__.iteritems()]
20662
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20663
 
20664
  def __eq__(self, other):
20665
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20666
 
20667
  def __ne__(self, other):
20668
    return not (self == other)
20669
 
20670
class isValidCatalogItemId_result:
20671
  """
20672
  Attributes:
20673
   - success
20674
  """
20675
 
20676
  thrift_spec = (
20677
    (0, TType.BOOL, 'success', None, None, ), # 0
20678
  )
20679
 
20680
  def __init__(self, success=None,):
20681
    self.success = success
20682
 
20683
  def read(self, iprot):
20684
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20685
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20686
      return
20687
    iprot.readStructBegin()
20688
    while True:
20689
      (fname, ftype, fid) = iprot.readFieldBegin()
20690
      if ftype == TType.STOP:
20691
        break
20692
      if fid == 0:
20693
        if ftype == TType.BOOL:
20694
          self.success = iprot.readBool();
20695
        else:
20696
          iprot.skip(ftype)
20697
      else:
20698
        iprot.skip(ftype)
20699
      iprot.readFieldEnd()
20700
    iprot.readStructEnd()
20701
 
20702
  def write(self, oprot):
20703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20705
      return
20706
    oprot.writeStructBegin('isValidCatalogItemId_result')
20707
    if self.success is not None:
20708
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20709
      oprot.writeBool(self.success)
20710
      oprot.writeFieldEnd()
20711
    oprot.writeFieldStop()
20712
    oprot.writeStructEnd()
20713
 
20714
  def validate(self):
20715
    return
20716
 
20717
 
20718
  def __repr__(self):
20719
    L = ['%s=%r' % (key, value)
20720
      for key, value in self.__dict__.iteritems()]
20721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20722
 
20723
  def __eq__(self, other):
20724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20725
 
20726
  def __ne__(self, other):
20727
    return not (self == other)
6039 amit.gupta 20728
 
20729
class getVatPercentageForItem_args:
20730
  """
20731
  Attributes:
20732
   - itemId
7330 amit.gupta 20733
   - stateId
6039 amit.gupta 20734
   - price
20735
  """
20736
 
20737
  thrift_spec = (
20738
    None, # 0
20739
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 20740
    (2, TType.I64, 'stateId', None, None, ), # 2
20741
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 20742
  )
20743
 
7330 amit.gupta 20744
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 20745
    self.itemId = itemId
7330 amit.gupta 20746
    self.stateId = stateId
6039 amit.gupta 20747
    self.price = price
20748
 
20749
  def read(self, iprot):
20750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20752
      return
20753
    iprot.readStructBegin()
20754
    while True:
20755
      (fname, ftype, fid) = iprot.readFieldBegin()
20756
      if ftype == TType.STOP:
20757
        break
20758
      if fid == 1:
20759
        if ftype == TType.I64:
20760
          self.itemId = iprot.readI64();
20761
        else:
20762
          iprot.skip(ftype)
20763
      elif fid == 2:
7330 amit.gupta 20764
        if ftype == TType.I64:
20765
          self.stateId = iprot.readI64();
20766
        else:
20767
          iprot.skip(ftype)
20768
      elif fid == 3:
6039 amit.gupta 20769
        if ftype == TType.DOUBLE:
20770
          self.price = iprot.readDouble();
20771
        else:
20772
          iprot.skip(ftype)
20773
      else:
20774
        iprot.skip(ftype)
20775
      iprot.readFieldEnd()
20776
    iprot.readStructEnd()
20777
 
20778
  def write(self, oprot):
20779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20781
      return
20782
    oprot.writeStructBegin('getVatPercentageForItem_args')
20783
    if self.itemId is not None:
20784
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20785
      oprot.writeI64(self.itemId)
20786
      oprot.writeFieldEnd()
7330 amit.gupta 20787
    if self.stateId is not None:
20788
      oprot.writeFieldBegin('stateId', TType.I64, 2)
20789
      oprot.writeI64(self.stateId)
20790
      oprot.writeFieldEnd()
6039 amit.gupta 20791
    if self.price is not None:
7330 amit.gupta 20792
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 20793
      oprot.writeDouble(self.price)
20794
      oprot.writeFieldEnd()
20795
    oprot.writeFieldStop()
20796
    oprot.writeStructEnd()
20797
 
20798
  def validate(self):
20799
    return
20800
 
20801
 
20802
  def __repr__(self):
20803
    L = ['%s=%r' % (key, value)
20804
      for key, value in self.__dict__.iteritems()]
20805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20806
 
20807
  def __eq__(self, other):
20808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20809
 
20810
  def __ne__(self, other):
20811
    return not (self == other)
20812
 
20813
class getVatPercentageForItem_result:
20814
  """
20815
  Attributes:
20816
   - success
7340 amit.gupta 20817
   - cex
6039 amit.gupta 20818
  """
20819
 
20820
  thrift_spec = (
20821
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 20822
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 20823
  )
20824
 
7340 amit.gupta 20825
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 20826
    self.success = success
7340 amit.gupta 20827
    self.cex = cex
6039 amit.gupta 20828
 
20829
  def read(self, iprot):
20830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20832
      return
20833
    iprot.readStructBegin()
20834
    while True:
20835
      (fname, ftype, fid) = iprot.readFieldBegin()
20836
      if ftype == TType.STOP:
20837
        break
20838
      if fid == 0:
20839
        if ftype == TType.DOUBLE:
20840
          self.success = iprot.readDouble();
20841
        else:
20842
          iprot.skip(ftype)
7340 amit.gupta 20843
      elif fid == 1:
20844
        if ftype == TType.STRUCT:
20845
          self.cex = CatalogServiceException()
20846
          self.cex.read(iprot)
20847
        else:
20848
          iprot.skip(ftype)
6039 amit.gupta 20849
      else:
20850
        iprot.skip(ftype)
20851
      iprot.readFieldEnd()
20852
    iprot.readStructEnd()
20853
 
20854
  def write(self, oprot):
20855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20857
      return
20858
    oprot.writeStructBegin('getVatPercentageForItem_result')
20859
    if self.success is not None:
20860
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20861
      oprot.writeDouble(self.success)
20862
      oprot.writeFieldEnd()
7340 amit.gupta 20863
    if self.cex is not None:
20864
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20865
      self.cex.write(oprot)
20866
      oprot.writeFieldEnd()
6039 amit.gupta 20867
    oprot.writeFieldStop()
20868
    oprot.writeStructEnd()
20869
 
20870
  def validate(self):
20871
    return
20872
 
20873
 
20874
  def __repr__(self):
20875
    L = ['%s=%r' % (key, value)
20876
      for key, value in self.__dict__.iteritems()]
20877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20878
 
20879
  def __eq__(self, other):
20880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20881
 
20882
  def __ne__(self, other):
20883
    return not (self == other)
20884
 
20885
class getVatAmountForItem_args:
20886
  """
20887
  Attributes:
20888
   - itemId
20889
   - price
20890
  """
20891
 
20892
  thrift_spec = (
20893
    None, # 0
20894
    (1, TType.I64, 'itemId', None, None, ), # 1
20895
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20896
  )
20897
 
20898
  def __init__(self, itemId=None, price=None,):
20899
    self.itemId = itemId
20900
    self.price = price
20901
 
20902
  def read(self, iprot):
20903
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20904
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20905
      return
20906
    iprot.readStructBegin()
20907
    while True:
20908
      (fname, ftype, fid) = iprot.readFieldBegin()
20909
      if ftype == TType.STOP:
20910
        break
20911
      if fid == 1:
20912
        if ftype == TType.I64:
20913
          self.itemId = iprot.readI64();
20914
        else:
20915
          iprot.skip(ftype)
20916
      elif fid == 2:
20917
        if ftype == TType.DOUBLE:
20918
          self.price = iprot.readDouble();
20919
        else:
20920
          iprot.skip(ftype)
20921
      else:
20922
        iprot.skip(ftype)
20923
      iprot.readFieldEnd()
20924
    iprot.readStructEnd()
20925
 
20926
  def write(self, oprot):
20927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20929
      return
20930
    oprot.writeStructBegin('getVatAmountForItem_args')
20931
    if self.itemId is not None:
20932
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20933
      oprot.writeI64(self.itemId)
20934
      oprot.writeFieldEnd()
20935
    if self.price is not None:
20936
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20937
      oprot.writeDouble(self.price)
20938
      oprot.writeFieldEnd()
20939
    oprot.writeFieldStop()
20940
    oprot.writeStructEnd()
20941
 
20942
  def validate(self):
20943
    return
20944
 
20945
 
20946
  def __repr__(self):
20947
    L = ['%s=%r' % (key, value)
20948
      for key, value in self.__dict__.iteritems()]
20949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20950
 
20951
  def __eq__(self, other):
20952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20953
 
20954
  def __ne__(self, other):
20955
    return not (self == other)
20956
 
20957
class getVatAmountForItem_result:
20958
  """
20959
  Attributes:
20960
   - success
20961
  """
20962
 
20963
  thrift_spec = (
20964
    (0, TType.DOUBLE, 'success', None, None, ), # 0
20965
  )
20966
 
20967
  def __init__(self, success=None,):
20968
    self.success = success
20969
 
20970
  def read(self, iprot):
20971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20973
      return
20974
    iprot.readStructBegin()
20975
    while True:
20976
      (fname, ftype, fid) = iprot.readFieldBegin()
20977
      if ftype == TType.STOP:
20978
        break
20979
      if fid == 0:
20980
        if ftype == TType.DOUBLE:
20981
          self.success = iprot.readDouble();
20982
        else:
20983
          iprot.skip(ftype)
20984
      else:
20985
        iprot.skip(ftype)
20986
      iprot.readFieldEnd()
20987
    iprot.readStructEnd()
20988
 
20989
  def write(self, oprot):
20990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20992
      return
20993
    oprot.writeStructBegin('getVatAmountForItem_result')
20994
    if self.success is not None:
20995
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20996
      oprot.writeDouble(self.success)
20997
      oprot.writeFieldEnd()
20998
    oprot.writeFieldStop()
20999
    oprot.writeStructEnd()
21000
 
21001
  def validate(self):
21002
    return
21003
 
21004
 
21005
  def __repr__(self):
21006
    L = ['%s=%r' % (key, value)
21007
      for key, value in self.__dict__.iteritems()]
21008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21009
 
21010
  def __eq__(self, other):
21011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21012
 
21013
  def __ne__(self, other):
21014
    return not (self == other)
6531 vikram.rag 21015
 
21016
class getAllIgnoredInventoryUpdateItemsList_args:
21017
  """
21018
  Attributes:
21019
   - offset
21020
   - limit
21021
  """
21022
 
21023
  thrift_spec = (
21024
    None, # 0
21025
    (1, TType.I32, 'offset', None, None, ), # 1
21026
    (2, TType.I32, 'limit', None, None, ), # 2
21027
  )
21028
 
21029
  def __init__(self, offset=None, limit=None,):
21030
    self.offset = offset
21031
    self.limit = limit
21032
 
21033
  def read(self, iprot):
21034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21036
      return
21037
    iprot.readStructBegin()
21038
    while True:
21039
      (fname, ftype, fid) = iprot.readFieldBegin()
21040
      if ftype == TType.STOP:
21041
        break
21042
      if fid == 1:
21043
        if ftype == TType.I32:
21044
          self.offset = iprot.readI32();
21045
        else:
21046
          iprot.skip(ftype)
21047
      elif fid == 2:
21048
        if ftype == TType.I32:
21049
          self.limit = iprot.readI32();
21050
        else:
21051
          iprot.skip(ftype)
21052
      else:
21053
        iprot.skip(ftype)
21054
      iprot.readFieldEnd()
21055
    iprot.readStructEnd()
21056
 
21057
  def write(self, oprot):
21058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21060
      return
21061
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
21062
    if self.offset is not None:
21063
      oprot.writeFieldBegin('offset', TType.I32, 1)
21064
      oprot.writeI32(self.offset)
21065
      oprot.writeFieldEnd()
21066
    if self.limit is not None:
21067
      oprot.writeFieldBegin('limit', TType.I32, 2)
21068
      oprot.writeI32(self.limit)
21069
      oprot.writeFieldEnd()
21070
    oprot.writeFieldStop()
21071
    oprot.writeStructEnd()
21072
 
21073
  def validate(self):
21074
    return
21075
 
21076
 
21077
  def __repr__(self):
21078
    L = ['%s=%r' % (key, value)
21079
      for key, value in self.__dict__.iteritems()]
21080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21081
 
21082
  def __eq__(self, other):
21083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21084
 
21085
  def __ne__(self, other):
21086
    return not (self == other)
21087
 
21088
class getAllIgnoredInventoryUpdateItemsList_result:
21089
  """
21090
  Attributes:
21091
   - success
21092
  """
21093
 
21094
  thrift_spec = (
21095
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
21096
  )
21097
 
21098
  def __init__(self, success=None,):
21099
    self.success = success
21100
 
21101
  def read(self, iprot):
21102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21104
      return
21105
    iprot.readStructBegin()
21106
    while True:
21107
      (fname, ftype, fid) = iprot.readFieldBegin()
21108
      if ftype == TType.STOP:
21109
        break
21110
      if fid == 0:
21111
        if ftype == TType.LIST:
21112
          self.success = []
13493 amit.gupta 21113
          (_etype395, _size392) = iprot.readListBegin()
21114
          for _i396 in xrange(_size392):
21115
            _elem397 = Item()
21116
            _elem397.read(iprot)
21117
            self.success.append(_elem397)
6531 vikram.rag 21118
          iprot.readListEnd()
21119
        else:
21120
          iprot.skip(ftype)
21121
      else:
21122
        iprot.skip(ftype)
21123
      iprot.readFieldEnd()
21124
    iprot.readStructEnd()
21125
 
21126
  def write(self, oprot):
21127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21129
      return
21130
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
21131
    if self.success is not None:
21132
      oprot.writeFieldBegin('success', TType.LIST, 0)
21133
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 21134
      for iter398 in self.success:
21135
        iter398.write(oprot)
6531 vikram.rag 21136
      oprot.writeListEnd()
21137
      oprot.writeFieldEnd()
21138
    oprot.writeFieldStop()
21139
    oprot.writeStructEnd()
21140
 
21141
  def validate(self):
21142
    return
21143
 
21144
 
21145
  def __repr__(self):
21146
    L = ['%s=%r' % (key, value)
21147
      for key, value in self.__dict__.iteritems()]
21148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21149
 
21150
  def __eq__(self, other):
21151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21152
 
21153
  def __ne__(self, other):
21154
    return not (self == other)
6805 anupam.sin 21155
 
6821 amar.kumar 21156
class getAllAliveItems_args:
21157
 
21158
  thrift_spec = (
21159
  )
21160
 
21161
  def read(self, iprot):
21162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21164
      return
21165
    iprot.readStructBegin()
21166
    while True:
21167
      (fname, ftype, fid) = iprot.readFieldBegin()
21168
      if ftype == TType.STOP:
21169
        break
21170
      else:
21171
        iprot.skip(ftype)
21172
      iprot.readFieldEnd()
21173
    iprot.readStructEnd()
21174
 
21175
  def write(self, oprot):
21176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21178
      return
21179
    oprot.writeStructBegin('getAllAliveItems_args')
21180
    oprot.writeFieldStop()
21181
    oprot.writeStructEnd()
21182
 
21183
  def validate(self):
21184
    return
21185
 
21186
 
21187
  def __repr__(self):
21188
    L = ['%s=%r' % (key, value)
21189
      for key, value in self.__dict__.iteritems()]
21190
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21191
 
21192
  def __eq__(self, other):
21193
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21194
 
21195
  def __ne__(self, other):
21196
    return not (self == other)
21197
 
21198
class getAllAliveItems_result:
21199
  """
21200
  Attributes:
21201
   - success
21202
  """
21203
 
21204
  thrift_spec = (
21205
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
21206
  )
21207
 
21208
  def __init__(self, success=None,):
21209
    self.success = success
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
      if fid == 0:
21221
        if ftype == TType.LIST:
21222
          self.success = []
13493 amit.gupta 21223
          (_etype402, _size399) = iprot.readListBegin()
21224
          for _i403 in xrange(_size399):
21225
            _elem404 = Item()
21226
            _elem404.read(iprot)
21227
            self.success.append(_elem404)
6821 amar.kumar 21228
          iprot.readListEnd()
21229
        else:
21230
          iprot.skip(ftype)
21231
      else:
21232
        iprot.skip(ftype)
21233
      iprot.readFieldEnd()
21234
    iprot.readStructEnd()
21235
 
21236
  def write(self, oprot):
21237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21239
      return
21240
    oprot.writeStructBegin('getAllAliveItems_result')
21241
    if self.success is not None:
21242
      oprot.writeFieldBegin('success', TType.LIST, 0)
21243
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 21244
      for iter405 in self.success:
21245
        iter405.write(oprot)
6821 amar.kumar 21246
      oprot.writeListEnd()
21247
      oprot.writeFieldEnd()
21248
    oprot.writeFieldStop()
21249
    oprot.writeStructEnd()
21250
 
21251
  def validate(self):
21252
    return
21253
 
21254
 
21255
  def __repr__(self):
21256
    L = ['%s=%r' % (key, value)
21257
      for key, value in self.__dict__.iteritems()]
21258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21259
 
21260
  def __eq__(self, other):
21261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21262
 
21263
  def __ne__(self, other):
21264
    return not (self == other)
21265
 
6805 anupam.sin 21266
class getInsuranceAmount_args:
21267
  """
21268
  Attributes:
21269
   - itemId
6921 anupam.sin 21270
   - price
6805 anupam.sin 21271
   - insurerId
21272
   - quantity
21273
  """
21274
 
21275
  thrift_spec = (
21276
    None, # 0
21277
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 21278
    (2, TType.DOUBLE, 'price', None, None, ), # 2
21279
    (3, TType.I64, 'insurerId', None, None, ), # 3
21280
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 21281
  )
21282
 
6921 anupam.sin 21283
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 21284
    self.itemId = itemId
6921 anupam.sin 21285
    self.price = price
6805 anupam.sin 21286
    self.insurerId = insurerId
21287
    self.quantity = quantity
21288
 
21289
  def read(self, iprot):
21290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21292
      return
21293
    iprot.readStructBegin()
21294
    while True:
21295
      (fname, ftype, fid) = iprot.readFieldBegin()
21296
      if ftype == TType.STOP:
21297
        break
21298
      if fid == 1:
21299
        if ftype == TType.I64:
21300
          self.itemId = iprot.readI64();
21301
        else:
21302
          iprot.skip(ftype)
21303
      elif fid == 2:
6921 anupam.sin 21304
        if ftype == TType.DOUBLE:
21305
          self.price = iprot.readDouble();
21306
        else:
21307
          iprot.skip(ftype)
21308
      elif fid == 3:
6805 anupam.sin 21309
        if ftype == TType.I64:
21310
          self.insurerId = iprot.readI64();
21311
        else:
21312
          iprot.skip(ftype)
6921 anupam.sin 21313
      elif fid == 4:
6805 anupam.sin 21314
        if ftype == TType.I64:
21315
          self.quantity = iprot.readI64();
21316
        else:
21317
          iprot.skip(ftype)
21318
      else:
21319
        iprot.skip(ftype)
21320
      iprot.readFieldEnd()
21321
    iprot.readStructEnd()
21322
 
21323
  def write(self, oprot):
21324
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21325
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21326
      return
21327
    oprot.writeStructBegin('getInsuranceAmount_args')
21328
    if self.itemId is not None:
21329
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21330
      oprot.writeI64(self.itemId)
21331
      oprot.writeFieldEnd()
6921 anupam.sin 21332
    if self.price is not None:
21333
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
21334
      oprot.writeDouble(self.price)
21335
      oprot.writeFieldEnd()
6805 anupam.sin 21336
    if self.insurerId is not None:
6921 anupam.sin 21337
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 21338
      oprot.writeI64(self.insurerId)
21339
      oprot.writeFieldEnd()
21340
    if self.quantity is not None:
6921 anupam.sin 21341
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 21342
      oprot.writeI64(self.quantity)
21343
      oprot.writeFieldEnd()
21344
    oprot.writeFieldStop()
21345
    oprot.writeStructEnd()
21346
 
21347
  def validate(self):
21348
    return
21349
 
21350
 
21351
  def __repr__(self):
21352
    L = ['%s=%r' % (key, value)
21353
      for key, value in self.__dict__.iteritems()]
21354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21355
 
21356
  def __eq__(self, other):
21357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21358
 
21359
  def __ne__(self, other):
21360
    return not (self == other)
21361
 
21362
class getInsuranceAmount_result:
21363
  """
21364
  Attributes:
21365
   - success
21366
  """
21367
 
21368
  thrift_spec = (
21369
    (0, TType.I64, 'success', None, None, ), # 0
21370
  )
21371
 
21372
  def __init__(self, success=None,):
21373
    self.success = success
21374
 
21375
  def read(self, iprot):
21376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21378
      return
21379
    iprot.readStructBegin()
21380
    while True:
21381
      (fname, ftype, fid) = iprot.readFieldBegin()
21382
      if ftype == TType.STOP:
21383
        break
21384
      if fid == 0:
21385
        if ftype == TType.I64:
21386
          self.success = iprot.readI64();
21387
        else:
21388
          iprot.skip(ftype)
21389
      else:
21390
        iprot.skip(ftype)
21391
      iprot.readFieldEnd()
21392
    iprot.readStructEnd()
21393
 
21394
  def write(self, oprot):
21395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21397
      return
21398
    oprot.writeStructBegin('getInsuranceAmount_result')
21399
    if self.success is not None:
21400
      oprot.writeFieldBegin('success', TType.I64, 0)
21401
      oprot.writeI64(self.success)
21402
      oprot.writeFieldEnd()
21403
    oprot.writeFieldStop()
21404
    oprot.writeStructEnd()
21405
 
21406
  def validate(self):
21407
    return
21408
 
21409
 
21410
  def __repr__(self):
21411
    L = ['%s=%r' % (key, value)
21412
      for key, value in self.__dict__.iteritems()]
21413
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21414
 
21415
  def __eq__(self, other):
21416
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21417
 
21418
  def __ne__(self, other):
21419
    return not (self == other)
21420
 
21421
class getInsurer_args:
21422
  """
21423
  Attributes:
21424
   - insurerId
21425
  """
21426
 
21427
  thrift_spec = (
21428
    None, # 0
21429
    (1, TType.I64, 'insurerId', None, None, ), # 1
21430
  )
21431
 
21432
  def __init__(self, insurerId=None,):
21433
    self.insurerId = insurerId
21434
 
21435
  def read(self, iprot):
21436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21438
      return
21439
    iprot.readStructBegin()
21440
    while True:
21441
      (fname, ftype, fid) = iprot.readFieldBegin()
21442
      if ftype == TType.STOP:
21443
        break
21444
      if fid == 1:
21445
        if ftype == TType.I64:
21446
          self.insurerId = iprot.readI64();
21447
        else:
21448
          iprot.skip(ftype)
21449
      else:
21450
        iprot.skip(ftype)
21451
      iprot.readFieldEnd()
21452
    iprot.readStructEnd()
21453
 
21454
  def write(self, oprot):
21455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21457
      return
21458
    oprot.writeStructBegin('getInsurer_args')
21459
    if self.insurerId is not None:
21460
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21461
      oprot.writeI64(self.insurerId)
21462
      oprot.writeFieldEnd()
21463
    oprot.writeFieldStop()
21464
    oprot.writeStructEnd()
21465
 
21466
  def validate(self):
21467
    return
21468
 
21469
 
21470
  def __repr__(self):
21471
    L = ['%s=%r' % (key, value)
21472
      for key, value in self.__dict__.iteritems()]
21473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21474
 
21475
  def __eq__(self, other):
21476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21477
 
21478
  def __ne__(self, other):
21479
    return not (self == other)
21480
 
21481
class getInsurer_result:
21482
  """
21483
  Attributes:
21484
   - success
21485
  """
21486
 
21487
  thrift_spec = (
21488
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
21489
  )
21490
 
21491
  def __init__(self, success=None,):
21492
    self.success = success
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 == 0:
21504
        if ftype == TType.STRUCT:
21505
          self.success = Insurer()
21506
          self.success.read(iprot)
21507
        else:
21508
          iprot.skip(ftype)
21509
      else:
21510
        iprot.skip(ftype)
21511
      iprot.readFieldEnd()
21512
    iprot.readStructEnd()
21513
 
21514
  def write(self, oprot):
21515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21517
      return
21518
    oprot.writeStructBegin('getInsurer_result')
21519
    if self.success is not None:
21520
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21521
      self.success.write(oprot)
21522
      oprot.writeFieldEnd()
21523
    oprot.writeFieldStop()
21524
    oprot.writeStructEnd()
21525
 
21526
  def validate(self):
21527
    return
21528
 
21529
 
21530
  def __repr__(self):
21531
    L = ['%s=%r' % (key, value)
21532
      for key, value in self.__dict__.iteritems()]
21533
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21534
 
21535
  def __eq__(self, other):
21536
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21537
 
21538
  def __ne__(self, other):
21539
    return not (self == other)
6838 vikram.rag 21540
 
21541
class getAllInsurers_args:
21542
 
21543
  thrift_spec = (
21544
  )
21545
 
21546
  def read(self, iprot):
21547
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21548
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21549
      return
21550
    iprot.readStructBegin()
21551
    while True:
21552
      (fname, ftype, fid) = iprot.readFieldBegin()
21553
      if ftype == TType.STOP:
21554
        break
21555
      else:
21556
        iprot.skip(ftype)
21557
      iprot.readFieldEnd()
21558
    iprot.readStructEnd()
21559
 
21560
  def write(self, oprot):
21561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21563
      return
21564
    oprot.writeStructBegin('getAllInsurers_args')
21565
    oprot.writeFieldStop()
21566
    oprot.writeStructEnd()
21567
 
21568
  def validate(self):
21569
    return
21570
 
21571
 
21572
  def __repr__(self):
21573
    L = ['%s=%r' % (key, value)
21574
      for key, value in self.__dict__.iteritems()]
21575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21576
 
21577
  def __eq__(self, other):
21578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21579
 
21580
  def __ne__(self, other):
21581
    return not (self == other)
21582
 
21583
class getAllInsurers_result:
21584
  """
21585
  Attributes:
21586
   - success
21587
  """
21588
 
21589
  thrift_spec = (
21590
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
21591
  )
21592
 
21593
  def __init__(self, success=None,):
21594
    self.success = success
21595
 
21596
  def read(self, iprot):
21597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21599
      return
21600
    iprot.readStructBegin()
21601
    while True:
21602
      (fname, ftype, fid) = iprot.readFieldBegin()
21603
      if ftype == TType.STOP:
21604
        break
21605
      if fid == 0:
21606
        if ftype == TType.LIST:
21607
          self.success = []
13493 amit.gupta 21608
          (_etype409, _size406) = iprot.readListBegin()
21609
          for _i410 in xrange(_size406):
21610
            _elem411 = Insurer()
21611
            _elem411.read(iprot)
21612
            self.success.append(_elem411)
6838 vikram.rag 21613
          iprot.readListEnd()
21614
        else:
21615
          iprot.skip(ftype)
21616
      else:
21617
        iprot.skip(ftype)
21618
      iprot.readFieldEnd()
21619
    iprot.readStructEnd()
21620
 
21621
  def write(self, oprot):
21622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21624
      return
21625
    oprot.writeStructBegin('getAllInsurers_result')
21626
    if self.success is not None:
21627
      oprot.writeFieldBegin('success', TType.LIST, 0)
21628
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 21629
      for iter412 in self.success:
21630
        iter412.write(oprot)
6838 vikram.rag 21631
      oprot.writeListEnd()
21632
      oprot.writeFieldEnd()
21633
    oprot.writeFieldStop()
21634
    oprot.writeStructEnd()
21635
 
21636
  def validate(self):
21637
    return
21638
 
21639
 
21640
  def __repr__(self):
21641
    L = ['%s=%r' % (key, value)
21642
      for key, value in self.__dict__.iteritems()]
21643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21644
 
21645
  def __eq__(self, other):
21646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21647
 
21648
  def __ne__(self, other):
21649
    return not (self == other)
6962 rajveer 21650
 
21651
class updateInsuranceDeclaredAmount_args:
21652
  """
21653
  Attributes:
21654
   - insurerId
21655
   - amount
21656
  """
21657
 
21658
  thrift_spec = (
21659
    None, # 0
21660
    (1, TType.I64, 'insurerId', None, None, ), # 1
21661
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
21662
  )
21663
 
21664
  def __init__(self, insurerId=None, amount=None,):
21665
    self.insurerId = insurerId
21666
    self.amount = amount
21667
 
21668
  def read(self, iprot):
21669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21671
      return
21672
    iprot.readStructBegin()
21673
    while True:
21674
      (fname, ftype, fid) = iprot.readFieldBegin()
21675
      if ftype == TType.STOP:
21676
        break
21677
      if fid == 1:
21678
        if ftype == TType.I64:
21679
          self.insurerId = iprot.readI64();
21680
        else:
21681
          iprot.skip(ftype)
21682
      elif fid == 2:
21683
        if ftype == TType.DOUBLE:
21684
          self.amount = iprot.readDouble();
21685
        else:
21686
          iprot.skip(ftype)
21687
      else:
21688
        iprot.skip(ftype)
21689
      iprot.readFieldEnd()
21690
    iprot.readStructEnd()
21691
 
21692
  def write(self, oprot):
21693
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21694
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21695
      return
21696
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
21697
    if self.insurerId is not None:
21698
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21699
      oprot.writeI64(self.insurerId)
21700
      oprot.writeFieldEnd()
21701
    if self.amount is not None:
21702
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
21703
      oprot.writeDouble(self.amount)
21704
      oprot.writeFieldEnd()
21705
    oprot.writeFieldStop()
21706
    oprot.writeStructEnd()
21707
 
21708
  def validate(self):
21709
    return
21710
 
21711
 
21712
  def __repr__(self):
21713
    L = ['%s=%r' % (key, value)
21714
      for key, value in self.__dict__.iteritems()]
21715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21716
 
21717
  def __eq__(self, other):
21718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21719
 
21720
  def __ne__(self, other):
21721
    return not (self == other)
21722
 
21723
class updateInsuranceDeclaredAmount_result:
21724
 
21725
  thrift_spec = (
21726
  )
21727
 
21728
  def read(self, iprot):
21729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21731
      return
21732
    iprot.readStructBegin()
21733
    while True:
21734
      (fname, ftype, fid) = iprot.readFieldBegin()
21735
      if ftype == TType.STOP:
21736
        break
21737
      else:
21738
        iprot.skip(ftype)
21739
      iprot.readFieldEnd()
21740
    iprot.readStructEnd()
21741
 
21742
  def write(self, oprot):
21743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21745
      return
21746
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
21747
    oprot.writeFieldStop()
21748
    oprot.writeStructEnd()
21749
 
21750
  def validate(self):
21751
    return
21752
 
21753
 
21754
  def __repr__(self):
21755
    L = ['%s=%r' % (key, value)
21756
      for key, value in self.__dict__.iteritems()]
21757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21758
 
21759
  def __eq__(self, other):
21760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21761
 
21762
  def __ne__(self, other):
21763
    return not (self == other)
7190 amar.kumar 21764
 
21765
class getFreebieForItem_args:
21766
  """
21767
  Attributes:
21768
   - itemId
21769
  """
21770
 
21771
  thrift_spec = (
21772
    None, # 0
21773
    (1, TType.I64, 'itemId', None, None, ), # 1
21774
  )
21775
 
21776
  def __init__(self, itemId=None,):
21777
    self.itemId = itemId
21778
 
21779
  def read(self, iprot):
21780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21782
      return
21783
    iprot.readStructBegin()
21784
    while True:
21785
      (fname, ftype, fid) = iprot.readFieldBegin()
21786
      if ftype == TType.STOP:
21787
        break
21788
      if fid == 1:
21789
        if ftype == TType.I64:
21790
          self.itemId = iprot.readI64();
21791
        else:
21792
          iprot.skip(ftype)
21793
      else:
21794
        iprot.skip(ftype)
21795
      iprot.readFieldEnd()
21796
    iprot.readStructEnd()
21797
 
21798
  def write(self, oprot):
21799
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21800
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21801
      return
21802
    oprot.writeStructBegin('getFreebieForItem_args')
21803
    if self.itemId is not None:
21804
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21805
      oprot.writeI64(self.itemId)
21806
      oprot.writeFieldEnd()
21807
    oprot.writeFieldStop()
21808
    oprot.writeStructEnd()
21809
 
21810
  def validate(self):
21811
    return
21812
 
21813
 
21814
  def __repr__(self):
21815
    L = ['%s=%r' % (key, value)
21816
      for key, value in self.__dict__.iteritems()]
21817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21818
 
21819
  def __eq__(self, other):
21820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21821
 
21822
  def __ne__(self, other):
21823
    return not (self == other)
21824
 
21825
class getFreebieForItem_result:
21826
  """
21827
  Attributes:
21828
   - success
21829
  """
21830
 
21831
  thrift_spec = (
21832
    (0, TType.I64, 'success', None, None, ), # 0
21833
  )
21834
 
21835
  def __init__(self, success=None,):
21836
    self.success = success
21837
 
21838
  def read(self, iprot):
21839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21841
      return
21842
    iprot.readStructBegin()
21843
    while True:
21844
      (fname, ftype, fid) = iprot.readFieldBegin()
21845
      if ftype == TType.STOP:
21846
        break
21847
      if fid == 0:
21848
        if ftype == TType.I64:
21849
          self.success = iprot.readI64();
21850
        else:
21851
          iprot.skip(ftype)
21852
      else:
21853
        iprot.skip(ftype)
21854
      iprot.readFieldEnd()
21855
    iprot.readStructEnd()
21856
 
21857
  def write(self, oprot):
21858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21860
      return
21861
    oprot.writeStructBegin('getFreebieForItem_result')
21862
    if self.success is not None:
21863
      oprot.writeFieldBegin('success', TType.I64, 0)
21864
      oprot.writeI64(self.success)
21865
      oprot.writeFieldEnd()
21866
    oprot.writeFieldStop()
21867
    oprot.writeStructEnd()
21868
 
21869
  def validate(self):
21870
    return
21871
 
21872
 
21873
  def __repr__(self):
21874
    L = ['%s=%r' % (key, value)
21875
      for key, value in self.__dict__.iteritems()]
21876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21877
 
21878
  def __eq__(self, other):
21879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21880
 
21881
  def __ne__(self, other):
21882
    return not (self == other)
21883
 
21884
class addOrUpdateFreebieForItem_args:
21885
  """
21886
  Attributes:
21887
   - freebieItem
21888
  """
21889
 
21890
  thrift_spec = (
21891
    None, # 0
21892
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
21893
  )
21894
 
21895
  def __init__(self, freebieItem=None,):
21896
    self.freebieItem = freebieItem
21897
 
21898
  def read(self, iprot):
21899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21901
      return
21902
    iprot.readStructBegin()
21903
    while True:
21904
      (fname, ftype, fid) = iprot.readFieldBegin()
21905
      if ftype == TType.STOP:
21906
        break
21907
      if fid == 1:
21908
        if ftype == TType.STRUCT:
21909
          self.freebieItem = FreebieItem()
21910
          self.freebieItem.read(iprot)
21911
        else:
21912
          iprot.skip(ftype)
21913
      else:
21914
        iprot.skip(ftype)
21915
      iprot.readFieldEnd()
21916
    iprot.readStructEnd()
21917
 
21918
  def write(self, oprot):
21919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21921
      return
21922
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
21923
    if self.freebieItem is not None:
21924
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
21925
      self.freebieItem.write(oprot)
21926
      oprot.writeFieldEnd()
21927
    oprot.writeFieldStop()
21928
    oprot.writeStructEnd()
21929
 
21930
  def validate(self):
21931
    return
21932
 
21933
 
21934
  def __repr__(self):
21935
    L = ['%s=%r' % (key, value)
21936
      for key, value in self.__dict__.iteritems()]
21937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21938
 
21939
  def __eq__(self, other):
21940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21941
 
21942
  def __ne__(self, other):
21943
    return not (self == other)
21944
 
21945
class addOrUpdateFreebieForItem_result:
21946
 
21947
  thrift_spec = (
21948
  )
21949
 
21950
  def read(self, iprot):
21951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21953
      return
21954
    iprot.readStructBegin()
21955
    while True:
21956
      (fname, ftype, fid) = iprot.readFieldBegin()
21957
      if ftype == TType.STOP:
21958
        break
21959
      else:
21960
        iprot.skip(ftype)
21961
      iprot.readFieldEnd()
21962
    iprot.readStructEnd()
21963
 
21964
  def write(self, oprot):
21965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21967
      return
21968
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
21969
    oprot.writeFieldStop()
21970
    oprot.writeStructEnd()
21971
 
21972
  def validate(self):
21973
    return
21974
 
21975
 
21976
  def __repr__(self):
21977
    L = ['%s=%r' % (key, value)
21978
      for key, value in self.__dict__.iteritems()]
21979
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21980
 
21981
  def __eq__(self, other):
21982
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21983
 
21984
  def __ne__(self, other):
21985
    return not (self == other)
7256 rajveer 21986
 
7272 amit.gupta 21987
class addOrUpdateBrandInfo_args:
21988
  """
21989
  Attributes:
21990
   - brandInfo
21991
  """
21992
 
21993
  thrift_spec = (
21994
    None, # 0
21995
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
21996
  )
21997
 
21998
  def __init__(self, brandInfo=None,):
21999
    self.brandInfo = brandInfo
22000
 
22001
  def read(self, iprot):
22002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22004
      return
22005
    iprot.readStructBegin()
22006
    while True:
22007
      (fname, ftype, fid) = iprot.readFieldBegin()
22008
      if ftype == TType.STOP:
22009
        break
22010
      if fid == 1:
22011
        if ftype == TType.STRUCT:
22012
          self.brandInfo = BrandInfo()
22013
          self.brandInfo.read(iprot)
22014
        else:
22015
          iprot.skip(ftype)
22016
      else:
22017
        iprot.skip(ftype)
22018
      iprot.readFieldEnd()
22019
    iprot.readStructEnd()
22020
 
22021
  def write(self, oprot):
22022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22024
      return
22025
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
22026
    if self.brandInfo is not None:
22027
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
22028
      self.brandInfo.write(oprot)
22029
      oprot.writeFieldEnd()
22030
    oprot.writeFieldStop()
22031
    oprot.writeStructEnd()
22032
 
22033
  def validate(self):
22034
    return
22035
 
22036
 
22037
  def __repr__(self):
22038
    L = ['%s=%r' % (key, value)
22039
      for key, value in self.__dict__.iteritems()]
22040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22041
 
22042
  def __eq__(self, other):
22043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22044
 
22045
  def __ne__(self, other):
22046
    return not (self == other)
22047
 
22048
class addOrUpdateBrandInfo_result:
22049
 
22050
  thrift_spec = (
22051
  )
22052
 
22053
  def read(self, iprot):
22054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22056
      return
22057
    iprot.readStructBegin()
22058
    while True:
22059
      (fname, ftype, fid) = iprot.readFieldBegin()
22060
      if ftype == TType.STOP:
22061
        break
22062
      else:
22063
        iprot.skip(ftype)
22064
      iprot.readFieldEnd()
22065
    iprot.readStructEnd()
22066
 
22067
  def write(self, oprot):
22068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22070
      return
22071
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
22072
    oprot.writeFieldStop()
22073
    oprot.writeStructEnd()
22074
 
22075
  def validate(self):
22076
    return
22077
 
22078
 
22079
  def __repr__(self):
22080
    L = ['%s=%r' % (key, value)
22081
      for key, value in self.__dict__.iteritems()]
22082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22083
 
22084
  def __eq__(self, other):
22085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22086
 
22087
  def __ne__(self, other):
22088
    return not (self == other)
22089
 
22090
class getBrandInfo_args:
22091
 
22092
  thrift_spec = (
22093
  )
22094
 
22095
  def read(self, iprot):
22096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22098
      return
22099
    iprot.readStructBegin()
22100
    while True:
22101
      (fname, ftype, fid) = iprot.readFieldBegin()
22102
      if ftype == TType.STOP:
22103
        break
22104
      else:
22105
        iprot.skip(ftype)
22106
      iprot.readFieldEnd()
22107
    iprot.readStructEnd()
22108
 
22109
  def write(self, oprot):
22110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22112
      return
22113
    oprot.writeStructBegin('getBrandInfo_args')
22114
    oprot.writeFieldStop()
22115
    oprot.writeStructEnd()
22116
 
22117
  def validate(self):
22118
    return
22119
 
22120
 
22121
  def __repr__(self):
22122
    L = ['%s=%r' % (key, value)
22123
      for key, value in self.__dict__.iteritems()]
22124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22125
 
22126
  def __eq__(self, other):
22127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22128
 
22129
  def __ne__(self, other):
22130
    return not (self == other)
22131
 
22132
class getBrandInfo_result:
22133
  """
22134
  Attributes:
22135
   - success
22136
  """
22137
 
22138
  thrift_spec = (
22139
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
22140
  )
22141
 
22142
  def __init__(self, success=None,):
22143
    self.success = success
22144
 
22145
  def read(self, iprot):
22146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22148
      return
22149
    iprot.readStructBegin()
22150
    while True:
22151
      (fname, ftype, fid) = iprot.readFieldBegin()
22152
      if ftype == TType.STOP:
22153
        break
22154
      if fid == 0:
22155
        if ftype == TType.MAP:
22156
          self.success = {}
13493 amit.gupta 22157
          (_ktype414, _vtype415, _size413 ) = iprot.readMapBegin() 
22158
          for _i417 in xrange(_size413):
22159
            _key418 = iprot.readString();
22160
            _val419 = BrandInfo()
22161
            _val419.read(iprot)
22162
            self.success[_key418] = _val419
7272 amit.gupta 22163
          iprot.readMapEnd()
22164
        else:
22165
          iprot.skip(ftype)
22166
      else:
22167
        iprot.skip(ftype)
22168
      iprot.readFieldEnd()
22169
    iprot.readStructEnd()
22170
 
22171
  def write(self, oprot):
22172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22174
      return
22175
    oprot.writeStructBegin('getBrandInfo_result')
22176
    if self.success is not None:
22177
      oprot.writeFieldBegin('success', TType.MAP, 0)
22178
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
13493 amit.gupta 22179
      for kiter420,viter421 in self.success.items():
22180
        oprot.writeString(kiter420)
22181
        viter421.write(oprot)
7272 amit.gupta 22182
      oprot.writeMapEnd()
22183
      oprot.writeFieldEnd()
22184
    oprot.writeFieldStop()
22185
    oprot.writeStructEnd()
22186
 
22187
  def validate(self):
22188
    return
22189
 
22190
 
22191
  def __repr__(self):
22192
    L = ['%s=%r' % (key, value)
22193
      for key, value in self.__dict__.iteritems()]
22194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22195
 
22196
  def __eq__(self, other):
22197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22198
 
22199
  def __ne__(self, other):
22200
    return not (self == other)
22201
 
7256 rajveer 22202
class getStorePricing_args:
22203
  """
22204
  Attributes:
22205
   - itemId
22206
  """
22207
 
22208
  thrift_spec = (
22209
    None, # 0
22210
    (1, TType.I64, 'itemId', None, None, ), # 1
22211
  )
22212
 
22213
  def __init__(self, itemId=None,):
22214
    self.itemId = itemId
22215
 
22216
  def read(self, iprot):
22217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22219
      return
22220
    iprot.readStructBegin()
22221
    while True:
22222
      (fname, ftype, fid) = iprot.readFieldBegin()
22223
      if ftype == TType.STOP:
22224
        break
22225
      if fid == 1:
22226
        if ftype == TType.I64:
22227
          self.itemId = iprot.readI64();
22228
        else:
22229
          iprot.skip(ftype)
22230
      else:
22231
        iprot.skip(ftype)
22232
      iprot.readFieldEnd()
22233
    iprot.readStructEnd()
22234
 
22235
  def write(self, oprot):
22236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22238
      return
22239
    oprot.writeStructBegin('getStorePricing_args')
22240
    if self.itemId is not None:
22241
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22242
      oprot.writeI64(self.itemId)
22243
      oprot.writeFieldEnd()
22244
    oprot.writeFieldStop()
22245
    oprot.writeStructEnd()
22246
 
22247
  def validate(self):
22248
    return
22249
 
22250
 
22251
  def __repr__(self):
22252
    L = ['%s=%r' % (key, value)
22253
      for key, value in self.__dict__.iteritems()]
22254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22255
 
22256
  def __eq__(self, other):
22257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22258
 
22259
  def __ne__(self, other):
22260
    return not (self == other)
22261
 
22262
class getStorePricing_result:
22263
  """
22264
  Attributes:
22265
   - success
22266
  """
22267
 
22268
  thrift_spec = (
22269
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
22270
  )
22271
 
22272
  def __init__(self, success=None,):
22273
    self.success = success
22274
 
22275
  def read(self, iprot):
22276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22278
      return
22279
    iprot.readStructBegin()
22280
    while True:
22281
      (fname, ftype, fid) = iprot.readFieldBegin()
22282
      if ftype == TType.STOP:
22283
        break
22284
      if fid == 0:
22285
        if ftype == TType.STRUCT:
22286
          self.success = StorePricing()
22287
          self.success.read(iprot)
22288
        else:
22289
          iprot.skip(ftype)
22290
      else:
22291
        iprot.skip(ftype)
22292
      iprot.readFieldEnd()
22293
    iprot.readStructEnd()
22294
 
22295
  def write(self, oprot):
22296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22298
      return
22299
    oprot.writeStructBegin('getStorePricing_result')
22300
    if self.success is not None:
22301
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22302
      self.success.write(oprot)
22303
      oprot.writeFieldEnd()
22304
    oprot.writeFieldStop()
22305
    oprot.writeStructEnd()
22306
 
22307
  def validate(self):
22308
    return
22309
 
22310
 
22311
  def __repr__(self):
22312
    L = ['%s=%r' % (key, value)
22313
      for key, value in self.__dict__.iteritems()]
22314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22315
 
22316
  def __eq__(self, other):
22317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22318
 
22319
  def __ne__(self, other):
22320
    return not (self == other)
7265 rajveer 22321
 
7306 rajveer 22322
class getStorePricings_args:
22323
  """
22324
  Attributes:
22325
   - itemIds
22326
  """
22327
 
22328
  thrift_spec = (
22329
    None, # 0
22330
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
22331
  )
22332
 
22333
  def __init__(self, itemIds=None,):
22334
    self.itemIds = itemIds
22335
 
22336
  def read(self, iprot):
22337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22339
      return
22340
    iprot.readStructBegin()
22341
    while True:
22342
      (fname, ftype, fid) = iprot.readFieldBegin()
22343
      if ftype == TType.STOP:
22344
        break
22345
      if fid == 1:
22346
        if ftype == TType.LIST:
22347
          self.itemIds = []
13493 amit.gupta 22348
          (_etype425, _size422) = iprot.readListBegin()
22349
          for _i426 in xrange(_size422):
22350
            _elem427 = iprot.readI64();
22351
            self.itemIds.append(_elem427)
7306 rajveer 22352
          iprot.readListEnd()
22353
        else:
22354
          iprot.skip(ftype)
22355
      else:
22356
        iprot.skip(ftype)
22357
      iprot.readFieldEnd()
22358
    iprot.readStructEnd()
22359
 
22360
  def write(self, oprot):
22361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22363
      return
22364
    oprot.writeStructBegin('getStorePricings_args')
22365
    if self.itemIds is not None:
22366
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
22367
      oprot.writeListBegin(TType.I64, len(self.itemIds))
13493 amit.gupta 22368
      for iter428 in self.itemIds:
22369
        oprot.writeI64(iter428)
7306 rajveer 22370
      oprot.writeListEnd()
22371
      oprot.writeFieldEnd()
22372
    oprot.writeFieldStop()
22373
    oprot.writeStructEnd()
22374
 
22375
  def validate(self):
22376
    return
22377
 
22378
 
22379
  def __repr__(self):
22380
    L = ['%s=%r' % (key, value)
22381
      for key, value in self.__dict__.iteritems()]
22382
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22383
 
22384
  def __eq__(self, other):
22385
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22386
 
22387
  def __ne__(self, other):
22388
    return not (self == other)
22389
 
22390
class getStorePricings_result:
22391
  """
22392
  Attributes:
22393
   - success
22394
  """
22395
 
22396
  thrift_spec = (
22397
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
22398
  )
22399
 
22400
  def __init__(self, success=None,):
22401
    self.success = success
22402
 
22403
  def read(self, iprot):
22404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22406
      return
22407
    iprot.readStructBegin()
22408
    while True:
22409
      (fname, ftype, fid) = iprot.readFieldBegin()
22410
      if ftype == TType.STOP:
22411
        break
22412
      if fid == 0:
22413
        if ftype == TType.LIST:
22414
          self.success = []
13493 amit.gupta 22415
          (_etype432, _size429) = iprot.readListBegin()
22416
          for _i433 in xrange(_size429):
22417
            _elem434 = StorePricing()
22418
            _elem434.read(iprot)
22419
            self.success.append(_elem434)
7306 rajveer 22420
          iprot.readListEnd()
22421
        else:
22422
          iprot.skip(ftype)
22423
      else:
22424
        iprot.skip(ftype)
22425
      iprot.readFieldEnd()
22426
    iprot.readStructEnd()
22427
 
22428
  def write(self, oprot):
22429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22431
      return
22432
    oprot.writeStructBegin('getStorePricings_result')
22433
    if self.success is not None:
22434
      oprot.writeFieldBegin('success', TType.LIST, 0)
22435
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 22436
      for iter435 in self.success:
22437
        iter435.write(oprot)
7306 rajveer 22438
      oprot.writeListEnd()
22439
      oprot.writeFieldEnd()
22440
    oprot.writeFieldStop()
22441
    oprot.writeStructEnd()
22442
 
22443
  def validate(self):
22444
    return
22445
 
22446
 
22447
  def __repr__(self):
22448
    L = ['%s=%r' % (key, value)
22449
      for key, value in self.__dict__.iteritems()]
22450
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22451
 
22452
  def __eq__(self, other):
22453
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22454
 
22455
  def __ne__(self, other):
22456
    return not (self == other)
22457
 
7265 rajveer 22458
class updateStorePricing_args:
22459
  """
22460
  Attributes:
22461
   - sp
7382 rajveer 22462
   - allColors
7265 rajveer 22463
  """
22464
 
22465
  thrift_spec = (
22466
    None, # 0
22467
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 22468
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 22469
  )
22470
 
7382 rajveer 22471
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 22472
    self.sp = sp
7382 rajveer 22473
    self.allColors = allColors
7265 rajveer 22474
 
22475
  def read(self, iprot):
22476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22478
      return
22479
    iprot.readStructBegin()
22480
    while True:
22481
      (fname, ftype, fid) = iprot.readFieldBegin()
22482
      if ftype == TType.STOP:
22483
        break
22484
      if fid == 1:
22485
        if ftype == TType.STRUCT:
22486
          self.sp = StorePricing()
22487
          self.sp.read(iprot)
22488
        else:
22489
          iprot.skip(ftype)
7382 rajveer 22490
      elif fid == 2:
22491
        if ftype == TType.BOOL:
22492
          self.allColors = iprot.readBool();
22493
        else:
22494
          iprot.skip(ftype)
7265 rajveer 22495
      else:
22496
        iprot.skip(ftype)
22497
      iprot.readFieldEnd()
22498
    iprot.readStructEnd()
22499
 
22500
  def write(self, oprot):
22501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22503
      return
22504
    oprot.writeStructBegin('updateStorePricing_args')
22505
    if self.sp is not None:
22506
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
22507
      self.sp.write(oprot)
22508
      oprot.writeFieldEnd()
7382 rajveer 22509
    if self.allColors is not None:
22510
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
22511
      oprot.writeBool(self.allColors)
22512
      oprot.writeFieldEnd()
7265 rajveer 22513
    oprot.writeFieldStop()
22514
    oprot.writeStructEnd()
22515
 
22516
  def validate(self):
22517
    return
22518
 
22519
 
22520
  def __repr__(self):
22521
    L = ['%s=%r' % (key, value)
22522
      for key, value in self.__dict__.iteritems()]
22523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22524
 
22525
  def __eq__(self, other):
22526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22527
 
22528
  def __ne__(self, other):
22529
    return not (self == other)
22530
 
22531
class updateStorePricing_result:
22532
 
22533
  thrift_spec = (
22534
  )
22535
 
22536
  def read(self, iprot):
22537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22539
      return
22540
    iprot.readStructBegin()
22541
    while True:
22542
      (fname, ftype, fid) = iprot.readFieldBegin()
22543
      if ftype == TType.STOP:
22544
        break
22545
      else:
22546
        iprot.skip(ftype)
22547
      iprot.readFieldEnd()
22548
    iprot.readStructEnd()
22549
 
22550
  def write(self, oprot):
22551
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22552
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22553
      return
22554
    oprot.writeStructBegin('updateStorePricing_result')
22555
    oprot.writeFieldStop()
22556
    oprot.writeStructEnd()
22557
 
22558
  def validate(self):
22559
    return
22560
 
22561
 
22562
  def __repr__(self):
22563
    L = ['%s=%r' % (key, value)
22564
      for key, value in self.__dict__.iteritems()]
22565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22566
 
22567
  def __eq__(self, other):
22568
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22569
 
22570
  def __ne__(self, other):
22571
    return not (self == other)
7281 kshitij.so 22572
 
22573
class getAllAmazonListedItems_args:
22574
 
22575
  thrift_spec = (
22576
  )
22577
 
22578
  def read(self, iprot):
22579
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22580
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22581
      return
22582
    iprot.readStructBegin()
22583
    while True:
22584
      (fname, ftype, fid) = iprot.readFieldBegin()
22585
      if ftype == TType.STOP:
22586
        break
22587
      else:
22588
        iprot.skip(ftype)
22589
      iprot.readFieldEnd()
22590
    iprot.readStructEnd()
22591
 
22592
  def write(self, oprot):
22593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22595
      return
22596
    oprot.writeStructBegin('getAllAmazonListedItems_args')
22597
    oprot.writeFieldStop()
22598
    oprot.writeStructEnd()
22599
 
22600
  def validate(self):
22601
    return
22602
 
22603
 
22604
  def __repr__(self):
22605
    L = ['%s=%r' % (key, value)
22606
      for key, value in self.__dict__.iteritems()]
22607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22608
 
22609
  def __eq__(self, other):
22610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22611
 
22612
  def __ne__(self, other):
22613
    return not (self == other)
22614
 
22615
class getAllAmazonListedItems_result:
22616
  """
22617
  Attributes:
22618
   - success
22619
  """
22620
 
22621
  thrift_spec = (
22622
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22623
  )
22624
 
22625
  def __init__(self, success=None,):
22626
    self.success = success
22627
 
22628
  def read(self, iprot):
22629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22631
      return
22632
    iprot.readStructBegin()
22633
    while True:
22634
      (fname, ftype, fid) = iprot.readFieldBegin()
22635
      if ftype == TType.STOP:
22636
        break
22637
      if fid == 0:
22638
        if ftype == TType.LIST:
22639
          self.success = []
13493 amit.gupta 22640
          (_etype439, _size436) = iprot.readListBegin()
22641
          for _i440 in xrange(_size436):
22642
            _elem441 = Amazonlisted()
22643
            _elem441.read(iprot)
22644
            self.success.append(_elem441)
7281 kshitij.so 22645
          iprot.readListEnd()
22646
        else:
22647
          iprot.skip(ftype)
22648
      else:
22649
        iprot.skip(ftype)
22650
      iprot.readFieldEnd()
22651
    iprot.readStructEnd()
22652
 
22653
  def write(self, oprot):
22654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22656
      return
22657
    oprot.writeStructBegin('getAllAmazonListedItems_result')
22658
    if self.success is not None:
22659
      oprot.writeFieldBegin('success', TType.LIST, 0)
22660
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 22661
      for iter442 in self.success:
22662
        iter442.write(oprot)
7281 kshitij.so 22663
      oprot.writeListEnd()
22664
      oprot.writeFieldEnd()
22665
    oprot.writeFieldStop()
22666
    oprot.writeStructEnd()
22667
 
22668
  def validate(self):
22669
    return
22670
 
22671
 
22672
  def __repr__(self):
22673
    L = ['%s=%r' % (key, value)
22674
      for key, value in self.__dict__.iteritems()]
22675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22676
 
22677
  def __eq__(self, other):
22678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22679
 
22680
  def __ne__(self, other):
22681
    return not (self == other)
22682
 
8619 kshitij.so 22683
class searchAmazonItems_args:
22684
  """
22685
  Attributes:
22686
   - searchTerm
22687
   - offset
22688
   - limit
22689
  """
22690
 
22691
  thrift_spec = (
22692
    None, # 0
22693
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22694
    (2, TType.I64, 'offset', None, None, ), # 2
22695
    (3, TType.I64, 'limit', None, None, ), # 3
22696
  )
22697
 
22698
  def __init__(self, searchTerm=None, offset=None, limit=None,):
22699
    self.searchTerm = searchTerm
22700
    self.offset = offset
22701
    self.limit = limit
22702
 
22703
  def read(self, iprot):
22704
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22705
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22706
      return
22707
    iprot.readStructBegin()
22708
    while True:
22709
      (fname, ftype, fid) = iprot.readFieldBegin()
22710
      if ftype == TType.STOP:
22711
        break
22712
      if fid == 1:
22713
        if ftype == TType.LIST:
22714
          self.searchTerm = []
13493 amit.gupta 22715
          (_etype446, _size443) = iprot.readListBegin()
22716
          for _i447 in xrange(_size443):
22717
            _elem448 = iprot.readString();
22718
            self.searchTerm.append(_elem448)
8619 kshitij.so 22719
          iprot.readListEnd()
22720
        else:
22721
          iprot.skip(ftype)
22722
      elif fid == 2:
22723
        if ftype == TType.I64:
22724
          self.offset = iprot.readI64();
22725
        else:
22726
          iprot.skip(ftype)
22727
      elif fid == 3:
22728
        if ftype == TType.I64:
22729
          self.limit = iprot.readI64();
22730
        else:
22731
          iprot.skip(ftype)
22732
      else:
22733
        iprot.skip(ftype)
22734
      iprot.readFieldEnd()
22735
    iprot.readStructEnd()
22736
 
22737
  def write(self, oprot):
22738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22740
      return
22741
    oprot.writeStructBegin('searchAmazonItems_args')
22742
    if self.searchTerm is not None:
22743
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22744
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 22745
      for iter449 in self.searchTerm:
22746
        oprot.writeString(iter449)
8619 kshitij.so 22747
      oprot.writeListEnd()
22748
      oprot.writeFieldEnd()
22749
    if self.offset is not None:
22750
      oprot.writeFieldBegin('offset', TType.I64, 2)
22751
      oprot.writeI64(self.offset)
22752
      oprot.writeFieldEnd()
22753
    if self.limit is not None:
22754
      oprot.writeFieldBegin('limit', TType.I64, 3)
22755
      oprot.writeI64(self.limit)
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 searchAmazonItems_result:
22776
  """
22777
  Attributes:
22778
   - success
22779
  """
22780
 
22781
  thrift_spec = (
22782
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22783
  )
22784
 
22785
  def __init__(self, success=None,):
22786
    self.success = success
22787
 
22788
  def read(self, iprot):
22789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22791
      return
22792
    iprot.readStructBegin()
22793
    while True:
22794
      (fname, ftype, fid) = iprot.readFieldBegin()
22795
      if ftype == TType.STOP:
22796
        break
22797
      if fid == 0:
22798
        if ftype == TType.LIST:
22799
          self.success = []
13493 amit.gupta 22800
          (_etype453, _size450) = iprot.readListBegin()
22801
          for _i454 in xrange(_size450):
22802
            _elem455 = Amazonlisted()
22803
            _elem455.read(iprot)
22804
            self.success.append(_elem455)
8619 kshitij.so 22805
          iprot.readListEnd()
22806
        else:
22807
          iprot.skip(ftype)
22808
      else:
22809
        iprot.skip(ftype)
22810
      iprot.readFieldEnd()
22811
    iprot.readStructEnd()
22812
 
22813
  def write(self, oprot):
22814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22816
      return
22817
    oprot.writeStructBegin('searchAmazonItems_result')
22818
    if self.success is not None:
22819
      oprot.writeFieldBegin('success', TType.LIST, 0)
22820
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 22821
      for iter456 in self.success:
22822
        iter456.write(oprot)
8619 kshitij.so 22823
      oprot.writeListEnd()
22824
      oprot.writeFieldEnd()
22825
    oprot.writeFieldStop()
22826
    oprot.writeStructEnd()
22827
 
22828
  def validate(self):
22829
    return
22830
 
22831
 
22832
  def __repr__(self):
22833
    L = ['%s=%r' % (key, value)
22834
      for key, value in self.__dict__.iteritems()]
22835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22836
 
22837
  def __eq__(self, other):
22838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22839
 
22840
  def __ne__(self, other):
22841
    return not (self == other)
22842
 
22843
class getAmazonSearchResultCount_args:
22844
  """
22845
  Attributes:
22846
   - searchTerm
22847
  """
22848
 
22849
  thrift_spec = (
22850
    None, # 0
22851
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22852
  )
22853
 
22854
  def __init__(self, searchTerm=None,):
22855
    self.searchTerm = searchTerm
22856
 
22857
  def read(self, iprot):
22858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22860
      return
22861
    iprot.readStructBegin()
22862
    while True:
22863
      (fname, ftype, fid) = iprot.readFieldBegin()
22864
      if ftype == TType.STOP:
22865
        break
22866
      if fid == 1:
22867
        if ftype == TType.LIST:
22868
          self.searchTerm = []
13493 amit.gupta 22869
          (_etype460, _size457) = iprot.readListBegin()
22870
          for _i461 in xrange(_size457):
22871
            _elem462 = iprot.readString();
22872
            self.searchTerm.append(_elem462)
8619 kshitij.so 22873
          iprot.readListEnd()
22874
        else:
22875
          iprot.skip(ftype)
22876
      else:
22877
        iprot.skip(ftype)
22878
      iprot.readFieldEnd()
22879
    iprot.readStructEnd()
22880
 
22881
  def write(self, oprot):
22882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22884
      return
22885
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
22886
    if self.searchTerm is not None:
22887
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22888
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 22889
      for iter463 in self.searchTerm:
22890
        oprot.writeString(iter463)
8619 kshitij.so 22891
      oprot.writeListEnd()
22892
      oprot.writeFieldEnd()
22893
    oprot.writeFieldStop()
22894
    oprot.writeStructEnd()
22895
 
22896
  def validate(self):
22897
    return
22898
 
22899
 
22900
  def __repr__(self):
22901
    L = ['%s=%r' % (key, value)
22902
      for key, value in self.__dict__.iteritems()]
22903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22904
 
22905
  def __eq__(self, other):
22906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22907
 
22908
  def __ne__(self, other):
22909
    return not (self == other)
22910
 
22911
class getAmazonSearchResultCount_result:
22912
  """
22913
  Attributes:
22914
   - success
22915
  """
22916
 
22917
  thrift_spec = (
22918
    (0, TType.I64, 'success', None, None, ), # 0
22919
  )
22920
 
22921
  def __init__(self, success=None,):
22922
    self.success = success
22923
 
22924
  def read(self, iprot):
22925
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22926
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22927
      return
22928
    iprot.readStructBegin()
22929
    while True:
22930
      (fname, ftype, fid) = iprot.readFieldBegin()
22931
      if ftype == TType.STOP:
22932
        break
22933
      if fid == 0:
22934
        if ftype == TType.I64:
22935
          self.success = iprot.readI64();
22936
        else:
22937
          iprot.skip(ftype)
22938
      else:
22939
        iprot.skip(ftype)
22940
      iprot.readFieldEnd()
22941
    iprot.readStructEnd()
22942
 
22943
  def write(self, oprot):
22944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22946
      return
22947
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
22948
    if self.success is not None:
22949
      oprot.writeFieldBegin('success', TType.I64, 0)
22950
      oprot.writeI64(self.success)
22951
      oprot.writeFieldEnd()
22952
    oprot.writeFieldStop()
22953
    oprot.writeStructEnd()
22954
 
22955
  def validate(self):
22956
    return
22957
 
22958
 
22959
  def __repr__(self):
22960
    L = ['%s=%r' % (key, value)
22961
      for key, value in self.__dict__.iteritems()]
22962
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22963
 
22964
  def __eq__(self, other):
22965
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22966
 
22967
  def __ne__(self, other):
22968
    return not (self == other)
22969
 
22970
class getCountForAmazonlistedItems_args:
22971
 
22972
  thrift_spec = (
22973
  )
22974
 
22975
  def read(self, iprot):
22976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22978
      return
22979
    iprot.readStructBegin()
22980
    while True:
22981
      (fname, ftype, fid) = iprot.readFieldBegin()
22982
      if ftype == TType.STOP:
22983
        break
22984
      else:
22985
        iprot.skip(ftype)
22986
      iprot.readFieldEnd()
22987
    iprot.readStructEnd()
22988
 
22989
  def write(self, oprot):
22990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22992
      return
22993
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
22994
    oprot.writeFieldStop()
22995
    oprot.writeStructEnd()
22996
 
22997
  def validate(self):
22998
    return
22999
 
23000
 
23001
  def __repr__(self):
23002
    L = ['%s=%r' % (key, value)
23003
      for key, value in self.__dict__.iteritems()]
23004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23005
 
23006
  def __eq__(self, other):
23007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23008
 
23009
  def __ne__(self, other):
23010
    return not (self == other)
23011
 
23012
class getCountForAmazonlistedItems_result:
23013
  """
23014
  Attributes:
23015
   - success
23016
  """
23017
 
23018
  thrift_spec = (
23019
    (0, TType.I64, 'success', None, None, ), # 0
23020
  )
23021
 
23022
  def __init__(self, success=None,):
23023
    self.success = success
23024
 
23025
  def read(self, iprot):
23026
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23027
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23028
      return
23029
    iprot.readStructBegin()
23030
    while True:
23031
      (fname, ftype, fid) = iprot.readFieldBegin()
23032
      if ftype == TType.STOP:
23033
        break
23034
      if fid == 0:
23035
        if ftype == TType.I64:
23036
          self.success = iprot.readI64();
23037
        else:
23038
          iprot.skip(ftype)
23039
      else:
23040
        iprot.skip(ftype)
23041
      iprot.readFieldEnd()
23042
    iprot.readStructEnd()
23043
 
23044
  def write(self, oprot):
23045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23047
      return
23048
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
23049
    if self.success is not None:
23050
      oprot.writeFieldBegin('success', TType.I64, 0)
23051
      oprot.writeI64(self.success)
23052
      oprot.writeFieldEnd()
23053
    oprot.writeFieldStop()
23054
    oprot.writeStructEnd()
23055
 
23056
  def validate(self):
23057
    return
23058
 
23059
 
23060
  def __repr__(self):
23061
    L = ['%s=%r' % (key, value)
23062
      for key, value in self.__dict__.iteritems()]
23063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23064
 
23065
  def __eq__(self, other):
23066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23067
 
23068
  def __ne__(self, other):
23069
    return not (self == other)
23070
 
7281 kshitij.so 23071
class getAmazonItemDetails_args:
23072
  """
23073
  Attributes:
23074
   - itemId
23075
  """
23076
 
23077
  thrift_spec = (
23078
    None, # 0
23079
    (1, TType.I64, 'itemId', None, None, ), # 1
23080
  )
23081
 
23082
  def __init__(self, itemId=None,):
23083
    self.itemId = itemId
23084
 
23085
  def read(self, iprot):
23086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23088
      return
23089
    iprot.readStructBegin()
23090
    while True:
23091
      (fname, ftype, fid) = iprot.readFieldBegin()
23092
      if ftype == TType.STOP:
23093
        break
23094
      if fid == 1:
23095
        if ftype == TType.I64:
23096
          self.itemId = iprot.readI64();
23097
        else:
23098
          iprot.skip(ftype)
23099
      else:
23100
        iprot.skip(ftype)
23101
      iprot.readFieldEnd()
23102
    iprot.readStructEnd()
23103
 
23104
  def write(self, oprot):
23105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23107
      return
23108
    oprot.writeStructBegin('getAmazonItemDetails_args')
23109
    if self.itemId is not None:
23110
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23111
      oprot.writeI64(self.itemId)
23112
      oprot.writeFieldEnd()
23113
    oprot.writeFieldStop()
23114
    oprot.writeStructEnd()
23115
 
23116
  def validate(self):
23117
    return
23118
 
23119
 
23120
  def __repr__(self):
23121
    L = ['%s=%r' % (key, value)
23122
      for key, value in self.__dict__.iteritems()]
23123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23124
 
23125
  def __eq__(self, other):
23126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23127
 
23128
  def __ne__(self, other):
23129
    return not (self == other)
23130
 
23131
class getAmazonItemDetails_result:
23132
  """
23133
  Attributes:
23134
   - success
23135
  """
23136
 
23137
  thrift_spec = (
23138
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
23139
  )
23140
 
23141
  def __init__(self, success=None,):
23142
    self.success = success
23143
 
23144
  def read(self, iprot):
23145
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23146
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23147
      return
23148
    iprot.readStructBegin()
23149
    while True:
23150
      (fname, ftype, fid) = iprot.readFieldBegin()
23151
      if ftype == TType.STOP:
23152
        break
23153
      if fid == 0:
23154
        if ftype == TType.STRUCT:
23155
          self.success = Amazonlisted()
23156
          self.success.read(iprot)
23157
        else:
23158
          iprot.skip(ftype)
23159
      else:
23160
        iprot.skip(ftype)
23161
      iprot.readFieldEnd()
23162
    iprot.readStructEnd()
23163
 
23164
  def write(self, oprot):
23165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23167
      return
23168
    oprot.writeStructBegin('getAmazonItemDetails_result')
23169
    if self.success is not None:
23170
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23171
      self.success.write(oprot)
23172
      oprot.writeFieldEnd()
23173
    oprot.writeFieldStop()
23174
    oprot.writeStructEnd()
23175
 
23176
  def validate(self):
23177
    return
23178
 
23179
 
23180
  def __repr__(self):
23181
    L = ['%s=%r' % (key, value)
23182
      for key, value in self.__dict__.iteritems()]
23183
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23184
 
23185
  def __eq__(self, other):
23186
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23187
 
23188
  def __ne__(self, other):
23189
    return not (self == other)
23190
 
23191
class updateAmazonItemDetails_args:
23192
  """
23193
  Attributes:
8168 kshitij.so 23194
   - amazonlisted
7281 kshitij.so 23195
  """
23196
 
23197
  thrift_spec = (
23198
    None, # 0
8168 kshitij.so 23199
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 23200
  )
23201
 
8168 kshitij.so 23202
  def __init__(self, amazonlisted=None,):
23203
    self.amazonlisted = amazonlisted
7281 kshitij.so 23204
 
23205
  def read(self, iprot):
23206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23208
      return
23209
    iprot.readStructBegin()
23210
    while True:
23211
      (fname, ftype, fid) = iprot.readFieldBegin()
23212
      if ftype == TType.STOP:
23213
        break
23214
      if fid == 1:
8168 kshitij.so 23215
        if ftype == TType.STRUCT:
23216
          self.amazonlisted = Amazonlisted()
23217
          self.amazonlisted.read(iprot)
7281 kshitij.so 23218
        else:
23219
          iprot.skip(ftype)
23220
      else:
23221
        iprot.skip(ftype)
23222
      iprot.readFieldEnd()
23223
    iprot.readStructEnd()
23224
 
23225
  def write(self, oprot):
23226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23228
      return
23229
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 23230
    if self.amazonlisted is not None:
23231
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
23232
      self.amazonlisted.write(oprot)
7281 kshitij.so 23233
      oprot.writeFieldEnd()
23234
    oprot.writeFieldStop()
23235
    oprot.writeStructEnd()
23236
 
23237
  def validate(self):
23238
    return
23239
 
23240
 
23241
  def __repr__(self):
23242
    L = ['%s=%r' % (key, value)
23243
      for key, value in self.__dict__.iteritems()]
23244
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23245
 
23246
  def __eq__(self, other):
23247
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23248
 
23249
  def __ne__(self, other):
23250
    return not (self == other)
23251
 
23252
class updateAmazonItemDetails_result:
23253
 
23254
  thrift_spec = (
23255
  )
23256
 
23257
  def read(self, iprot):
23258
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23259
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23260
      return
23261
    iprot.readStructBegin()
23262
    while True:
23263
      (fname, ftype, fid) = iprot.readFieldBegin()
23264
      if ftype == TType.STOP:
23265
        break
23266
      else:
23267
        iprot.skip(ftype)
23268
      iprot.readFieldEnd()
23269
    iprot.readStructEnd()
23270
 
23271
  def write(self, oprot):
23272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23274
      return
23275
    oprot.writeStructBegin('updateAmazonItemDetails_result')
23276
    oprot.writeFieldStop()
23277
    oprot.writeStructEnd()
23278
 
23279
  def validate(self):
23280
    return
23281
 
23282
 
23283
  def __repr__(self):
23284
    L = ['%s=%r' % (key, value)
23285
      for key, value in self.__dict__.iteritems()]
23286
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23287
 
23288
  def __eq__(self, other):
23289
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23290
 
23291
  def __ne__(self, other):
23292
    return not (self == other)
23293
 
23294
class addAmazonItem_args:
23295
  """
23296
  Attributes:
23297
   - amazonlisted
23298
  """
23299
 
23300
  thrift_spec = (
23301
    None, # 0
23302
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
23303
  )
23304
 
23305
  def __init__(self, amazonlisted=None,):
23306
    self.amazonlisted = amazonlisted
23307
 
23308
  def read(self, iprot):
23309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23311
      return
23312
    iprot.readStructBegin()
23313
    while True:
23314
      (fname, ftype, fid) = iprot.readFieldBegin()
23315
      if ftype == TType.STOP:
23316
        break
23317
      if fid == 1:
23318
        if ftype == TType.STRUCT:
23319
          self.amazonlisted = Amazonlisted()
23320
          self.amazonlisted.read(iprot)
23321
        else:
23322
          iprot.skip(ftype)
23323
      else:
23324
        iprot.skip(ftype)
23325
      iprot.readFieldEnd()
23326
    iprot.readStructEnd()
23327
 
23328
  def write(self, oprot):
23329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23331
      return
23332
    oprot.writeStructBegin('addAmazonItem_args')
23333
    if self.amazonlisted is not None:
23334
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
23335
      self.amazonlisted.write(oprot)
23336
      oprot.writeFieldEnd()
23337
    oprot.writeFieldStop()
23338
    oprot.writeStructEnd()
23339
 
23340
  def validate(self):
23341
    return
23342
 
23343
 
23344
  def __repr__(self):
23345
    L = ['%s=%r' % (key, value)
23346
      for key, value in self.__dict__.iteritems()]
23347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23348
 
23349
  def __eq__(self, other):
23350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23351
 
23352
  def __ne__(self, other):
23353
    return not (self == other)
23354
 
23355
class addAmazonItem_result:
23356
 
23357
  thrift_spec = (
23358
  )
23359
 
23360
  def read(self, iprot):
23361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23363
      return
23364
    iprot.readStructBegin()
23365
    while True:
23366
      (fname, ftype, fid) = iprot.readFieldBegin()
23367
      if ftype == TType.STOP:
23368
        break
23369
      else:
23370
        iprot.skip(ftype)
23371
      iprot.readFieldEnd()
23372
    iprot.readStructEnd()
23373
 
23374
  def write(self, oprot):
23375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23377
      return
23378
    oprot.writeStructBegin('addAmazonItem_result')
23379
    oprot.writeFieldStop()
23380
    oprot.writeStructEnd()
23381
 
23382
  def validate(self):
23383
    return
23384
 
23385
 
23386
  def __repr__(self):
23387
    L = ['%s=%r' % (key, value)
23388
      for key, value in self.__dict__.iteritems()]
23389
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23390
 
23391
  def __eq__(self, other):
23392
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23393
 
23394
  def __ne__(self, other):
23395
    return not (self == other)
7291 vikram.rag 23396
 
23397
class getAsinItems_args:
23398
 
23399
  thrift_spec = (
23400
  )
23401
 
23402
  def read(self, iprot):
23403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23405
      return
23406
    iprot.readStructBegin()
23407
    while True:
23408
      (fname, ftype, fid) = iprot.readFieldBegin()
23409
      if ftype == TType.STOP:
23410
        break
23411
      else:
23412
        iprot.skip(ftype)
23413
      iprot.readFieldEnd()
23414
    iprot.readStructEnd()
23415
 
23416
  def write(self, oprot):
23417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23419
      return
23420
    oprot.writeStructBegin('getAsinItems_args')
23421
    oprot.writeFieldStop()
23422
    oprot.writeStructEnd()
23423
 
23424
  def validate(self):
23425
    return
23426
 
23427
 
23428
  def __repr__(self):
23429
    L = ['%s=%r' % (key, value)
23430
      for key, value in self.__dict__.iteritems()]
23431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23432
 
23433
  def __eq__(self, other):
23434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23435
 
23436
  def __ne__(self, other):
23437
    return not (self == other)
23438
 
23439
class getAsinItems_result:
23440
  """
23441
  Attributes:
23442
   - success
23443
  """
23444
 
23445
  thrift_spec = (
23446
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
23447
  )
23448
 
23449
  def __init__(self, success=None,):
23450
    self.success = success
23451
 
23452
  def read(self, iprot):
23453
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23454
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23455
      return
23456
    iprot.readStructBegin()
23457
    while True:
23458
      (fname, ftype, fid) = iprot.readFieldBegin()
23459
      if ftype == TType.STOP:
23460
        break
23461
      if fid == 0:
23462
        if ftype == TType.LIST:
23463
          self.success = []
13493 amit.gupta 23464
          (_etype467, _size464) = iprot.readListBegin()
23465
          for _i468 in xrange(_size464):
23466
            _elem469 = Item()
23467
            _elem469.read(iprot)
23468
            self.success.append(_elem469)
7291 vikram.rag 23469
          iprot.readListEnd()
23470
        else:
23471
          iprot.skip(ftype)
23472
      else:
23473
        iprot.skip(ftype)
23474
      iprot.readFieldEnd()
23475
    iprot.readStructEnd()
23476
 
23477
  def write(self, oprot):
23478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23480
      return
23481
    oprot.writeStructBegin('getAsinItems_result')
23482
    if self.success is not None:
23483
      oprot.writeFieldBegin('success', TType.LIST, 0)
23484
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 23485
      for iter470 in self.success:
23486
        iter470.write(oprot)
7291 vikram.rag 23487
      oprot.writeListEnd()
23488
      oprot.writeFieldEnd()
23489
    oprot.writeFieldStop()
23490
    oprot.writeStructEnd()
23491
 
23492
  def validate(self):
23493
    return
23494
 
23495
 
23496
  def __repr__(self):
23497
    L = ['%s=%r' % (key, value)
23498
      for key, value in self.__dict__.iteritems()]
23499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23500
 
23501
  def __eq__(self, other):
23502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23503
 
23504
  def __ne__(self, other):
23505
    return not (self == other)
23506
 
23507
class getAllFbaListedItems_args:
23508
 
23509
  thrift_spec = (
23510
  )
23511
 
23512
  def read(self, iprot):
23513
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23514
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23515
      return
23516
    iprot.readStructBegin()
23517
    while True:
23518
      (fname, ftype, fid) = iprot.readFieldBegin()
23519
      if ftype == TType.STOP:
23520
        break
23521
      else:
23522
        iprot.skip(ftype)
23523
      iprot.readFieldEnd()
23524
    iprot.readStructEnd()
23525
 
23526
  def write(self, oprot):
23527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23529
      return
23530
    oprot.writeStructBegin('getAllFbaListedItems_args')
23531
    oprot.writeFieldStop()
23532
    oprot.writeStructEnd()
23533
 
23534
  def validate(self):
23535
    return
23536
 
23537
 
23538
  def __repr__(self):
23539
    L = ['%s=%r' % (key, value)
23540
      for key, value in self.__dict__.iteritems()]
23541
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23542
 
23543
  def __eq__(self, other):
23544
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23545
 
23546
  def __ne__(self, other):
23547
    return not (self == other)
23548
 
23549
class getAllFbaListedItems_result:
23550
  """
23551
  Attributes:
23552
   - success
23553
  """
23554
 
23555
  thrift_spec = (
23556
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23557
  )
23558
 
23559
  def __init__(self, success=None,):
23560
    self.success = success
23561
 
23562
  def read(self, iprot):
23563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23565
      return
23566
    iprot.readStructBegin()
23567
    while True:
23568
      (fname, ftype, fid) = iprot.readFieldBegin()
23569
      if ftype == TType.STOP:
23570
        break
23571
      if fid == 0:
23572
        if ftype == TType.LIST:
23573
          self.success = []
13493 amit.gupta 23574
          (_etype474, _size471) = iprot.readListBegin()
23575
          for _i475 in xrange(_size471):
23576
            _elem476 = Amazonlisted()
23577
            _elem476.read(iprot)
23578
            self.success.append(_elem476)
7291 vikram.rag 23579
          iprot.readListEnd()
23580
        else:
23581
          iprot.skip(ftype)
23582
      else:
23583
        iprot.skip(ftype)
23584
      iprot.readFieldEnd()
23585
    iprot.readStructEnd()
23586
 
23587
  def write(self, oprot):
23588
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23589
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23590
      return
23591
    oprot.writeStructBegin('getAllFbaListedItems_result')
23592
    if self.success is not None:
23593
      oprot.writeFieldBegin('success', TType.LIST, 0)
23594
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 23595
      for iter477 in self.success:
23596
        iter477.write(oprot)
7291 vikram.rag 23597
      oprot.writeListEnd()
23598
      oprot.writeFieldEnd()
23599
    oprot.writeFieldStop()
23600
    oprot.writeStructEnd()
23601
 
23602
  def validate(self):
23603
    return
23604
 
23605
 
23606
  def __repr__(self):
23607
    L = ['%s=%r' % (key, value)
23608
      for key, value in self.__dict__.iteritems()]
23609
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23610
 
23611
  def __eq__(self, other):
23612
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23613
 
23614
  def __ne__(self, other):
23615
    return not (self == other)
23616
 
23617
class getAllNonFbaListedItems_args:
23618
 
23619
  thrift_spec = (
23620
  )
23621
 
23622
  def read(self, iprot):
23623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23625
      return
23626
    iprot.readStructBegin()
23627
    while True:
23628
      (fname, ftype, fid) = iprot.readFieldBegin()
23629
      if ftype == TType.STOP:
23630
        break
23631
      else:
23632
        iprot.skip(ftype)
23633
      iprot.readFieldEnd()
23634
    iprot.readStructEnd()
23635
 
23636
  def write(self, oprot):
23637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23639
      return
23640
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
23641
    oprot.writeFieldStop()
23642
    oprot.writeStructEnd()
23643
 
23644
  def validate(self):
23645
    return
23646
 
23647
 
23648
  def __repr__(self):
23649
    L = ['%s=%r' % (key, value)
23650
      for key, value in self.__dict__.iteritems()]
23651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23652
 
23653
  def __eq__(self, other):
23654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23655
 
23656
  def __ne__(self, other):
23657
    return not (self == other)
23658
 
23659
class getAllNonFbaListedItems_result:
23660
  """
23661
  Attributes:
23662
   - success
23663
  """
23664
 
23665
  thrift_spec = (
23666
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23667
  )
23668
 
23669
  def __init__(self, success=None,):
23670
    self.success = success
23671
 
23672
  def read(self, iprot):
23673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23675
      return
23676
    iprot.readStructBegin()
23677
    while True:
23678
      (fname, ftype, fid) = iprot.readFieldBegin()
23679
      if ftype == TType.STOP:
23680
        break
23681
      if fid == 0:
23682
        if ftype == TType.LIST:
23683
          self.success = []
13493 amit.gupta 23684
          (_etype481, _size478) = iprot.readListBegin()
23685
          for _i482 in xrange(_size478):
23686
            _elem483 = Amazonlisted()
23687
            _elem483.read(iprot)
23688
            self.success.append(_elem483)
7291 vikram.rag 23689
          iprot.readListEnd()
23690
        else:
23691
          iprot.skip(ftype)
23692
      else:
23693
        iprot.skip(ftype)
23694
      iprot.readFieldEnd()
23695
    iprot.readStructEnd()
23696
 
23697
  def write(self, oprot):
23698
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23699
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23700
      return
23701
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
23702
    if self.success is not None:
23703
      oprot.writeFieldBegin('success', TType.LIST, 0)
23704
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 23705
      for iter484 in self.success:
23706
        iter484.write(oprot)
7291 vikram.rag 23707
      oprot.writeListEnd()
23708
      oprot.writeFieldEnd()
23709
    oprot.writeFieldStop()
23710
    oprot.writeStructEnd()
23711
 
23712
  def validate(self):
23713
    return
23714
 
23715
 
23716
  def __repr__(self):
23717
    L = ['%s=%r' % (key, value)
23718
      for key, value in self.__dict__.iteritems()]
23719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23720
 
23721
  def __eq__(self, other):
23722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23723
 
23724
  def __ne__(self, other):
23725
    return not (self == other)
7460 kshitij.so 23726
 
23727
class updateItemInventory_args:
23728
  """
23729
  Attributes:
23730
   - itemId
23731
   - holdInventory
23732
   - defaultInventory
23733
  """
23734
 
23735
  thrift_spec = (
23736
    None, # 0
23737
    (1, TType.I64, 'itemId', None, None, ), # 1
23738
    (2, TType.I64, 'holdInventory', None, None, ), # 2
23739
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
23740
  )
23741
 
23742
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
23743
    self.itemId = itemId
23744
    self.holdInventory = holdInventory
23745
    self.defaultInventory = defaultInventory
23746
 
23747
  def read(self, iprot):
23748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23750
      return
23751
    iprot.readStructBegin()
23752
    while True:
23753
      (fname, ftype, fid) = iprot.readFieldBegin()
23754
      if ftype == TType.STOP:
23755
        break
23756
      if fid == 1:
23757
        if ftype == TType.I64:
23758
          self.itemId = iprot.readI64();
23759
        else:
23760
          iprot.skip(ftype)
23761
      elif fid == 2:
23762
        if ftype == TType.I64:
23763
          self.holdInventory = iprot.readI64();
23764
        else:
23765
          iprot.skip(ftype)
23766
      elif fid == 3:
23767
        if ftype == TType.I64:
23768
          self.defaultInventory = iprot.readI64();
23769
        else:
23770
          iprot.skip(ftype)
23771
      else:
23772
        iprot.skip(ftype)
23773
      iprot.readFieldEnd()
23774
    iprot.readStructEnd()
23775
 
23776
  def write(self, oprot):
23777
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23778
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23779
      return
23780
    oprot.writeStructBegin('updateItemInventory_args')
23781
    if self.itemId is not None:
23782
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23783
      oprot.writeI64(self.itemId)
23784
      oprot.writeFieldEnd()
23785
    if self.holdInventory is not None:
23786
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
23787
      oprot.writeI64(self.holdInventory)
23788
      oprot.writeFieldEnd()
23789
    if self.defaultInventory is not None:
23790
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
23791
      oprot.writeI64(self.defaultInventory)
23792
      oprot.writeFieldEnd()
23793
    oprot.writeFieldStop()
23794
    oprot.writeStructEnd()
23795
 
23796
  def validate(self):
23797
    return
23798
 
23799
 
23800
  def __repr__(self):
23801
    L = ['%s=%r' % (key, value)
23802
      for key, value in self.__dict__.iteritems()]
23803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23804
 
23805
  def __eq__(self, other):
23806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23807
 
23808
  def __ne__(self, other):
23809
    return not (self == other)
23810
 
23811
class updateItemInventory_result:
23812
  """
23813
  Attributes:
23814
   - success
23815
  """
23816
 
23817
  thrift_spec = (
23818
    (0, TType.BOOL, 'success', None, None, ), # 0
23819
  )
23820
 
23821
  def __init__(self, success=None,):
23822
    self.success = success
23823
 
23824
  def read(self, iprot):
23825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23827
      return
23828
    iprot.readStructBegin()
23829
    while True:
23830
      (fname, ftype, fid) = iprot.readFieldBegin()
23831
      if ftype == TType.STOP:
23832
        break
23833
      if fid == 0:
23834
        if ftype == TType.BOOL:
23835
          self.success = iprot.readBool();
23836
        else:
23837
          iprot.skip(ftype)
23838
      else:
23839
        iprot.skip(ftype)
23840
      iprot.readFieldEnd()
23841
    iprot.readStructEnd()
23842
 
23843
  def write(self, oprot):
23844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23846
      return
23847
    oprot.writeStructBegin('updateItemInventory_result')
23848
    if self.success is not None:
23849
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23850
      oprot.writeBool(self.success)
23851
      oprot.writeFieldEnd()
23852
    oprot.writeFieldStop()
23853
    oprot.writeStructEnd()
23854
 
23855
  def validate(self):
23856
    return
23857
 
23858
 
23859
  def __repr__(self):
23860
    L = ['%s=%r' % (key, value)
23861
      for key, value in self.__dict__.iteritems()]
23862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23863
 
23864
  def __eq__(self, other):
23865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23866
 
23867
  def __ne__(self, other):
23868
    return not (self == other)
7770 kshitij.so 23869
 
23870
class updateTimestampForAmazonFeeds_args:
23871
  """
23872
  Attributes:
23873
   - type
23874
   - sku
23875
   - timestamp
23876
  """
23877
 
23878
  thrift_spec = (
23879
    None, # 0
23880
    (1, TType.STRING, 'type', None, None, ), # 1
23881
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
23882
    (3, TType.I64, 'timestamp', None, None, ), # 3
23883
  )
23884
 
23885
  def __init__(self, type=None, sku=None, timestamp=None,):
23886
    self.type = type
23887
    self.sku = sku
23888
    self.timestamp = timestamp
23889
 
23890
  def read(self, iprot):
23891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23893
      return
23894
    iprot.readStructBegin()
23895
    while True:
23896
      (fname, ftype, fid) = iprot.readFieldBegin()
23897
      if ftype == TType.STOP:
23898
        break
23899
      if fid == 1:
23900
        if ftype == TType.STRING:
23901
          self.type = iprot.readString();
23902
        else:
23903
          iprot.skip(ftype)
23904
      elif fid == 2:
23905
        if ftype == TType.LIST:
23906
          self.sku = []
13493 amit.gupta 23907
          (_etype488, _size485) = iprot.readListBegin()
23908
          for _i489 in xrange(_size485):
23909
            _elem490 = iprot.readI64();
23910
            self.sku.append(_elem490)
7770 kshitij.so 23911
          iprot.readListEnd()
23912
        else:
23913
          iprot.skip(ftype)
23914
      elif fid == 3:
23915
        if ftype == TType.I64:
23916
          self.timestamp = iprot.readI64();
23917
        else:
23918
          iprot.skip(ftype)
23919
      else:
23920
        iprot.skip(ftype)
23921
      iprot.readFieldEnd()
23922
    iprot.readStructEnd()
23923
 
23924
  def write(self, oprot):
23925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23927
      return
23928
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
23929
    if self.type is not None:
23930
      oprot.writeFieldBegin('type', TType.STRING, 1)
23931
      oprot.writeString(self.type)
23932
      oprot.writeFieldEnd()
23933
    if self.sku is not None:
23934
      oprot.writeFieldBegin('sku', TType.LIST, 2)
23935
      oprot.writeListBegin(TType.I64, len(self.sku))
13493 amit.gupta 23936
      for iter491 in self.sku:
23937
        oprot.writeI64(iter491)
7770 kshitij.so 23938
      oprot.writeListEnd()
23939
      oprot.writeFieldEnd()
23940
    if self.timestamp is not None:
23941
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
23942
      oprot.writeI64(self.timestamp)
23943
      oprot.writeFieldEnd()
23944
    oprot.writeFieldStop()
23945
    oprot.writeStructEnd()
23946
 
23947
  def validate(self):
23948
    return
23949
 
23950
 
23951
  def __repr__(self):
23952
    L = ['%s=%r' % (key, value)
23953
      for key, value in self.__dict__.iteritems()]
23954
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23955
 
23956
  def __eq__(self, other):
23957
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23958
 
23959
  def __ne__(self, other):
23960
    return not (self == other)
23961
 
23962
class updateTimestampForAmazonFeeds_result:
23963
  """
23964
  Attributes:
23965
   - success
23966
  """
23967
 
23968
  thrift_spec = (
23969
    (0, TType.BOOL, 'success', None, None, ), # 0
23970
  )
23971
 
23972
  def __init__(self, success=None,):
23973
    self.success = success
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 == 0:
23985
        if ftype == TType.BOOL:
23986
          self.success = iprot.readBool();
23987
        else:
23988
          iprot.skip(ftype)
23989
      else:
23990
        iprot.skip(ftype)
23991
      iprot.readFieldEnd()
23992
    iprot.readStructEnd()
23993
 
23994
  def write(self, oprot):
23995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23997
      return
23998
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
23999
    if self.success is not None:
24000
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24001
      oprot.writeBool(self.success)
24002
      oprot.writeFieldEnd()
24003
    oprot.writeFieldStop()
24004
    oprot.writeStructEnd()
24005
 
24006
  def validate(self):
24007
    return
24008
 
24009
 
24010
  def __repr__(self):
24011
    L = ['%s=%r' % (key, value)
24012
      for key, value in self.__dict__.iteritems()]
24013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24014
 
24015
  def __eq__(self, other):
24016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24017
 
24018
  def __ne__(self, other):
24019
    return not (self == other)
7897 amar.kumar 24020
 
24021
class getAllParentCategories_args:
24022
 
24023
  thrift_spec = (
24024
  )
24025
 
24026
  def read(self, iprot):
24027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24029
      return
24030
    iprot.readStructBegin()
24031
    while True:
24032
      (fname, ftype, fid) = iprot.readFieldBegin()
24033
      if ftype == TType.STOP:
24034
        break
24035
      else:
24036
        iprot.skip(ftype)
24037
      iprot.readFieldEnd()
24038
    iprot.readStructEnd()
24039
 
24040
  def write(self, oprot):
24041
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24042
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24043
      return
24044
    oprot.writeStructBegin('getAllParentCategories_args')
24045
    oprot.writeFieldStop()
24046
    oprot.writeStructEnd()
24047
 
24048
  def validate(self):
24049
    return
24050
 
24051
 
24052
  def __repr__(self):
24053
    L = ['%s=%r' % (key, value)
24054
      for key, value in self.__dict__.iteritems()]
24055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24056
 
24057
  def __eq__(self, other):
24058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24059
 
24060
  def __ne__(self, other):
24061
    return not (self == other)
24062
 
24063
class getAllParentCategories_result:
24064
  """
24065
  Attributes:
24066
   - success
24067
  """
24068
 
24069
  thrift_spec = (
24070
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
24071
  )
24072
 
24073
  def __init__(self, success=None,):
24074
    self.success = success
24075
 
24076
  def read(self, iprot):
24077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24079
      return
24080
    iprot.readStructBegin()
24081
    while True:
24082
      (fname, ftype, fid) = iprot.readFieldBegin()
24083
      if ftype == TType.STOP:
24084
        break
24085
      if fid == 0:
24086
        if ftype == TType.LIST:
24087
          self.success = []
13493 amit.gupta 24088
          (_etype495, _size492) = iprot.readListBegin()
24089
          for _i496 in xrange(_size492):
24090
            _elem497 = Category()
24091
            _elem497.read(iprot)
24092
            self.success.append(_elem497)
7897 amar.kumar 24093
          iprot.readListEnd()
24094
        else:
24095
          iprot.skip(ftype)
24096
      else:
24097
        iprot.skip(ftype)
24098
      iprot.readFieldEnd()
24099
    iprot.readStructEnd()
24100
 
24101
  def write(self, oprot):
24102
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24103
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24104
      return
24105
    oprot.writeStructBegin('getAllParentCategories_result')
24106
    if self.success is not None:
24107
      oprot.writeFieldBegin('success', TType.LIST, 0)
24108
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 24109
      for iter498 in self.success:
24110
        iter498.write(oprot)
7897 amar.kumar 24111
      oprot.writeListEnd()
24112
      oprot.writeFieldEnd()
24113
    oprot.writeFieldStop()
24114
    oprot.writeStructEnd()
24115
 
24116
  def validate(self):
24117
    return
24118
 
24119
 
24120
  def __repr__(self):
24121
    L = ['%s=%r' % (key, value)
24122
      for key, value in self.__dict__.iteritems()]
24123
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24124
 
24125
  def __eq__(self, other):
24126
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24127
 
24128
  def __ne__(self, other):
24129
    return not (self == other)
7977 kshitij.so 24130
 
24131
class addPageViewEvent_args:
24132
  """
24133
  Attributes:
24134
   - pageViewEvents
24135
  """
24136
 
24137
  thrift_spec = (
24138
    None, # 0
24139
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
24140
  )
24141
 
24142
  def __init__(self, pageViewEvents=None,):
24143
    self.pageViewEvents = pageViewEvents
24144
 
24145
  def read(self, iprot):
24146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24148
      return
24149
    iprot.readStructBegin()
24150
    while True:
24151
      (fname, ftype, fid) = iprot.readFieldBegin()
24152
      if ftype == TType.STOP:
24153
        break
24154
      if fid == 1:
24155
        if ftype == TType.STRUCT:
24156
          self.pageViewEvents = PageViewEvents()
24157
          self.pageViewEvents.read(iprot)
24158
        else:
24159
          iprot.skip(ftype)
24160
      else:
24161
        iprot.skip(ftype)
24162
      iprot.readFieldEnd()
24163
    iprot.readStructEnd()
24164
 
24165
  def write(self, oprot):
24166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24168
      return
24169
    oprot.writeStructBegin('addPageViewEvent_args')
24170
    if self.pageViewEvents is not None:
24171
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
24172
      self.pageViewEvents.write(oprot)
24173
      oprot.writeFieldEnd()
24174
    oprot.writeFieldStop()
24175
    oprot.writeStructEnd()
24176
 
24177
  def validate(self):
24178
    return
24179
 
24180
 
24181
  def __repr__(self):
24182
    L = ['%s=%r' % (key, value)
24183
      for key, value in self.__dict__.iteritems()]
24184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24185
 
24186
  def __eq__(self, other):
24187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24188
 
24189
  def __ne__(self, other):
24190
    return not (self == other)
24191
 
24192
class addPageViewEvent_result:
24193
 
24194
  thrift_spec = (
24195
  )
24196
 
24197
  def read(self, iprot):
24198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24200
      return
24201
    iprot.readStructBegin()
24202
    while True:
24203
      (fname, ftype, fid) = iprot.readFieldBegin()
24204
      if ftype == TType.STOP:
24205
        break
24206
      else:
24207
        iprot.skip(ftype)
24208
      iprot.readFieldEnd()
24209
    iprot.readStructEnd()
24210
 
24211
  def write(self, oprot):
24212
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24213
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24214
      return
24215
    oprot.writeStructBegin('addPageViewEvent_result')
24216
    oprot.writeFieldStop()
24217
    oprot.writeStructEnd()
24218
 
24219
  def validate(self):
24220
    return
24221
 
24222
 
24223
  def __repr__(self):
24224
    L = ['%s=%r' % (key, value)
24225
      for key, value in self.__dict__.iteritems()]
24226
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24227
 
24228
  def __eq__(self, other):
24229
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24230
 
24231
  def __ne__(self, other):
24232
    return not (self == other)
24233
 
24234
class addCartEvent_args:
24235
  """
24236
  Attributes:
24237
   - cartEvents
24238
  """
24239
 
24240
  thrift_spec = (
24241
    None, # 0
24242
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
24243
  )
24244
 
24245
  def __init__(self, cartEvents=None,):
24246
    self.cartEvents = cartEvents
24247
 
24248
  def read(self, iprot):
24249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24251
      return
24252
    iprot.readStructBegin()
24253
    while True:
24254
      (fname, ftype, fid) = iprot.readFieldBegin()
24255
      if ftype == TType.STOP:
24256
        break
24257
      if fid == 1:
24258
        if ftype == TType.STRUCT:
24259
          self.cartEvents = CartEvents()
24260
          self.cartEvents.read(iprot)
24261
        else:
24262
          iprot.skip(ftype)
24263
      else:
24264
        iprot.skip(ftype)
24265
      iprot.readFieldEnd()
24266
    iprot.readStructEnd()
24267
 
24268
  def write(self, oprot):
24269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24271
      return
24272
    oprot.writeStructBegin('addCartEvent_args')
24273
    if self.cartEvents is not None:
24274
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
24275
      self.cartEvents.write(oprot)
24276
      oprot.writeFieldEnd()
24277
    oprot.writeFieldStop()
24278
    oprot.writeStructEnd()
24279
 
24280
  def validate(self):
24281
    return
24282
 
24283
 
24284
  def __repr__(self):
24285
    L = ['%s=%r' % (key, value)
24286
      for key, value in self.__dict__.iteritems()]
24287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24288
 
24289
  def __eq__(self, other):
24290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24291
 
24292
  def __ne__(self, other):
24293
    return not (self == other)
24294
 
24295
class addCartEvent_result:
24296
 
24297
  thrift_spec = (
24298
  )
24299
 
24300
  def read(self, iprot):
24301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24303
      return
24304
    iprot.readStructBegin()
24305
    while True:
24306
      (fname, ftype, fid) = iprot.readFieldBegin()
24307
      if ftype == TType.STOP:
24308
        break
24309
      else:
24310
        iprot.skip(ftype)
24311
      iprot.readFieldEnd()
24312
    iprot.readStructEnd()
24313
 
24314
  def write(self, oprot):
24315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24317
      return
24318
    oprot.writeStructBegin('addCartEvent_result')
24319
    oprot.writeFieldStop()
24320
    oprot.writeStructEnd()
24321
 
24322
  def validate(self):
24323
    return
24324
 
24325
 
24326
  def __repr__(self):
24327
    L = ['%s=%r' % (key, value)
24328
      for key, value in self.__dict__.iteritems()]
24329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24330
 
24331
  def __eq__(self, other):
24332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24333
 
24334
  def __ne__(self, other):
24335
    return not (self == other)
8139 kshitij.so 24336
 
8182 amar.kumar 24337
class addEbayItem_args:
24338
  """
24339
  Attributes:
24340
   - ebayItem
24341
  """
24342
 
24343
  thrift_spec = (
24344
    None, # 0
24345
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24346
  )
24347
 
24348
  def __init__(self, ebayItem=None,):
24349
    self.ebayItem = ebayItem
24350
 
24351
  def read(self, iprot):
24352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24354
      return
24355
    iprot.readStructBegin()
24356
    while True:
24357
      (fname, ftype, fid) = iprot.readFieldBegin()
24358
      if ftype == TType.STOP:
24359
        break
24360
      if fid == 1:
24361
        if ftype == TType.STRUCT:
24362
          self.ebayItem = EbayItem()
24363
          self.ebayItem.read(iprot)
24364
        else:
24365
          iprot.skip(ftype)
24366
      else:
24367
        iprot.skip(ftype)
24368
      iprot.readFieldEnd()
24369
    iprot.readStructEnd()
24370
 
24371
  def write(self, oprot):
24372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24374
      return
24375
    oprot.writeStructBegin('addEbayItem_args')
24376
    if self.ebayItem is not None:
24377
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24378
      self.ebayItem.write(oprot)
24379
      oprot.writeFieldEnd()
24380
    oprot.writeFieldStop()
24381
    oprot.writeStructEnd()
24382
 
24383
  def validate(self):
24384
    return
24385
 
24386
 
24387
  def __repr__(self):
24388
    L = ['%s=%r' % (key, value)
24389
      for key, value in self.__dict__.iteritems()]
24390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24391
 
24392
  def __eq__(self, other):
24393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24394
 
24395
  def __ne__(self, other):
24396
    return not (self == other)
24397
 
24398
class addEbayItem_result:
24399
 
24400
  thrift_spec = (
24401
  )
24402
 
24403
  def read(self, iprot):
24404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24406
      return
24407
    iprot.readStructBegin()
24408
    while True:
24409
      (fname, ftype, fid) = iprot.readFieldBegin()
24410
      if ftype == TType.STOP:
24411
        break
24412
      else:
24413
        iprot.skip(ftype)
24414
      iprot.readFieldEnd()
24415
    iprot.readStructEnd()
24416
 
24417
  def write(self, oprot):
24418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24420
      return
24421
    oprot.writeStructBegin('addEbayItem_result')
24422
    oprot.writeFieldStop()
24423
    oprot.writeStructEnd()
24424
 
24425
  def validate(self):
24426
    return
24427
 
24428
 
24429
  def __repr__(self):
24430
    L = ['%s=%r' % (key, value)
24431
      for key, value in self.__dict__.iteritems()]
24432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24433
 
24434
  def __eq__(self, other):
24435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24436
 
24437
  def __ne__(self, other):
24438
    return not (self == other)
24439
 
24440
class getEbayItem_args:
24441
  """
24442
  Attributes:
24443
   - listingId
24444
  """
24445
 
24446
  thrift_spec = (
24447
    None, # 0
24448
    (1, TType.STRING, 'listingId', None, None, ), # 1
24449
  )
24450
 
24451
  def __init__(self, listingId=None,):
24452
    self.listingId = listingId
24453
 
24454
  def read(self, iprot):
24455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24457
      return
24458
    iprot.readStructBegin()
24459
    while True:
24460
      (fname, ftype, fid) = iprot.readFieldBegin()
24461
      if ftype == TType.STOP:
24462
        break
24463
      if fid == 1:
24464
        if ftype == TType.STRING:
24465
          self.listingId = iprot.readString();
24466
        else:
24467
          iprot.skip(ftype)
24468
      else:
24469
        iprot.skip(ftype)
24470
      iprot.readFieldEnd()
24471
    iprot.readStructEnd()
24472
 
24473
  def write(self, oprot):
24474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24476
      return
24477
    oprot.writeStructBegin('getEbayItem_args')
24478
    if self.listingId is not None:
24479
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
24480
      oprot.writeString(self.listingId)
24481
      oprot.writeFieldEnd()
24482
    oprot.writeFieldStop()
24483
    oprot.writeStructEnd()
24484
 
24485
  def validate(self):
24486
    return
24487
 
24488
 
24489
  def __repr__(self):
24490
    L = ['%s=%r' % (key, value)
24491
      for key, value in self.__dict__.iteritems()]
24492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24493
 
24494
  def __eq__(self, other):
24495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24496
 
24497
  def __ne__(self, other):
24498
    return not (self == other)
24499
 
24500
class getEbayItem_result:
24501
  """
24502
  Attributes:
24503
   - success
24504
  """
24505
 
24506
  thrift_spec = (
24507
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
24508
  )
24509
 
24510
  def __init__(self, success=None,):
24511
    self.success = success
24512
 
24513
  def read(self, iprot):
24514
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24515
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24516
      return
24517
    iprot.readStructBegin()
24518
    while True:
24519
      (fname, ftype, fid) = iprot.readFieldBegin()
24520
      if ftype == TType.STOP:
24521
        break
24522
      if fid == 0:
24523
        if ftype == TType.STRUCT:
24524
          self.success = EbayItem()
24525
          self.success.read(iprot)
24526
        else:
24527
          iprot.skip(ftype)
24528
      else:
24529
        iprot.skip(ftype)
24530
      iprot.readFieldEnd()
24531
    iprot.readStructEnd()
24532
 
24533
  def write(self, oprot):
24534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24536
      return
24537
    oprot.writeStructBegin('getEbayItem_result')
24538
    if self.success is not None:
24539
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24540
      self.success.write(oprot)
24541
      oprot.writeFieldEnd()
24542
    oprot.writeFieldStop()
24543
    oprot.writeStructEnd()
24544
 
24545
  def validate(self):
24546
    return
24547
 
24548
 
24549
  def __repr__(self):
24550
    L = ['%s=%r' % (key, value)
24551
      for key, value in self.__dict__.iteritems()]
24552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24553
 
24554
  def __eq__(self, other):
24555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24556
 
24557
  def __ne__(self, other):
24558
    return not (self == other)
24559
 
24560
class updateEbayItem_args:
24561
  """
24562
  Attributes:
24563
   - ebayItem
24564
  """
24565
 
24566
  thrift_spec = (
24567
    None, # 0
24568
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24569
  )
24570
 
24571
  def __init__(self, ebayItem=None,):
24572
    self.ebayItem = ebayItem
24573
 
24574
  def read(self, iprot):
24575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24577
      return
24578
    iprot.readStructBegin()
24579
    while True:
24580
      (fname, ftype, fid) = iprot.readFieldBegin()
24581
      if ftype == TType.STOP:
24582
        break
24583
      if fid == 1:
24584
        if ftype == TType.STRUCT:
24585
          self.ebayItem = EbayItem()
24586
          self.ebayItem.read(iprot)
24587
        else:
24588
          iprot.skip(ftype)
24589
      else:
24590
        iprot.skip(ftype)
24591
      iprot.readFieldEnd()
24592
    iprot.readStructEnd()
24593
 
24594
  def write(self, oprot):
24595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24597
      return
24598
    oprot.writeStructBegin('updateEbayItem_args')
24599
    if self.ebayItem is not None:
24600
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24601
      self.ebayItem.write(oprot)
24602
      oprot.writeFieldEnd()
24603
    oprot.writeFieldStop()
24604
    oprot.writeStructEnd()
24605
 
24606
  def validate(self):
24607
    return
24608
 
24609
 
24610
  def __repr__(self):
24611
    L = ['%s=%r' % (key, value)
24612
      for key, value in self.__dict__.iteritems()]
24613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24614
 
24615
  def __eq__(self, other):
24616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24617
 
24618
  def __ne__(self, other):
24619
    return not (self == other)
24620
 
24621
class updateEbayItem_result:
24622
 
24623
  thrift_spec = (
24624
  )
24625
 
24626
  def read(self, iprot):
24627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24629
      return
24630
    iprot.readStructBegin()
24631
    while True:
24632
      (fname, ftype, fid) = iprot.readFieldBegin()
24633
      if ftype == TType.STOP:
24634
        break
24635
      else:
24636
        iprot.skip(ftype)
24637
      iprot.readFieldEnd()
24638
    iprot.readStructEnd()
24639
 
24640
  def write(self, oprot):
24641
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24642
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24643
      return
24644
    oprot.writeStructBegin('updateEbayItem_result')
24645
    oprot.writeFieldStop()
24646
    oprot.writeStructEnd()
24647
 
24648
  def validate(self):
24649
    return
24650
 
24651
 
24652
  def __repr__(self):
24653
    L = ['%s=%r' % (key, value)
24654
      for key, value in self.__dict__.iteritems()]
24655
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24656
 
24657
  def __eq__(self, other):
24658
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24659
 
24660
  def __ne__(self, other):
24661
    return not (self == other)
24662
 
8139 kshitij.so 24663
class getAmazonListedItems_args:
24664
  """
24665
  Attributes:
24666
   - offset
24667
   - limit
24668
  """
24669
 
24670
  thrift_spec = (
24671
    None, # 0
24672
    (1, TType.I64, 'offset', None, None, ), # 1
24673
    (2, TType.I64, 'limit', None, None, ), # 2
24674
  )
24675
 
24676
  def __init__(self, offset=None, limit=None,):
24677
    self.offset = offset
24678
    self.limit = limit
24679
 
24680
  def read(self, iprot):
24681
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24682
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24683
      return
24684
    iprot.readStructBegin()
24685
    while True:
24686
      (fname, ftype, fid) = iprot.readFieldBegin()
24687
      if ftype == TType.STOP:
24688
        break
24689
      if fid == 1:
24690
        if ftype == TType.I64:
24691
          self.offset = iprot.readI64();
24692
        else:
24693
          iprot.skip(ftype)
24694
      elif fid == 2:
24695
        if ftype == TType.I64:
24696
          self.limit = iprot.readI64();
24697
        else:
24698
          iprot.skip(ftype)
24699
      else:
24700
        iprot.skip(ftype)
24701
      iprot.readFieldEnd()
24702
    iprot.readStructEnd()
24703
 
24704
  def write(self, oprot):
24705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24707
      return
24708
    oprot.writeStructBegin('getAmazonListedItems_args')
24709
    if self.offset is not None:
24710
      oprot.writeFieldBegin('offset', TType.I64, 1)
24711
      oprot.writeI64(self.offset)
24712
      oprot.writeFieldEnd()
24713
    if self.limit is not None:
24714
      oprot.writeFieldBegin('limit', TType.I64, 2)
24715
      oprot.writeI64(self.limit)
24716
      oprot.writeFieldEnd()
24717
    oprot.writeFieldStop()
24718
    oprot.writeStructEnd()
24719
 
24720
  def validate(self):
24721
    return
24722
 
24723
 
24724
  def __repr__(self):
24725
    L = ['%s=%r' % (key, value)
24726
      for key, value in self.__dict__.iteritems()]
24727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24728
 
24729
  def __eq__(self, other):
24730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24731
 
24732
  def __ne__(self, other):
24733
    return not (self == other)
24734
 
24735
class getAmazonListedItems_result:
24736
  """
24737
  Attributes:
24738
   - success
24739
  """
24740
 
24741
  thrift_spec = (
24742
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24743
  )
24744
 
24745
  def __init__(self, success=None,):
24746
    self.success = success
24747
 
24748
  def read(self, iprot):
24749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24751
      return
24752
    iprot.readStructBegin()
24753
    while True:
24754
      (fname, ftype, fid) = iprot.readFieldBegin()
24755
      if ftype == TType.STOP:
24756
        break
24757
      if fid == 0:
24758
        if ftype == TType.LIST:
24759
          self.success = []
13493 amit.gupta 24760
          (_etype502, _size499) = iprot.readListBegin()
24761
          for _i503 in xrange(_size499):
24762
            _elem504 = Amazonlisted()
24763
            _elem504.read(iprot)
24764
            self.success.append(_elem504)
8139 kshitij.so 24765
          iprot.readListEnd()
24766
        else:
24767
          iprot.skip(ftype)
24768
      else:
24769
        iprot.skip(ftype)
24770
      iprot.readFieldEnd()
24771
    iprot.readStructEnd()
24772
 
24773
  def write(self, oprot):
24774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24776
      return
24777
    oprot.writeStructBegin('getAmazonListedItems_result')
24778
    if self.success is not None:
24779
      oprot.writeFieldBegin('success', TType.LIST, 0)
24780
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 24781
      for iter505 in self.success:
24782
        iter505.write(oprot)
8139 kshitij.so 24783
      oprot.writeListEnd()
24784
      oprot.writeFieldEnd()
24785
    oprot.writeFieldStop()
24786
    oprot.writeStructEnd()
24787
 
24788
  def validate(self):
24789
    return
24790
 
24791
 
24792
  def __repr__(self):
24793
    L = ['%s=%r' % (key, value)
24794
      for key, value in self.__dict__.iteritems()]
24795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24796
 
24797
  def __eq__(self, other):
24798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24799
 
24800
  def __ne__(self, other):
24801
    return not (self == other)
8168 kshitij.so 24802
 
24803
class updateAmazonAttributesInBulk_args:
24804
  """
24805
  Attributes:
24806
   - amazonlisted
24807
  """
24808
 
24809
  thrift_spec = (
24810
    None, # 0
24811
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
24812
  )
24813
 
24814
  def __init__(self, amazonlisted=None,):
24815
    self.amazonlisted = amazonlisted
24816
 
24817
  def read(self, iprot):
24818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24820
      return
24821
    iprot.readStructBegin()
24822
    while True:
24823
      (fname, ftype, fid) = iprot.readFieldBegin()
24824
      if ftype == TType.STOP:
24825
        break
24826
      if fid == 1:
24827
        if ftype == TType.MAP:
24828
          self.amazonlisted = {}
13493 amit.gupta 24829
          (_ktype507, _vtype508, _size506 ) = iprot.readMapBegin() 
24830
          for _i510 in xrange(_size506):
24831
            _key511 = iprot.readI64();
24832
            _val512 = Amazonlisted()
24833
            _val512.read(iprot)
24834
            self.amazonlisted[_key511] = _val512
8168 kshitij.so 24835
          iprot.readMapEnd()
24836
        else:
24837
          iprot.skip(ftype)
24838
      else:
24839
        iprot.skip(ftype)
24840
      iprot.readFieldEnd()
24841
    iprot.readStructEnd()
24842
 
24843
  def write(self, oprot):
24844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24846
      return
24847
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
24848
    if self.amazonlisted is not None:
24849
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
24850
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
13493 amit.gupta 24851
      for kiter513,viter514 in self.amazonlisted.items():
24852
        oprot.writeI64(kiter513)
24853
        viter514.write(oprot)
8168 kshitij.so 24854
      oprot.writeMapEnd()
24855
      oprot.writeFieldEnd()
24856
    oprot.writeFieldStop()
24857
    oprot.writeStructEnd()
24858
 
24859
  def validate(self):
24860
    return
24861
 
24862
 
24863
  def __repr__(self):
24864
    L = ['%s=%r' % (key, value)
24865
      for key, value in self.__dict__.iteritems()]
24866
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24867
 
24868
  def __eq__(self, other):
24869
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24870
 
24871
  def __ne__(self, other):
24872
    return not (self == other)
24873
 
24874
class updateAmazonAttributesInBulk_result:
24875
  """
24876
  Attributes:
24877
   - success
24878
  """
24879
 
24880
  thrift_spec = (
24881
    (0, TType.BOOL, 'success', None, None, ), # 0
24882
  )
24883
 
24884
  def __init__(self, success=None,):
24885
    self.success = success
24886
 
24887
  def read(self, iprot):
24888
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24889
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24890
      return
24891
    iprot.readStructBegin()
24892
    while True:
24893
      (fname, ftype, fid) = iprot.readFieldBegin()
24894
      if ftype == TType.STOP:
24895
        break
24896
      if fid == 0:
24897
        if ftype == TType.BOOL:
24898
          self.success = iprot.readBool();
24899
        else:
24900
          iprot.skip(ftype)
24901
      else:
24902
        iprot.skip(ftype)
24903
      iprot.readFieldEnd()
24904
    iprot.readStructEnd()
24905
 
24906
  def write(self, oprot):
24907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24909
      return
24910
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
24911
    if self.success is not None:
24912
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24913
      oprot.writeBool(self.success)
24914
      oprot.writeFieldEnd()
24915
    oprot.writeFieldStop()
24916
    oprot.writeStructEnd()
24917
 
24918
  def validate(self):
24919
    return
24920
 
24921
 
24922
  def __repr__(self):
24923
    L = ['%s=%r' % (key, value)
24924
      for key, value in self.__dict__.iteritems()]
24925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24926
 
24927
  def __eq__(self, other):
24928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24929
 
24930
  def __ne__(self, other):
24931
    return not (self == other)
8379 vikram.rag 24932
 
24933
class getAllItemstoListOnFba_args:
24934
 
24935
  thrift_spec = (
24936
  )
24937
 
24938
  def read(self, iprot):
24939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24941
      return
24942
    iprot.readStructBegin()
24943
    while True:
24944
      (fname, ftype, fid) = iprot.readFieldBegin()
24945
      if ftype == TType.STOP:
24946
        break
24947
      else:
24948
        iprot.skip(ftype)
24949
      iprot.readFieldEnd()
24950
    iprot.readStructEnd()
24951
 
24952
  def write(self, oprot):
24953
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24954
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24955
      return
24956
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
24957
    oprot.writeFieldStop()
24958
    oprot.writeStructEnd()
24959
 
24960
  def validate(self):
24961
    return
24962
 
24963
 
24964
  def __repr__(self):
24965
    L = ['%s=%r' % (key, value)
24966
      for key, value in self.__dict__.iteritems()]
24967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24968
 
24969
  def __eq__(self, other):
24970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24971
 
24972
  def __ne__(self, other):
24973
    return not (self == other)
24974
 
24975
class getAllItemstoListOnFba_result:
24976
  """
24977
  Attributes:
24978
   - success
24979
  """
24980
 
24981
  thrift_spec = (
24982
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24983
  )
24984
 
24985
  def __init__(self, success=None,):
24986
    self.success = success
24987
 
24988
  def read(self, iprot):
24989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24991
      return
24992
    iprot.readStructBegin()
24993
    while True:
24994
      (fname, ftype, fid) = iprot.readFieldBegin()
24995
      if ftype == TType.STOP:
24996
        break
24997
      if fid == 0:
24998
        if ftype == TType.LIST:
24999
          self.success = []
13493 amit.gupta 25000
          (_etype518, _size515) = iprot.readListBegin()
25001
          for _i519 in xrange(_size515):
25002
            _elem520 = Amazonlisted()
25003
            _elem520.read(iprot)
25004
            self.success.append(_elem520)
8379 vikram.rag 25005
          iprot.readListEnd()
25006
        else:
25007
          iprot.skip(ftype)
25008
      else:
25009
        iprot.skip(ftype)
25010
      iprot.readFieldEnd()
25011
    iprot.readStructEnd()
25012
 
25013
  def write(self, oprot):
25014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25016
      return
25017
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
25018
    if self.success is not None:
25019
      oprot.writeFieldBegin('success', TType.LIST, 0)
25020
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 25021
      for iter521 in self.success:
25022
        iter521.write(oprot)
8379 vikram.rag 25023
      oprot.writeListEnd()
25024
      oprot.writeFieldEnd()
25025
    oprot.writeFieldStop()
25026
    oprot.writeStructEnd()
25027
 
25028
  def validate(self):
25029
    return
25030
 
25031
 
25032
  def __repr__(self):
25033
    L = ['%s=%r' % (key, value)
25034
      for key, value in self.__dict__.iteritems()]
25035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25036
 
25037
  def __eq__(self, other):
25038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25039
 
25040
  def __ne__(self, other):
25041
    return not (self == other)
25042
 
25043
class getAllItemstoListOnNonFba_args:
25044
 
25045
  thrift_spec = (
25046
  )
25047
 
25048
  def read(self, iprot):
25049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25051
      return
25052
    iprot.readStructBegin()
25053
    while True:
25054
      (fname, ftype, fid) = iprot.readFieldBegin()
25055
      if ftype == TType.STOP:
25056
        break
25057
      else:
25058
        iprot.skip(ftype)
25059
      iprot.readFieldEnd()
25060
    iprot.readStructEnd()
25061
 
25062
  def write(self, oprot):
25063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25065
      return
25066
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
25067
    oprot.writeFieldStop()
25068
    oprot.writeStructEnd()
25069
 
25070
  def validate(self):
25071
    return
25072
 
25073
 
25074
  def __repr__(self):
25075
    L = ['%s=%r' % (key, value)
25076
      for key, value in self.__dict__.iteritems()]
25077
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25078
 
25079
  def __eq__(self, other):
25080
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25081
 
25082
  def __ne__(self, other):
25083
    return not (self == other)
25084
 
25085
class getAllItemstoListOnNonFba_result:
25086
  """
25087
  Attributes:
25088
   - success
25089
  """
25090
 
25091
  thrift_spec = (
25092
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
25093
  )
25094
 
25095
  def __init__(self, success=None,):
25096
    self.success = success
25097
 
25098
  def read(self, iprot):
25099
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25100
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25101
      return
25102
    iprot.readStructBegin()
25103
    while True:
25104
      (fname, ftype, fid) = iprot.readFieldBegin()
25105
      if ftype == TType.STOP:
25106
        break
25107
      if fid == 0:
25108
        if ftype == TType.LIST:
25109
          self.success = []
13493 amit.gupta 25110
          (_etype525, _size522) = iprot.readListBegin()
25111
          for _i526 in xrange(_size522):
25112
            _elem527 = Amazonlisted()
25113
            _elem527.read(iprot)
25114
            self.success.append(_elem527)
8379 vikram.rag 25115
          iprot.readListEnd()
25116
        else:
25117
          iprot.skip(ftype)
25118
      else:
25119
        iprot.skip(ftype)
25120
      iprot.readFieldEnd()
25121
    iprot.readStructEnd()
25122
 
25123
  def write(self, oprot):
25124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25126
      return
25127
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
25128
    if self.success is not None:
25129
      oprot.writeFieldBegin('success', TType.LIST, 0)
25130
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 25131
      for iter528 in self.success:
25132
        iter528.write(oprot)
8379 vikram.rag 25133
      oprot.writeListEnd()
25134
      oprot.writeFieldEnd()
25135
    oprot.writeFieldStop()
25136
    oprot.writeStructEnd()
25137
 
25138
  def validate(self):
25139
    return
25140
 
25141
 
25142
  def __repr__(self):
25143
    L = ['%s=%r' % (key, value)
25144
      for key, value in self.__dict__.iteritems()]
25145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25146
 
25147
  def __eq__(self, other):
25148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25149
 
25150
  def __ne__(self, other):
25151
    return not (self == other)
8616 vikram.rag 25152
 
9242 kshitij.so 25153
class updateAsin_args:
25154
  """
25155
  Attributes:
25156
   - item
25157
  """
8616 vikram.rag 25158
 
25159
  thrift_spec = (
9242 kshitij.so 25160
    None, # 0
25161
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 25162
  )
25163
 
9242 kshitij.so 25164
  def __init__(self, item=None,):
25165
    self.item = item
25166
 
8616 vikram.rag 25167
  def read(self, iprot):
25168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25170
      return
25171
    iprot.readStructBegin()
25172
    while True:
25173
      (fname, ftype, fid) = iprot.readFieldBegin()
25174
      if ftype == TType.STOP:
25175
        break
9242 kshitij.so 25176
      if fid == 1:
25177
        if ftype == TType.MAP:
25178
          self.item = {}
13493 amit.gupta 25179
          (_ktype530, _vtype531, _size529 ) = iprot.readMapBegin() 
25180
          for _i533 in xrange(_size529):
25181
            _key534 = iprot.readI64();
25182
            _val535 = Item()
25183
            _val535.read(iprot)
25184
            self.item[_key534] = _val535
9242 kshitij.so 25185
          iprot.readMapEnd()
25186
        else:
25187
          iprot.skip(ftype)
8616 vikram.rag 25188
      else:
25189
        iprot.skip(ftype)
25190
      iprot.readFieldEnd()
25191
    iprot.readStructEnd()
25192
 
25193
  def write(self, oprot):
25194
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25195
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25196
      return
9242 kshitij.so 25197
    oprot.writeStructBegin('updateAsin_args')
25198
    if self.item is not None:
25199
      oprot.writeFieldBegin('item', TType.MAP, 1)
25200
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
13493 amit.gupta 25201
      for kiter536,viter537 in self.item.items():
25202
        oprot.writeI64(kiter536)
25203
        viter537.write(oprot)
9242 kshitij.so 25204
      oprot.writeMapEnd()
25205
      oprot.writeFieldEnd()
8616 vikram.rag 25206
    oprot.writeFieldStop()
25207
    oprot.writeStructEnd()
25208
 
25209
  def validate(self):
25210
    return
25211
 
25212
 
25213
  def __repr__(self):
25214
    L = ['%s=%r' % (key, value)
25215
      for key, value in self.__dict__.iteritems()]
25216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25217
 
25218
  def __eq__(self, other):
25219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25220
 
25221
  def __ne__(self, other):
25222
    return not (self == other)
25223
 
9242 kshitij.so 25224
class updateAsin_result:
8616 vikram.rag 25225
 
25226
  thrift_spec = (
25227
  )
25228
 
25229
  def read(self, iprot):
25230
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25231
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25232
      return
25233
    iprot.readStructBegin()
25234
    while True:
25235
      (fname, ftype, fid) = iprot.readFieldBegin()
25236
      if ftype == TType.STOP:
25237
        break
25238
      else:
25239
        iprot.skip(ftype)
25240
      iprot.readFieldEnd()
25241
    iprot.readStructEnd()
25242
 
25243
  def write(self, oprot):
25244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25246
      return
9242 kshitij.so 25247
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 25248
    oprot.writeFieldStop()
25249
    oprot.writeStructEnd()
25250
 
25251
  def validate(self):
25252
    return
25253
 
25254
 
25255
  def __repr__(self):
25256
    L = ['%s=%r' % (key, value)
25257
      for key, value in self.__dict__.iteritems()]
25258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25259
 
25260
  def __eq__(self, other):
25261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25262
 
25263
  def __ne__(self, other):
25264
    return not (self == other)
8619 kshitij.so 25265
 
9242 kshitij.so 25266
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 25267
  """
25268
  Attributes:
9242 kshitij.so 25269
   - snapdealitem
8619 kshitij.so 25270
  """
25271
 
9242 kshitij.so 25272
  thrift_spec = None
25273
  def __init__(self, snapdealitem=None,):
25274
    self.snapdealitem = snapdealitem
8619 kshitij.so 25275
 
25276
  def read(self, iprot):
25277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25279
      return
25280
    iprot.readStructBegin()
25281
    while True:
25282
      (fname, ftype, fid) = iprot.readFieldBegin()
25283
      if ftype == TType.STOP:
25284
        break
9242 kshitij.so 25285
      if fid == -1:
25286
        if ftype == TType.STRUCT:
25287
          self.snapdealitem = SnapdealItem()
25288
          self.snapdealitem.read(iprot)
8619 kshitij.so 25289
        else:
25290
          iprot.skip(ftype)
25291
      else:
25292
        iprot.skip(ftype)
25293
      iprot.readFieldEnd()
25294
    iprot.readStructEnd()
25295
 
25296
  def write(self, oprot):
25297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25299
      return
9242 kshitij.so 25300
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
25301
    if self.snapdealitem is not None:
25302
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
25303
      self.snapdealitem.write(oprot)
8619 kshitij.so 25304
      oprot.writeFieldEnd()
25305
    oprot.writeFieldStop()
25306
    oprot.writeStructEnd()
25307
 
25308
  def validate(self):
25309
    return
25310
 
25311
 
25312
  def __repr__(self):
25313
    L = ['%s=%r' % (key, value)
25314
      for key, value in self.__dict__.iteritems()]
25315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25316
 
25317
  def __eq__(self, other):
25318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25319
 
25320
  def __ne__(self, other):
25321
    return not (self == other)
25322
 
9242 kshitij.so 25323
class addOrUpdateSnapdealItem_result:
25324
  """
25325
  Attributes:
25326
   - success
25327
  """
8619 kshitij.so 25328
 
25329
  thrift_spec = (
9242 kshitij.so 25330
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 25331
  )
25332
 
9242 kshitij.so 25333
  def __init__(self, success=None,):
25334
    self.success = success
25335
 
8619 kshitij.so 25336
  def read(self, iprot):
25337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25339
      return
25340
    iprot.readStructBegin()
25341
    while True:
25342
      (fname, ftype, fid) = iprot.readFieldBegin()
25343
      if ftype == TType.STOP:
25344
        break
9242 kshitij.so 25345
      if fid == 0:
25346
        if ftype == TType.BOOL:
25347
          self.success = iprot.readBool();
25348
        else:
25349
          iprot.skip(ftype)
8619 kshitij.so 25350
      else:
25351
        iprot.skip(ftype)
25352
      iprot.readFieldEnd()
25353
    iprot.readStructEnd()
25354
 
25355
  def write(self, oprot):
25356
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25357
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25358
      return
9242 kshitij.so 25359
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
25360
    if self.success is not None:
25361
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25362
      oprot.writeBool(self.success)
25363
      oprot.writeFieldEnd()
8619 kshitij.so 25364
    oprot.writeFieldStop()
25365
    oprot.writeStructEnd()
25366
 
25367
  def validate(self):
25368
    return
25369
 
25370
 
25371
  def __repr__(self):
25372
    L = ['%s=%r' % (key, value)
25373
      for key, value in self.__dict__.iteritems()]
25374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25375
 
25376
  def __eq__(self, other):
25377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25378
 
25379
  def __ne__(self, other):
25380
    return not (self == other)
8739 vikram.rag 25381
 
9242 kshitij.so 25382
class getSnapdealItem_args:
8739 vikram.rag 25383
  """
25384
  Attributes:
9242 kshitij.so 25385
   - item_id
8739 vikram.rag 25386
  """
25387
 
9242 kshitij.so 25388
  thrift_spec = (
25389
    None, # 0
25390
    (1, TType.I64, 'item_id', None, None, ), # 1
25391
  )
8739 vikram.rag 25392
 
9242 kshitij.so 25393
  def __init__(self, item_id=None,):
25394
    self.item_id = item_id
25395
 
8739 vikram.rag 25396
  def read(self, iprot):
25397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25399
      return
25400
    iprot.readStructBegin()
25401
    while True:
25402
      (fname, ftype, fid) = iprot.readFieldBegin()
25403
      if ftype == TType.STOP:
25404
        break
9242 kshitij.so 25405
      if fid == 1:
25406
        if ftype == TType.I64:
25407
          self.item_id = iprot.readI64();
8739 vikram.rag 25408
        else:
25409
          iprot.skip(ftype)
25410
      else:
25411
        iprot.skip(ftype)
25412
      iprot.readFieldEnd()
25413
    iprot.readStructEnd()
25414
 
25415
  def write(self, oprot):
25416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25418
      return
9242 kshitij.so 25419
    oprot.writeStructBegin('getSnapdealItem_args')
25420
    if self.item_id is not None:
25421
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25422
      oprot.writeI64(self.item_id)
8739 vikram.rag 25423
      oprot.writeFieldEnd()
25424
    oprot.writeFieldStop()
25425
    oprot.writeStructEnd()
25426
 
25427
  def validate(self):
25428
    return
25429
 
25430
 
25431
  def __repr__(self):
25432
    L = ['%s=%r' % (key, value)
25433
      for key, value in self.__dict__.iteritems()]
25434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25435
 
25436
  def __eq__(self, other):
25437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25438
 
25439
  def __ne__(self, other):
25440
    return not (self == other)
25441
 
9242 kshitij.so 25442
class getSnapdealItem_result:
8739 vikram.rag 25443
  """
25444
  Attributes:
25445
   - success
25446
  """
25447
 
25448
  thrift_spec = (
9242 kshitij.so 25449
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 25450
  )
25451
 
25452
  def __init__(self, success=None,):
25453
    self.success = success
25454
 
25455
  def read(self, iprot):
25456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25458
      return
25459
    iprot.readStructBegin()
25460
    while True:
25461
      (fname, ftype, fid) = iprot.readFieldBegin()
25462
      if ftype == TType.STOP:
25463
        break
25464
      if fid == 0:
9242 kshitij.so 25465
        if ftype == TType.STRUCT:
25466
          self.success = SnapdealItem()
25467
          self.success.read(iprot)
8739 vikram.rag 25468
        else:
25469
          iprot.skip(ftype)
25470
      else:
25471
        iprot.skip(ftype)
25472
      iprot.readFieldEnd()
25473
    iprot.readStructEnd()
25474
 
25475
  def write(self, oprot):
25476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25478
      return
9242 kshitij.so 25479
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 25480
    if self.success is not None:
9242 kshitij.so 25481
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25482
      self.success.write(oprot)
8739 vikram.rag 25483
      oprot.writeFieldEnd()
25484
    oprot.writeFieldStop()
25485
    oprot.writeStructEnd()
25486
 
25487
  def validate(self):
25488
    return
25489
 
25490
 
25491
  def __repr__(self):
25492
    L = ['%s=%r' % (key, value)
25493
      for key, value in self.__dict__.iteritems()]
25494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25495
 
25496
  def __eq__(self, other):
25497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25498
 
25499
  def __ne__(self, other):
25500
    return not (self == other)
25501
 
9242 kshitij.so 25502
class getSnapdealItemDetails_args:
8739 vikram.rag 25503
  """
25504
  Attributes:
25505
   - item_id
25506
  """
25507
 
25508
  thrift_spec = (
25509
    None, # 0
25510
    (1, TType.I64, 'item_id', None, None, ), # 1
25511
  )
25512
 
25513
  def __init__(self, item_id=None,):
25514
    self.item_id = item_id
25515
 
25516
  def read(self, iprot):
25517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25519
      return
25520
    iprot.readStructBegin()
25521
    while True:
25522
      (fname, ftype, fid) = iprot.readFieldBegin()
25523
      if ftype == TType.STOP:
25524
        break
25525
      if fid == 1:
25526
        if ftype == TType.I64:
25527
          self.item_id = iprot.readI64();
25528
        else:
25529
          iprot.skip(ftype)
25530
      else:
25531
        iprot.skip(ftype)
25532
      iprot.readFieldEnd()
25533
    iprot.readStructEnd()
25534
 
25535
  def write(self, oprot):
25536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25538
      return
9242 kshitij.so 25539
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 25540
    if self.item_id is not None:
25541
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25542
      oprot.writeI64(self.item_id)
25543
      oprot.writeFieldEnd()
25544
    oprot.writeFieldStop()
25545
    oprot.writeStructEnd()
25546
 
25547
  def validate(self):
25548
    return
25549
 
25550
 
25551
  def __repr__(self):
25552
    L = ['%s=%r' % (key, value)
25553
      for key, value in self.__dict__.iteritems()]
25554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25555
 
25556
  def __eq__(self, other):
25557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25558
 
25559
  def __ne__(self, other):
25560
    return not (self == other)
25561
 
9242 kshitij.so 25562
class getSnapdealItemDetails_result:
8739 vikram.rag 25563
  """
25564
  Attributes:
25565
   - success
25566
  """
25567
 
25568
  thrift_spec = (
9242 kshitij.so 25569
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 25570
  )
25571
 
25572
  def __init__(self, success=None,):
25573
    self.success = success
25574
 
25575
  def read(self, iprot):
25576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25578
      return
25579
    iprot.readStructBegin()
25580
    while True:
25581
      (fname, ftype, fid) = iprot.readFieldBegin()
25582
      if ftype == TType.STOP:
25583
        break
25584
      if fid == 0:
25585
        if ftype == TType.STRUCT:
9242 kshitij.so 25586
          self.success = SnapdealItemDetails()
8739 vikram.rag 25587
          self.success.read(iprot)
25588
        else:
25589
          iprot.skip(ftype)
25590
      else:
25591
        iprot.skip(ftype)
25592
      iprot.readFieldEnd()
25593
    iprot.readStructEnd()
25594
 
25595
  def write(self, oprot):
25596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25598
      return
9242 kshitij.so 25599
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 25600
    if self.success is not None:
25601
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25602
      self.success.write(oprot)
25603
      oprot.writeFieldEnd()
25604
    oprot.writeFieldStop()
25605
    oprot.writeStructEnd()
25606
 
25607
  def validate(self):
25608
    return
25609
 
25610
 
25611
  def __repr__(self):
25612
    L = ['%s=%r' % (key, value)
25613
      for key, value in self.__dict__.iteritems()]
25614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25615
 
25616
  def __eq__(self, other):
25617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25618
 
25619
  def __ne__(self, other):
25620
    return not (self == other)
25621
 
25622
class getAllSnapdealItems_args:
25623
 
25624
  thrift_spec = (
25625
  )
25626
 
25627
  def read(self, iprot):
25628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25630
      return
25631
    iprot.readStructBegin()
25632
    while True:
25633
      (fname, ftype, fid) = iprot.readFieldBegin()
25634
      if ftype == TType.STOP:
25635
        break
25636
      else:
25637
        iprot.skip(ftype)
25638
      iprot.readFieldEnd()
25639
    iprot.readStructEnd()
25640
 
25641
  def write(self, oprot):
25642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25644
      return
25645
    oprot.writeStructBegin('getAllSnapdealItems_args')
25646
    oprot.writeFieldStop()
25647
    oprot.writeStructEnd()
25648
 
25649
  def validate(self):
25650
    return
25651
 
25652
 
25653
  def __repr__(self):
25654
    L = ['%s=%r' % (key, value)
25655
      for key, value in self.__dict__.iteritems()]
25656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25657
 
25658
  def __eq__(self, other):
25659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25660
 
25661
  def __ne__(self, other):
25662
    return not (self == other)
25663
 
25664
class getAllSnapdealItems_result:
25665
  """
25666
  Attributes:
25667
   - success
25668
  """
25669
 
25670
  thrift_spec = (
9242 kshitij.so 25671
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 25672
  )
25673
 
25674
  def __init__(self, success=None,):
25675
    self.success = success
25676
 
25677
  def read(self, iprot):
25678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25680
      return
25681
    iprot.readStructBegin()
25682
    while True:
25683
      (fname, ftype, fid) = iprot.readFieldBegin()
25684
      if ftype == TType.STOP:
25685
        break
25686
      if fid == 0:
25687
        if ftype == TType.LIST:
25688
          self.success = []
13493 amit.gupta 25689
          (_etype541, _size538) = iprot.readListBegin()
25690
          for _i542 in xrange(_size538):
25691
            _elem543 = SnapdealItemDetails()
25692
            _elem543.read(iprot)
25693
            self.success.append(_elem543)
9242 kshitij.so 25694
          iprot.readListEnd()
25695
        else:
25696
          iprot.skip(ftype)
25697
      else:
25698
        iprot.skip(ftype)
25699
      iprot.readFieldEnd()
25700
    iprot.readStructEnd()
25701
 
25702
  def write(self, oprot):
25703
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25704
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25705
      return
25706
    oprot.writeStructBegin('getAllSnapdealItems_result')
25707
    if self.success is not None:
25708
      oprot.writeFieldBegin('success', TType.LIST, 0)
25709
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 25710
      for iter544 in self.success:
25711
        iter544.write(oprot)
9242 kshitij.so 25712
      oprot.writeListEnd()
25713
      oprot.writeFieldEnd()
25714
    oprot.writeFieldStop()
25715
    oprot.writeStructEnd()
25716
 
25717
  def validate(self):
25718
    return
25719
 
25720
 
25721
  def __repr__(self):
25722
    L = ['%s=%r' % (key, value)
25723
      for key, value in self.__dict__.iteritems()]
25724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25725
 
25726
  def __eq__(self, other):
25727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25728
 
25729
  def __ne__(self, other):
25730
    return not (self == other)
25731
 
25732
class getSnapdealItems_args:
25733
  """
25734
  Attributes:
25735
   - offset
25736
   - limit
25737
  """
25738
 
25739
  thrift_spec = (
25740
    None, # 0
25741
    (1, TType.I64, 'offset', None, None, ), # 1
25742
    (2, TType.I64, 'limit', None, None, ), # 2
25743
  )
25744
 
25745
  def __init__(self, offset=None, limit=None,):
25746
    self.offset = offset
25747
    self.limit = limit
25748
 
25749
  def read(self, iprot):
25750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25752
      return
25753
    iprot.readStructBegin()
25754
    while True:
25755
      (fname, ftype, fid) = iprot.readFieldBegin()
25756
      if ftype == TType.STOP:
25757
        break
25758
      if fid == 1:
25759
        if ftype == TType.I64:
25760
          self.offset = iprot.readI64();
25761
        else:
25762
          iprot.skip(ftype)
25763
      elif fid == 2:
25764
        if ftype == TType.I64:
25765
          self.limit = iprot.readI64();
25766
        else:
25767
          iprot.skip(ftype)
25768
      else:
25769
        iprot.skip(ftype)
25770
      iprot.readFieldEnd()
25771
    iprot.readStructEnd()
25772
 
25773
  def write(self, oprot):
25774
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25775
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25776
      return
25777
    oprot.writeStructBegin('getSnapdealItems_args')
25778
    if self.offset is not None:
25779
      oprot.writeFieldBegin('offset', TType.I64, 1)
25780
      oprot.writeI64(self.offset)
25781
      oprot.writeFieldEnd()
25782
    if self.limit is not None:
25783
      oprot.writeFieldBegin('limit', TType.I64, 2)
25784
      oprot.writeI64(self.limit)
25785
      oprot.writeFieldEnd()
25786
    oprot.writeFieldStop()
25787
    oprot.writeStructEnd()
25788
 
25789
  def validate(self):
25790
    return
25791
 
25792
 
25793
  def __repr__(self):
25794
    L = ['%s=%r' % (key, value)
25795
      for key, value in self.__dict__.iteritems()]
25796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25797
 
25798
  def __eq__(self, other):
25799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25800
 
25801
  def __ne__(self, other):
25802
    return not (self == other)
25803
 
25804
class getSnapdealItems_result:
25805
  """
25806
  Attributes:
25807
   - success
25808
  """
25809
 
25810
  thrift_spec = (
25811
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25812
  )
25813
 
25814
  def __init__(self, success=None,):
25815
    self.success = success
25816
 
25817
  def read(self, iprot):
25818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25820
      return
25821
    iprot.readStructBegin()
25822
    while True:
25823
      (fname, ftype, fid) = iprot.readFieldBegin()
25824
      if ftype == TType.STOP:
25825
        break
25826
      if fid == 0:
25827
        if ftype == TType.LIST:
25828
          self.success = []
13493 amit.gupta 25829
          (_etype548, _size545) = iprot.readListBegin()
25830
          for _i549 in xrange(_size545):
25831
            _elem550 = SnapdealItemDetails()
25832
            _elem550.read(iprot)
25833
            self.success.append(_elem550)
8739 vikram.rag 25834
          iprot.readListEnd()
25835
        else:
25836
          iprot.skip(ftype)
25837
      else:
25838
        iprot.skip(ftype)
25839
      iprot.readFieldEnd()
25840
    iprot.readStructEnd()
25841
 
25842
  def write(self, oprot):
25843
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25844
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25845
      return
9242 kshitij.so 25846
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 25847
    if self.success is not None:
25848
      oprot.writeFieldBegin('success', TType.LIST, 0)
25849
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 25850
      for iter551 in self.success:
25851
        iter551.write(oprot)
8739 vikram.rag 25852
      oprot.writeListEnd()
25853
      oprot.writeFieldEnd()
25854
    oprot.writeFieldStop()
25855
    oprot.writeStructEnd()
25856
 
25857
  def validate(self):
25858
    return
25859
 
25860
 
25861
  def __repr__(self):
25862
    L = ['%s=%r' % (key, value)
25863
      for key, value in self.__dict__.iteritems()]
25864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25865
 
25866
  def __eq__(self, other):
25867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25868
 
25869
  def __ne__(self, other):
25870
    return not (self == other)
9242 kshitij.so 25871
 
25872
class searchSnapdealItems_args:
25873
  """
25874
  Attributes:
25875
   - searchTerm
25876
   - offset
25877
   - limit
25878
  """
25879
 
25880
  thrift_spec = (
25881
    None, # 0
25882
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25883
    (2, TType.I64, 'offset', None, None, ), # 2
25884
    (3, TType.I64, 'limit', None, None, ), # 3
25885
  )
25886
 
25887
  def __init__(self, searchTerm=None, offset=None, limit=None,):
25888
    self.searchTerm = searchTerm
25889
    self.offset = offset
25890
    self.limit = limit
25891
 
25892
  def read(self, iprot):
25893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25895
      return
25896
    iprot.readStructBegin()
25897
    while True:
25898
      (fname, ftype, fid) = iprot.readFieldBegin()
25899
      if ftype == TType.STOP:
25900
        break
25901
      if fid == 1:
25902
        if ftype == TType.LIST:
25903
          self.searchTerm = []
13493 amit.gupta 25904
          (_etype555, _size552) = iprot.readListBegin()
25905
          for _i556 in xrange(_size552):
25906
            _elem557 = iprot.readString();
25907
            self.searchTerm.append(_elem557)
9242 kshitij.so 25908
          iprot.readListEnd()
25909
        else:
25910
          iprot.skip(ftype)
25911
      elif fid == 2:
25912
        if ftype == TType.I64:
25913
          self.offset = iprot.readI64();
25914
        else:
25915
          iprot.skip(ftype)
25916
      elif fid == 3:
25917
        if ftype == TType.I64:
25918
          self.limit = iprot.readI64();
25919
        else:
25920
          iprot.skip(ftype)
25921
      else:
25922
        iprot.skip(ftype)
25923
      iprot.readFieldEnd()
25924
    iprot.readStructEnd()
25925
 
25926
  def write(self, oprot):
25927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25929
      return
25930
    oprot.writeStructBegin('searchSnapdealItems_args')
25931
    if self.searchTerm is not None:
25932
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25933
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 25934
      for iter558 in self.searchTerm:
25935
        oprot.writeString(iter558)
9242 kshitij.so 25936
      oprot.writeListEnd()
25937
      oprot.writeFieldEnd()
25938
    if self.offset is not None:
25939
      oprot.writeFieldBegin('offset', TType.I64, 2)
25940
      oprot.writeI64(self.offset)
25941
      oprot.writeFieldEnd()
25942
    if self.limit is not None:
25943
      oprot.writeFieldBegin('limit', TType.I64, 3)
25944
      oprot.writeI64(self.limit)
25945
      oprot.writeFieldEnd()
25946
    oprot.writeFieldStop()
25947
    oprot.writeStructEnd()
25948
 
25949
  def validate(self):
25950
    return
25951
 
25952
 
25953
  def __repr__(self):
25954
    L = ['%s=%r' % (key, value)
25955
      for key, value in self.__dict__.iteritems()]
25956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25957
 
25958
  def __eq__(self, other):
25959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25960
 
25961
  def __ne__(self, other):
25962
    return not (self == other)
25963
 
25964
class searchSnapdealItems_result:
25965
  """
25966
  Attributes:
25967
   - success
25968
  """
25969
 
25970
  thrift_spec = (
25971
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25972
  )
25973
 
25974
  def __init__(self, success=None,):
25975
    self.success = success
25976
 
25977
  def read(self, iprot):
25978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25980
      return
25981
    iprot.readStructBegin()
25982
    while True:
25983
      (fname, ftype, fid) = iprot.readFieldBegin()
25984
      if ftype == TType.STOP:
25985
        break
25986
      if fid == 0:
25987
        if ftype == TType.LIST:
25988
          self.success = []
13493 amit.gupta 25989
          (_etype562, _size559) = iprot.readListBegin()
25990
          for _i563 in xrange(_size559):
25991
            _elem564 = SnapdealItemDetails()
25992
            _elem564.read(iprot)
25993
            self.success.append(_elem564)
9242 kshitij.so 25994
          iprot.readListEnd()
25995
        else:
25996
          iprot.skip(ftype)
25997
      else:
25998
        iprot.skip(ftype)
25999
      iprot.readFieldEnd()
26000
    iprot.readStructEnd()
26001
 
26002
  def write(self, oprot):
26003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26005
      return
26006
    oprot.writeStructBegin('searchSnapdealItems_result')
26007
    if self.success is not None:
26008
      oprot.writeFieldBegin('success', TType.LIST, 0)
26009
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 26010
      for iter565 in self.success:
26011
        iter565.write(oprot)
9242 kshitij.so 26012
      oprot.writeListEnd()
26013
      oprot.writeFieldEnd()
26014
    oprot.writeFieldStop()
26015
    oprot.writeStructEnd()
26016
 
26017
  def validate(self):
26018
    return
26019
 
26020
 
26021
  def __repr__(self):
26022
    L = ['%s=%r' % (key, value)
26023
      for key, value in self.__dict__.iteritems()]
26024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26025
 
26026
  def __eq__(self, other):
26027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26028
 
26029
  def __ne__(self, other):
26030
    return not (self == other)
26031
 
26032
class getCountForSnapdealItems_args:
26033
 
26034
  thrift_spec = (
26035
  )
26036
 
26037
  def read(self, iprot):
26038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26040
      return
26041
    iprot.readStructBegin()
26042
    while True:
26043
      (fname, ftype, fid) = iprot.readFieldBegin()
26044
      if ftype == TType.STOP:
26045
        break
26046
      else:
26047
        iprot.skip(ftype)
26048
      iprot.readFieldEnd()
26049
    iprot.readStructEnd()
26050
 
26051
  def write(self, oprot):
26052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26054
      return
26055
    oprot.writeStructBegin('getCountForSnapdealItems_args')
26056
    oprot.writeFieldStop()
26057
    oprot.writeStructEnd()
26058
 
26059
  def validate(self):
26060
    return
26061
 
26062
 
26063
  def __repr__(self):
26064
    L = ['%s=%r' % (key, value)
26065
      for key, value in self.__dict__.iteritems()]
26066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26067
 
26068
  def __eq__(self, other):
26069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26070
 
26071
  def __ne__(self, other):
26072
    return not (self == other)
26073
 
26074
class getCountForSnapdealItems_result:
26075
  """
26076
  Attributes:
26077
   - success
26078
  """
26079
 
26080
  thrift_spec = (
26081
    (0, TType.I64, 'success', None, None, ), # 0
26082
  )
26083
 
26084
  def __init__(self, success=None,):
26085
    self.success = success
26086
 
26087
  def read(self, iprot):
26088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26090
      return
26091
    iprot.readStructBegin()
26092
    while True:
26093
      (fname, ftype, fid) = iprot.readFieldBegin()
26094
      if ftype == TType.STOP:
26095
        break
26096
      if fid == 0:
26097
        if ftype == TType.I64:
26098
          self.success = iprot.readI64();
26099
        else:
26100
          iprot.skip(ftype)
26101
      else:
26102
        iprot.skip(ftype)
26103
      iprot.readFieldEnd()
26104
    iprot.readStructEnd()
26105
 
26106
  def write(self, oprot):
26107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26109
      return
26110
    oprot.writeStructBegin('getCountForSnapdealItems_result')
26111
    if self.success is not None:
26112
      oprot.writeFieldBegin('success', TType.I64, 0)
26113
      oprot.writeI64(self.success)
26114
      oprot.writeFieldEnd()
26115
    oprot.writeFieldStop()
26116
    oprot.writeStructEnd()
26117
 
26118
  def validate(self):
26119
    return
26120
 
26121
 
26122
  def __repr__(self):
26123
    L = ['%s=%r' % (key, value)
26124
      for key, value in self.__dict__.iteritems()]
26125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26126
 
26127
  def __eq__(self, other):
26128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26129
 
26130
  def __ne__(self, other):
26131
    return not (self == other)
26132
 
26133
class getSnapdealSearchResultCount_args:
26134
  """
26135
  Attributes:
26136
   - searchTerm
26137
  """
26138
 
26139
  thrift_spec = (
26140
    None, # 0
26141
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
26142
  )
26143
 
26144
  def __init__(self, searchTerm=None,):
26145
    self.searchTerm = searchTerm
26146
 
26147
  def read(self, iprot):
26148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26150
      return
26151
    iprot.readStructBegin()
26152
    while True:
26153
      (fname, ftype, fid) = iprot.readFieldBegin()
26154
      if ftype == TType.STOP:
26155
        break
26156
      if fid == 1:
26157
        if ftype == TType.LIST:
26158
          self.searchTerm = []
13493 amit.gupta 26159
          (_etype569, _size566) = iprot.readListBegin()
26160
          for _i570 in xrange(_size566):
26161
            _elem571 = iprot.readString();
26162
            self.searchTerm.append(_elem571)
9242 kshitij.so 26163
          iprot.readListEnd()
26164
        else:
26165
          iprot.skip(ftype)
26166
      else:
26167
        iprot.skip(ftype)
26168
      iprot.readFieldEnd()
26169
    iprot.readStructEnd()
26170
 
26171
  def write(self, oprot):
26172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26174
      return
26175
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
26176
    if self.searchTerm is not None:
26177
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
26178
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 26179
      for iter572 in self.searchTerm:
26180
        oprot.writeString(iter572)
9242 kshitij.so 26181
      oprot.writeListEnd()
26182
      oprot.writeFieldEnd()
26183
    oprot.writeFieldStop()
26184
    oprot.writeStructEnd()
26185
 
26186
  def validate(self):
26187
    return
26188
 
26189
 
26190
  def __repr__(self):
26191
    L = ['%s=%r' % (key, value)
26192
      for key, value in self.__dict__.iteritems()]
26193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26194
 
26195
  def __eq__(self, other):
26196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26197
 
26198
  def __ne__(self, other):
26199
    return not (self == other)
26200
 
26201
class getSnapdealSearchResultCount_result:
26202
  """
26203
  Attributes:
26204
   - success
26205
  """
26206
 
26207
  thrift_spec = (
26208
    (0, TType.I64, 'success', None, None, ), # 0
26209
  )
26210
 
26211
  def __init__(self, success=None,):
26212
    self.success = success
26213
 
26214
  def read(self, iprot):
26215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26217
      return
26218
    iprot.readStructBegin()
26219
    while True:
26220
      (fname, ftype, fid) = iprot.readFieldBegin()
26221
      if ftype == TType.STOP:
26222
        break
26223
      if fid == 0:
26224
        if ftype == TType.I64:
26225
          self.success = iprot.readI64();
26226
        else:
26227
          iprot.skip(ftype)
26228
      else:
26229
        iprot.skip(ftype)
26230
      iprot.readFieldEnd()
26231
    iprot.readStructEnd()
26232
 
26233
  def write(self, oprot):
26234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26236
      return
26237
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
26238
    if self.success is not None:
26239
      oprot.writeFieldBegin('success', TType.I64, 0)
26240
      oprot.writeI64(self.success)
26241
      oprot.writeFieldEnd()
26242
    oprot.writeFieldStop()
26243
    oprot.writeStructEnd()
26244
 
26245
  def validate(self):
26246
    return
26247
 
26248
 
26249
  def __repr__(self):
26250
    L = ['%s=%r' % (key, value)
26251
      for key, value in self.__dict__.iteritems()]
26252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26253
 
26254
  def __eq__(self, other):
26255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26256
 
26257
  def __ne__(self, other):
26258
    return not (self == other)
9299 kshitij.so 26259
 
26260
class getPrefferedInsurerForItem_args:
26261
  """
26262
  Attributes:
26263
   - itemId
26264
   - insurerType
26265
  """
26266
 
26267
  thrift_spec = (
26268
    None, # 0
26269
    (1, TType.I64, 'itemId', None, None, ), # 1
26270
    (2, TType.I32, 'insurerType', None, None, ), # 2
26271
  )
26272
 
26273
  def __init__(self, itemId=None, insurerType=None,):
26274
    self.itemId = itemId
26275
    self.insurerType = insurerType
26276
 
26277
  def read(self, iprot):
26278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26280
      return
26281
    iprot.readStructBegin()
26282
    while True:
26283
      (fname, ftype, fid) = iprot.readFieldBegin()
26284
      if ftype == TType.STOP:
26285
        break
26286
      if fid == 1:
26287
        if ftype == TType.I64:
26288
          self.itemId = iprot.readI64();
26289
        else:
26290
          iprot.skip(ftype)
26291
      elif fid == 2:
26292
        if ftype == TType.I32:
26293
          self.insurerType = iprot.readI32();
26294
        else:
26295
          iprot.skip(ftype)
26296
      else:
26297
        iprot.skip(ftype)
26298
      iprot.readFieldEnd()
26299
    iprot.readStructEnd()
26300
 
26301
  def write(self, oprot):
26302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26304
      return
26305
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
26306
    if self.itemId is not None:
26307
      oprot.writeFieldBegin('itemId', TType.I64, 1)
26308
      oprot.writeI64(self.itemId)
26309
      oprot.writeFieldEnd()
26310
    if self.insurerType is not None:
26311
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
26312
      oprot.writeI32(self.insurerType)
26313
      oprot.writeFieldEnd()
26314
    oprot.writeFieldStop()
26315
    oprot.writeStructEnd()
26316
 
26317
  def validate(self):
26318
    return
26319
 
26320
 
26321
  def __repr__(self):
26322
    L = ['%s=%r' % (key, value)
26323
      for key, value in self.__dict__.iteritems()]
26324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26325
 
26326
  def __eq__(self, other):
26327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26328
 
26329
  def __ne__(self, other):
26330
    return not (self == other)
26331
 
26332
class getPrefferedInsurerForItem_result:
26333
  """
26334
  Attributes:
26335
   - success
26336
  """
26337
 
26338
  thrift_spec = (
26339
    (0, TType.I64, 'success', None, None, ), # 0
26340
  )
26341
 
26342
  def __init__(self, success=None,):
26343
    self.success = success
26344
 
26345
  def read(self, iprot):
26346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26348
      return
26349
    iprot.readStructBegin()
26350
    while True:
26351
      (fname, ftype, fid) = iprot.readFieldBegin()
26352
      if ftype == TType.STOP:
26353
        break
26354
      if fid == 0:
26355
        if ftype == TType.I64:
26356
          self.success = iprot.readI64();
26357
        else:
26358
          iprot.skip(ftype)
26359
      else:
26360
        iprot.skip(ftype)
26361
      iprot.readFieldEnd()
26362
    iprot.readStructEnd()
26363
 
26364
  def write(self, oprot):
26365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26367
      return
26368
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
26369
    if self.success is not None:
26370
      oprot.writeFieldBegin('success', TType.I64, 0)
26371
      oprot.writeI64(self.success)
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)
9456 vikram.rag 26390
 
26391
class getSnapdealItembySkuAtSnapdeal_args:
26392
  """
26393
  Attributes:
26394
   - skuAtSnapdeal
26395
  """
26396
 
26397
  thrift_spec = None
26398
  def __init__(self, skuAtSnapdeal=None,):
26399
    self.skuAtSnapdeal = skuAtSnapdeal
26400
 
26401
  def read(self, iprot):
26402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26404
      return
26405
    iprot.readStructBegin()
26406
    while True:
26407
      (fname, ftype, fid) = iprot.readFieldBegin()
26408
      if ftype == TType.STOP:
26409
        break
26410
      if fid == -1:
26411
        if ftype == TType.STRING:
26412
          self.skuAtSnapdeal = iprot.readString();
26413
        else:
26414
          iprot.skip(ftype)
26415
      else:
26416
        iprot.skip(ftype)
26417
      iprot.readFieldEnd()
26418
    iprot.readStructEnd()
26419
 
26420
  def write(self, oprot):
26421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26423
      return
26424
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
26425
    if self.skuAtSnapdeal is not None:
26426
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
26427
      oprot.writeString(self.skuAtSnapdeal)
26428
      oprot.writeFieldEnd()
26429
    oprot.writeFieldStop()
26430
    oprot.writeStructEnd()
26431
 
26432
  def validate(self):
26433
    return
26434
 
26435
 
26436
  def __repr__(self):
26437
    L = ['%s=%r' % (key, value)
26438
      for key, value in self.__dict__.iteritems()]
26439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26440
 
26441
  def __eq__(self, other):
26442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26443
 
26444
  def __ne__(self, other):
26445
    return not (self == other)
26446
 
26447
class getSnapdealItembySkuAtSnapdeal_result:
26448
  """
26449
  Attributes:
26450
   - success
26451
  """
26452
 
26453
  thrift_spec = (
26454
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
26455
  )
26456
 
26457
  def __init__(self, success=None,):
26458
    self.success = success
26459
 
26460
  def read(self, iprot):
26461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26463
      return
26464
    iprot.readStructBegin()
26465
    while True:
26466
      (fname, ftype, fid) = iprot.readFieldBegin()
26467
      if ftype == TType.STOP:
26468
        break
26469
      if fid == 0:
26470
        if ftype == TType.STRUCT:
26471
          self.success = SnapdealItem()
26472
          self.success.read(iprot)
26473
        else:
26474
          iprot.skip(ftype)
26475
      else:
26476
        iprot.skip(ftype)
26477
      iprot.readFieldEnd()
26478
    iprot.readStructEnd()
26479
 
26480
  def write(self, oprot):
26481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26483
      return
26484
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
26485
    if self.success is not None:
26486
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26487
      self.success.write(oprot)
26488
      oprot.writeFieldEnd()
26489
    oprot.writeFieldStop()
26490
    oprot.writeStructEnd()
26491
 
26492
  def validate(self):
26493
    return
26494
 
26495
 
26496
  def __repr__(self):
26497
    L = ['%s=%r' % (key, value)
26498
      for key, value in self.__dict__.iteritems()]
26499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26500
 
26501
  def __eq__(self, other):
26502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26503
 
26504
  def __ne__(self, other):
26505
    return not (self == other)
9621 manish.sha 26506
 
26507
class getProductFeedSubmit_args:
26508
  """
26509
  Attributes:
26510
   - catalogItemId
26511
  """
26512
 
26513
  thrift_spec = (
26514
    None, # 0
26515
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26516
  )
26517
 
26518
  def __init__(self, catalogItemId=None,):
26519
    self.catalogItemId = catalogItemId
26520
 
26521
  def read(self, iprot):
26522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26524
      return
26525
    iprot.readStructBegin()
26526
    while True:
26527
      (fname, ftype, fid) = iprot.readFieldBegin()
26528
      if ftype == TType.STOP:
26529
        break
26530
      if fid == 1:
26531
        if ftype == TType.I64:
26532
          self.catalogItemId = iprot.readI64();
26533
        else:
26534
          iprot.skip(ftype)
26535
      else:
26536
        iprot.skip(ftype)
26537
      iprot.readFieldEnd()
26538
    iprot.readStructEnd()
26539
 
26540
  def write(self, oprot):
26541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26543
      return
26544
    oprot.writeStructBegin('getProductFeedSubmit_args')
26545
    if self.catalogItemId is not None:
26546
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26547
      oprot.writeI64(self.catalogItemId)
26548
      oprot.writeFieldEnd()
26549
    oprot.writeFieldStop()
26550
    oprot.writeStructEnd()
26551
 
26552
  def validate(self):
26553
    return
26554
 
26555
 
26556
  def __repr__(self):
26557
    L = ['%s=%r' % (key, value)
26558
      for key, value in self.__dict__.iteritems()]
26559
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26560
 
26561
  def __eq__(self, other):
26562
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26563
 
26564
  def __ne__(self, other):
26565
    return not (self == other)
26566
 
26567
class getProductFeedSubmit_result:
26568
  """
26569
  Attributes:
26570
   - success
26571
   - cex
26572
  """
26573
 
26574
  thrift_spec = (
26575
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
26576
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26577
  )
26578
 
26579
  def __init__(self, success=None, cex=None,):
26580
    self.success = success
26581
    self.cex = cex
26582
 
26583
  def read(self, iprot):
26584
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26585
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26586
      return
26587
    iprot.readStructBegin()
26588
    while True:
26589
      (fname, ftype, fid) = iprot.readFieldBegin()
26590
      if ftype == TType.STOP:
26591
        break
26592
      if fid == 0:
26593
        if ftype == TType.STRUCT:
26594
          self.success = ProductFeedSubmit()
26595
          self.success.read(iprot)
26596
        else:
26597
          iprot.skip(ftype)
26598
      elif fid == 1:
26599
        if ftype == TType.STRUCT:
26600
          self.cex = CatalogServiceException()
26601
          self.cex.read(iprot)
26602
        else:
26603
          iprot.skip(ftype)
26604
      else:
26605
        iprot.skip(ftype)
26606
      iprot.readFieldEnd()
26607
    iprot.readStructEnd()
26608
 
26609
  def write(self, oprot):
26610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26612
      return
26613
    oprot.writeStructBegin('getProductFeedSubmit_result')
26614
    if self.success is not None:
26615
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26616
      self.success.write(oprot)
26617
      oprot.writeFieldEnd()
26618
    if self.cex is not None:
26619
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26620
      self.cex.write(oprot)
26621
      oprot.writeFieldEnd()
26622
    oprot.writeFieldStop()
26623
    oprot.writeStructEnd()
26624
 
26625
  def validate(self):
26626
    return
26627
 
26628
 
26629
  def __repr__(self):
26630
    L = ['%s=%r' % (key, value)
26631
      for key, value in self.__dict__.iteritems()]
26632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26633
 
26634
  def __eq__(self, other):
26635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26636
 
26637
  def __ne__(self, other):
26638
    return not (self == other)
26639
 
26640
class addProductFeedSubmit_args:
26641
  """
26642
  Attributes:
26643
   - productFeedSubmit
26644
  """
26645
 
26646
  thrift_spec = (
26647
    None, # 0
26648
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26649
  )
26650
 
26651
  def __init__(self, productFeedSubmit=None,):
26652
    self.productFeedSubmit = productFeedSubmit
26653
 
26654
  def read(self, iprot):
26655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26657
      return
26658
    iprot.readStructBegin()
26659
    while True:
26660
      (fname, ftype, fid) = iprot.readFieldBegin()
26661
      if ftype == TType.STOP:
26662
        break
26663
      if fid == 1:
26664
        if ftype == TType.STRUCT:
26665
          self.productFeedSubmit = ProductFeedSubmit()
26666
          self.productFeedSubmit.read(iprot)
26667
        else:
26668
          iprot.skip(ftype)
26669
      else:
26670
        iprot.skip(ftype)
26671
      iprot.readFieldEnd()
26672
    iprot.readStructEnd()
26673
 
26674
  def write(self, oprot):
26675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26677
      return
26678
    oprot.writeStructBegin('addProductFeedSubmit_args')
26679
    if self.productFeedSubmit is not None:
26680
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26681
      self.productFeedSubmit.write(oprot)
26682
      oprot.writeFieldEnd()
26683
    oprot.writeFieldStop()
26684
    oprot.writeStructEnd()
26685
 
26686
  def validate(self):
26687
    return
26688
 
26689
 
26690
  def __repr__(self):
26691
    L = ['%s=%r' % (key, value)
26692
      for key, value in self.__dict__.iteritems()]
26693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26694
 
26695
  def __eq__(self, other):
26696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26697
 
26698
  def __ne__(self, other):
26699
    return not (self == other)
26700
 
26701
class addProductFeedSubmit_result:
26702
  """
26703
  Attributes:
26704
   - success
26705
   - cex
26706
  """
26707
 
26708
  thrift_spec = (
26709
    (0, TType.BOOL, 'success', None, None, ), # 0
26710
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26711
  )
26712
 
26713
  def __init__(self, success=None, cex=None,):
26714
    self.success = success
26715
    self.cex = cex
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 == 0:
26727
        if ftype == TType.BOOL:
26728
          self.success = iprot.readBool();
26729
        else:
26730
          iprot.skip(ftype)
26731
      elif fid == 1:
26732
        if ftype == TType.STRUCT:
26733
          self.cex = CatalogServiceException()
26734
          self.cex.read(iprot)
26735
        else:
26736
          iprot.skip(ftype)
26737
      else:
26738
        iprot.skip(ftype)
26739
      iprot.readFieldEnd()
26740
    iprot.readStructEnd()
26741
 
26742
  def write(self, oprot):
26743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26745
      return
26746
    oprot.writeStructBegin('addProductFeedSubmit_result')
26747
    if self.success is not None:
26748
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26749
      oprot.writeBool(self.success)
26750
      oprot.writeFieldEnd()
26751
    if self.cex is not None:
26752
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26753
      self.cex.write(oprot)
26754
      oprot.writeFieldEnd()
26755
    oprot.writeFieldStop()
26756
    oprot.writeStructEnd()
26757
 
26758
  def validate(self):
26759
    return
26760
 
26761
 
26762
  def __repr__(self):
26763
    L = ['%s=%r' % (key, value)
26764
      for key, value in self.__dict__.iteritems()]
26765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26766
 
26767
  def __eq__(self, other):
26768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26769
 
26770
  def __ne__(self, other):
26771
    return not (self == other)
26772
 
26773
class updateProductFeedSubmit_args:
26774
  """
26775
  Attributes:
26776
   - productFeedSubmit
26777
  """
26778
 
26779
  thrift_spec = (
26780
    None, # 0
26781
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26782
  )
26783
 
26784
  def __init__(self, productFeedSubmit=None,):
26785
    self.productFeedSubmit = productFeedSubmit
26786
 
26787
  def read(self, iprot):
26788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26790
      return
26791
    iprot.readStructBegin()
26792
    while True:
26793
      (fname, ftype, fid) = iprot.readFieldBegin()
26794
      if ftype == TType.STOP:
26795
        break
26796
      if fid == 1:
26797
        if ftype == TType.STRUCT:
26798
          self.productFeedSubmit = ProductFeedSubmit()
26799
          self.productFeedSubmit.read(iprot)
26800
        else:
26801
          iprot.skip(ftype)
26802
      else:
26803
        iprot.skip(ftype)
26804
      iprot.readFieldEnd()
26805
    iprot.readStructEnd()
26806
 
26807
  def write(self, oprot):
26808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26810
      return
26811
    oprot.writeStructBegin('updateProductFeedSubmit_args')
26812
    if self.productFeedSubmit is not None:
26813
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26814
      self.productFeedSubmit.write(oprot)
26815
      oprot.writeFieldEnd()
26816
    oprot.writeFieldStop()
26817
    oprot.writeStructEnd()
26818
 
26819
  def validate(self):
26820
    return
26821
 
26822
 
26823
  def __repr__(self):
26824
    L = ['%s=%r' % (key, value)
26825
      for key, value in self.__dict__.iteritems()]
26826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26827
 
26828
  def __eq__(self, other):
26829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26830
 
26831
  def __ne__(self, other):
26832
    return not (self == other)
26833
 
26834
class updateProductFeedSubmit_result:
26835
  """
26836
  Attributes:
26837
   - success
26838
   - cex
26839
  """
26840
 
26841
  thrift_spec = (
26842
    (0, TType.BOOL, 'success', None, None, ), # 0
26843
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26844
  )
26845
 
26846
  def __init__(self, success=None, cex=None,):
26847
    self.success = success
26848
    self.cex = cex
26849
 
26850
  def read(self, iprot):
26851
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26852
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26853
      return
26854
    iprot.readStructBegin()
26855
    while True:
26856
      (fname, ftype, fid) = iprot.readFieldBegin()
26857
      if ftype == TType.STOP:
26858
        break
26859
      if fid == 0:
26860
        if ftype == TType.BOOL:
26861
          self.success = iprot.readBool();
26862
        else:
26863
          iprot.skip(ftype)
26864
      elif fid == 1:
26865
        if ftype == TType.STRUCT:
26866
          self.cex = CatalogServiceException()
26867
          self.cex.read(iprot)
26868
        else:
26869
          iprot.skip(ftype)
26870
      else:
26871
        iprot.skip(ftype)
26872
      iprot.readFieldEnd()
26873
    iprot.readStructEnd()
26874
 
26875
  def write(self, oprot):
26876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26878
      return
26879
    oprot.writeStructBegin('updateProductFeedSubmit_result')
26880
    if self.success is not None:
26881
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26882
      oprot.writeBool(self.success)
26883
      oprot.writeFieldEnd()
26884
    if self.cex is not None:
26885
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26886
      self.cex.write(oprot)
26887
      oprot.writeFieldEnd()
26888
    oprot.writeFieldStop()
26889
    oprot.writeStructEnd()
26890
 
26891
  def validate(self):
26892
    return
26893
 
26894
 
26895
  def __repr__(self):
26896
    L = ['%s=%r' % (key, value)
26897
      for key, value in self.__dict__.iteritems()]
26898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26899
 
26900
  def __eq__(self, other):
26901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26902
 
26903
  def __ne__(self, other):
26904
    return not (self == other)
26905
 
26906
class deleteProductFeedSubmit_args:
26907
  """
26908
  Attributes:
26909
   - catalogItemId
26910
  """
26911
 
26912
  thrift_spec = (
26913
    None, # 0
26914
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26915
  )
26916
 
26917
  def __init__(self, catalogItemId=None,):
26918
    self.catalogItemId = catalogItemId
26919
 
26920
  def read(self, iprot):
26921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26923
      return
26924
    iprot.readStructBegin()
26925
    while True:
26926
      (fname, ftype, fid) = iprot.readFieldBegin()
26927
      if ftype == TType.STOP:
26928
        break
26929
      if fid == 1:
26930
        if ftype == TType.I64:
26931
          self.catalogItemId = iprot.readI64();
26932
        else:
26933
          iprot.skip(ftype)
26934
      else:
26935
        iprot.skip(ftype)
26936
      iprot.readFieldEnd()
26937
    iprot.readStructEnd()
26938
 
26939
  def write(self, oprot):
26940
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26941
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26942
      return
26943
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
26944
    if self.catalogItemId is not None:
26945
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26946
      oprot.writeI64(self.catalogItemId)
26947
      oprot.writeFieldEnd()
26948
    oprot.writeFieldStop()
26949
    oprot.writeStructEnd()
26950
 
26951
  def validate(self):
26952
    return
26953
 
26954
 
26955
  def __repr__(self):
26956
    L = ['%s=%r' % (key, value)
26957
      for key, value in self.__dict__.iteritems()]
26958
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26959
 
26960
  def __eq__(self, other):
26961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26962
 
26963
  def __ne__(self, other):
26964
    return not (self == other)
26965
 
26966
class deleteProductFeedSubmit_result:
26967
  """
26968
  Attributes:
26969
   - success
26970
   - cex
26971
  """
26972
 
26973
  thrift_spec = (
26974
    (0, TType.BOOL, 'success', None, None, ), # 0
26975
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26976
  )
26977
 
26978
  def __init__(self, success=None, cex=None,):
26979
    self.success = success
26980
    self.cex = cex
26981
 
26982
  def read(self, iprot):
26983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26985
      return
26986
    iprot.readStructBegin()
26987
    while True:
26988
      (fname, ftype, fid) = iprot.readFieldBegin()
26989
      if ftype == TType.STOP:
26990
        break
26991
      if fid == 0:
26992
        if ftype == TType.BOOL:
26993
          self.success = iprot.readBool();
26994
        else:
26995
          iprot.skip(ftype)
26996
      elif fid == 1:
26997
        if ftype == TType.STRUCT:
26998
          self.cex = CatalogServiceException()
26999
          self.cex.read(iprot)
27000
        else:
27001
          iprot.skip(ftype)
27002
      else:
27003
        iprot.skip(ftype)
27004
      iprot.readFieldEnd()
27005
    iprot.readStructEnd()
27006
 
27007
  def write(self, oprot):
27008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27010
      return
27011
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
27012
    if self.success is not None:
27013
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27014
      oprot.writeBool(self.success)
27015
      oprot.writeFieldEnd()
27016
    if self.cex is not None:
27017
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
27018
      self.cex.write(oprot)
27019
      oprot.writeFieldEnd()
27020
    oprot.writeFieldStop()
27021
    oprot.writeStructEnd()
27022
 
27023
  def validate(self):
27024
    return
27025
 
27026
 
27027
  def __repr__(self):
27028
    L = ['%s=%r' % (key, value)
27029
      for key, value in self.__dict__.iteritems()]
27030
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27031
 
27032
  def __eq__(self, other):
27033
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27034
 
27035
  def __ne__(self, other):
27036
    return not (self == other)
27037
 
27038
class getAllProductFeedSubmit_args:
27039
 
27040
  thrift_spec = (
27041
  )
27042
 
27043
  def read(self, iprot):
27044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27046
      return
27047
    iprot.readStructBegin()
27048
    while True:
27049
      (fname, ftype, fid) = iprot.readFieldBegin()
27050
      if ftype == TType.STOP:
27051
        break
27052
      else:
27053
        iprot.skip(ftype)
27054
      iprot.readFieldEnd()
27055
    iprot.readStructEnd()
27056
 
27057
  def write(self, oprot):
27058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27060
      return
27061
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
27062
    oprot.writeFieldStop()
27063
    oprot.writeStructEnd()
27064
 
27065
  def validate(self):
27066
    return
27067
 
27068
 
27069
  def __repr__(self):
27070
    L = ['%s=%r' % (key, value)
27071
      for key, value in self.__dict__.iteritems()]
27072
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27073
 
27074
  def __eq__(self, other):
27075
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27076
 
27077
  def __ne__(self, other):
27078
    return not (self == other)
27079
 
27080
class getAllProductFeedSubmit_result:
27081
  """
27082
  Attributes:
27083
   - success
27084
   - cex
27085
  """
27086
 
27087
  thrift_spec = (
27088
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
27089
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
27090
  )
27091
 
27092
  def __init__(self, success=None, cex=None,):
27093
    self.success = success
27094
    self.cex = cex
27095
 
27096
  def read(self, iprot):
27097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27099
      return
27100
    iprot.readStructBegin()
27101
    while True:
27102
      (fname, ftype, fid) = iprot.readFieldBegin()
27103
      if ftype == TType.STOP:
27104
        break
27105
      if fid == 0:
27106
        if ftype == TType.LIST:
27107
          self.success = []
13493 amit.gupta 27108
          (_etype576, _size573) = iprot.readListBegin()
27109
          for _i577 in xrange(_size573):
27110
            _elem578 = ProductFeedSubmit()
27111
            _elem578.read(iprot)
27112
            self.success.append(_elem578)
9621 manish.sha 27113
          iprot.readListEnd()
27114
        else:
27115
          iprot.skip(ftype)
27116
      elif fid == 1:
27117
        if ftype == TType.STRUCT:
27118
          self.cex = CatalogServiceException()
27119
          self.cex.read(iprot)
27120
        else:
27121
          iprot.skip(ftype)
27122
      else:
27123
        iprot.skip(ftype)
27124
      iprot.readFieldEnd()
27125
    iprot.readStructEnd()
27126
 
27127
  def write(self, oprot):
27128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27130
      return
27131
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
27132
    if self.success is not None:
27133
      oprot.writeFieldBegin('success', TType.LIST, 0)
27134
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 27135
      for iter579 in self.success:
27136
        iter579.write(oprot)
9621 manish.sha 27137
      oprot.writeListEnd()
27138
      oprot.writeFieldEnd()
27139
    if self.cex is not None:
27140
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
27141
      self.cex.write(oprot)
27142
      oprot.writeFieldEnd()
27143
    oprot.writeFieldStop()
27144
    oprot.writeStructEnd()
27145
 
27146
  def validate(self):
27147
    return
27148
 
27149
 
27150
  def __repr__(self):
27151
    L = ['%s=%r' % (key, value)
27152
      for key, value in self.__dict__.iteritems()]
27153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27154
 
27155
  def __eq__(self, other):
27156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27157
 
27158
  def __ne__(self, other):
27159
    return not (self == other)
9724 kshitij.so 27160
 
27161
class getMarketplacedetailsForItem_args:
27162
  """
27163
  Attributes:
27164
   - itemId
27165
   - sourceId
27166
  """
27167
 
27168
  thrift_spec = (
27169
    None, # 0
27170
    (1, TType.I64, 'itemId', None, None, ), # 1
27171
    (2, TType.I64, 'sourceId', None, None, ), # 2
27172
  )
27173
 
27174
  def __init__(self, itemId=None, sourceId=None,):
27175
    self.itemId = itemId
27176
    self.sourceId = sourceId
27177
 
27178
  def read(self, iprot):
27179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27181
      return
27182
    iprot.readStructBegin()
27183
    while True:
27184
      (fname, ftype, fid) = iprot.readFieldBegin()
27185
      if ftype == TType.STOP:
27186
        break
27187
      if fid == 1:
27188
        if ftype == TType.I64:
27189
          self.itemId = iprot.readI64();
27190
        else:
27191
          iprot.skip(ftype)
27192
      elif fid == 2:
27193
        if ftype == TType.I64:
27194
          self.sourceId = iprot.readI64();
27195
        else:
27196
          iprot.skip(ftype)
27197
      else:
27198
        iprot.skip(ftype)
27199
      iprot.readFieldEnd()
27200
    iprot.readStructEnd()
27201
 
27202
  def write(self, oprot):
27203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27205
      return
27206
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
27207
    if self.itemId is not None:
27208
      oprot.writeFieldBegin('itemId', TType.I64, 1)
27209
      oprot.writeI64(self.itemId)
27210
      oprot.writeFieldEnd()
27211
    if self.sourceId is not None:
27212
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
27213
      oprot.writeI64(self.sourceId)
27214
      oprot.writeFieldEnd()
27215
    oprot.writeFieldStop()
27216
    oprot.writeStructEnd()
27217
 
27218
  def validate(self):
27219
    return
27220
 
27221
 
27222
  def __repr__(self):
27223
    L = ['%s=%r' % (key, value)
27224
      for key, value in self.__dict__.iteritems()]
27225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27226
 
27227
  def __eq__(self, other):
27228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27229
 
27230
  def __ne__(self, other):
27231
    return not (self == other)
27232
 
27233
class getMarketplacedetailsForItem_result:
27234
  """
27235
  Attributes:
27236
   - success
27237
  """
27238
 
27239
  thrift_spec = (
27240
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
27241
  )
27242
 
27243
  def __init__(self, success=None,):
27244
    self.success = success
27245
 
27246
  def read(self, iprot):
27247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27249
      return
27250
    iprot.readStructBegin()
27251
    while True:
27252
      (fname, ftype, fid) = iprot.readFieldBegin()
27253
      if ftype == TType.STOP:
27254
        break
27255
      if fid == 0:
27256
        if ftype == TType.STRUCT:
27257
          self.success = MarketplaceItems()
27258
          self.success.read(iprot)
27259
        else:
27260
          iprot.skip(ftype)
27261
      else:
27262
        iprot.skip(ftype)
27263
      iprot.readFieldEnd()
27264
    iprot.readStructEnd()
27265
 
27266
  def write(self, oprot):
27267
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27268
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27269
      return
27270
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
27271
    if self.success is not None:
27272
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27273
      self.success.write(oprot)
27274
      oprot.writeFieldEnd()
27275
    oprot.writeFieldStop()
27276
    oprot.writeStructEnd()
27277
 
27278
  def validate(self):
27279
    return
27280
 
27281
 
27282
  def __repr__(self):
27283
    L = ['%s=%r' % (key, value)
27284
      for key, value in self.__dict__.iteritems()]
27285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27286
 
27287
  def __eq__(self, other):
27288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27289
 
27290
  def __ne__(self, other):
27291
    return not (self == other)
27292
 
27293
class updateMarketplaceAttributesForItem_args:
27294
  """
27295
  Attributes:
27296
   - marketPlaceItem
27297
  """
27298
 
27299
  thrift_spec = (
27300
    None, # 0
27301
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
27302
  )
27303
 
27304
  def __init__(self, marketPlaceItem=None,):
27305
    self.marketPlaceItem = marketPlaceItem
27306
 
27307
  def read(self, iprot):
27308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27310
      return
27311
    iprot.readStructBegin()
27312
    while True:
27313
      (fname, ftype, fid) = iprot.readFieldBegin()
27314
      if ftype == TType.STOP:
27315
        break
27316
      if fid == 1:
27317
        if ftype == TType.STRUCT:
27318
          self.marketPlaceItem = MarketplaceItems()
27319
          self.marketPlaceItem.read(iprot)
27320
        else:
27321
          iprot.skip(ftype)
27322
      else:
27323
        iprot.skip(ftype)
27324
      iprot.readFieldEnd()
27325
    iprot.readStructEnd()
27326
 
27327
  def write(self, oprot):
27328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27330
      return
27331
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
27332
    if self.marketPlaceItem is not None:
27333
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
27334
      self.marketPlaceItem.write(oprot)
27335
      oprot.writeFieldEnd()
27336
    oprot.writeFieldStop()
27337
    oprot.writeStructEnd()
27338
 
27339
  def validate(self):
27340
    return
27341
 
27342
 
27343
  def __repr__(self):
27344
    L = ['%s=%r' % (key, value)
27345
      for key, value in self.__dict__.iteritems()]
27346
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27347
 
27348
  def __eq__(self, other):
27349
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27350
 
27351
  def __ne__(self, other):
27352
    return not (self == other)
27353
 
27354
class updateMarketplaceAttributesForItem_result:
27355
  """
27356
  Attributes:
27357
   - success
27358
  """
27359
 
27360
  thrift_spec = (
27361
    (0, TType.BOOL, 'success', None, None, ), # 0
27362
  )
27363
 
27364
  def __init__(self, success=None,):
27365
    self.success = success
27366
 
27367
  def read(self, iprot):
27368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27370
      return
27371
    iprot.readStructBegin()
27372
    while True:
27373
      (fname, ftype, fid) = iprot.readFieldBegin()
27374
      if ftype == TType.STOP:
27375
        break
27376
      if fid == 0:
27377
        if ftype == TType.BOOL:
27378
          self.success = iprot.readBool();
27379
        else:
27380
          iprot.skip(ftype)
27381
      else:
27382
        iprot.skip(ftype)
27383
      iprot.readFieldEnd()
27384
    iprot.readStructEnd()
27385
 
27386
  def write(self, oprot):
27387
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27388
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27389
      return
27390
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
27391
    if self.success is not None:
27392
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27393
      oprot.writeBool(self.success)
27394
      oprot.writeFieldEnd()
27395
    oprot.writeFieldStop()
27396
    oprot.writeStructEnd()
27397
 
27398
  def validate(self):
27399
    return
27400
 
27401
 
27402
  def __repr__(self):
27403
    L = ['%s=%r' % (key, value)
27404
      for key, value in self.__dict__.iteritems()]
27405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27406
 
27407
  def __eq__(self, other):
27408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27409
 
27410
  def __ne__(self, other):
27411
    return not (self == other)
9776 vikram.rag 27412
 
9779 kshitij.so 27413
class getCostingForMarketplace_args:
27414
  """
27415
  Attributes:
27416
   - source
27417
   - item_id
27418
  """
27419
 
27420
  thrift_spec = (
27421
    None, # 0
27422
    (1, TType.I64, 'source', None, None, ), # 1
27423
    (2, TType.I64, 'item_id', None, None, ), # 2
27424
  )
27425
 
27426
  def __init__(self, source=None, item_id=None,):
27427
    self.source = source
27428
    self.item_id = item_id
27429
 
27430
  def read(self, iprot):
27431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27433
      return
27434
    iprot.readStructBegin()
27435
    while True:
27436
      (fname, ftype, fid) = iprot.readFieldBegin()
27437
      if ftype == TType.STOP:
27438
        break
27439
      if fid == 1:
27440
        if ftype == TType.I64:
27441
          self.source = iprot.readI64();
27442
        else:
27443
          iprot.skip(ftype)
27444
      elif fid == 2:
27445
        if ftype == TType.I64:
27446
          self.item_id = iprot.readI64();
27447
        else:
27448
          iprot.skip(ftype)
27449
      else:
27450
        iprot.skip(ftype)
27451
      iprot.readFieldEnd()
27452
    iprot.readStructEnd()
27453
 
27454
  def write(self, oprot):
27455
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27456
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27457
      return
27458
    oprot.writeStructBegin('getCostingForMarketplace_args')
27459
    if self.source is not None:
27460
      oprot.writeFieldBegin('source', TType.I64, 1)
27461
      oprot.writeI64(self.source)
27462
      oprot.writeFieldEnd()
27463
    if self.item_id is not None:
27464
      oprot.writeFieldBegin('item_id', TType.I64, 2)
27465
      oprot.writeI64(self.item_id)
27466
      oprot.writeFieldEnd()
27467
    oprot.writeFieldStop()
27468
    oprot.writeStructEnd()
27469
 
27470
  def validate(self):
27471
    return
27472
 
27473
 
27474
  def __repr__(self):
27475
    L = ['%s=%r' % (key, value)
27476
      for key, value in self.__dict__.iteritems()]
27477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27478
 
27479
  def __eq__(self, other):
27480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27481
 
27482
  def __ne__(self, other):
27483
    return not (self == other)
27484
 
27485
class getCostingForMarketplace_result:
27486
  """
27487
  Attributes:
27488
   - success
27489
  """
27490
 
27491
  thrift_spec = (
27492
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
27493
  )
27494
 
27495
  def __init__(self, success=None,):
27496
    self.success = success
27497
 
27498
  def read(self, iprot):
27499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27501
      return
27502
    iprot.readStructBegin()
27503
    while True:
27504
      (fname, ftype, fid) = iprot.readFieldBegin()
27505
      if ftype == TType.STOP:
27506
        break
27507
      if fid == 0:
27508
        if ftype == TType.STRUCT:
27509
          self.success = MarketplacePercentage()
27510
          self.success.read(iprot)
27511
        else:
27512
          iprot.skip(ftype)
27513
      else:
27514
        iprot.skip(ftype)
27515
      iprot.readFieldEnd()
27516
    iprot.readStructEnd()
27517
 
27518
  def write(self, oprot):
27519
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27520
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27521
      return
27522
    oprot.writeStructBegin('getCostingForMarketplace_result')
27523
    if self.success is not None:
27524
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27525
      self.success.write(oprot)
27526
      oprot.writeFieldEnd()
27527
    oprot.writeFieldStop()
27528
    oprot.writeStructEnd()
27529
 
27530
  def validate(self):
27531
    return
27532
 
27533
 
27534
  def __repr__(self):
27535
    L = ['%s=%r' % (key, value)
27536
      for key, value in self.__dict__.iteritems()]
27537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27538
 
27539
  def __eq__(self, other):
27540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27541
 
27542
  def __ne__(self, other):
27543
    return not (self == other)
27544
 
9776 vikram.rag 27545
class getMarketPlaceItemsForPriceUpdate_args:
27546
  """
27547
  Attributes:
27548
   - source
27549
  """
27550
 
27551
  thrift_spec = (
27552
    None, # 0
27553
    (1, TType.I64, 'source', None, None, ), # 1
27554
  )
27555
 
27556
  def __init__(self, source=None,):
27557
    self.source = source
27558
 
27559
  def read(self, iprot):
27560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27562
      return
27563
    iprot.readStructBegin()
27564
    while True:
27565
      (fname, ftype, fid) = iprot.readFieldBegin()
27566
      if ftype == TType.STOP:
27567
        break
27568
      if fid == 1:
27569
        if ftype == TType.I64:
27570
          self.source = iprot.readI64();
27571
        else:
27572
          iprot.skip(ftype)
27573
      else:
27574
        iprot.skip(ftype)
27575
      iprot.readFieldEnd()
27576
    iprot.readStructEnd()
27577
 
27578
  def write(self, oprot):
27579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27581
      return
27582
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
27583
    if self.source is not None:
27584
      oprot.writeFieldBegin('source', TType.I64, 1)
27585
      oprot.writeI64(self.source)
27586
      oprot.writeFieldEnd()
27587
    oprot.writeFieldStop()
27588
    oprot.writeStructEnd()
27589
 
27590
  def validate(self):
27591
    return
27592
 
27593
 
27594
  def __repr__(self):
27595
    L = ['%s=%r' % (key, value)
27596
      for key, value in self.__dict__.iteritems()]
27597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27598
 
27599
  def __eq__(self, other):
27600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27601
 
27602
  def __ne__(self, other):
27603
    return not (self == other)
27604
 
27605
class getMarketPlaceItemsForPriceUpdate_result:
27606
  """
27607
  Attributes:
27608
   - success
27609
  """
27610
 
27611
  thrift_spec = (
27612
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
27613
  )
27614
 
27615
  def __init__(self, success=None,):
27616
    self.success = success
27617
 
27618
  def read(self, iprot):
27619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27621
      return
27622
    iprot.readStructBegin()
27623
    while True:
27624
      (fname, ftype, fid) = iprot.readFieldBegin()
27625
      if ftype == TType.STOP:
27626
        break
27627
      if fid == 0:
27628
        if ftype == TType.LIST:
27629
          self.success = []
13493 amit.gupta 27630
          (_etype583, _size580) = iprot.readListBegin()
27631
          for _i584 in xrange(_size580):
27632
            _elem585 = MarketPlaceItemPrice()
27633
            _elem585.read(iprot)
27634
            self.success.append(_elem585)
9776 vikram.rag 27635
          iprot.readListEnd()
27636
        else:
27637
          iprot.skip(ftype)
27638
      else:
27639
        iprot.skip(ftype)
27640
      iprot.readFieldEnd()
27641
    iprot.readStructEnd()
27642
 
27643
  def write(self, oprot):
27644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27646
      return
27647
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
27648
    if self.success is not None:
27649
      oprot.writeFieldBegin('success', TType.LIST, 0)
27650
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 27651
      for iter586 in self.success:
27652
        iter586.write(oprot)
9776 vikram.rag 27653
      oprot.writeListEnd()
27654
      oprot.writeFieldEnd()
27655
    oprot.writeFieldStop()
27656
    oprot.writeStructEnd()
27657
 
27658
  def validate(self):
27659
    return
27660
 
27661
 
27662
  def __repr__(self):
27663
    L = ['%s=%r' % (key, value)
27664
      for key, value in self.__dict__.iteritems()]
27665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27666
 
27667
  def __eq__(self, other):
27668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27669
 
27670
  def __ne__(self, other):
27671
    return not (self == other)
27672
 
27673
class updateMarketPlacePriceUpdateStatus_args:
27674
  """
27675
  Attributes:
27676
   - skulist
27677
   - timestamp
9816 kshitij.so 27678
   - source
9776 vikram.rag 27679
  """
27680
 
27681
  thrift_spec = (
27682
    None, # 0
27683
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
27684
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 27685
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 27686
  )
27687
 
9816 kshitij.so 27688
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 27689
    self.skulist = skulist
27690
    self.timestamp = timestamp
9816 kshitij.so 27691
    self.source = source
9776 vikram.rag 27692
 
27693
  def read(self, iprot):
27694
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27695
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27696
      return
27697
    iprot.readStructBegin()
27698
    while True:
27699
      (fname, ftype, fid) = iprot.readFieldBegin()
27700
      if ftype == TType.STOP:
27701
        break
27702
      if fid == 1:
27703
        if ftype == TType.LIST:
27704
          self.skulist = []
13493 amit.gupta 27705
          (_etype590, _size587) = iprot.readListBegin()
27706
          for _i591 in xrange(_size587):
27707
            _elem592 = iprot.readI64();
27708
            self.skulist.append(_elem592)
9776 vikram.rag 27709
          iprot.readListEnd()
27710
        else:
27711
          iprot.skip(ftype)
27712
      elif fid == 2:
27713
        if ftype == TType.I64:
27714
          self.timestamp = iprot.readI64();
27715
        else:
27716
          iprot.skip(ftype)
9816 kshitij.so 27717
      elif fid == 3:
27718
        if ftype == TType.I64:
27719
          self.source = iprot.readI64();
27720
        else:
27721
          iprot.skip(ftype)
9776 vikram.rag 27722
      else:
27723
        iprot.skip(ftype)
27724
      iprot.readFieldEnd()
27725
    iprot.readStructEnd()
27726
 
27727
  def write(self, oprot):
27728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27730
      return
27731
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
27732
    if self.skulist is not None:
27733
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
27734
      oprot.writeListBegin(TType.I64, len(self.skulist))
13493 amit.gupta 27735
      for iter593 in self.skulist:
27736
        oprot.writeI64(iter593)
9776 vikram.rag 27737
      oprot.writeListEnd()
27738
      oprot.writeFieldEnd()
27739
    if self.timestamp is not None:
27740
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
27741
      oprot.writeI64(self.timestamp)
27742
      oprot.writeFieldEnd()
9816 kshitij.so 27743
    if self.source is not None:
27744
      oprot.writeFieldBegin('source', TType.I64, 3)
27745
      oprot.writeI64(self.source)
27746
      oprot.writeFieldEnd()
9776 vikram.rag 27747
    oprot.writeFieldStop()
27748
    oprot.writeStructEnd()
27749
 
27750
  def validate(self):
27751
    return
27752
 
27753
 
27754
  def __repr__(self):
27755
    L = ['%s=%r' % (key, value)
27756
      for key, value in self.__dict__.iteritems()]
27757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27758
 
27759
  def __eq__(self, other):
27760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27761
 
27762
  def __ne__(self, other):
27763
    return not (self == other)
27764
 
27765
class updateMarketPlacePriceUpdateStatus_result:
27766
 
27767
  thrift_spec = (
27768
  )
27769
 
27770
  def read(self, iprot):
27771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27773
      return
27774
    iprot.readStructBegin()
27775
    while True:
27776
      (fname, ftype, fid) = iprot.readFieldBegin()
27777
      if ftype == TType.STOP:
27778
        break
27779
      else:
27780
        iprot.skip(ftype)
27781
      iprot.readFieldEnd()
27782
    iprot.readStructEnd()
27783
 
27784
  def write(self, oprot):
27785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27787
      return
27788
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
27789
    oprot.writeFieldStop()
27790
    oprot.writeStructEnd()
27791
 
27792
  def validate(self):
27793
    return
27794
 
27795
 
27796
  def __repr__(self):
27797
    L = ['%s=%r' % (key, value)
27798
      for key, value in self.__dict__.iteritems()]
27799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27800
 
27801
  def __eq__(self, other):
27802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27803
 
27804
  def __ne__(self, other):
27805
    return not (self == other)
9861 rajveer 27806
 
27807
class updateItemHoldInventory_args:
27808
  """
27809
  Attributes:
27810
   - itemHoldMap
27811
  """
27812
 
27813
  thrift_spec = (
27814
    None, # 0
27815
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
27816
  )
27817
 
27818
  def __init__(self, itemHoldMap=None,):
27819
    self.itemHoldMap = itemHoldMap
27820
 
27821
  def read(self, iprot):
27822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27824
      return
27825
    iprot.readStructBegin()
27826
    while True:
27827
      (fname, ftype, fid) = iprot.readFieldBegin()
27828
      if ftype == TType.STOP:
27829
        break
27830
      if fid == 1:
27831
        if ftype == TType.MAP:
27832
          self.itemHoldMap = {}
13493 amit.gupta 27833
          (_ktype595, _vtype596, _size594 ) = iprot.readMapBegin() 
27834
          for _i598 in xrange(_size594):
27835
            _key599 = iprot.readI64();
27836
            _val600 = iprot.readI64();
27837
            self.itemHoldMap[_key599] = _val600
9861 rajveer 27838
          iprot.readMapEnd()
27839
        else:
27840
          iprot.skip(ftype)
27841
      else:
27842
        iprot.skip(ftype)
27843
      iprot.readFieldEnd()
27844
    iprot.readStructEnd()
27845
 
27846
  def write(self, oprot):
27847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27849
      return
27850
    oprot.writeStructBegin('updateItemHoldInventory_args')
27851
    if self.itemHoldMap is not None:
27852
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
27853
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
13493 amit.gupta 27854
      for kiter601,viter602 in self.itemHoldMap.items():
27855
        oprot.writeI64(kiter601)
27856
        oprot.writeI64(viter602)
9861 rajveer 27857
      oprot.writeMapEnd()
27858
      oprot.writeFieldEnd()
27859
    oprot.writeFieldStop()
27860
    oprot.writeStructEnd()
27861
 
27862
  def validate(self):
27863
    return
27864
 
27865
 
27866
  def __repr__(self):
27867
    L = ['%s=%r' % (key, value)
27868
      for key, value in self.__dict__.iteritems()]
27869
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27870
 
27871
  def __eq__(self, other):
27872
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27873
 
27874
  def __ne__(self, other):
27875
    return not (self == other)
27876
 
27877
class updateItemHoldInventory_result:
27878
 
27879
  thrift_spec = (
27880
  )
27881
 
27882
  def read(self, iprot):
27883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27885
      return
27886
    iprot.readStructBegin()
27887
    while True:
27888
      (fname, ftype, fid) = iprot.readFieldBegin()
27889
      if ftype == TType.STOP:
27890
        break
27891
      else:
27892
        iprot.skip(ftype)
27893
      iprot.readFieldEnd()
27894
    iprot.readStructEnd()
27895
 
27896
  def write(self, oprot):
27897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27899
      return
27900
    oprot.writeStructBegin('updateItemHoldInventory_result')
27901
    oprot.writeFieldStop()
27902
    oprot.writeStructEnd()
27903
 
27904
  def validate(self):
27905
    return
27906
 
27907
 
27908
  def __repr__(self):
27909
    L = ['%s=%r' % (key, value)
27910
      for key, value in self.__dict__.iteritems()]
27911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27912
 
27913
  def __eq__(self, other):
27914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27915
 
27916
  def __ne__(self, other):
27917
    return not (self == other)
9895 vikram.rag 27918
 
27919
class updateNlcAtMarketplaces_args:
27920
  """
27921
  Attributes:
27922
   - item_id
27923
   - vendor_id
27924
   - nlc
27925
  """
27926
 
27927
  thrift_spec = None
27928
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
27929
    self.item_id = item_id
27930
    self.vendor_id = vendor_id
27931
    self.nlc = nlc
27932
 
27933
  def read(self, iprot):
27934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27936
      return
27937
    iprot.readStructBegin()
27938
    while True:
27939
      (fname, ftype, fid) = iprot.readFieldBegin()
27940
      if ftype == TType.STOP:
27941
        break
27942
      if fid == 1:
27943
        if ftype == TType.I64:
27944
          self.item_id = iprot.readI64();
27945
        else:
27946
          iprot.skip(ftype)
27947
      elif fid == 2:
27948
        if ftype == TType.I64:
27949
          self.vendor_id = iprot.readI64();
27950
        else:
27951
          iprot.skip(ftype)
27952
      elif fid == -1:
27953
        if ftype == TType.DOUBLE:
27954
          self.nlc = iprot.readDouble();
27955
        else:
27956
          iprot.skip(ftype)
27957
      else:
27958
        iprot.skip(ftype)
27959
      iprot.readFieldEnd()
27960
    iprot.readStructEnd()
27961
 
27962
  def write(self, oprot):
27963
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27964
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27965
      return
27966
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
27967
    if self.nlc is not None:
27968
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
27969
      oprot.writeDouble(self.nlc)
27970
      oprot.writeFieldEnd()
27971
    if self.item_id is not None:
27972
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27973
      oprot.writeI64(self.item_id)
27974
      oprot.writeFieldEnd()
27975
    if self.vendor_id is not None:
27976
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
27977
      oprot.writeI64(self.vendor_id)
27978
      oprot.writeFieldEnd()
27979
    oprot.writeFieldStop()
27980
    oprot.writeStructEnd()
27981
 
27982
  def validate(self):
27983
    return
27984
 
27985
 
27986
  def __repr__(self):
27987
    L = ['%s=%r' % (key, value)
27988
      for key, value in self.__dict__.iteritems()]
27989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27990
 
27991
  def __eq__(self, other):
27992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27993
 
27994
  def __ne__(self, other):
27995
    return not (self == other)
27996
 
27997
class updateNlcAtMarketplaces_result:
27998
 
27999
  thrift_spec = (
28000
  )
28001
 
28002
  def read(self, iprot):
28003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28005
      return
28006
    iprot.readStructBegin()
28007
    while True:
28008
      (fname, ftype, fid) = iprot.readFieldBegin()
28009
      if ftype == TType.STOP:
28010
        break
28011
      else:
28012
        iprot.skip(ftype)
28013
      iprot.readFieldEnd()
28014
    iprot.readStructEnd()
28015
 
28016
  def write(self, oprot):
28017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28019
      return
28020
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
28021
    oprot.writeFieldStop()
28022
    oprot.writeStructEnd()
28023
 
28024
  def validate(self):
28025
    return
28026
 
28027
 
28028
  def __repr__(self):
28029
    L = ['%s=%r' % (key, value)
28030
      for key, value in self.__dict__.iteritems()]
28031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28032
 
28033
  def __eq__(self, other):
28034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28035
 
28036
  def __ne__(self, other):
28037
    return not (self == other)
9945 vikram.rag 28038
 
28039
class getAllFlipkartItems_args:
28040
 
28041
  thrift_spec = (
28042
  )
28043
 
28044
  def read(self, iprot):
28045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28047
      return
28048
    iprot.readStructBegin()
28049
    while True:
28050
      (fname, ftype, fid) = iprot.readFieldBegin()
28051
      if ftype == TType.STOP:
28052
        break
28053
      else:
28054
        iprot.skip(ftype)
28055
      iprot.readFieldEnd()
28056
    iprot.readStructEnd()
28057
 
28058
  def write(self, oprot):
28059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28061
      return
28062
    oprot.writeStructBegin('getAllFlipkartItems_args')
28063
    oprot.writeFieldStop()
28064
    oprot.writeStructEnd()
28065
 
28066
  def validate(self):
28067
    return
28068
 
28069
 
28070
  def __repr__(self):
28071
    L = ['%s=%r' % (key, value)
28072
      for key, value in self.__dict__.iteritems()]
28073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28074
 
28075
  def __eq__(self, other):
28076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28077
 
28078
  def __ne__(self, other):
28079
    return not (self == other)
28080
 
28081
class getAllFlipkartItems_result:
28082
  """
28083
  Attributes:
28084
   - success
28085
  """
28086
 
28087
  thrift_spec = (
28088
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
28089
  )
28090
 
28091
  def __init__(self, success=None,):
28092
    self.success = success
28093
 
28094
  def read(self, iprot):
28095
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28096
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28097
      return
28098
    iprot.readStructBegin()
28099
    while True:
28100
      (fname, ftype, fid) = iprot.readFieldBegin()
28101
      if ftype == TType.STOP:
28102
        break
28103
      if fid == 0:
28104
        if ftype == TType.LIST:
28105
          self.success = []
13493 amit.gupta 28106
          (_etype606, _size603) = iprot.readListBegin()
28107
          for _i607 in xrange(_size603):
28108
            _elem608 = FlipkartItem()
28109
            _elem608.read(iprot)
28110
            self.success.append(_elem608)
9945 vikram.rag 28111
          iprot.readListEnd()
28112
        else:
28113
          iprot.skip(ftype)
28114
      else:
28115
        iprot.skip(ftype)
28116
      iprot.readFieldEnd()
28117
    iprot.readStructEnd()
28118
 
28119
  def write(self, oprot):
28120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28122
      return
28123
    oprot.writeStructBegin('getAllFlipkartItems_result')
28124
    if self.success is not None:
28125
      oprot.writeFieldBegin('success', TType.LIST, 0)
28126
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 28127
      for iter609 in self.success:
28128
        iter609.write(oprot)
9945 vikram.rag 28129
      oprot.writeListEnd()
28130
      oprot.writeFieldEnd()
28131
    oprot.writeFieldStop()
28132
    oprot.writeStructEnd()
28133
 
28134
  def validate(self):
28135
    return
28136
 
28137
 
28138
  def __repr__(self):
28139
    L = ['%s=%r' % (key, value)
28140
      for key, value in self.__dict__.iteritems()]
28141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28142
 
28143
  def __eq__(self, other):
28144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28145
 
28146
  def __ne__(self, other):
28147
    return not (self == other)
10097 kshitij.so 28148
 
28149
class addOrUpdateFlipkartItem_args:
28150
  """
28151
  Attributes:
28152
   - flipkartitem
28153
  """
28154
 
28155
  thrift_spec = None
28156
  def __init__(self, flipkartitem=None,):
28157
    self.flipkartitem = flipkartitem
28158
 
28159
  def read(self, iprot):
28160
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28161
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28162
      return
28163
    iprot.readStructBegin()
28164
    while True:
28165
      (fname, ftype, fid) = iprot.readFieldBegin()
28166
      if ftype == TType.STOP:
28167
        break
28168
      if fid == -1:
28169
        if ftype == TType.STRUCT:
28170
          self.flipkartitem = FlipkartItem()
28171
          self.flipkartitem.read(iprot)
28172
        else:
28173
          iprot.skip(ftype)
28174
      else:
28175
        iprot.skip(ftype)
28176
      iprot.readFieldEnd()
28177
    iprot.readStructEnd()
28178
 
28179
  def write(self, oprot):
28180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28182
      return
28183
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
28184
    if self.flipkartitem is not None:
28185
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
28186
      self.flipkartitem.write(oprot)
28187
      oprot.writeFieldEnd()
28188
    oprot.writeFieldStop()
28189
    oprot.writeStructEnd()
28190
 
28191
  def validate(self):
28192
    return
28193
 
28194
 
28195
  def __repr__(self):
28196
    L = ['%s=%r' % (key, value)
28197
      for key, value in self.__dict__.iteritems()]
28198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28199
 
28200
  def __eq__(self, other):
28201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28202
 
28203
  def __ne__(self, other):
28204
    return not (self == other)
28205
 
28206
class addOrUpdateFlipkartItem_result:
28207
  """
28208
  Attributes:
28209
   - success
28210
  """
28211
 
28212
  thrift_spec = (
28213
    (0, TType.BOOL, 'success', None, None, ), # 0
28214
  )
28215
 
28216
  def __init__(self, success=None,):
28217
    self.success = success
28218
 
28219
  def read(self, iprot):
28220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28222
      return
28223
    iprot.readStructBegin()
28224
    while True:
28225
      (fname, ftype, fid) = iprot.readFieldBegin()
28226
      if ftype == TType.STOP:
28227
        break
28228
      if fid == 0:
28229
        if ftype == TType.BOOL:
28230
          self.success = iprot.readBool();
28231
        else:
28232
          iprot.skip(ftype)
28233
      else:
28234
        iprot.skip(ftype)
28235
      iprot.readFieldEnd()
28236
    iprot.readStructEnd()
28237
 
28238
  def write(self, oprot):
28239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28241
      return
28242
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
28243
    if self.success is not None:
28244
      oprot.writeFieldBegin('success', TType.BOOL, 0)
28245
      oprot.writeBool(self.success)
28246
      oprot.writeFieldEnd()
28247
    oprot.writeFieldStop()
28248
    oprot.writeStructEnd()
28249
 
28250
  def validate(self):
28251
    return
28252
 
28253
 
28254
  def __repr__(self):
28255
    L = ['%s=%r' % (key, value)
28256
      for key, value in self.__dict__.iteritems()]
28257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28258
 
28259
  def __eq__(self, other):
28260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28261
 
28262
  def __ne__(self, other):
28263
    return not (self == other)
28264
 
28265
class getFlipkartItem_args:
28266
  """
28267
  Attributes:
28268
   - item_id
28269
  """
28270
 
28271
  thrift_spec = (
28272
    None, # 0
28273
    (1, TType.I64, 'item_id', None, None, ), # 1
28274
  )
28275
 
28276
  def __init__(self, item_id=None,):
28277
    self.item_id = item_id
28278
 
28279
  def read(self, iprot):
28280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28282
      return
28283
    iprot.readStructBegin()
28284
    while True:
28285
      (fname, ftype, fid) = iprot.readFieldBegin()
28286
      if ftype == TType.STOP:
28287
        break
28288
      if fid == 1:
28289
        if ftype == TType.I64:
28290
          self.item_id = iprot.readI64();
28291
        else:
28292
          iprot.skip(ftype)
28293
      else:
28294
        iprot.skip(ftype)
28295
      iprot.readFieldEnd()
28296
    iprot.readStructEnd()
28297
 
28298
  def write(self, oprot):
28299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28301
      return
28302
    oprot.writeStructBegin('getFlipkartItem_args')
28303
    if self.item_id is not None:
28304
      oprot.writeFieldBegin('item_id', TType.I64, 1)
28305
      oprot.writeI64(self.item_id)
28306
      oprot.writeFieldEnd()
28307
    oprot.writeFieldStop()
28308
    oprot.writeStructEnd()
28309
 
28310
  def validate(self):
28311
    return
28312
 
28313
 
28314
  def __repr__(self):
28315
    L = ['%s=%r' % (key, value)
28316
      for key, value in self.__dict__.iteritems()]
28317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28318
 
28319
  def __eq__(self, other):
28320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28321
 
28322
  def __ne__(self, other):
28323
    return not (self == other)
28324
 
28325
class getFlipkartItem_result:
28326
  """
28327
  Attributes:
28328
   - success
28329
  """
28330
 
28331
  thrift_spec = (
28332
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
28333
  )
28334
 
28335
  def __init__(self, success=None,):
28336
    self.success = success
28337
 
28338
  def read(self, iprot):
28339
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28340
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28341
      return
28342
    iprot.readStructBegin()
28343
    while True:
28344
      (fname, ftype, fid) = iprot.readFieldBegin()
28345
      if ftype == TType.STOP:
28346
        break
28347
      if fid == 0:
28348
        if ftype == TType.STRUCT:
28349
          self.success = FlipkartItem()
28350
          self.success.read(iprot)
28351
        else:
28352
          iprot.skip(ftype)
28353
      else:
28354
        iprot.skip(ftype)
28355
      iprot.readFieldEnd()
28356
    iprot.readStructEnd()
28357
 
28358
  def write(self, oprot):
28359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28361
      return
28362
    oprot.writeStructBegin('getFlipkartItem_result')
28363
    if self.success is not None:
28364
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28365
      self.success.write(oprot)
28366
      oprot.writeFieldEnd()
28367
    oprot.writeFieldStop()
28368
    oprot.writeStructEnd()
28369
 
28370
  def validate(self):
28371
    return
28372
 
28373
 
28374
  def __repr__(self):
28375
    L = ['%s=%r' % (key, value)
28376
      for key, value in self.__dict__.iteritems()]
28377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28378
 
28379
  def __eq__(self, other):
28380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28381
 
28382
  def __ne__(self, other):
28383
    return not (self == other)
28384
 
28385
class getFlipkartItemDetails_args:
28386
  """
28387
  Attributes:
28388
   - item_id
28389
  """
28390
 
28391
  thrift_spec = (
28392
    None, # 0
28393
    (1, TType.I64, 'item_id', None, None, ), # 1
28394
  )
28395
 
28396
  def __init__(self, item_id=None,):
28397
    self.item_id = item_id
28398
 
28399
  def read(self, iprot):
28400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28402
      return
28403
    iprot.readStructBegin()
28404
    while True:
28405
      (fname, ftype, fid) = iprot.readFieldBegin()
28406
      if ftype == TType.STOP:
28407
        break
28408
      if fid == 1:
28409
        if ftype == TType.I64:
28410
          self.item_id = iprot.readI64();
28411
        else:
28412
          iprot.skip(ftype)
28413
      else:
28414
        iprot.skip(ftype)
28415
      iprot.readFieldEnd()
28416
    iprot.readStructEnd()
28417
 
28418
  def write(self, oprot):
28419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28421
      return
28422
    oprot.writeStructBegin('getFlipkartItemDetails_args')
28423
    if self.item_id is not None:
28424
      oprot.writeFieldBegin('item_id', TType.I64, 1)
28425
      oprot.writeI64(self.item_id)
28426
      oprot.writeFieldEnd()
28427
    oprot.writeFieldStop()
28428
    oprot.writeStructEnd()
28429
 
28430
  def validate(self):
28431
    return
28432
 
28433
 
28434
  def __repr__(self):
28435
    L = ['%s=%r' % (key, value)
28436
      for key, value in self.__dict__.iteritems()]
28437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28438
 
28439
  def __eq__(self, other):
28440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28441
 
28442
  def __ne__(self, other):
28443
    return not (self == other)
28444
 
28445
class getFlipkartItemDetails_result:
28446
  """
28447
  Attributes:
28448
   - success
28449
  """
28450
 
28451
  thrift_spec = (
28452
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
28453
  )
28454
 
28455
  def __init__(self, success=None,):
28456
    self.success = success
28457
 
28458
  def read(self, iprot):
28459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28461
      return
28462
    iprot.readStructBegin()
28463
    while True:
28464
      (fname, ftype, fid) = iprot.readFieldBegin()
28465
      if ftype == TType.STOP:
28466
        break
28467
      if fid == 0:
28468
        if ftype == TType.STRUCT:
28469
          self.success = FlipkartItemDetails()
28470
          self.success.read(iprot)
28471
        else:
28472
          iprot.skip(ftype)
28473
      else:
28474
        iprot.skip(ftype)
28475
      iprot.readFieldEnd()
28476
    iprot.readStructEnd()
28477
 
28478
  def write(self, oprot):
28479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28481
      return
28482
    oprot.writeStructBegin('getFlipkartItemDetails_result')
28483
    if self.success is not None:
28484
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28485
      self.success.write(oprot)
28486
      oprot.writeFieldEnd()
28487
    oprot.writeFieldStop()
28488
    oprot.writeStructEnd()
28489
 
28490
  def validate(self):
28491
    return
28492
 
28493
 
28494
  def __repr__(self):
28495
    L = ['%s=%r' % (key, value)
28496
      for key, value in self.__dict__.iteritems()]
28497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28498
 
28499
  def __eq__(self, other):
28500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28501
 
28502
  def __ne__(self, other):
28503
    return not (self == other)
28504
 
28505
class getFlipkartItems_args:
28506
  """
28507
  Attributes:
28508
   - offset
28509
   - limit
28510
  """
28511
 
28512
  thrift_spec = (
28513
    None, # 0
28514
    (1, TType.I64, 'offset', None, None, ), # 1
28515
    (2, TType.I64, 'limit', None, None, ), # 2
28516
  )
28517
 
28518
  def __init__(self, offset=None, limit=None,):
28519
    self.offset = offset
28520
    self.limit = limit
28521
 
28522
  def read(self, iprot):
28523
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28524
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28525
      return
28526
    iprot.readStructBegin()
28527
    while True:
28528
      (fname, ftype, fid) = iprot.readFieldBegin()
28529
      if ftype == TType.STOP:
28530
        break
28531
      if fid == 1:
28532
        if ftype == TType.I64:
28533
          self.offset = iprot.readI64();
28534
        else:
28535
          iprot.skip(ftype)
28536
      elif fid == 2:
28537
        if ftype == TType.I64:
28538
          self.limit = iprot.readI64();
28539
        else:
28540
          iprot.skip(ftype)
28541
      else:
28542
        iprot.skip(ftype)
28543
      iprot.readFieldEnd()
28544
    iprot.readStructEnd()
28545
 
28546
  def write(self, oprot):
28547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28549
      return
28550
    oprot.writeStructBegin('getFlipkartItems_args')
28551
    if self.offset is not None:
28552
      oprot.writeFieldBegin('offset', TType.I64, 1)
28553
      oprot.writeI64(self.offset)
28554
      oprot.writeFieldEnd()
28555
    if self.limit is not None:
28556
      oprot.writeFieldBegin('limit', TType.I64, 2)
28557
      oprot.writeI64(self.limit)
28558
      oprot.writeFieldEnd()
28559
    oprot.writeFieldStop()
28560
    oprot.writeStructEnd()
28561
 
28562
  def validate(self):
28563
    return
28564
 
28565
 
28566
  def __repr__(self):
28567
    L = ['%s=%r' % (key, value)
28568
      for key, value in self.__dict__.iteritems()]
28569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28570
 
28571
  def __eq__(self, other):
28572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28573
 
28574
  def __ne__(self, other):
28575
    return not (self == other)
28576
 
28577
class getFlipkartItems_result:
28578
  """
28579
  Attributes:
28580
   - success
28581
  """
28582
 
28583
  thrift_spec = (
28584
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28585
  )
28586
 
28587
  def __init__(self, success=None,):
28588
    self.success = success
28589
 
28590
  def read(self, iprot):
28591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28593
      return
28594
    iprot.readStructBegin()
28595
    while True:
28596
      (fname, ftype, fid) = iprot.readFieldBegin()
28597
      if ftype == TType.STOP:
28598
        break
28599
      if fid == 0:
28600
        if ftype == TType.LIST:
28601
          self.success = []
13493 amit.gupta 28602
          (_etype613, _size610) = iprot.readListBegin()
28603
          for _i614 in xrange(_size610):
28604
            _elem615 = FlipkartItemDetails()
28605
            _elem615.read(iprot)
28606
            self.success.append(_elem615)
10097 kshitij.so 28607
          iprot.readListEnd()
28608
        else:
28609
          iprot.skip(ftype)
28610
      else:
28611
        iprot.skip(ftype)
28612
      iprot.readFieldEnd()
28613
    iprot.readStructEnd()
28614
 
28615
  def write(self, oprot):
28616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28618
      return
28619
    oprot.writeStructBegin('getFlipkartItems_result')
28620
    if self.success is not None:
28621
      oprot.writeFieldBegin('success', TType.LIST, 0)
28622
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 28623
      for iter616 in self.success:
28624
        iter616.write(oprot)
10097 kshitij.so 28625
      oprot.writeListEnd()
28626
      oprot.writeFieldEnd()
28627
    oprot.writeFieldStop()
28628
    oprot.writeStructEnd()
28629
 
28630
  def validate(self):
28631
    return
28632
 
28633
 
28634
  def __repr__(self):
28635
    L = ['%s=%r' % (key, value)
28636
      for key, value in self.__dict__.iteritems()]
28637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28638
 
28639
  def __eq__(self, other):
28640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28641
 
28642
  def __ne__(self, other):
28643
    return not (self == other)
28644
 
28645
class searchFlipkartItems_args:
28646
  """
28647
  Attributes:
28648
   - searchTerm
28649
   - offset
28650
   - limit
28651
  """
28652
 
28653
  thrift_spec = (
28654
    None, # 0
28655
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28656
    (2, TType.I64, 'offset', None, None, ), # 2
28657
    (3, TType.I64, 'limit', None, None, ), # 3
28658
  )
28659
 
28660
  def __init__(self, searchTerm=None, offset=None, limit=None,):
28661
    self.searchTerm = searchTerm
28662
    self.offset = offset
28663
    self.limit = limit
28664
 
28665
  def read(self, iprot):
28666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28668
      return
28669
    iprot.readStructBegin()
28670
    while True:
28671
      (fname, ftype, fid) = iprot.readFieldBegin()
28672
      if ftype == TType.STOP:
28673
        break
28674
      if fid == 1:
28675
        if ftype == TType.LIST:
28676
          self.searchTerm = []
13493 amit.gupta 28677
          (_etype620, _size617) = iprot.readListBegin()
28678
          for _i621 in xrange(_size617):
28679
            _elem622 = iprot.readString();
28680
            self.searchTerm.append(_elem622)
10097 kshitij.so 28681
          iprot.readListEnd()
28682
        else:
28683
          iprot.skip(ftype)
28684
      elif fid == 2:
28685
        if ftype == TType.I64:
28686
          self.offset = iprot.readI64();
28687
        else:
28688
          iprot.skip(ftype)
28689
      elif fid == 3:
28690
        if ftype == TType.I64:
28691
          self.limit = iprot.readI64();
28692
        else:
28693
          iprot.skip(ftype)
28694
      else:
28695
        iprot.skip(ftype)
28696
      iprot.readFieldEnd()
28697
    iprot.readStructEnd()
28698
 
28699
  def write(self, oprot):
28700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28702
      return
28703
    oprot.writeStructBegin('searchFlipkartItems_args')
28704
    if self.searchTerm is not None:
28705
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28706
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 28707
      for iter623 in self.searchTerm:
28708
        oprot.writeString(iter623)
10097 kshitij.so 28709
      oprot.writeListEnd()
28710
      oprot.writeFieldEnd()
28711
    if self.offset is not None:
28712
      oprot.writeFieldBegin('offset', TType.I64, 2)
28713
      oprot.writeI64(self.offset)
28714
      oprot.writeFieldEnd()
28715
    if self.limit is not None:
28716
      oprot.writeFieldBegin('limit', TType.I64, 3)
28717
      oprot.writeI64(self.limit)
28718
      oprot.writeFieldEnd()
28719
    oprot.writeFieldStop()
28720
    oprot.writeStructEnd()
28721
 
28722
  def validate(self):
28723
    return
28724
 
28725
 
28726
  def __repr__(self):
28727
    L = ['%s=%r' % (key, value)
28728
      for key, value in self.__dict__.iteritems()]
28729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28730
 
28731
  def __eq__(self, other):
28732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28733
 
28734
  def __ne__(self, other):
28735
    return not (self == other)
28736
 
28737
class searchFlipkartItems_result:
28738
  """
28739
  Attributes:
28740
   - success
28741
  """
28742
 
28743
  thrift_spec = (
28744
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28745
  )
28746
 
28747
  def __init__(self, success=None,):
28748
    self.success = success
28749
 
28750
  def read(self, iprot):
28751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28753
      return
28754
    iprot.readStructBegin()
28755
    while True:
28756
      (fname, ftype, fid) = iprot.readFieldBegin()
28757
      if ftype == TType.STOP:
28758
        break
28759
      if fid == 0:
28760
        if ftype == TType.LIST:
28761
          self.success = []
13493 amit.gupta 28762
          (_etype627, _size624) = iprot.readListBegin()
28763
          for _i628 in xrange(_size624):
28764
            _elem629 = FlipkartItemDetails()
28765
            _elem629.read(iprot)
28766
            self.success.append(_elem629)
10097 kshitij.so 28767
          iprot.readListEnd()
28768
        else:
28769
          iprot.skip(ftype)
28770
      else:
28771
        iprot.skip(ftype)
28772
      iprot.readFieldEnd()
28773
    iprot.readStructEnd()
28774
 
28775
  def write(self, oprot):
28776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28778
      return
28779
    oprot.writeStructBegin('searchFlipkartItems_result')
28780
    if self.success is not None:
28781
      oprot.writeFieldBegin('success', TType.LIST, 0)
28782
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 28783
      for iter630 in self.success:
28784
        iter630.write(oprot)
10097 kshitij.so 28785
      oprot.writeListEnd()
28786
      oprot.writeFieldEnd()
28787
    oprot.writeFieldStop()
28788
    oprot.writeStructEnd()
28789
 
28790
  def validate(self):
28791
    return
28792
 
28793
 
28794
  def __repr__(self):
28795
    L = ['%s=%r' % (key, value)
28796
      for key, value in self.__dict__.iteritems()]
28797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28798
 
28799
  def __eq__(self, other):
28800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28801
 
28802
  def __ne__(self, other):
28803
    return not (self == other)
28804
 
28805
class getCountForFlipkartItems_args:
28806
 
28807
  thrift_spec = (
28808
  )
28809
 
28810
  def read(self, iprot):
28811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28813
      return
28814
    iprot.readStructBegin()
28815
    while True:
28816
      (fname, ftype, fid) = iprot.readFieldBegin()
28817
      if ftype == TType.STOP:
28818
        break
28819
      else:
28820
        iprot.skip(ftype)
28821
      iprot.readFieldEnd()
28822
    iprot.readStructEnd()
28823
 
28824
  def write(self, oprot):
28825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28827
      return
28828
    oprot.writeStructBegin('getCountForFlipkartItems_args')
28829
    oprot.writeFieldStop()
28830
    oprot.writeStructEnd()
28831
 
28832
  def validate(self):
28833
    return
28834
 
28835
 
28836
  def __repr__(self):
28837
    L = ['%s=%r' % (key, value)
28838
      for key, value in self.__dict__.iteritems()]
28839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28840
 
28841
  def __eq__(self, other):
28842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28843
 
28844
  def __ne__(self, other):
28845
    return not (self == other)
28846
 
28847
class getCountForFlipkartItems_result:
28848
  """
28849
  Attributes:
28850
   - success
28851
  """
28852
 
28853
  thrift_spec = (
28854
    (0, TType.I64, 'success', None, None, ), # 0
28855
  )
28856
 
28857
  def __init__(self, success=None,):
28858
    self.success = success
28859
 
28860
  def read(self, iprot):
28861
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28862
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28863
      return
28864
    iprot.readStructBegin()
28865
    while True:
28866
      (fname, ftype, fid) = iprot.readFieldBegin()
28867
      if ftype == TType.STOP:
28868
        break
28869
      if fid == 0:
28870
        if ftype == TType.I64:
28871
          self.success = iprot.readI64();
28872
        else:
28873
          iprot.skip(ftype)
28874
      else:
28875
        iprot.skip(ftype)
28876
      iprot.readFieldEnd()
28877
    iprot.readStructEnd()
28878
 
28879
  def write(self, oprot):
28880
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28881
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28882
      return
28883
    oprot.writeStructBegin('getCountForFlipkartItems_result')
28884
    if self.success is not None:
28885
      oprot.writeFieldBegin('success', TType.I64, 0)
28886
      oprot.writeI64(self.success)
28887
      oprot.writeFieldEnd()
28888
    oprot.writeFieldStop()
28889
    oprot.writeStructEnd()
28890
 
28891
  def validate(self):
28892
    return
28893
 
28894
 
28895
  def __repr__(self):
28896
    L = ['%s=%r' % (key, value)
28897
      for key, value in self.__dict__.iteritems()]
28898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28899
 
28900
  def __eq__(self, other):
28901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28902
 
28903
  def __ne__(self, other):
28904
    return not (self == other)
28905
 
28906
class getFlipkartSearchResultCount_args:
28907
  """
28908
  Attributes:
28909
   - searchTerm
28910
  """
28911
 
28912
  thrift_spec = (
28913
    None, # 0
28914
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28915
  )
28916
 
28917
  def __init__(self, searchTerm=None,):
28918
    self.searchTerm = searchTerm
28919
 
28920
  def read(self, iprot):
28921
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28922
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28923
      return
28924
    iprot.readStructBegin()
28925
    while True:
28926
      (fname, ftype, fid) = iprot.readFieldBegin()
28927
      if ftype == TType.STOP:
28928
        break
28929
      if fid == 1:
28930
        if ftype == TType.LIST:
28931
          self.searchTerm = []
13493 amit.gupta 28932
          (_etype634, _size631) = iprot.readListBegin()
28933
          for _i635 in xrange(_size631):
28934
            _elem636 = iprot.readString();
28935
            self.searchTerm.append(_elem636)
10097 kshitij.so 28936
          iprot.readListEnd()
28937
        else:
28938
          iprot.skip(ftype)
28939
      else:
28940
        iprot.skip(ftype)
28941
      iprot.readFieldEnd()
28942
    iprot.readStructEnd()
28943
 
28944
  def write(self, oprot):
28945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28947
      return
28948
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
28949
    if self.searchTerm is not None:
28950
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28951
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 28952
      for iter637 in self.searchTerm:
28953
        oprot.writeString(iter637)
10097 kshitij.so 28954
      oprot.writeListEnd()
28955
      oprot.writeFieldEnd()
28956
    oprot.writeFieldStop()
28957
    oprot.writeStructEnd()
28958
 
28959
  def validate(self):
28960
    return
28961
 
28962
 
28963
  def __repr__(self):
28964
    L = ['%s=%r' % (key, value)
28965
      for key, value in self.__dict__.iteritems()]
28966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28967
 
28968
  def __eq__(self, other):
28969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28970
 
28971
  def __ne__(self, other):
28972
    return not (self == other)
28973
 
28974
class getFlipkartSearchResultCount_result:
28975
  """
28976
  Attributes:
28977
   - success
28978
  """
28979
 
28980
  thrift_spec = (
28981
    (0, TType.I64, 'success', None, None, ), # 0
28982
  )
28983
 
28984
  def __init__(self, success=None,):
28985
    self.success = success
28986
 
28987
  def read(self, iprot):
28988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28990
      return
28991
    iprot.readStructBegin()
28992
    while True:
28993
      (fname, ftype, fid) = iprot.readFieldBegin()
28994
      if ftype == TType.STOP:
28995
        break
28996
      if fid == 0:
28997
        if ftype == TType.I64:
28998
          self.success = iprot.readI64();
28999
        else:
29000
          iprot.skip(ftype)
29001
      else:
29002
        iprot.skip(ftype)
29003
      iprot.readFieldEnd()
29004
    iprot.readStructEnd()
29005
 
29006
  def write(self, oprot):
29007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29009
      return
29010
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
29011
    if self.success is not None:
29012
      oprot.writeFieldBegin('success', TType.I64, 0)
29013
      oprot.writeI64(self.success)
29014
      oprot.writeFieldEnd()
29015
    oprot.writeFieldStop()
29016
    oprot.writeStructEnd()
29017
 
29018
  def validate(self):
29019
    return
29020
 
29021
 
29022
  def __repr__(self):
29023
    L = ['%s=%r' % (key, value)
29024
      for key, value in self.__dict__.iteritems()]
29025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29026
 
29027
  def __eq__(self, other):
29028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29029
 
29030
  def __ne__(self, other):
29031
    return not (self == other)
29032
 
29033
class getAllFkItems_args:
29034
 
29035
  thrift_spec = (
29036
  )
29037
 
29038
  def read(self, iprot):
29039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29041
      return
29042
    iprot.readStructBegin()
29043
    while True:
29044
      (fname, ftype, fid) = iprot.readFieldBegin()
29045
      if ftype == TType.STOP:
29046
        break
29047
      else:
29048
        iprot.skip(ftype)
29049
      iprot.readFieldEnd()
29050
    iprot.readStructEnd()
29051
 
29052
  def write(self, oprot):
29053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29055
      return
29056
    oprot.writeStructBegin('getAllFkItems_args')
29057
    oprot.writeFieldStop()
29058
    oprot.writeStructEnd()
29059
 
29060
  def validate(self):
29061
    return
29062
 
29063
 
29064
  def __repr__(self):
29065
    L = ['%s=%r' % (key, value)
29066
      for key, value in self.__dict__.iteritems()]
29067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29068
 
29069
  def __eq__(self, other):
29070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29071
 
29072
  def __ne__(self, other):
29073
    return not (self == other)
29074
 
29075
class getAllFkItems_result:
29076
  """
29077
  Attributes:
29078
   - success
29079
  """
29080
 
29081
  thrift_spec = (
29082
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
29083
  )
29084
 
29085
  def __init__(self, success=None,):
29086
    self.success = success
29087
 
29088
  def read(self, iprot):
29089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29091
      return
29092
    iprot.readStructBegin()
29093
    while True:
29094
      (fname, ftype, fid) = iprot.readFieldBegin()
29095
      if ftype == TType.STOP:
29096
        break
29097
      if fid == 0:
29098
        if ftype == TType.LIST:
29099
          self.success = []
13493 amit.gupta 29100
          (_etype641, _size638) = iprot.readListBegin()
29101
          for _i642 in xrange(_size638):
29102
            _elem643 = FlipkartItemDetails()
29103
            _elem643.read(iprot)
29104
            self.success.append(_elem643)
10097 kshitij.so 29105
          iprot.readListEnd()
29106
        else:
29107
          iprot.skip(ftype)
29108
      else:
29109
        iprot.skip(ftype)
29110
      iprot.readFieldEnd()
29111
    iprot.readStructEnd()
29112
 
29113
  def write(self, oprot):
29114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29116
      return
29117
    oprot.writeStructBegin('getAllFkItems_result')
29118
    if self.success is not None:
29119
      oprot.writeFieldBegin('success', TType.LIST, 0)
29120
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29121
      for iter644 in self.success:
29122
        iter644.write(oprot)
10097 kshitij.so 29123
      oprot.writeListEnd()
29124
      oprot.writeFieldEnd()
29125
    oprot.writeFieldStop()
29126
    oprot.writeStructEnd()
29127
 
29128
  def validate(self):
29129
    return
29130
 
29131
 
29132
  def __repr__(self):
29133
    L = ['%s=%r' % (key, value)
29134
      for key, value in self.__dict__.iteritems()]
29135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29136
 
29137
  def __eq__(self, other):
29138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29139
 
29140
  def __ne__(self, other):
29141
    return not (self == other)
10140 vikram.rag 29142
 
29143
class getFlipkartItemBySkyAtFlipkart_args:
29144
  """
29145
  Attributes:
29146
   - sku
29147
  """
29148
 
11531 vikram.rag 29149
  thrift_spec = None
10140 vikram.rag 29150
  def __init__(self, sku=None,):
29151
    self.sku = sku
29152
 
29153
  def read(self, iprot):
29154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29156
      return
29157
    iprot.readStructBegin()
29158
    while True:
29159
      (fname, ftype, fid) = iprot.readFieldBegin()
29160
      if ftype == TType.STOP:
29161
        break
11531 vikram.rag 29162
      if fid == -1:
10140 vikram.rag 29163
        if ftype == TType.STRING:
29164
          self.sku = iprot.readString();
29165
        else:
29166
          iprot.skip(ftype)
29167
      else:
29168
        iprot.skip(ftype)
29169
      iprot.readFieldEnd()
29170
    iprot.readStructEnd()
29171
 
29172
  def write(self, oprot):
29173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29175
      return
29176
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
29177
    if self.sku is not None:
11531 vikram.rag 29178
      oprot.writeFieldBegin('sku', TType.STRING, -1)
10140 vikram.rag 29179
      oprot.writeString(self.sku)
29180
      oprot.writeFieldEnd()
29181
    oprot.writeFieldStop()
29182
    oprot.writeStructEnd()
29183
 
29184
  def validate(self):
29185
    return
29186
 
29187
 
29188
  def __repr__(self):
29189
    L = ['%s=%r' % (key, value)
29190
      for key, value in self.__dict__.iteritems()]
29191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29192
 
29193
  def __eq__(self, other):
29194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29195
 
29196
  def __ne__(self, other):
29197
    return not (self == other)
29198
 
29199
class getFlipkartItemBySkyAtFlipkart_result:
29200
  """
29201
  Attributes:
29202
   - success
29203
  """
29204
 
29205
  thrift_spec = (
29206
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
29207
  )
29208
 
29209
  def __init__(self, success=None,):
29210
    self.success = success
29211
 
29212
  def read(self, iprot):
29213
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29214
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29215
      return
29216
    iprot.readStructBegin()
29217
    while True:
29218
      (fname, ftype, fid) = iprot.readFieldBegin()
29219
      if ftype == TType.STOP:
29220
        break
29221
      if fid == 0:
29222
        if ftype == TType.STRUCT:
29223
          self.success = FlipkartItem()
29224
          self.success.read(iprot)
29225
        else:
29226
          iprot.skip(ftype)
29227
      else:
29228
        iprot.skip(ftype)
29229
      iprot.readFieldEnd()
29230
    iprot.readStructEnd()
29231
 
29232
  def write(self, oprot):
29233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29235
      return
29236
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
29237
    if self.success is not None:
29238
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29239
      self.success.write(oprot)
29240
      oprot.writeFieldEnd()
29241
    oprot.writeFieldStop()
29242
    oprot.writeStructEnd()
29243
 
29244
  def validate(self):
29245
    return
29246
 
29247
 
29248
  def __repr__(self):
29249
    L = ['%s=%r' % (key, value)
29250
      for key, value in self.__dict__.iteritems()]
29251
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29252
 
29253
  def __eq__(self, other):
29254
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29255
 
29256
  def __ne__(self, other):
29257
    return not (self == other)
10909 vikram.rag 29258
 
11015 kshitij.so 29259
class getMarketplaceHistory_args:
29260
  """
29261
  Attributes:
29262
   - source
29263
   - offset
29264
   - itemId
29265
  """
10909 vikram.rag 29266
 
29267
  thrift_spec = (
11015 kshitij.so 29268
    None, # 0
29269
    (1, TType.I64, 'source', None, None, ), # 1
29270
    (2, TType.I64, 'offset', None, None, ), # 2
29271
    (3, TType.I64, 'itemId', None, None, ), # 3
10909 vikram.rag 29272
  )
29273
 
11015 kshitij.so 29274
  def __init__(self, source=None, offset=None, itemId=None,):
29275
    self.source = source
29276
    self.offset = offset
29277
    self.itemId = itemId
29278
 
10909 vikram.rag 29279
  def read(self, iprot):
29280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29282
      return
29283
    iprot.readStructBegin()
29284
    while True:
29285
      (fname, ftype, fid) = iprot.readFieldBegin()
29286
      if ftype == TType.STOP:
29287
        break
11015 kshitij.so 29288
      if fid == 1:
29289
        if ftype == TType.I64:
29290
          self.source = iprot.readI64();
29291
        else:
29292
          iprot.skip(ftype)
29293
      elif fid == 2:
29294
        if ftype == TType.I64:
29295
          self.offset = iprot.readI64();
29296
        else:
29297
          iprot.skip(ftype)
29298
      elif fid == 3:
29299
        if ftype == TType.I64:
29300
          self.itemId = iprot.readI64();
29301
        else:
29302
          iprot.skip(ftype)
10909 vikram.rag 29303
      else:
29304
        iprot.skip(ftype)
29305
      iprot.readFieldEnd()
29306
    iprot.readStructEnd()
29307
 
29308
  def write(self, oprot):
29309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29311
      return
11015 kshitij.so 29312
    oprot.writeStructBegin('getMarketplaceHistory_args')
29313
    if self.source is not None:
29314
      oprot.writeFieldBegin('source', TType.I64, 1)
29315
      oprot.writeI64(self.source)
29316
      oprot.writeFieldEnd()
29317
    if self.offset is not None:
29318
      oprot.writeFieldBegin('offset', TType.I64, 2)
29319
      oprot.writeI64(self.offset)
29320
      oprot.writeFieldEnd()
29321
    if self.itemId is not None:
29322
      oprot.writeFieldBegin('itemId', TType.I64, 3)
29323
      oprot.writeI64(self.itemId)
29324
      oprot.writeFieldEnd()
10909 vikram.rag 29325
    oprot.writeFieldStop()
29326
    oprot.writeStructEnd()
29327
 
29328
  def validate(self):
29329
    return
29330
 
29331
 
29332
  def __repr__(self):
29333
    L = ['%s=%r' % (key, value)
29334
      for key, value in self.__dict__.iteritems()]
29335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29336
 
29337
  def __eq__(self, other):
29338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29339
 
29340
  def __ne__(self, other):
29341
    return not (self == other)
29342
 
11015 kshitij.so 29343
class getMarketplaceHistory_result:
10909 vikram.rag 29344
  """
29345
  Attributes:
29346
   - success
29347
  """
29348
 
29349
  thrift_spec = (
11015 kshitij.so 29350
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
10909 vikram.rag 29351
  )
29352
 
29353
  def __init__(self, success=None,):
29354
    self.success = success
29355
 
29356
  def read(self, iprot):
29357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29359
      return
29360
    iprot.readStructBegin()
29361
    while True:
29362
      (fname, ftype, fid) = iprot.readFieldBegin()
29363
      if ftype == TType.STOP:
29364
        break
29365
      if fid == 0:
29366
        if ftype == TType.LIST:
29367
          self.success = []
13493 amit.gupta 29368
          (_etype648, _size645) = iprot.readListBegin()
29369
          for _i649 in xrange(_size645):
29370
            _elem650 = MarketplaceHistory()
29371
            _elem650.read(iprot)
29372
            self.success.append(_elem650)
10909 vikram.rag 29373
          iprot.readListEnd()
29374
        else:
29375
          iprot.skip(ftype)
29376
      else:
29377
        iprot.skip(ftype)
29378
      iprot.readFieldEnd()
29379
    iprot.readStructEnd()
29380
 
29381
  def write(self, oprot):
29382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29384
      return
11015 kshitij.so 29385
    oprot.writeStructBegin('getMarketplaceHistory_result')
10909 vikram.rag 29386
    if self.success is not None:
29387
      oprot.writeFieldBegin('success', TType.LIST, 0)
29388
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29389
      for iter651 in self.success:
29390
        iter651.write(oprot)
10909 vikram.rag 29391
      oprot.writeListEnd()
29392
      oprot.writeFieldEnd()
29393
    oprot.writeFieldStop()
29394
    oprot.writeStructEnd()
29395
 
29396
  def validate(self):
29397
    return
29398
 
29399
 
29400
  def __repr__(self):
29401
    L = ['%s=%r' % (key, value)
29402
      for key, value in self.__dict__.iteritems()]
29403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29404
 
29405
  def __eq__(self, other):
29406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29407
 
29408
  def __ne__(self, other):
29409
    return not (self == other)
10924 vikram.rag 29410
 
11015 kshitij.so 29411
class getAllFbbListedItems_args:
10924 vikram.rag 29412
 
29413
  thrift_spec = (
29414
  )
29415
 
29416
  def read(self, iprot):
29417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29419
      return
29420
    iprot.readStructBegin()
29421
    while True:
29422
      (fname, ftype, fid) = iprot.readFieldBegin()
29423
      if ftype == TType.STOP:
29424
        break
29425
      else:
29426
        iprot.skip(ftype)
29427
      iprot.readFieldEnd()
29428
    iprot.readStructEnd()
29429
 
29430
  def write(self, oprot):
29431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29433
      return
11015 kshitij.so 29434
    oprot.writeStructBegin('getAllFbbListedItems_args')
10924 vikram.rag 29435
    oprot.writeFieldStop()
29436
    oprot.writeStructEnd()
29437
 
29438
  def validate(self):
29439
    return
29440
 
29441
 
29442
  def __repr__(self):
29443
    L = ['%s=%r' % (key, value)
29444
      for key, value in self.__dict__.iteritems()]
29445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29446
 
29447
  def __eq__(self, other):
29448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29449
 
29450
  def __ne__(self, other):
29451
    return not (self == other)
29452
 
11015 kshitij.so 29453
class getAllFbbListedItems_result:
10924 vikram.rag 29454
  """
29455
  Attributes:
29456
   - success
29457
  """
29458
 
29459
  thrift_spec = (
29460
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29461
  )
29462
 
29463
  def __init__(self, success=None,):
29464
    self.success = success
29465
 
29466
  def read(self, iprot):
29467
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29468
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29469
      return
29470
    iprot.readStructBegin()
29471
    while True:
29472
      (fname, ftype, fid) = iprot.readFieldBegin()
29473
      if ftype == TType.STOP:
29474
        break
29475
      if fid == 0:
29476
        if ftype == TType.LIST:
29477
          self.success = []
13493 amit.gupta 29478
          (_etype655, _size652) = iprot.readListBegin()
29479
          for _i656 in xrange(_size652):
29480
            _elem657 = Amazonlisted()
29481
            _elem657.read(iprot)
29482
            self.success.append(_elem657)
10924 vikram.rag 29483
          iprot.readListEnd()
29484
        else:
29485
          iprot.skip(ftype)
29486
      else:
29487
        iprot.skip(ftype)
29488
      iprot.readFieldEnd()
29489
    iprot.readStructEnd()
29490
 
29491
  def write(self, oprot):
29492
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29493
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29494
      return
11015 kshitij.so 29495
    oprot.writeStructBegin('getAllFbbListedItems_result')
10924 vikram.rag 29496
    if self.success is not None:
29497
      oprot.writeFieldBegin('success', TType.LIST, 0)
29498
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29499
      for iter658 in self.success:
29500
        iter658.write(oprot)
10924 vikram.rag 29501
      oprot.writeListEnd()
29502
      oprot.writeFieldEnd()
29503
    oprot.writeFieldStop()
29504
    oprot.writeStructEnd()
29505
 
29506
  def validate(self):
29507
    return
29508
 
29509
 
29510
  def __repr__(self):
29511
    L = ['%s=%r' % (key, value)
29512
      for key, value in self.__dict__.iteritems()]
29513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29514
 
29515
  def __eq__(self, other):
29516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29517
 
29518
  def __ne__(self, other):
29519
    return not (self == other)
11015 kshitij.so 29520
 
29521
class getAllFbbPricingItems_args:
29522
 
29523
  thrift_spec = (
29524
  )
29525
 
29526
  def read(self, iprot):
29527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29529
      return
29530
    iprot.readStructBegin()
29531
    while True:
29532
      (fname, ftype, fid) = iprot.readFieldBegin()
29533
      if ftype == TType.STOP:
29534
        break
29535
      else:
29536
        iprot.skip(ftype)
29537
      iprot.readFieldEnd()
29538
    iprot.readStructEnd()
29539
 
29540
  def write(self, oprot):
29541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29543
      return
29544
    oprot.writeStructBegin('getAllFbbPricingItems_args')
29545
    oprot.writeFieldStop()
29546
    oprot.writeStructEnd()
29547
 
29548
  def validate(self):
29549
    return
29550
 
29551
 
29552
  def __repr__(self):
29553
    L = ['%s=%r' % (key, value)
29554
      for key, value in self.__dict__.iteritems()]
29555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29556
 
29557
  def __eq__(self, other):
29558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29559
 
29560
  def __ne__(self, other):
29561
    return not (self == other)
29562
 
29563
class getAllFbbPricingItems_result:
29564
  """
29565
  Attributes:
29566
   - success
29567
  """
29568
 
29569
  thrift_spec = (
29570
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29571
  )
29572
 
29573
  def __init__(self, success=None,):
29574
    self.success = success
29575
 
29576
  def read(self, iprot):
29577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29579
      return
29580
    iprot.readStructBegin()
29581
    while True:
29582
      (fname, ftype, fid) = iprot.readFieldBegin()
29583
      if ftype == TType.STOP:
29584
        break
29585
      if fid == 0:
29586
        if ftype == TType.LIST:
29587
          self.success = []
13493 amit.gupta 29588
          (_etype662, _size659) = iprot.readListBegin()
29589
          for _i663 in xrange(_size659):
29590
            _elem664 = Amazonlisted()
29591
            _elem664.read(iprot)
29592
            self.success.append(_elem664)
11015 kshitij.so 29593
          iprot.readListEnd()
29594
        else:
29595
          iprot.skip(ftype)
29596
      else:
29597
        iprot.skip(ftype)
29598
      iprot.readFieldEnd()
29599
    iprot.readStructEnd()
29600
 
29601
  def write(self, oprot):
29602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29604
      return
29605
    oprot.writeStructBegin('getAllFbbPricingItems_result')
29606
    if self.success is not None:
29607
      oprot.writeFieldBegin('success', TType.LIST, 0)
29608
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29609
      for iter665 in self.success:
29610
        iter665.write(oprot)
11015 kshitij.so 29611
      oprot.writeListEnd()
29612
      oprot.writeFieldEnd()
29613
    oprot.writeFieldStop()
29614
    oprot.writeStructEnd()
29615
 
29616
  def validate(self):
29617
    return
29618
 
29619
 
29620
  def __repr__(self):
29621
    L = ['%s=%r' % (key, value)
29622
      for key, value in self.__dict__.iteritems()]
29623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29624
 
29625
  def __eq__(self, other):
29626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29627
 
29628
  def __ne__(self, other):
29629
    return not (self == other)
29630
 
29631
class getCountForMarketplaceHistory_args:
29632
  """
29633
  Attributes:
29634
   - source
29635
   - itemId
29636
  """
29637
 
29638
  thrift_spec = (
29639
    None, # 0
29640
    (1, TType.I64, 'source', None, None, ), # 1
29641
    (2, TType.I64, 'itemId', None, None, ), # 2
29642
  )
29643
 
29644
  def __init__(self, source=None, itemId=None,):
29645
    self.source = source
29646
    self.itemId = itemId
29647
 
29648
  def read(self, iprot):
29649
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29650
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29651
      return
29652
    iprot.readStructBegin()
29653
    while True:
29654
      (fname, ftype, fid) = iprot.readFieldBegin()
29655
      if ftype == TType.STOP:
29656
        break
29657
      if fid == 1:
29658
        if ftype == TType.I64:
29659
          self.source = iprot.readI64();
29660
        else:
29661
          iprot.skip(ftype)
29662
      elif fid == 2:
29663
        if ftype == TType.I64:
29664
          self.itemId = iprot.readI64();
29665
        else:
29666
          iprot.skip(ftype)
29667
      else:
29668
        iprot.skip(ftype)
29669
      iprot.readFieldEnd()
29670
    iprot.readStructEnd()
29671
 
29672
  def write(self, oprot):
29673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29675
      return
29676
    oprot.writeStructBegin('getCountForMarketplaceHistory_args')
29677
    if self.source is not None:
29678
      oprot.writeFieldBegin('source', TType.I64, 1)
29679
      oprot.writeI64(self.source)
29680
      oprot.writeFieldEnd()
29681
    if self.itemId is not None:
29682
      oprot.writeFieldBegin('itemId', TType.I64, 2)
29683
      oprot.writeI64(self.itemId)
29684
      oprot.writeFieldEnd()
29685
    oprot.writeFieldStop()
29686
    oprot.writeStructEnd()
29687
 
29688
  def validate(self):
29689
    return
29690
 
29691
 
29692
  def __repr__(self):
29693
    L = ['%s=%r' % (key, value)
29694
      for key, value in self.__dict__.iteritems()]
29695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29696
 
29697
  def __eq__(self, other):
29698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29699
 
29700
  def __ne__(self, other):
29701
    return not (self == other)
29702
 
29703
class getCountForMarketplaceHistory_result:
29704
  """
29705
  Attributes:
29706
   - success
29707
  """
29708
 
29709
  thrift_spec = (
29710
    (0, TType.I64, 'success', None, None, ), # 0
29711
  )
29712
 
29713
  def __init__(self, success=None,):
29714
    self.success = success
29715
 
29716
  def read(self, iprot):
29717
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29718
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29719
      return
29720
    iprot.readStructBegin()
29721
    while True:
29722
      (fname, ftype, fid) = iprot.readFieldBegin()
29723
      if ftype == TType.STOP:
29724
        break
29725
      if fid == 0:
29726
        if ftype == TType.I64:
29727
          self.success = iprot.readI64();
29728
        else:
29729
          iprot.skip(ftype)
29730
      else:
29731
        iprot.skip(ftype)
29732
      iprot.readFieldEnd()
29733
    iprot.readStructEnd()
29734
 
29735
  def write(self, oprot):
29736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29738
      return
29739
    oprot.writeStructBegin('getCountForMarketplaceHistory_result')
29740
    if self.success is not None:
29741
      oprot.writeFieldBegin('success', TType.I64, 0)
29742
      oprot.writeI64(self.success)
29743
      oprot.writeFieldEnd()
29744
    oprot.writeFieldStop()
29745
    oprot.writeStructEnd()
29746
 
29747
  def validate(self):
29748
    return
29749
 
29750
 
29751
  def __repr__(self):
29752
    L = ['%s=%r' % (key, value)
29753
      for key, value in self.__dict__.iteritems()]
29754
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29755
 
29756
  def __eq__(self, other):
29757
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29758
 
29759
  def __ne__(self, other):
29760
    return not (self == other)
29761
 
29762
class getMarketplaceHistoryByDate_args:
29763
  """
29764
  Attributes:
29765
   - source
29766
   - startDate
29767
   - endDate
29768
   - offset
29769
   - limit
29770
   - itemId
29771
  """
29772
 
29773
  thrift_spec = (
29774
    None, # 0
29775
    (1, TType.I64, 'source', None, None, ), # 1
29776
    (2, TType.I64, 'startDate', None, None, ), # 2
29777
    (3, TType.I64, 'endDate', None, None, ), # 3
29778
    (4, TType.I64, 'offset', None, None, ), # 4
29779
    (5, TType.I64, 'limit', None, None, ), # 5
29780
    (6, TType.I64, 'itemId', None, None, ), # 6
29781
  )
29782
 
29783
  def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):
29784
    self.source = source
29785
    self.startDate = startDate
29786
    self.endDate = endDate
29787
    self.offset = offset
29788
    self.limit = limit
29789
    self.itemId = itemId
29790
 
29791
  def read(self, iprot):
29792
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29793
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29794
      return
29795
    iprot.readStructBegin()
29796
    while True:
29797
      (fname, ftype, fid) = iprot.readFieldBegin()
29798
      if ftype == TType.STOP:
29799
        break
29800
      if fid == 1:
29801
        if ftype == TType.I64:
29802
          self.source = iprot.readI64();
29803
        else:
29804
          iprot.skip(ftype)
29805
      elif fid == 2:
29806
        if ftype == TType.I64:
29807
          self.startDate = iprot.readI64();
29808
        else:
29809
          iprot.skip(ftype)
29810
      elif fid == 3:
29811
        if ftype == TType.I64:
29812
          self.endDate = iprot.readI64();
29813
        else:
29814
          iprot.skip(ftype)
29815
      elif fid == 4:
29816
        if ftype == TType.I64:
29817
          self.offset = iprot.readI64();
29818
        else:
29819
          iprot.skip(ftype)
29820
      elif fid == 5:
29821
        if ftype == TType.I64:
29822
          self.limit = iprot.readI64();
29823
        else:
29824
          iprot.skip(ftype)
29825
      elif fid == 6:
29826
        if ftype == TType.I64:
29827
          self.itemId = iprot.readI64();
29828
        else:
29829
          iprot.skip(ftype)
29830
      else:
29831
        iprot.skip(ftype)
29832
      iprot.readFieldEnd()
29833
    iprot.readStructEnd()
29834
 
29835
  def write(self, oprot):
29836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29838
      return
29839
    oprot.writeStructBegin('getMarketplaceHistoryByDate_args')
29840
    if self.source is not None:
29841
      oprot.writeFieldBegin('source', TType.I64, 1)
29842
      oprot.writeI64(self.source)
29843
      oprot.writeFieldEnd()
29844
    if self.startDate is not None:
29845
      oprot.writeFieldBegin('startDate', TType.I64, 2)
29846
      oprot.writeI64(self.startDate)
29847
      oprot.writeFieldEnd()
29848
    if self.endDate is not None:
29849
      oprot.writeFieldBegin('endDate', TType.I64, 3)
29850
      oprot.writeI64(self.endDate)
29851
      oprot.writeFieldEnd()
29852
    if self.offset is not None:
29853
      oprot.writeFieldBegin('offset', TType.I64, 4)
29854
      oprot.writeI64(self.offset)
29855
      oprot.writeFieldEnd()
29856
    if self.limit is not None:
29857
      oprot.writeFieldBegin('limit', TType.I64, 5)
29858
      oprot.writeI64(self.limit)
29859
      oprot.writeFieldEnd()
29860
    if self.itemId is not None:
29861
      oprot.writeFieldBegin('itemId', TType.I64, 6)
29862
      oprot.writeI64(self.itemId)
29863
      oprot.writeFieldEnd()
29864
    oprot.writeFieldStop()
29865
    oprot.writeStructEnd()
29866
 
29867
  def validate(self):
29868
    return
29869
 
29870
 
29871
  def __repr__(self):
29872
    L = ['%s=%r' % (key, value)
29873
      for key, value in self.__dict__.iteritems()]
29874
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29875
 
29876
  def __eq__(self, other):
29877
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29878
 
29879
  def __ne__(self, other):
29880
    return not (self == other)
29881
 
29882
class getMarketplaceHistoryByDate_result:
29883
  """
29884
  Attributes:
29885
   - success
29886
  """
29887
 
29888
  thrift_spec = (
29889
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
29890
  )
29891
 
29892
  def __init__(self, success=None,):
29893
    self.success = success
29894
 
29895
  def read(self, iprot):
29896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29898
      return
29899
    iprot.readStructBegin()
29900
    while True:
29901
      (fname, ftype, fid) = iprot.readFieldBegin()
29902
      if ftype == TType.STOP:
29903
        break
29904
      if fid == 0:
29905
        if ftype == TType.LIST:
29906
          self.success = []
13493 amit.gupta 29907
          (_etype669, _size666) = iprot.readListBegin()
29908
          for _i670 in xrange(_size666):
29909
            _elem671 = MarketplaceHistory()
29910
            _elem671.read(iprot)
29911
            self.success.append(_elem671)
11015 kshitij.so 29912
          iprot.readListEnd()
29913
        else:
29914
          iprot.skip(ftype)
29915
      else:
29916
        iprot.skip(ftype)
29917
      iprot.readFieldEnd()
29918
    iprot.readStructEnd()
29919
 
29920
  def write(self, oprot):
29921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29923
      return
29924
    oprot.writeStructBegin('getMarketplaceHistoryByDate_result')
29925
    if self.success is not None:
29926
      oprot.writeFieldBegin('success', TType.LIST, 0)
29927
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29928
      for iter672 in self.success:
29929
        iter672.write(oprot)
11015 kshitij.so 29930
      oprot.writeListEnd()
29931
      oprot.writeFieldEnd()
29932
    oprot.writeFieldStop()
29933
    oprot.writeStructEnd()
29934
 
29935
  def validate(self):
29936
    return
29937
 
29938
 
29939
  def __repr__(self):
29940
    L = ['%s=%r' % (key, value)
29941
      for key, value in self.__dict__.iteritems()]
29942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29943
 
29944
  def __eq__(self, other):
29945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29946
 
29947
  def __ne__(self, other):
29948
    return not (self == other)
11531 vikram.rag 29949
 
29950
class getPrivateDealDetails_args:
29951
  """
29952
  Attributes:
29953
   - item_id
29954
  """
29955
 
29956
  thrift_spec = (
29957
    None, # 0
29958
    (1, TType.I64, 'item_id', None, None, ), # 1
29959
  )
29960
 
29961
  def __init__(self, item_id=None,):
29962
    self.item_id = item_id
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 == 1:
29974
        if ftype == TType.I64:
29975
          self.item_id = iprot.readI64();
29976
        else:
29977
          iprot.skip(ftype)
29978
      else:
29979
        iprot.skip(ftype)
29980
      iprot.readFieldEnd()
29981
    iprot.readStructEnd()
29982
 
29983
  def write(self, oprot):
29984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29986
      return
29987
    oprot.writeStructBegin('getPrivateDealDetails_args')
29988
    if self.item_id is not None:
29989
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29990
      oprot.writeI64(self.item_id)
29991
      oprot.writeFieldEnd()
29992
    oprot.writeFieldStop()
29993
    oprot.writeStructEnd()
29994
 
29995
  def validate(self):
29996
    return
29997
 
29998
 
29999
  def __repr__(self):
30000
    L = ['%s=%r' % (key, value)
30001
      for key, value in self.__dict__.iteritems()]
30002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30003
 
30004
  def __eq__(self, other):
30005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30006
 
30007
  def __ne__(self, other):
30008
    return not (self == other)
30009
 
30010
class getPrivateDealDetails_result:
30011
  """
30012
  Attributes:
30013
   - success
30014
  """
30015
 
30016
  thrift_spec = (
30017
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
30018
  )
30019
 
30020
  def __init__(self, success=None,):
30021
    self.success = success
30022
 
30023
  def read(self, iprot):
30024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30026
      return
30027
    iprot.readStructBegin()
30028
    while True:
30029
      (fname, ftype, fid) = iprot.readFieldBegin()
30030
      if ftype == TType.STOP:
30031
        break
30032
      if fid == 0:
30033
        if ftype == TType.STRUCT:
30034
          self.success = PrivateDeal()
30035
          self.success.read(iprot)
30036
        else:
30037
          iprot.skip(ftype)
30038
      else:
30039
        iprot.skip(ftype)
30040
      iprot.readFieldEnd()
30041
    iprot.readStructEnd()
30042
 
30043
  def write(self, oprot):
30044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30046
      return
30047
    oprot.writeStructBegin('getPrivateDealDetails_result')
30048
    if self.success is not None:
30049
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
30050
      self.success.write(oprot)
30051
      oprot.writeFieldEnd()
30052
    oprot.writeFieldStop()
30053
    oprot.writeStructEnd()
30054
 
30055
  def validate(self):
30056
    return
30057
 
30058
 
30059
  def __repr__(self):
30060
    L = ['%s=%r' % (key, value)
30061
      for key, value in self.__dict__.iteritems()]
30062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30063
 
30064
  def __eq__(self, other):
30065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30066
 
30067
  def __ne__(self, other):
30068
    return not (self == other)
30069
 
30070
class getPrivateDealItems_args:
30071
  """
30072
  Attributes:
30073
   - offset
30074
   - limit
30075
  """
30076
 
30077
  thrift_spec = (
30078
    None, # 0
30079
    (1, TType.I64, 'offset', None, None, ), # 1
30080
    (2, TType.I64, 'limit', None, None, ), # 2
30081
  )
30082
 
30083
  def __init__(self, offset=None, limit=None,):
30084
    self.offset = offset
30085
    self.limit = limit
30086
 
30087
  def read(self, iprot):
30088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30090
      return
30091
    iprot.readStructBegin()
30092
    while True:
30093
      (fname, ftype, fid) = iprot.readFieldBegin()
30094
      if ftype == TType.STOP:
30095
        break
30096
      if fid == 1:
30097
        if ftype == TType.I64:
30098
          self.offset = iprot.readI64();
30099
        else:
30100
          iprot.skip(ftype)
30101
      elif fid == 2:
30102
        if ftype == TType.I64:
30103
          self.limit = iprot.readI64();
30104
        else:
30105
          iprot.skip(ftype)
30106
      else:
30107
        iprot.skip(ftype)
30108
      iprot.readFieldEnd()
30109
    iprot.readStructEnd()
30110
 
30111
  def write(self, oprot):
30112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30114
      return
30115
    oprot.writeStructBegin('getPrivateDealItems_args')
30116
    if self.offset is not None:
30117
      oprot.writeFieldBegin('offset', TType.I64, 1)
30118
      oprot.writeI64(self.offset)
30119
      oprot.writeFieldEnd()
30120
    if self.limit is not None:
30121
      oprot.writeFieldBegin('limit', TType.I64, 2)
30122
      oprot.writeI64(self.limit)
30123
      oprot.writeFieldEnd()
30124
    oprot.writeFieldStop()
30125
    oprot.writeStructEnd()
30126
 
30127
  def validate(self):
30128
    return
30129
 
30130
 
30131
  def __repr__(self):
30132
    L = ['%s=%r' % (key, value)
30133
      for key, value in self.__dict__.iteritems()]
30134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30135
 
30136
  def __eq__(self, other):
30137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30138
 
30139
  def __ne__(self, other):
30140
    return not (self == other)
30141
 
30142
class getPrivateDealItems_result:
30143
  """
30144
  Attributes:
30145
   - success
30146
  """
30147
 
30148
  thrift_spec = (
30149
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
30150
  )
30151
 
30152
  def __init__(self, success=None,):
30153
    self.success = success
30154
 
30155
  def read(self, iprot):
30156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30158
      return
30159
    iprot.readStructBegin()
30160
    while True:
30161
      (fname, ftype, fid) = iprot.readFieldBegin()
30162
      if ftype == TType.STOP:
30163
        break
30164
      if fid == 0:
30165
        if ftype == TType.LIST:
30166
          self.success = []
13493 amit.gupta 30167
          (_etype676, _size673) = iprot.readListBegin()
30168
          for _i677 in xrange(_size673):
30169
            _elem678 = Item()
30170
            _elem678.read(iprot)
30171
            self.success.append(_elem678)
11531 vikram.rag 30172
          iprot.readListEnd()
30173
        else:
30174
          iprot.skip(ftype)
30175
      else:
30176
        iprot.skip(ftype)
30177
      iprot.readFieldEnd()
30178
    iprot.readStructEnd()
30179
 
30180
  def write(self, oprot):
30181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30183
      return
30184
    oprot.writeStructBegin('getPrivateDealItems_result')
30185
    if self.success is not None:
30186
      oprot.writeFieldBegin('success', TType.LIST, 0)
30187
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 30188
      for iter679 in self.success:
30189
        iter679.write(oprot)
11531 vikram.rag 30190
      oprot.writeListEnd()
30191
      oprot.writeFieldEnd()
30192
    oprot.writeFieldStop()
30193
    oprot.writeStructEnd()
30194
 
30195
  def validate(self):
30196
    return
30197
 
30198
 
30199
  def __repr__(self):
30200
    L = ['%s=%r' % (key, value)
30201
      for key, value in self.__dict__.iteritems()]
30202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30203
 
30204
  def __eq__(self, other):
30205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30206
 
30207
  def __ne__(self, other):
30208
    return not (self == other)
30209
 
11592 amit.gupta 30210
class getAllActivePrivateDeals_args:
11653 amit.gupta 30211
  """
30212
  Attributes:
30213
   - itemIds
30214
   - daysDelta
30215
  """
11592 amit.gupta 30216
 
30217
  thrift_spec = (
11653 amit.gupta 30218
    None, # 0
30219
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
30220
    (2, TType.I64, 'daysDelta', None, None, ), # 2
11592 amit.gupta 30221
  )
30222
 
11653 amit.gupta 30223
  def __init__(self, itemIds=None, daysDelta=None,):
30224
    self.itemIds = itemIds
30225
    self.daysDelta = daysDelta
30226
 
11592 amit.gupta 30227
  def read(self, iprot):
30228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30230
      return
30231
    iprot.readStructBegin()
30232
    while True:
30233
      (fname, ftype, fid) = iprot.readFieldBegin()
30234
      if ftype == TType.STOP:
30235
        break
11653 amit.gupta 30236
      if fid == 1:
30237
        if ftype == TType.LIST:
30238
          self.itemIds = []
13493 amit.gupta 30239
          (_etype683, _size680) = iprot.readListBegin()
30240
          for _i684 in xrange(_size680):
30241
            _elem685 = iprot.readI64();
30242
            self.itemIds.append(_elem685)
11653 amit.gupta 30243
          iprot.readListEnd()
30244
        else:
30245
          iprot.skip(ftype)
30246
      elif fid == 2:
30247
        if ftype == TType.I64:
30248
          self.daysDelta = iprot.readI64();
30249
        else:
30250
          iprot.skip(ftype)
11592 amit.gupta 30251
      else:
30252
        iprot.skip(ftype)
30253
      iprot.readFieldEnd()
30254
    iprot.readStructEnd()
30255
 
30256
  def write(self, oprot):
30257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30259
      return
30260
    oprot.writeStructBegin('getAllActivePrivateDeals_args')
11653 amit.gupta 30261
    if self.itemIds is not None:
30262
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
30263
      oprot.writeListBegin(TType.I64, len(self.itemIds))
13493 amit.gupta 30264
      for iter686 in self.itemIds:
30265
        oprot.writeI64(iter686)
11653 amit.gupta 30266
      oprot.writeListEnd()
30267
      oprot.writeFieldEnd()
30268
    if self.daysDelta is not None:
30269
      oprot.writeFieldBegin('daysDelta', TType.I64, 2)
30270
      oprot.writeI64(self.daysDelta)
30271
      oprot.writeFieldEnd()
11592 amit.gupta 30272
    oprot.writeFieldStop()
30273
    oprot.writeStructEnd()
30274
 
30275
  def validate(self):
30276
    return
30277
 
30278
 
30279
  def __repr__(self):
30280
    L = ['%s=%r' % (key, value)
30281
      for key, value in self.__dict__.iteritems()]
30282
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30283
 
30284
  def __eq__(self, other):
30285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30286
 
30287
  def __ne__(self, other):
30288
    return not (self == other)
30289
 
30290
class getAllActivePrivateDeals_result:
30291
  """
30292
  Attributes:
30293
   - success
30294
  """
30295
 
30296
  thrift_spec = (
30297
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.thrift_spec)), None, ), # 0
30298
  )
30299
 
30300
  def __init__(self, success=None,):
30301
    self.success = success
30302
 
30303
  def read(self, iprot):
30304
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30305
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30306
      return
30307
    iprot.readStructBegin()
30308
    while True:
30309
      (fname, ftype, fid) = iprot.readFieldBegin()
30310
      if ftype == TType.STOP:
30311
        break
30312
      if fid == 0:
30313
        if ftype == TType.MAP:
30314
          self.success = {}
13493 amit.gupta 30315
          (_ktype688, _vtype689, _size687 ) = iprot.readMapBegin() 
30316
          for _i691 in xrange(_size687):
30317
            _key692 = iprot.readI64();
30318
            _val693 = PrivateDeal()
30319
            _val693.read(iprot)
30320
            self.success[_key692] = _val693
11592 amit.gupta 30321
          iprot.readMapEnd()
30322
        else:
30323
          iprot.skip(ftype)
30324
      else:
30325
        iprot.skip(ftype)
30326
      iprot.readFieldEnd()
30327
    iprot.readStructEnd()
30328
 
30329
  def write(self, oprot):
30330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30332
      return
30333
    oprot.writeStructBegin('getAllActivePrivateDeals_result')
30334
    if self.success is not None:
30335
      oprot.writeFieldBegin('success', TType.MAP, 0)
30336
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
13493 amit.gupta 30337
      for kiter694,viter695 in self.success.items():
30338
        oprot.writeI64(kiter694)
30339
        viter695.write(oprot)
11592 amit.gupta 30340
      oprot.writeMapEnd()
30341
      oprot.writeFieldEnd()
30342
    oprot.writeFieldStop()
30343
    oprot.writeStructEnd()
30344
 
30345
  def validate(self):
30346
    return
30347
 
30348
 
30349
  def __repr__(self):
30350
    L = ['%s=%r' % (key, value)
30351
      for key, value in self.__dict__.iteritems()]
30352
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30353
 
30354
  def __eq__(self, other):
30355
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30356
 
30357
  def __ne__(self, other):
30358
    return not (self == other)
30359
 
11531 vikram.rag 30360
class addOrUpdatePrivateDeal_args:
30361
  """
30362
  Attributes:
30363
   - privateDeal
30364
  """
30365
 
30366
  thrift_spec = (
30367
    None, # 0
30368
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
30369
  )
30370
 
30371
  def __init__(self, privateDeal=None,):
30372
    self.privateDeal = privateDeal
30373
 
30374
  def read(self, iprot):
30375
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30376
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30377
      return
30378
    iprot.readStructBegin()
30379
    while True:
30380
      (fname, ftype, fid) = iprot.readFieldBegin()
30381
      if ftype == TType.STOP:
30382
        break
30383
      if fid == 1:
30384
        if ftype == TType.STRUCT:
30385
          self.privateDeal = PrivateDeal()
30386
          self.privateDeal.read(iprot)
30387
        else:
30388
          iprot.skip(ftype)
30389
      else:
30390
        iprot.skip(ftype)
30391
      iprot.readFieldEnd()
30392
    iprot.readStructEnd()
30393
 
30394
  def write(self, oprot):
30395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30397
      return
30398
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
30399
    if self.privateDeal is not None:
30400
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
30401
      self.privateDeal.write(oprot)
30402
      oprot.writeFieldEnd()
30403
    oprot.writeFieldStop()
30404
    oprot.writeStructEnd()
30405
 
30406
  def validate(self):
30407
    return
30408
 
30409
 
30410
  def __repr__(self):
30411
    L = ['%s=%r' % (key, value)
30412
      for key, value in self.__dict__.iteritems()]
30413
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30414
 
30415
  def __eq__(self, other):
30416
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30417
 
30418
  def __ne__(self, other):
30419
    return not (self == other)
30420
 
30421
class addOrUpdatePrivateDeal_result:
30422
  """
30423
  Attributes:
30424
   - success
30425
  """
30426
 
30427
  thrift_spec = (
30428
    (0, TType.BOOL, 'success', None, None, ), # 0
30429
  )
30430
 
30431
  def __init__(self, success=None,):
30432
    self.success = success
30433
 
30434
  def read(self, iprot):
30435
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30436
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30437
      return
30438
    iprot.readStructBegin()
30439
    while True:
30440
      (fname, ftype, fid) = iprot.readFieldBegin()
30441
      if ftype == TType.STOP:
30442
        break
30443
      if fid == 0:
30444
        if ftype == TType.BOOL:
30445
          self.success = iprot.readBool();
30446
        else:
30447
          iprot.skip(ftype)
30448
      else:
30449
        iprot.skip(ftype)
30450
      iprot.readFieldEnd()
30451
    iprot.readStructEnd()
30452
 
30453
  def write(self, oprot):
30454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30456
      return
30457
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
30458
    if self.success is not None:
30459
      oprot.writeFieldBegin('success', TType.BOOL, 0)
30460
      oprot.writeBool(self.success)
30461
      oprot.writeFieldEnd()
30462
    oprot.writeFieldStop()
30463
    oprot.writeStructEnd()
30464
 
30465
  def validate(self):
30466
    return
30467
 
30468
 
30469
  def __repr__(self):
30470
    L = ['%s=%r' % (key, value)
30471
      for key, value in self.__dict__.iteritems()]
30472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30473
 
30474
  def __eq__(self, other):
30475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30476
 
30477
  def __ne__(self, other):
30478
    return not (self == other)
11635 vikram.rag 30479
 
30480
class getPrivateDealsCatalogIds_args:
30481
  """
30482
  Attributes:
30483
   - beginIndex
30484
   - totalItems
30485
  """
30486
 
30487
  thrift_spec = (
30488
    None, # 0
30489
    (1, TType.I64, 'beginIndex', None, None, ), # 1
30490
    (2, TType.I64, 'totalItems', None, None, ), # 2
30491
  )
30492
 
30493
  def __init__(self, beginIndex=None, totalItems=None,):
30494
    self.beginIndex = beginIndex
30495
    self.totalItems = totalItems
30496
 
30497
  def read(self, iprot):
30498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30500
      return
30501
    iprot.readStructBegin()
30502
    while True:
30503
      (fname, ftype, fid) = iprot.readFieldBegin()
30504
      if ftype == TType.STOP:
30505
        break
30506
      if fid == 1:
30507
        if ftype == TType.I64:
30508
          self.beginIndex = iprot.readI64();
30509
        else:
30510
          iprot.skip(ftype)
30511
      elif fid == 2:
30512
        if ftype == TType.I64:
30513
          self.totalItems = iprot.readI64();
30514
        else:
30515
          iprot.skip(ftype)
30516
      else:
30517
        iprot.skip(ftype)
30518
      iprot.readFieldEnd()
30519
    iprot.readStructEnd()
30520
 
30521
  def write(self, oprot):
30522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30524
      return
30525
    oprot.writeStructBegin('getPrivateDealsCatalogIds_args')
30526
    if self.beginIndex is not None:
30527
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
30528
      oprot.writeI64(self.beginIndex)
30529
      oprot.writeFieldEnd()
30530
    if self.totalItems is not None:
30531
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
30532
      oprot.writeI64(self.totalItems)
30533
      oprot.writeFieldEnd()
30534
    oprot.writeFieldStop()
30535
    oprot.writeStructEnd()
30536
 
30537
  def validate(self):
30538
    return
30539
 
30540
 
30541
  def __repr__(self):
30542
    L = ['%s=%r' % (key, value)
30543
      for key, value in self.__dict__.iteritems()]
30544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30545
 
30546
  def __eq__(self, other):
30547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30548
 
30549
  def __ne__(self, other):
30550
    return not (self == other)
30551
 
30552
class getPrivateDealsCatalogIds_result:
30553
  """
30554
  Attributes:
30555
   - success
30556
   - cex
30557
  """
30558
 
30559
  thrift_spec = (
30560
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
30561
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
30562
  )
30563
 
30564
  def __init__(self, success=None, cex=None,):
30565
    self.success = success
30566
    self.cex = cex
30567
 
30568
  def read(self, iprot):
30569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30571
      return
30572
    iprot.readStructBegin()
30573
    while True:
30574
      (fname, ftype, fid) = iprot.readFieldBegin()
30575
      if ftype == TType.STOP:
30576
        break
30577
      if fid == 0:
30578
        if ftype == TType.LIST:
30579
          self.success = []
13493 amit.gupta 30580
          (_etype699, _size696) = iprot.readListBegin()
30581
          for _i700 in xrange(_size696):
30582
            _elem701 = iprot.readI64();
30583
            self.success.append(_elem701)
11635 vikram.rag 30584
          iprot.readListEnd()
30585
        else:
30586
          iprot.skip(ftype)
30587
      elif fid == 1:
30588
        if ftype == TType.STRUCT:
30589
          self.cex = CatalogServiceException()
30590
          self.cex.read(iprot)
30591
        else:
30592
          iprot.skip(ftype)
30593
      else:
30594
        iprot.skip(ftype)
30595
      iprot.readFieldEnd()
30596
    iprot.readStructEnd()
30597
 
30598
  def write(self, oprot):
30599
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30600
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30601
      return
30602
    oprot.writeStructBegin('getPrivateDealsCatalogIds_result')
30603
    if self.success is not None:
30604
      oprot.writeFieldBegin('success', TType.LIST, 0)
30605
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 30606
      for iter702 in self.success:
30607
        oprot.writeI64(iter702)
11635 vikram.rag 30608
      oprot.writeListEnd()
30609
      oprot.writeFieldEnd()
30610
    if self.cex is not None:
30611
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
30612
      self.cex.write(oprot)
30613
      oprot.writeFieldEnd()
30614
    oprot.writeFieldStop()
30615
    oprot.writeStructEnd()
30616
 
30617
  def validate(self):
30618
    return
30619
 
30620
 
30621
  def __repr__(self):
30622
    L = ['%s=%r' % (key, value)
30623
      for key, value in self.__dict__.iteritems()]
30624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30625
 
30626
  def __eq__(self, other):
30627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30628
 
30629
  def __ne__(self, other):
30630
    return not (self == other)
11645 amit.gupta 30631
 
30632
class getPrivateDealsCount_args:
30633
 
30634
  thrift_spec = (
30635
  )
30636
 
30637
  def read(self, iprot):
30638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30640
      return
30641
    iprot.readStructBegin()
30642
    while True:
30643
      (fname, ftype, fid) = iprot.readFieldBegin()
30644
      if ftype == TType.STOP:
30645
        break
30646
      else:
30647
        iprot.skip(ftype)
30648
      iprot.readFieldEnd()
30649
    iprot.readStructEnd()
30650
 
30651
  def write(self, oprot):
30652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30654
      return
30655
    oprot.writeStructBegin('getPrivateDealsCount_args')
30656
    oprot.writeFieldStop()
30657
    oprot.writeStructEnd()
30658
 
30659
  def validate(self):
30660
    return
30661
 
30662
 
30663
  def __repr__(self):
30664
    L = ['%s=%r' % (key, value)
30665
      for key, value in self.__dict__.iteritems()]
30666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30667
 
30668
  def __eq__(self, other):
30669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30670
 
30671
  def __ne__(self, other):
30672
    return not (self == other)
30673
 
30674
class getPrivateDealsCount_result:
30675
  """
30676
  Attributes:
30677
   - success
30678
  """
30679
 
30680
  thrift_spec = (
30681
    (0, TType.I32, 'success', None, None, ), # 0
30682
  )
30683
 
30684
  def __init__(self, success=None,):
30685
    self.success = success
30686
 
30687
  def read(self, iprot):
30688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30690
      return
30691
    iprot.readStructBegin()
30692
    while True:
30693
      (fname, ftype, fid) = iprot.readFieldBegin()
30694
      if ftype == TType.STOP:
30695
        break
30696
      if fid == 0:
30697
        if ftype == TType.I32:
30698
          self.success = iprot.readI32();
30699
        else:
30700
          iprot.skip(ftype)
30701
      else:
30702
        iprot.skip(ftype)
30703
      iprot.readFieldEnd()
30704
    iprot.readStructEnd()
30705
 
30706
  def write(self, oprot):
30707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30709
      return
30710
    oprot.writeStructBegin('getPrivateDealsCount_result')
30711
    if self.success is not None:
30712
      oprot.writeFieldBegin('success', TType.I32, 0)
30713
      oprot.writeI32(self.success)
30714
      oprot.writeFieldEnd()
30715
    oprot.writeFieldStop()
30716
    oprot.writeStructEnd()
30717
 
30718
  def validate(self):
30719
    return
30720
 
30721
 
30722
  def __repr__(self):
30723
    L = ['%s=%r' % (key, value)
30724
      for key, value in self.__dict__.iteritems()]
30725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30726
 
30727
  def __eq__(self, other):
30728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30729
 
30730
  def __ne__(self, other):
30731
    return not (self == other)
11905 kshitij.so 30732
 
30733
class getAmazonOutSyncItems_args:
30734
  """
30735
  Attributes:
30736
   - item_id
30737
  """
30738
 
30739
  thrift_spec = (
30740
    None, # 0
30741
    (1, TType.I64, 'item_id', None, None, ), # 1
30742
  )
30743
 
30744
  def __init__(self, item_id=None,):
30745
    self.item_id = item_id
30746
 
30747
  def read(self, iprot):
30748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30750
      return
30751
    iprot.readStructBegin()
30752
    while True:
30753
      (fname, ftype, fid) = iprot.readFieldBegin()
30754
      if ftype == TType.STOP:
30755
        break
30756
      if fid == 1:
30757
        if ftype == TType.I64:
30758
          self.item_id = iprot.readI64();
30759
        else:
30760
          iprot.skip(ftype)
30761
      else:
30762
        iprot.skip(ftype)
30763
      iprot.readFieldEnd()
30764
    iprot.readStructEnd()
30765
 
30766
  def write(self, oprot):
30767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30769
      return
30770
    oprot.writeStructBegin('getAmazonOutSyncItems_args')
30771
    if self.item_id is not None:
30772
      oprot.writeFieldBegin('item_id', TType.I64, 1)
30773
      oprot.writeI64(self.item_id)
30774
      oprot.writeFieldEnd()
30775
    oprot.writeFieldStop()
30776
    oprot.writeStructEnd()
30777
 
30778
  def validate(self):
30779
    return
30780
 
30781
 
30782
  def __repr__(self):
30783
    L = ['%s=%r' % (key, value)
30784
      for key, value in self.__dict__.iteritems()]
30785
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30786
 
30787
  def __eq__(self, other):
30788
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30789
 
30790
  def __ne__(self, other):
30791
    return not (self == other)
30792
 
30793
class getAmazonOutSyncItems_result:
30794
  """
30795
  Attributes:
30796
   - success
30797
  """
30798
 
30799
  thrift_spec = (
30800
    (0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.thrift_spec), None, ), # 0
30801
  )
30802
 
30803
  def __init__(self, success=None,):
30804
    self.success = success
30805
 
30806
  def read(self, iprot):
30807
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30808
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30809
      return
30810
    iprot.readStructBegin()
30811
    while True:
30812
      (fname, ftype, fid) = iprot.readFieldBegin()
30813
      if ftype == TType.STOP:
30814
        break
30815
      if fid == 0:
30816
        if ftype == TType.STRUCT:
30817
          self.success = AmazonOutOfSync()
30818
          self.success.read(iprot)
30819
        else:
30820
          iprot.skip(ftype)
30821
      else:
30822
        iprot.skip(ftype)
30823
      iprot.readFieldEnd()
30824
    iprot.readStructEnd()
30825
 
30826
  def write(self, oprot):
30827
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30828
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30829
      return
30830
    oprot.writeStructBegin('getAmazonOutSyncItems_result')
30831
    if self.success is not None:
30832
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
30833
      self.success.write(oprot)
30834
      oprot.writeFieldEnd()
30835
    oprot.writeFieldStop()
30836
    oprot.writeStructEnd()
30837
 
30838
  def validate(self):
30839
    return
30840
 
30841
 
30842
  def __repr__(self):
30843
    L = ['%s=%r' % (key, value)
30844
      for key, value in self.__dict__.iteritems()]
30845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30846
 
30847
  def __eq__(self, other):
30848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30849
 
30850
  def __ne__(self, other):
30851
    return not (self == other)
30852
 
30853
class getAllPrivateDealsComparison_args:
30854
 
30855
  thrift_spec = (
30856
  )
30857
 
30858
  def read(self, iprot):
30859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30861
      return
30862
    iprot.readStructBegin()
30863
    while True:
30864
      (fname, ftype, fid) = iprot.readFieldBegin()
30865
      if ftype == TType.STOP:
30866
        break
30867
      else:
30868
        iprot.skip(ftype)
30869
      iprot.readFieldEnd()
30870
    iprot.readStructEnd()
30871
 
30872
  def write(self, oprot):
30873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30875
      return
30876
    oprot.writeStructBegin('getAllPrivateDealsComparison_args')
30877
    oprot.writeFieldStop()
30878
    oprot.writeStructEnd()
30879
 
30880
  def validate(self):
30881
    return
30882
 
30883
 
30884
  def __repr__(self):
30885
    L = ['%s=%r' % (key, value)
30886
      for key, value in self.__dict__.iteritems()]
30887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30888
 
30889
  def __eq__(self, other):
30890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30891
 
30892
  def __ne__(self, other):
30893
    return not (self == other)
30894
 
30895
class getAllPrivateDealsComparison_result:
30896
  """
30897
  Attributes:
30898
   - success
30899
  """
30900
 
30901
  thrift_spec = (
30902
    (0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.thrift_spec)), None, ), # 0
30903
  )
30904
 
30905
  def __init__(self, success=None,):
30906
    self.success = success
30907
 
30908
  def read(self, iprot):
30909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30911
      return
30912
    iprot.readStructBegin()
30913
    while True:
30914
      (fname, ftype, fid) = iprot.readFieldBegin()
30915
      if ftype == TType.STOP:
30916
        break
30917
      if fid == 0:
30918
        if ftype == TType.LIST:
30919
          self.success = []
13493 amit.gupta 30920
          (_etype706, _size703) = iprot.readListBegin()
30921
          for _i707 in xrange(_size703):
30922
            _elem708 = PdPriceComp()
30923
            _elem708.read(iprot)
30924
            self.success.append(_elem708)
11905 kshitij.so 30925
          iprot.readListEnd()
30926
        else:
30927
          iprot.skip(ftype)
30928
      else:
30929
        iprot.skip(ftype)
30930
      iprot.readFieldEnd()
30931
    iprot.readStructEnd()
30932
 
30933
  def write(self, oprot):
30934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30936
      return
30937
    oprot.writeStructBegin('getAllPrivateDealsComparison_result')
30938
    if self.success is not None:
30939
      oprot.writeFieldBegin('success', TType.LIST, 0)
30940
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 30941
      for iter709 in self.success:
30942
        iter709.write(oprot)
11905 kshitij.so 30943
      oprot.writeListEnd()
30944
      oprot.writeFieldEnd()
30945
    oprot.writeFieldStop()
30946
    oprot.writeStructEnd()
30947
 
30948
  def validate(self):
30949
    return
30950
 
30951
 
30952
  def __repr__(self):
30953
    L = ['%s=%r' % (key, value)
30954
      for key, value in self.__dict__.iteritems()]
30955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30956
 
30957
  def __eq__(self, other):
30958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30959
 
30960
  def __ne__(self, other):
30961
    return not (self == other)
12133 kshitij.so 30962
 
30963
class getAllSnapdealMarketplaceItem_args:
30964
 
30965
  thrift_spec = (
30966
  )
30967
 
30968
  def read(self, iprot):
30969
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30970
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30971
      return
30972
    iprot.readStructBegin()
30973
    while True:
30974
      (fname, ftype, fid) = iprot.readFieldBegin()
30975
      if ftype == TType.STOP:
30976
        break
30977
      else:
30978
        iprot.skip(ftype)
30979
      iprot.readFieldEnd()
30980
    iprot.readStructEnd()
30981
 
30982
  def write(self, oprot):
30983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30985
      return
30986
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_args')
30987
    oprot.writeFieldStop()
30988
    oprot.writeStructEnd()
30989
 
30990
  def validate(self):
30991
    return
30992
 
30993
 
30994
  def __repr__(self):
30995
    L = ['%s=%r' % (key, value)
30996
      for key, value in self.__dict__.iteritems()]
30997
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30998
 
30999
  def __eq__(self, other):
31000
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31001
 
31002
  def __ne__(self, other):
31003
    return not (self == other)
31004
 
31005
class getAllSnapdealMarketplaceItem_result:
31006
  """
31007
  Attributes:
31008
   - success
31009
  """
31010
 
31011
  thrift_spec = (
31012
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
31013
  )
31014
 
31015
  def __init__(self, success=None,):
31016
    self.success = success
31017
 
31018
  def read(self, iprot):
31019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31021
      return
31022
    iprot.readStructBegin()
31023
    while True:
31024
      (fname, ftype, fid) = iprot.readFieldBegin()
31025
      if ftype == TType.STOP:
31026
        break
31027
      if fid == 0:
31028
        if ftype == TType.LIST:
31029
          self.success = []
13493 amit.gupta 31030
          (_etype713, _size710) = iprot.readListBegin()
31031
          for _i714 in xrange(_size710):
31032
            _elem715 = SnapdealItem()
31033
            _elem715.read(iprot)
31034
            self.success.append(_elem715)
12133 kshitij.so 31035
          iprot.readListEnd()
31036
        else:
31037
          iprot.skip(ftype)
31038
      else:
31039
        iprot.skip(ftype)
31040
      iprot.readFieldEnd()
31041
    iprot.readStructEnd()
31042
 
31043
  def write(self, oprot):
31044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31046
      return
31047
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_result')
31048
    if self.success is not None:
31049
      oprot.writeFieldBegin('success', TType.LIST, 0)
31050
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31051
      for iter716 in self.success:
31052
        iter716.write(oprot)
12133 kshitij.so 31053
      oprot.writeListEnd()
31054
      oprot.writeFieldEnd()
31055
    oprot.writeFieldStop()
31056
    oprot.writeStructEnd()
31057
 
31058
  def validate(self):
31059
    return
31060
 
31061
 
31062
  def __repr__(self):
31063
    L = ['%s=%r' % (key, value)
31064
      for key, value in self.__dict__.iteritems()]
31065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31066
 
31067
  def __eq__(self, other):
31068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31069
 
31070
  def __ne__(self, other):
31071
    return not (self == other)
31072
 
31073
class getAllFlipkartMarketplaceItem_args:
31074
 
31075
  thrift_spec = (
31076
  )
31077
 
31078
  def read(self, iprot):
31079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31081
      return
31082
    iprot.readStructBegin()
31083
    while True:
31084
      (fname, ftype, fid) = iprot.readFieldBegin()
31085
      if ftype == TType.STOP:
31086
        break
31087
      else:
31088
        iprot.skip(ftype)
31089
      iprot.readFieldEnd()
31090
    iprot.readStructEnd()
31091
 
31092
  def write(self, oprot):
31093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31095
      return
31096
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_args')
31097
    oprot.writeFieldStop()
31098
    oprot.writeStructEnd()
31099
 
31100
  def validate(self):
31101
    return
31102
 
31103
 
31104
  def __repr__(self):
31105
    L = ['%s=%r' % (key, value)
31106
      for key, value in self.__dict__.iteritems()]
31107
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31108
 
31109
  def __eq__(self, other):
31110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31111
 
31112
  def __ne__(self, other):
31113
    return not (self == other)
31114
 
31115
class getAllFlipkartMarketplaceItem_result:
31116
  """
31117
  Attributes:
31118
   - success
31119
  """
31120
 
31121
  thrift_spec = (
31122
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
31123
  )
31124
 
31125
  def __init__(self, success=None,):
31126
    self.success = success
31127
 
31128
  def read(self, iprot):
31129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31131
      return
31132
    iprot.readStructBegin()
31133
    while True:
31134
      (fname, ftype, fid) = iprot.readFieldBegin()
31135
      if ftype == TType.STOP:
31136
        break
31137
      if fid == 0:
31138
        if ftype == TType.LIST:
31139
          self.success = []
13493 amit.gupta 31140
          (_etype720, _size717) = iprot.readListBegin()
31141
          for _i721 in xrange(_size717):
31142
            _elem722 = FlipkartItem()
31143
            _elem722.read(iprot)
31144
            self.success.append(_elem722)
12133 kshitij.so 31145
          iprot.readListEnd()
31146
        else:
31147
          iprot.skip(ftype)
31148
      else:
31149
        iprot.skip(ftype)
31150
      iprot.readFieldEnd()
31151
    iprot.readStructEnd()
31152
 
31153
  def write(self, oprot):
31154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31156
      return
31157
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_result')
31158
    if self.success is not None:
31159
      oprot.writeFieldBegin('success', TType.LIST, 0)
31160
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31161
      for iter723 in self.success:
31162
        iter723.write(oprot)
12133 kshitij.so 31163
      oprot.writeListEnd()
31164
      oprot.writeFieldEnd()
31165
    oprot.writeFieldStop()
31166
    oprot.writeStructEnd()
31167
 
31168
  def validate(self):
31169
    return
31170
 
31171
 
31172
  def __repr__(self):
31173
    L = ['%s=%r' % (key, value)
31174
      for key, value in self.__dict__.iteritems()]
31175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31176
 
31177
  def __eq__(self, other):
31178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31179
 
31180
  def __ne__(self, other):
31181
    return not (self == other)
12243 kshitij.so 31182
 
31183
class addCompetitorScraping_args:
31184
  """
31185
  Attributes:
31186
   - competitorPricingMap
31187
  """
31188
 
31189
  thrift_spec = (
31190
    None, # 0
31191
    (1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1
31192
  )
31193
 
31194
  def __init__(self, competitorPricingMap=None,):
31195
    self.competitorPricingMap = competitorPricingMap
31196
 
31197
  def read(self, iprot):
31198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31200
      return
31201
    iprot.readStructBegin()
31202
    while True:
31203
      (fname, ftype, fid) = iprot.readFieldBegin()
31204
      if ftype == TType.STOP:
31205
        break
31206
      if fid == 1:
31207
        if ftype == TType.MAP:
31208
          self.competitorPricingMap = {}
13493 amit.gupta 31209
          (_ktype725, _vtype726, _size724 ) = iprot.readMapBegin() 
31210
          for _i728 in xrange(_size724):
31211
            _key729 = iprot.readI64();
31212
            _val730 = CompetitorPricing()
31213
            _val730.read(iprot)
31214
            self.competitorPricingMap[_key729] = _val730
12243 kshitij.so 31215
          iprot.readMapEnd()
31216
        else:
31217
          iprot.skip(ftype)
31218
      else:
31219
        iprot.skip(ftype)
31220
      iprot.readFieldEnd()
31221
    iprot.readStructEnd()
31222
 
31223
  def write(self, oprot):
31224
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31225
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31226
      return
31227
    oprot.writeStructBegin('addCompetitorScraping_args')
31228
    if self.competitorPricingMap is not None:
31229
      oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)
31230
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))
13493 amit.gupta 31231
      for kiter731,viter732 in self.competitorPricingMap.items():
31232
        oprot.writeI64(kiter731)
31233
        viter732.write(oprot)
12243 kshitij.so 31234
      oprot.writeMapEnd()
31235
      oprot.writeFieldEnd()
31236
    oprot.writeFieldStop()
31237
    oprot.writeStructEnd()
31238
 
31239
  def validate(self):
31240
    return
31241
 
31242
 
31243
  def __repr__(self):
31244
    L = ['%s=%r' % (key, value)
31245
      for key, value in self.__dict__.iteritems()]
31246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31247
 
31248
  def __eq__(self, other):
31249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31250
 
31251
  def __ne__(self, other):
31252
    return not (self == other)
31253
 
31254
class addCompetitorScraping_result:
31255
 
31256
  thrift_spec = (
31257
  )
31258
 
31259
  def read(self, iprot):
31260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31262
      return
31263
    iprot.readStructBegin()
31264
    while True:
31265
      (fname, ftype, fid) = iprot.readFieldBegin()
31266
      if ftype == TType.STOP:
31267
        break
31268
      else:
31269
        iprot.skip(ftype)
31270
      iprot.readFieldEnd()
31271
    iprot.readStructEnd()
31272
 
31273
  def write(self, oprot):
31274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31276
      return
31277
    oprot.writeStructBegin('addCompetitorScraping_result')
31278
    oprot.writeFieldStop()
31279
    oprot.writeStructEnd()
31280
 
31281
  def validate(self):
31282
    return
31283
 
31284
 
31285
  def __repr__(self):
31286
    L = ['%s=%r' % (key, value)
31287
      for key, value in self.__dict__.iteritems()]
31288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31289
 
31290
  def __eq__(self, other):
31291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31292
 
31293
  def __ne__(self, other):
31294
    return not (self == other)
31295
 
31296
class getPreviousCompetitorScraping_args:
31297
  """
31298
  Attributes:
31299
   - delta
31300
  """
31301
 
31302
  thrift_spec = (
31303
    None, # 0
31304
    (1, TType.I64, 'delta', None, None, ), # 1
31305
  )
31306
 
31307
  def __init__(self, delta=None,):
31308
    self.delta = delta
31309
 
31310
  def read(self, iprot):
31311
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31312
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31313
      return
31314
    iprot.readStructBegin()
31315
    while True:
31316
      (fname, ftype, fid) = iprot.readFieldBegin()
31317
      if ftype == TType.STOP:
31318
        break
31319
      if fid == 1:
31320
        if ftype == TType.I64:
31321
          self.delta = iprot.readI64();
31322
        else:
31323
          iprot.skip(ftype)
31324
      else:
31325
        iprot.skip(ftype)
31326
      iprot.readFieldEnd()
31327
    iprot.readStructEnd()
31328
 
31329
  def write(self, oprot):
31330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31332
      return
31333
    oprot.writeStructBegin('getPreviousCompetitorScraping_args')
31334
    if self.delta is not None:
31335
      oprot.writeFieldBegin('delta', TType.I64, 1)
31336
      oprot.writeI64(self.delta)
31337
      oprot.writeFieldEnd()
31338
    oprot.writeFieldStop()
31339
    oprot.writeStructEnd()
31340
 
31341
  def validate(self):
31342
    return
31343
 
31344
 
31345
  def __repr__(self):
31346
    L = ['%s=%r' % (key, value)
31347
      for key, value in self.__dict__.iteritems()]
31348
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31349
 
31350
  def __eq__(self, other):
31351
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31352
 
31353
  def __ne__(self, other):
31354
    return not (self == other)
31355
 
31356
class getPreviousCompetitorScraping_result:
31357
  """
31358
  Attributes:
31359
   - success
31360
  """
31361
 
31362
  thrift_spec = (
31363
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31364
  )
31365
 
31366
  def __init__(self, success=None,):
31367
    self.success = success
31368
 
31369
  def read(self, iprot):
31370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31372
      return
31373
    iprot.readStructBegin()
31374
    while True:
31375
      (fname, ftype, fid) = iprot.readFieldBegin()
31376
      if ftype == TType.STOP:
31377
        break
31378
      if fid == 0:
31379
        if ftype == TType.LIST:
31380
          self.success = []
13493 amit.gupta 31381
          (_etype736, _size733) = iprot.readListBegin()
31382
          for _i737 in xrange(_size733):
31383
            _elem738 = CompetitorPricing()
31384
            _elem738.read(iprot)
31385
            self.success.append(_elem738)
12243 kshitij.so 31386
          iprot.readListEnd()
31387
        else:
31388
          iprot.skip(ftype)
31389
      else:
31390
        iprot.skip(ftype)
31391
      iprot.readFieldEnd()
31392
    iprot.readStructEnd()
31393
 
31394
  def write(self, oprot):
31395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31397
      return
31398
    oprot.writeStructBegin('getPreviousCompetitorScraping_result')
31399
    if self.success is not None:
31400
      oprot.writeFieldBegin('success', TType.LIST, 0)
31401
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31402
      for iter739 in self.success:
31403
        iter739.write(oprot)
12243 kshitij.so 31404
      oprot.writeListEnd()
31405
      oprot.writeFieldEnd()
31406
    oprot.writeFieldStop()
31407
    oprot.writeStructEnd()
31408
 
31409
  def validate(self):
31410
    return
31411
 
31412
 
31413
  def __repr__(self):
31414
    L = ['%s=%r' % (key, value)
31415
      for key, value in self.__dict__.iteritems()]
31416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31417
 
31418
  def __eq__(self, other):
31419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31420
 
31421
  def __ne__(self, other):
31422
    return not (self == other)
12256 kshitij.so 31423
 
31424
class getUploadResultById_args:
31425
  """
31426
  Attributes:
31427
   - uploadId
31428
  """
31429
 
31430
  thrift_spec = (
31431
    None, # 0
31432
    (1, TType.I64, 'uploadId', None, None, ), # 1
31433
  )
31434
 
31435
  def __init__(self, uploadId=None,):
31436
    self.uploadId = uploadId
31437
 
31438
  def read(self, iprot):
31439
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31440
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31441
      return
31442
    iprot.readStructBegin()
31443
    while True:
31444
      (fname, ftype, fid) = iprot.readFieldBegin()
31445
      if ftype == TType.STOP:
31446
        break
31447
      if fid == 1:
31448
        if ftype == TType.I64:
31449
          self.uploadId = iprot.readI64();
31450
        else:
31451
          iprot.skip(ftype)
31452
      else:
31453
        iprot.skip(ftype)
31454
      iprot.readFieldEnd()
31455
    iprot.readStructEnd()
31456
 
31457
  def write(self, oprot):
31458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31460
      return
31461
    oprot.writeStructBegin('getUploadResultById_args')
31462
    if self.uploadId is not None:
31463
      oprot.writeFieldBegin('uploadId', TType.I64, 1)
31464
      oprot.writeI64(self.uploadId)
31465
      oprot.writeFieldEnd()
31466
    oprot.writeFieldStop()
31467
    oprot.writeStructEnd()
31468
 
31469
  def validate(self):
31470
    return
31471
 
31472
 
31473
  def __repr__(self):
31474
    L = ['%s=%r' % (key, value)
31475
      for key, value in self.__dict__.iteritems()]
31476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31477
 
31478
  def __eq__(self, other):
31479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31480
 
31481
  def __ne__(self, other):
31482
    return not (self == other)
31483
 
31484
class getUploadResultById_result:
31485
  """
31486
  Attributes:
31487
   - success
31488
  """
31489
 
31490
  thrift_spec = (
31491
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31492
  )
31493
 
31494
  def __init__(self, success=None,):
31495
    self.success = success
31496
 
31497
  def read(self, iprot):
31498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31500
      return
31501
    iprot.readStructBegin()
31502
    while True:
31503
      (fname, ftype, fid) = iprot.readFieldBegin()
31504
      if ftype == TType.STOP:
31505
        break
31506
      if fid == 0:
31507
        if ftype == TType.LIST:
31508
          self.success = []
13493 amit.gupta 31509
          (_etype743, _size740) = iprot.readListBegin()
31510
          for _i744 in xrange(_size740):
31511
            _elem745 = CompetitorPricing()
31512
            _elem745.read(iprot)
31513
            self.success.append(_elem745)
12256 kshitij.so 31514
          iprot.readListEnd()
31515
        else:
31516
          iprot.skip(ftype)
31517
      else:
31518
        iprot.skip(ftype)
31519
      iprot.readFieldEnd()
31520
    iprot.readStructEnd()
31521
 
31522
  def write(self, oprot):
31523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31525
      return
31526
    oprot.writeStructBegin('getUploadResultById_result')
31527
    if self.success is not None:
31528
      oprot.writeFieldBegin('success', TType.LIST, 0)
31529
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31530
      for iter746 in self.success:
31531
        iter746.write(oprot)
12256 kshitij.so 31532
      oprot.writeListEnd()
31533
      oprot.writeFieldEnd()
31534
    oprot.writeFieldStop()
31535
    oprot.writeStructEnd()
31536
 
31537
  def validate(self):
31538
    return
31539
 
31540
 
31541
  def __repr__(self):
31542
    L = ['%s=%r' % (key, value)
31543
      for key, value in self.__dict__.iteritems()]
31544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31545
 
31546
  def __eq__(self, other):
31547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31548
 
31549
  def __ne__(self, other):
31550
    return not (self == other)
12363 kshitij.so 31551
 
31552
class addAmazonPromotion_args:
31553
  """
31554
  Attributes:
31555
   - amazonPromotions
31556
  """
31557
 
31558
  thrift_spec = (
31559
    None, # 0
31560
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31561
  )
31562
 
31563
  def __init__(self, amazonPromotions=None,):
31564
    self.amazonPromotions = amazonPromotions
31565
 
31566
  def read(self, iprot):
31567
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31568
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31569
      return
31570
    iprot.readStructBegin()
31571
    while True:
31572
      (fname, ftype, fid) = iprot.readFieldBegin()
31573
      if ftype == TType.STOP:
31574
        break
31575
      if fid == 1:
31576
        if ftype == TType.MAP:
31577
          self.amazonPromotions = {}
13493 amit.gupta 31578
          (_ktype748, _vtype749, _size747 ) = iprot.readMapBegin() 
31579
          for _i751 in xrange(_size747):
31580
            _key752 = iprot.readString();
31581
            _val753 = AmazonPromotion()
31582
            _val753.read(iprot)
31583
            self.amazonPromotions[_key752] = _val753
12363 kshitij.so 31584
          iprot.readMapEnd()
31585
        else:
31586
          iprot.skip(ftype)
31587
      else:
31588
        iprot.skip(ftype)
31589
      iprot.readFieldEnd()
31590
    iprot.readStructEnd()
31591
 
31592
  def write(self, oprot):
31593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31595
      return
31596
    oprot.writeStructBegin('addAmazonPromotion_args')
31597
    if self.amazonPromotions is not None:
31598
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
31599
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
13493 amit.gupta 31600
      for kiter754,viter755 in self.amazonPromotions.items():
31601
        oprot.writeString(kiter754)
31602
        viter755.write(oprot)
12363 kshitij.so 31603
      oprot.writeMapEnd()
31604
      oprot.writeFieldEnd()
31605
    oprot.writeFieldStop()
31606
    oprot.writeStructEnd()
31607
 
31608
  def validate(self):
31609
    return
31610
 
31611
 
31612
  def __repr__(self):
31613
    L = ['%s=%r' % (key, value)
31614
      for key, value in self.__dict__.iteritems()]
31615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31616
 
31617
  def __eq__(self, other):
31618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31619
 
31620
  def __ne__(self, other):
31621
    return not (self == other)
31622
 
31623
class addAmazonPromotion_result:
31624
  """
31625
  Attributes:
31626
   - success
12947 kshitij.so 31627
   - cex
12363 kshitij.so 31628
  """
31629
 
31630
  thrift_spec = (
12947 kshitij.so 31631
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
31632
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12363 kshitij.so 31633
  )
31634
 
12947 kshitij.so 31635
  def __init__(self, success=None, cex=None,):
12363 kshitij.so 31636
    self.success = success
12947 kshitij.so 31637
    self.cex = cex
12363 kshitij.so 31638
 
31639
  def read(self, iprot):
31640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31642
      return
31643
    iprot.readStructBegin()
31644
    while True:
31645
      (fname, ftype, fid) = iprot.readFieldBegin()
31646
      if ftype == TType.STOP:
31647
        break
31648
      if fid == 0:
12947 kshitij.so 31649
        if ftype == TType.LIST:
31650
          self.success = []
13493 amit.gupta 31651
          (_etype759, _size756) = iprot.readListBegin()
31652
          for _i760 in xrange(_size756):
31653
            _elem761 = iprot.readString();
31654
            self.success.append(_elem761)
12947 kshitij.so 31655
          iprot.readListEnd()
12363 kshitij.so 31656
        else:
31657
          iprot.skip(ftype)
12947 kshitij.so 31658
      elif fid == 1:
31659
        if ftype == TType.STRUCT:
31660
          self.cex = CatalogServiceException()
31661
          self.cex.read(iprot)
31662
        else:
31663
          iprot.skip(ftype)
12363 kshitij.so 31664
      else:
31665
        iprot.skip(ftype)
31666
      iprot.readFieldEnd()
31667
    iprot.readStructEnd()
31668
 
31669
  def write(self, oprot):
31670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31672
      return
31673
    oprot.writeStructBegin('addAmazonPromotion_result')
31674
    if self.success is not None:
12947 kshitij.so 31675
      oprot.writeFieldBegin('success', TType.LIST, 0)
31676
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 31677
      for iter762 in self.success:
31678
        oprot.writeString(iter762)
12947 kshitij.so 31679
      oprot.writeListEnd()
12363 kshitij.so 31680
      oprot.writeFieldEnd()
12947 kshitij.so 31681
    if self.cex is not None:
31682
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
31683
      self.cex.write(oprot)
31684
      oprot.writeFieldEnd()
12363 kshitij.so 31685
    oprot.writeFieldStop()
31686
    oprot.writeStructEnd()
31687
 
31688
  def validate(self):
31689
    return
31690
 
31691
 
31692
  def __repr__(self):
31693
    L = ['%s=%r' % (key, value)
31694
      for key, value in self.__dict__.iteritems()]
31695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31696
 
31697
  def __eq__(self, other):
31698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31699
 
31700
  def __ne__(self, other):
31701
    return not (self == other)
31702
 
31703
class getAmazonPromotion_args:
31704
  """
31705
  Attributes:
31706
   - startDate
31707
   - endDate
31708
  """
31709
 
31710
  thrift_spec = (
31711
    None, # 0
31712
    (1, TType.I64, 'startDate', None, None, ), # 1
31713
    (2, TType.I64, 'endDate', None, None, ), # 2
31714
  )
31715
 
31716
  def __init__(self, startDate=None, endDate=None,):
31717
    self.startDate = startDate
31718
    self.endDate = endDate
31719
 
31720
  def read(self, iprot):
31721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31723
      return
31724
    iprot.readStructBegin()
31725
    while True:
31726
      (fname, ftype, fid) = iprot.readFieldBegin()
31727
      if ftype == TType.STOP:
31728
        break
31729
      if fid == 1:
31730
        if ftype == TType.I64:
31731
          self.startDate = iprot.readI64();
31732
        else:
31733
          iprot.skip(ftype)
31734
      elif fid == 2:
31735
        if ftype == TType.I64:
31736
          self.endDate = iprot.readI64();
31737
        else:
31738
          iprot.skip(ftype)
31739
      else:
31740
        iprot.skip(ftype)
31741
      iprot.readFieldEnd()
31742
    iprot.readStructEnd()
31743
 
31744
  def write(self, oprot):
31745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31747
      return
31748
    oprot.writeStructBegin('getAmazonPromotion_args')
31749
    if self.startDate is not None:
31750
      oprot.writeFieldBegin('startDate', TType.I64, 1)
31751
      oprot.writeI64(self.startDate)
31752
      oprot.writeFieldEnd()
31753
    if self.endDate is not None:
31754
      oprot.writeFieldBegin('endDate', TType.I64, 2)
31755
      oprot.writeI64(self.endDate)
31756
      oprot.writeFieldEnd()
31757
    oprot.writeFieldStop()
31758
    oprot.writeStructEnd()
31759
 
31760
  def validate(self):
31761
    return
31762
 
31763
 
31764
  def __repr__(self):
31765
    L = ['%s=%r' % (key, value)
31766
      for key, value in self.__dict__.iteritems()]
31767
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31768
 
31769
  def __eq__(self, other):
31770
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31771
 
31772
  def __ne__(self, other):
31773
    return not (self == other)
31774
 
31775
class getAmazonPromotion_result:
31776
  """
31777
  Attributes:
31778
   - success
31779
  """
31780
 
31781
  thrift_spec = (
31782
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
31783
  )
31784
 
31785
  def __init__(self, success=None,):
31786
    self.success = success
31787
 
31788
  def read(self, iprot):
31789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31791
      return
31792
    iprot.readStructBegin()
31793
    while True:
31794
      (fname, ftype, fid) = iprot.readFieldBegin()
31795
      if ftype == TType.STOP:
31796
        break
31797
      if fid == 0:
31798
        if ftype == TType.LIST:
31799
          self.success = []
13493 amit.gupta 31800
          (_etype766, _size763) = iprot.readListBegin()
31801
          for _i767 in xrange(_size763):
31802
            _elem768 = AmazonPromotion()
31803
            _elem768.read(iprot)
31804
            self.success.append(_elem768)
12363 kshitij.so 31805
          iprot.readListEnd()
31806
        else:
31807
          iprot.skip(ftype)
31808
      else:
31809
        iprot.skip(ftype)
31810
      iprot.readFieldEnd()
31811
    iprot.readStructEnd()
31812
 
31813
  def write(self, oprot):
31814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31816
      return
31817
    oprot.writeStructBegin('getAmazonPromotion_result')
31818
    if self.success is not None:
31819
      oprot.writeFieldBegin('success', TType.LIST, 0)
31820
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31821
      for iter769 in self.success:
31822
        iter769.write(oprot)
12363 kshitij.so 31823
      oprot.writeListEnd()
31824
      oprot.writeFieldEnd()
31825
    oprot.writeFieldStop()
31826
    oprot.writeStructEnd()
31827
 
31828
  def validate(self):
31829
    return
31830
 
31831
 
31832
  def __repr__(self):
31833
    L = ['%s=%r' % (key, value)
31834
      for key, value in self.__dict__.iteritems()]
31835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31836
 
31837
  def __eq__(self, other):
31838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31839
 
31840
  def __ne__(self, other):
31841
    return not (self == other)
31842
 
31843
class updateAmazonPromotion_args:
31844
  """
31845
  Attributes:
31846
   - amazonPromotions
31847
  """
31848
 
31849
  thrift_spec = (
31850
    None, # 0
31851
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31852
  )
31853
 
31854
  def __init__(self, amazonPromotions=None,):
31855
    self.amazonPromotions = amazonPromotions
31856
 
31857
  def read(self, iprot):
31858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31860
      return
31861
    iprot.readStructBegin()
31862
    while True:
31863
      (fname, ftype, fid) = iprot.readFieldBegin()
31864
      if ftype == TType.STOP:
31865
        break
31866
      if fid == 1:
31867
        if ftype == TType.LIST:
31868
          self.amazonPromotions = []
13493 amit.gupta 31869
          (_etype773, _size770) = iprot.readListBegin()
31870
          for _i774 in xrange(_size770):
31871
            _elem775 = AmazonPromotion()
31872
            _elem775.read(iprot)
31873
            self.amazonPromotions.append(_elem775)
12363 kshitij.so 31874
          iprot.readListEnd()
31875
        else:
31876
          iprot.skip(ftype)
31877
      else:
31878
        iprot.skip(ftype)
31879
      iprot.readFieldEnd()
31880
    iprot.readStructEnd()
31881
 
31882
  def write(self, oprot):
31883
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31884
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31885
      return
31886
    oprot.writeStructBegin('updateAmazonPromotion_args')
31887
    if self.amazonPromotions is not None:
31888
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
31889
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
13493 amit.gupta 31890
      for iter776 in self.amazonPromotions:
31891
        iter776.write(oprot)
12363 kshitij.so 31892
      oprot.writeListEnd()
31893
      oprot.writeFieldEnd()
31894
    oprot.writeFieldStop()
31895
    oprot.writeStructEnd()
31896
 
31897
  def validate(self):
31898
    return
31899
 
31900
 
31901
  def __repr__(self):
31902
    L = ['%s=%r' % (key, value)
31903
      for key, value in self.__dict__.iteritems()]
31904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31905
 
31906
  def __eq__(self, other):
31907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31908
 
31909
  def __ne__(self, other):
31910
    return not (self == other)
31911
 
31912
class updateAmazonPromotion_result:
31913
  """
31914
  Attributes:
31915
   - success
31916
  """
31917
 
31918
  thrift_spec = (
31919
    (0, TType.BOOL, 'success', None, None, ), # 0
31920
  )
31921
 
31922
  def __init__(self, success=None,):
31923
    self.success = success
31924
 
31925
  def read(self, iprot):
31926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31928
      return
31929
    iprot.readStructBegin()
31930
    while True:
31931
      (fname, ftype, fid) = iprot.readFieldBegin()
31932
      if ftype == TType.STOP:
31933
        break
31934
      if fid == 0:
31935
        if ftype == TType.BOOL:
31936
          self.success = iprot.readBool();
31937
        else:
31938
          iprot.skip(ftype)
31939
      else:
31940
        iprot.skip(ftype)
31941
      iprot.readFieldEnd()
31942
    iprot.readStructEnd()
31943
 
31944
  def write(self, oprot):
31945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31947
      return
31948
    oprot.writeStructBegin('updateAmazonPromotion_result')
31949
    if self.success is not None:
31950
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31951
      oprot.writeBool(self.success)
31952
      oprot.writeFieldEnd()
31953
    oprot.writeFieldStop()
31954
    oprot.writeStructEnd()
31955
 
31956
  def validate(self):
31957
    return
31958
 
31959
 
31960
  def __repr__(self):
31961
    L = ['%s=%r' % (key, value)
31962
      for key, value in self.__dict__.iteritems()]
31963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31964
 
31965
  def __eq__(self, other):
31966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31967
 
31968
  def __ne__(self, other):
31969
    return not (self == other)
12567 amit.gupta 31970
 
31971
class markPartiallyActive_args:
31972
  """
31973
  Attributes:
31974
   - itemId
31975
   - categoryId
31976
  """
31977
 
31978
  thrift_spec = (
31979
    None, # 0
31980
    (1, TType.I64, 'itemId', None, None, ), # 1
31981
    (2, TType.I64, 'categoryId', None, None, ), # 2
31982
  )
31983
 
31984
  def __init__(self, itemId=None, categoryId=None,):
31985
    self.itemId = itemId
31986
    self.categoryId = categoryId
31987
 
31988
  def read(self, iprot):
31989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31991
      return
31992
    iprot.readStructBegin()
31993
    while True:
31994
      (fname, ftype, fid) = iprot.readFieldBegin()
31995
      if ftype == TType.STOP:
31996
        break
31997
      if fid == 1:
31998
        if ftype == TType.I64:
31999
          self.itemId = iprot.readI64();
32000
        else:
32001
          iprot.skip(ftype)
32002
      elif fid == 2:
32003
        if ftype == TType.I64:
32004
          self.categoryId = iprot.readI64();
32005
        else:
32006
          iprot.skip(ftype)
32007
      else:
32008
        iprot.skip(ftype)
32009
      iprot.readFieldEnd()
32010
    iprot.readStructEnd()
32011
 
32012
  def write(self, oprot):
32013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32015
      return
32016
    oprot.writeStructBegin('markPartiallyActive_args')
32017
    if self.itemId is not None:
32018
      oprot.writeFieldBegin('itemId', TType.I64, 1)
32019
      oprot.writeI64(self.itemId)
32020
      oprot.writeFieldEnd()
32021
    if self.categoryId is not None:
32022
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
32023
      oprot.writeI64(self.categoryId)
32024
      oprot.writeFieldEnd()
32025
    oprot.writeFieldStop()
32026
    oprot.writeStructEnd()
32027
 
32028
  def validate(self):
32029
    return
32030
 
32031
 
32032
  def __repr__(self):
32033
    L = ['%s=%r' % (key, value)
32034
      for key, value in self.__dict__.iteritems()]
32035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32036
 
32037
  def __eq__(self, other):
32038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32039
 
32040
  def __ne__(self, other):
32041
    return not (self == other)
32042
 
32043
class markPartiallyActive_result:
32044
  """
32045
  Attributes:
32046
   - success
32047
  """
32048
 
32049
  thrift_spec = (
32050
    (0, TType.BOOL, 'success', None, None, ), # 0
32051
  )
32052
 
32053
  def __init__(self, success=None,):
32054
    self.success = success
32055
 
32056
  def read(self, iprot):
32057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32059
      return
32060
    iprot.readStructBegin()
32061
    while True:
32062
      (fname, ftype, fid) = iprot.readFieldBegin()
32063
      if ftype == TType.STOP:
32064
        break
32065
      if fid == 0:
32066
        if ftype == TType.BOOL:
32067
          self.success = iprot.readBool();
32068
        else:
32069
          iprot.skip(ftype)
32070
      else:
32071
        iprot.skip(ftype)
32072
      iprot.readFieldEnd()
32073
    iprot.readStructEnd()
32074
 
32075
  def write(self, oprot):
32076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32078
      return
32079
    oprot.writeStructBegin('markPartiallyActive_result')
32080
    if self.success is not None:
32081
      oprot.writeFieldBegin('success', TType.BOOL, 0)
32082
      oprot.writeBool(self.success)
32083
      oprot.writeFieldEnd()
32084
    oprot.writeFieldStop()
32085
    oprot.writeStructEnd()
32086
 
32087
  def validate(self):
32088
    return
32089
 
32090
 
32091
  def __repr__(self):
32092
    L = ['%s=%r' % (key, value)
32093
      for key, value in self.__dict__.iteritems()]
32094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32095
 
32096
  def __eq__(self, other):
32097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32098
 
32099
  def __ne__(self, other):
32100
    return not (self == other)
32101
 
32102
class updateItemStateVat_args:
32103
  """
32104
  Attributes:
32105
   - itemId
32106
   - statevat
32107
  """
32108
 
32109
  thrift_spec = (
32110
    None, # 0
32111
    (1, TType.I64, 'itemId', None, None, ), # 1
32112
    (2, TType.MAP, 'statevat', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
32113
  )
32114
 
32115
  def __init__(self, itemId=None, statevat=None,):
32116
    self.itemId = itemId
32117
    self.statevat = statevat
32118
 
32119
  def read(self, iprot):
32120
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32121
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32122
      return
32123
    iprot.readStructBegin()
32124
    while True:
32125
      (fname, ftype, fid) = iprot.readFieldBegin()
32126
      if ftype == TType.STOP:
32127
        break
32128
      if fid == 1:
32129
        if ftype == TType.I64:
32130
          self.itemId = iprot.readI64();
32131
        else:
32132
          iprot.skip(ftype)
32133
      elif fid == 2:
32134
        if ftype == TType.MAP:
32135
          self.statevat = {}
13493 amit.gupta 32136
          (_ktype778, _vtype779, _size777 ) = iprot.readMapBegin() 
32137
          for _i781 in xrange(_size777):
32138
            _key782 = iprot.readI64();
32139
            _val783 = iprot.readDouble();
32140
            self.statevat[_key782] = _val783
12567 amit.gupta 32141
          iprot.readMapEnd()
32142
        else:
32143
          iprot.skip(ftype)
32144
      else:
32145
        iprot.skip(ftype)
32146
      iprot.readFieldEnd()
32147
    iprot.readStructEnd()
32148
 
32149
  def write(self, oprot):
32150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32152
      return
32153
    oprot.writeStructBegin('updateItemStateVat_args')
32154
    if self.itemId is not None:
32155
      oprot.writeFieldBegin('itemId', TType.I64, 1)
32156
      oprot.writeI64(self.itemId)
32157
      oprot.writeFieldEnd()
32158
    if self.statevat is not None:
32159
      oprot.writeFieldBegin('statevat', TType.MAP, 2)
32160
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.statevat))
13493 amit.gupta 32161
      for kiter784,viter785 in self.statevat.items():
32162
        oprot.writeI64(kiter784)
32163
        oprot.writeDouble(viter785)
12567 amit.gupta 32164
      oprot.writeMapEnd()
32165
      oprot.writeFieldEnd()
32166
    oprot.writeFieldStop()
32167
    oprot.writeStructEnd()
32168
 
32169
  def validate(self):
32170
    return
32171
 
32172
 
32173
  def __repr__(self):
32174
    L = ['%s=%r' % (key, value)
32175
      for key, value in self.__dict__.iteritems()]
32176
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32177
 
32178
  def __eq__(self, other):
32179
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32180
 
32181
  def __ne__(self, other):
32182
    return not (self == other)
32183
 
32184
class updateItemStateVat_result:
32185
  """
32186
  Attributes:
32187
   - success
32188
  """
32189
 
32190
  thrift_spec = (
32191
    (0, TType.BOOL, 'success', None, None, ), # 0
32192
  )
32193
 
32194
  def __init__(self, success=None,):
32195
    self.success = success
32196
 
32197
  def read(self, iprot):
32198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32200
      return
32201
    iprot.readStructBegin()
32202
    while True:
32203
      (fname, ftype, fid) = iprot.readFieldBegin()
32204
      if ftype == TType.STOP:
32205
        break
32206
      if fid == 0:
32207
        if ftype == TType.BOOL:
32208
          self.success = iprot.readBool();
32209
        else:
32210
          iprot.skip(ftype)
32211
      else:
32212
        iprot.skip(ftype)
32213
      iprot.readFieldEnd()
32214
    iprot.readStructEnd()
32215
 
32216
  def write(self, oprot):
32217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32219
      return
32220
    oprot.writeStructBegin('updateItemStateVat_result')
32221
    if self.success is not None:
32222
      oprot.writeFieldBegin('success', TType.BOOL, 0)
32223
      oprot.writeBool(self.success)
32224
      oprot.writeFieldEnd()
32225
    oprot.writeFieldStop()
32226
    oprot.writeStructEnd()
32227
 
32228
  def validate(self):
32229
    return
32230
 
32231
 
32232
  def __repr__(self):
32233
    L = ['%s=%r' % (key, value)
32234
      for key, value in self.__dict__.iteritems()]
32235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32236
 
32237
  def __eq__(self, other):
32238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32239
 
32240
  def __ne__(self, other):
32241
    return not (self == other)
12620 amit.gupta 32242
 
32243
class getExAffiliateItemInfo_args:
32244
 
32245
  thrift_spec = (
32246
  )
32247
 
32248
  def read(self, iprot):
32249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32251
      return
32252
    iprot.readStructBegin()
32253
    while True:
32254
      (fname, ftype, fid) = iprot.readFieldBegin()
32255
      if ftype == TType.STOP:
32256
        break
32257
      else:
32258
        iprot.skip(ftype)
32259
      iprot.readFieldEnd()
32260
    iprot.readStructEnd()
32261
 
32262
  def write(self, oprot):
32263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32265
      return
32266
    oprot.writeStructBegin('getExAffiliateItemInfo_args')
32267
    oprot.writeFieldStop()
32268
    oprot.writeStructEnd()
32269
 
32270
  def validate(self):
32271
    return
32272
 
32273
 
32274
  def __repr__(self):
32275
    L = ['%s=%r' % (key, value)
32276
      for key, value in self.__dict__.iteritems()]
32277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32278
 
32279
  def __eq__(self, other):
32280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32281
 
32282
  def __ne__(self, other):
32283
    return not (self == other)
32284
 
32285
class getExAffiliateItemInfo_result:
32286
  """
32287
  Attributes:
32288
   - success
32289
  """
32290
 
32291
  thrift_spec = (
32292
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo.thrift_spec)), None, ), # 0
32293
  )
32294
 
32295
  def __init__(self, success=None,):
32296
    self.success = success
32297
 
32298
  def read(self, iprot):
32299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32301
      return
32302
    iprot.readStructBegin()
32303
    while True:
32304
      (fname, ftype, fid) = iprot.readFieldBegin()
32305
      if ftype == TType.STOP:
32306
        break
32307
      if fid == 0:
32308
        if ftype == TType.MAP:
32309
          self.success = {}
13493 amit.gupta 32310
          (_ktype787, _vtype788, _size786 ) = iprot.readMapBegin() 
32311
          for _i790 in xrange(_size786):
32312
            _key791 = iprot.readI64();
32313
            _val792 = ExclusiveAffiliateItemInfo()
32314
            _val792.read(iprot)
32315
            self.success[_key791] = _val792
12620 amit.gupta 32316
          iprot.readMapEnd()
32317
        else:
32318
          iprot.skip(ftype)
32319
      else:
32320
        iprot.skip(ftype)
32321
      iprot.readFieldEnd()
32322
    iprot.readStructEnd()
32323
 
32324
  def write(self, oprot):
32325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32327
      return
32328
    oprot.writeStructBegin('getExAffiliateItemInfo_result')
32329
    if self.success is not None:
32330
      oprot.writeFieldBegin('success', TType.MAP, 0)
32331
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
13493 amit.gupta 32332
      for kiter793,viter794 in self.success.items():
32333
        oprot.writeI64(kiter793)
32334
        viter794.write(oprot)
12620 amit.gupta 32335
      oprot.writeMapEnd()
32336
      oprot.writeFieldEnd()
32337
    oprot.writeFieldStop()
32338
    oprot.writeStructEnd()
32339
 
32340
  def validate(self):
32341
    return
32342
 
32343
 
32344
  def __repr__(self):
32345
    L = ['%s=%r' % (key, value)
32346
      for key, value in self.__dict__.iteritems()]
32347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32348
 
32349
  def __eq__(self, other):
32350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32351
 
32352
  def __ne__(self, other):
32353
    return not (self == other)
12888 kshitij.so 32354
 
32355
class getAllItemstoListOnFbg_args:
32356
 
32357
  thrift_spec = (
32358
  )
32359
 
32360
  def read(self, iprot):
32361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32363
      return
32364
    iprot.readStructBegin()
32365
    while True:
32366
      (fname, ftype, fid) = iprot.readFieldBegin()
32367
      if ftype == TType.STOP:
32368
        break
32369
      else:
32370
        iprot.skip(ftype)
32371
      iprot.readFieldEnd()
32372
    iprot.readStructEnd()
32373
 
32374
  def write(self, oprot):
32375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32377
      return
32378
    oprot.writeStructBegin('getAllItemstoListOnFbg_args')
32379
    oprot.writeFieldStop()
32380
    oprot.writeStructEnd()
32381
 
32382
  def validate(self):
32383
    return
32384
 
32385
 
32386
  def __repr__(self):
32387
    L = ['%s=%r' % (key, value)
32388
      for key, value in self.__dict__.iteritems()]
32389
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32390
 
32391
  def __eq__(self, other):
32392
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32393
 
32394
  def __ne__(self, other):
32395
    return not (self == other)
32396
 
32397
class getAllItemstoListOnFbg_result:
32398
  """
32399
  Attributes:
32400
   - success
32401
  """
32402
 
32403
  thrift_spec = (
32404
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
32405
  )
32406
 
32407
  def __init__(self, success=None,):
32408
    self.success = success
32409
 
32410
  def read(self, iprot):
32411
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32412
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32413
      return
32414
    iprot.readStructBegin()
32415
    while True:
32416
      (fname, ftype, fid) = iprot.readFieldBegin()
32417
      if ftype == TType.STOP:
32418
        break
32419
      if fid == 0:
32420
        if ftype == TType.LIST:
32421
          self.success = []
13493 amit.gupta 32422
          (_etype798, _size795) = iprot.readListBegin()
32423
          for _i799 in xrange(_size795):
32424
            _elem800 = Amazonlisted()
32425
            _elem800.read(iprot)
32426
            self.success.append(_elem800)
12888 kshitij.so 32427
          iprot.readListEnd()
32428
        else:
32429
          iprot.skip(ftype)
32430
      else:
32431
        iprot.skip(ftype)
32432
      iprot.readFieldEnd()
32433
    iprot.readStructEnd()
32434
 
32435
  def write(self, oprot):
32436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32438
      return
32439
    oprot.writeStructBegin('getAllItemstoListOnFbg_result')
32440
    if self.success is not None:
32441
      oprot.writeFieldBegin('success', TType.LIST, 0)
32442
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 32443
      for iter801 in self.success:
32444
        iter801.write(oprot)
12888 kshitij.so 32445
      oprot.writeListEnd()
32446
      oprot.writeFieldEnd()
32447
    oprot.writeFieldStop()
32448
    oprot.writeStructEnd()
32449
 
32450
  def validate(self):
32451
    return
32452
 
32453
 
32454
  def __repr__(self):
32455
    L = ['%s=%r' % (key, value)
32456
      for key, value in self.__dict__.iteritems()]
32457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32458
 
32459
  def __eq__(self, other):
32460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32461
 
32462
  def __ne__(self, other):
32463
    return not (self == other)
12892 kshitij.so 32464
 
32465
class getAllFbgListedItems_args:
32466
 
32467
  thrift_spec = (
32468
  )
32469
 
32470
  def read(self, iprot):
32471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32473
      return
32474
    iprot.readStructBegin()
32475
    while True:
32476
      (fname, ftype, fid) = iprot.readFieldBegin()
32477
      if ftype == TType.STOP:
32478
        break
32479
      else:
32480
        iprot.skip(ftype)
32481
      iprot.readFieldEnd()
32482
    iprot.readStructEnd()
32483
 
32484
  def write(self, oprot):
32485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32487
      return
32488
    oprot.writeStructBegin('getAllFbgListedItems_args')
32489
    oprot.writeFieldStop()
32490
    oprot.writeStructEnd()
32491
 
32492
  def validate(self):
32493
    return
32494
 
32495
 
32496
  def __repr__(self):
32497
    L = ['%s=%r' % (key, value)
32498
      for key, value in self.__dict__.iteritems()]
32499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32500
 
32501
  def __eq__(self, other):
32502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32503
 
32504
  def __ne__(self, other):
32505
    return not (self == other)
32506
 
32507
class getAllFbgListedItems_result:
32508
  """
32509
  Attributes:
32510
   - success
32511
  """
32512
 
32513
  thrift_spec = (
32514
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
32515
  )
32516
 
32517
  def __init__(self, success=None,):
32518
    self.success = success
32519
 
32520
  def read(self, iprot):
32521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32523
      return
32524
    iprot.readStructBegin()
32525
    while True:
32526
      (fname, ftype, fid) = iprot.readFieldBegin()
32527
      if ftype == TType.STOP:
32528
        break
32529
      if fid == 0:
32530
        if ftype == TType.LIST:
32531
          self.success = []
13493 amit.gupta 32532
          (_etype805, _size802) = iprot.readListBegin()
32533
          for _i806 in xrange(_size802):
32534
            _elem807 = Amazonlisted()
32535
            _elem807.read(iprot)
32536
            self.success.append(_elem807)
12892 kshitij.so 32537
          iprot.readListEnd()
32538
        else:
32539
          iprot.skip(ftype)
32540
      else:
32541
        iprot.skip(ftype)
32542
      iprot.readFieldEnd()
32543
    iprot.readStructEnd()
32544
 
32545
  def write(self, oprot):
32546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32548
      return
32549
    oprot.writeStructBegin('getAllFbgListedItems_result')
32550
    if self.success is not None:
32551
      oprot.writeFieldBegin('success', TType.LIST, 0)
32552
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 32553
      for iter808 in self.success:
32554
        iter808.write(oprot)
12892 kshitij.so 32555
      oprot.writeListEnd()
32556
      oprot.writeFieldEnd()
32557
    oprot.writeFieldStop()
32558
    oprot.writeStructEnd()
32559
 
32560
  def validate(self):
32561
    return
32562
 
32563
 
32564
  def __repr__(self):
32565
    L = ['%s=%r' % (key, value)
32566
      for key, value in self.__dict__.iteritems()]
32567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32568
 
32569
  def __eq__(self, other):
32570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32571
 
32572
  def __ne__(self, other):
32573
    return not (self == other)
13136 amit.gupta 32574
 
32575
class checkServices_args:
32576
  """
32577
  Attributes:
32578
   - lines
32579
  """
32580
 
32581
  thrift_spec = (
32582
    None, # 0
32583
    (1, TType.MAP, 'lines', (TType.I64,None,TType.MAP,(TType.STRING,None,TType.I64,None)), None, ), # 1
32584
  )
32585
 
32586
  def __init__(self, lines=None,):
32587
    self.lines = lines
32588
 
32589
  def read(self, iprot):
32590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32592
      return
32593
    iprot.readStructBegin()
32594
    while True:
32595
      (fname, ftype, fid) = iprot.readFieldBegin()
32596
      if ftype == TType.STOP:
32597
        break
32598
      if fid == 1:
32599
        if ftype == TType.MAP:
32600
          self.lines = {}
13493 amit.gupta 32601
          (_ktype810, _vtype811, _size809 ) = iprot.readMapBegin() 
32602
          for _i813 in xrange(_size809):
32603
            _key814 = iprot.readI64();
32604
            _val815 = {}
32605
            (_ktype817, _vtype818, _size816 ) = iprot.readMapBegin() 
32606
            for _i820 in xrange(_size816):
32607
              _key821 = iprot.readString();
32608
              _val822 = iprot.readI64();
32609
              _val815[_key821] = _val822
13136 amit.gupta 32610
            iprot.readMapEnd()
13493 amit.gupta 32611
            self.lines[_key814] = _val815
13136 amit.gupta 32612
          iprot.readMapEnd()
32613
        else:
32614
          iprot.skip(ftype)
32615
      else:
32616
        iprot.skip(ftype)
32617
      iprot.readFieldEnd()
32618
    iprot.readStructEnd()
32619
 
32620
  def write(self, oprot):
32621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32623
      return
32624
    oprot.writeStructBegin('checkServices_args')
32625
    if self.lines is not None:
32626
      oprot.writeFieldBegin('lines', TType.MAP, 1)
32627
      oprot.writeMapBegin(TType.I64, TType.MAP, len(self.lines))
13493 amit.gupta 32628
      for kiter823,viter824 in self.lines.items():
32629
        oprot.writeI64(kiter823)
32630
        oprot.writeMapBegin(TType.STRING, TType.I64, len(viter824))
32631
        for kiter825,viter826 in viter824.items():
32632
          oprot.writeString(kiter825)
32633
          oprot.writeI64(viter826)
13136 amit.gupta 32634
        oprot.writeMapEnd()
32635
      oprot.writeMapEnd()
32636
      oprot.writeFieldEnd()
32637
    oprot.writeFieldStop()
32638
    oprot.writeStructEnd()
32639
 
32640
  def validate(self):
32641
    return
32642
 
32643
 
32644
  def __repr__(self):
32645
    L = ['%s=%r' % (key, value)
32646
      for key, value in self.__dict__.iteritems()]
32647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32648
 
32649
  def __eq__(self, other):
32650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32651
 
32652
  def __ne__(self, other):
32653
    return not (self == other)
32654
 
32655
class checkServices_result:
32656
  """
32657
  Attributes:
32658
   - success
32659
   - cex
32660
  """
32661
 
32662
  thrift_spec = (
32663
    (0, TType.MAP, 'success', (TType.I64,None,TType.MAP,(TType.STRING,None,TType.I64,None)), None, ), # 0
32664
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
32665
  )
32666
 
32667
  def __init__(self, success=None, cex=None,):
32668
    self.success = success
32669
    self.cex = cex
32670
 
32671
  def read(self, iprot):
32672
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32673
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32674
      return
32675
    iprot.readStructBegin()
32676
    while True:
32677
      (fname, ftype, fid) = iprot.readFieldBegin()
32678
      if ftype == TType.STOP:
32679
        break
32680
      if fid == 0:
32681
        if ftype == TType.MAP:
32682
          self.success = {}
13493 amit.gupta 32683
          (_ktype828, _vtype829, _size827 ) = iprot.readMapBegin() 
32684
          for _i831 in xrange(_size827):
32685
            _key832 = iprot.readI64();
32686
            _val833 = {}
32687
            (_ktype835, _vtype836, _size834 ) = iprot.readMapBegin() 
32688
            for _i838 in xrange(_size834):
32689
              _key839 = iprot.readString();
32690
              _val840 = iprot.readI64();
32691
              _val833[_key839] = _val840
13136 amit.gupta 32692
            iprot.readMapEnd()
13493 amit.gupta 32693
            self.success[_key832] = _val833
13136 amit.gupta 32694
          iprot.readMapEnd()
32695
        else:
32696
          iprot.skip(ftype)
32697
      elif fid == 1:
32698
        if ftype == TType.STRUCT:
32699
          self.cex = CatalogServiceException()
32700
          self.cex.read(iprot)
32701
        else:
32702
          iprot.skip(ftype)
32703
      else:
32704
        iprot.skip(ftype)
32705
      iprot.readFieldEnd()
32706
    iprot.readStructEnd()
32707
 
32708
  def write(self, oprot):
32709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32711
      return
32712
    oprot.writeStructBegin('checkServices_result')
32713
    if self.success is not None:
32714
      oprot.writeFieldBegin('success', TType.MAP, 0)
32715
      oprot.writeMapBegin(TType.I64, TType.MAP, len(self.success))
13493 amit.gupta 32716
      for kiter841,viter842 in self.success.items():
32717
        oprot.writeI64(kiter841)
32718
        oprot.writeMapBegin(TType.STRING, TType.I64, len(viter842))
32719
        for kiter843,viter844 in viter842.items():
32720
          oprot.writeString(kiter843)
32721
          oprot.writeI64(viter844)
13136 amit.gupta 32722
        oprot.writeMapEnd()
32723
      oprot.writeMapEnd()
32724
      oprot.writeFieldEnd()
32725
    if self.cex is not None:
32726
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
32727
      self.cex.write(oprot)
32728
      oprot.writeFieldEnd()
32729
    oprot.writeFieldStop()
32730
    oprot.writeStructEnd()
32731
 
32732
  def validate(self):
32733
    return
32734
 
32735
 
32736
  def __repr__(self):
32737
    L = ['%s=%r' % (key, value)
32738
      for key, value in self.__dict__.iteritems()]
32739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32740
 
32741
  def __eq__(self, other):
32742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32743
 
32744
  def __ne__(self, other):
32745
    return not (self == other)
13709 manish.sha 32746
 
32747
class addHsItem_args:
32748
  """
32749
  Attributes:
32750
   - hsItems
32751
  """
32752
 
32753
  thrift_spec = (
32754
    None, # 0
32755
    (1, TType.LIST, 'hsItems', (TType.STRUCT,(HsItem, HsItem.thrift_spec)), None, ), # 1
32756
  )
32757
 
32758
  def __init__(self, hsItems=None,):
32759
    self.hsItems = hsItems
32760
 
32761
  def read(self, iprot):
32762
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32763
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32764
      return
32765
    iprot.readStructBegin()
32766
    while True:
32767
      (fname, ftype, fid) = iprot.readFieldBegin()
32768
      if ftype == TType.STOP:
32769
        break
32770
      if fid == 1:
32771
        if ftype == TType.LIST:
32772
          self.hsItems = []
32773
          (_etype848, _size845) = iprot.readListBegin()
32774
          for _i849 in xrange(_size845):
32775
            _elem850 = HsItem()
32776
            _elem850.read(iprot)
32777
            self.hsItems.append(_elem850)
32778
          iprot.readListEnd()
32779
        else:
32780
          iprot.skip(ftype)
32781
      else:
32782
        iprot.skip(ftype)
32783
      iprot.readFieldEnd()
32784
    iprot.readStructEnd()
32785
 
32786
  def write(self, oprot):
32787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32789
      return
32790
    oprot.writeStructBegin('addHsItem_args')
32791
    if self.hsItems is not None:
32792
      oprot.writeFieldBegin('hsItems', TType.LIST, 1)
32793
      oprot.writeListBegin(TType.STRUCT, len(self.hsItems))
32794
      for iter851 in self.hsItems:
32795
        iter851.write(oprot)
32796
      oprot.writeListEnd()
32797
      oprot.writeFieldEnd()
32798
    oprot.writeFieldStop()
32799
    oprot.writeStructEnd()
32800
 
32801
  def validate(self):
32802
    return
32803
 
32804
 
32805
  def __repr__(self):
32806
    L = ['%s=%r' % (key, value)
32807
      for key, value in self.__dict__.iteritems()]
32808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32809
 
32810
  def __eq__(self, other):
32811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32812
 
32813
  def __ne__(self, other):
32814
    return not (self == other)
32815
 
32816
class addHsItem_result:
32817
 
32818
  thrift_spec = (
32819
  )
32820
 
32821
  def read(self, iprot):
32822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32824
      return
32825
    iprot.readStructBegin()
32826
    while True:
32827
      (fname, ftype, fid) = iprot.readFieldBegin()
32828
      if ftype == TType.STOP:
32829
        break
32830
      else:
32831
        iprot.skip(ftype)
32832
      iprot.readFieldEnd()
32833
    iprot.readStructEnd()
32834
 
32835
  def write(self, oprot):
32836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32838
      return
32839
    oprot.writeStructBegin('addHsItem_result')
32840
    oprot.writeFieldStop()
32841
    oprot.writeStructEnd()
32842
 
32843
  def validate(self):
32844
    return
32845
 
32846
 
32847
  def __repr__(self):
32848
    L = ['%s=%r' % (key, value)
32849
      for key, value in self.__dict__.iteritems()]
32850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32851
 
32852
  def __eq__(self, other):
32853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32854
 
32855
  def __ne__(self, other):
32856
    return not (self == other)
32857
 
32858
class getHsItem_args:
32859
  """
32860
  Attributes:
32861
   - hsItemId
32862
  """
32863
 
32864
  thrift_spec = (
32865
    None, # 0
32866
    (1, TType.STRING, 'hsItemId', None, None, ), # 1
32867
  )
32868
 
32869
  def __init__(self, hsItemId=None,):
32870
    self.hsItemId = hsItemId
32871
 
32872
  def read(self, iprot):
32873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32875
      return
32876
    iprot.readStructBegin()
32877
    while True:
32878
      (fname, ftype, fid) = iprot.readFieldBegin()
32879
      if ftype == TType.STOP:
32880
        break
32881
      if fid == 1:
32882
        if ftype == TType.STRING:
32883
          self.hsItemId = iprot.readString();
32884
        else:
32885
          iprot.skip(ftype)
32886
      else:
32887
        iprot.skip(ftype)
32888
      iprot.readFieldEnd()
32889
    iprot.readStructEnd()
32890
 
32891
  def write(self, oprot):
32892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32894
      return
32895
    oprot.writeStructBegin('getHsItem_args')
32896
    if self.hsItemId is not None:
32897
      oprot.writeFieldBegin('hsItemId', TType.STRING, 1)
32898
      oprot.writeString(self.hsItemId)
32899
      oprot.writeFieldEnd()
32900
    oprot.writeFieldStop()
32901
    oprot.writeStructEnd()
32902
 
32903
  def validate(self):
32904
    return
32905
 
32906
 
32907
  def __repr__(self):
32908
    L = ['%s=%r' % (key, value)
32909
      for key, value in self.__dict__.iteritems()]
32910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32911
 
32912
  def __eq__(self, other):
32913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32914
 
32915
  def __ne__(self, other):
32916
    return not (self == other)
32917
 
32918
class getHsItem_result:
32919
  """
32920
  Attributes:
32921
   - success
32922
  """
32923
 
32924
  thrift_spec = (
32925
    (0, TType.STRUCT, 'success', (HsItem, HsItem.thrift_spec), None, ), # 0
32926
  )
32927
 
32928
  def __init__(self, success=None,):
32929
    self.success = success
32930
 
32931
  def read(self, iprot):
32932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32934
      return
32935
    iprot.readStructBegin()
32936
    while True:
32937
      (fname, ftype, fid) = iprot.readFieldBegin()
32938
      if ftype == TType.STOP:
32939
        break
32940
      if fid == 0:
32941
        if ftype == TType.STRUCT:
32942
          self.success = HsItem()
32943
          self.success.read(iprot)
32944
        else:
32945
          iprot.skip(ftype)
32946
      else:
32947
        iprot.skip(ftype)
32948
      iprot.readFieldEnd()
32949
    iprot.readStructEnd()
32950
 
32951
  def write(self, oprot):
32952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32954
      return
32955
    oprot.writeStructBegin('getHsItem_result')
32956
    if self.success is not None:
32957
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
32958
      self.success.write(oprot)
32959
      oprot.writeFieldEnd()
32960
    oprot.writeFieldStop()
32961
    oprot.writeStructEnd()
32962
 
32963
  def validate(self):
32964
    return
32965
 
32966
 
32967
  def __repr__(self):
32968
    L = ['%s=%r' % (key, value)
32969
      for key, value in self.__dict__.iteritems()]
32970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32971
 
32972
  def __eq__(self, other):
32973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32974
 
32975
  def __ne__(self, other):
32976
    return not (self == other)
32977
 
32978
class updateHsItem_args:
32979
  """
32980
  Attributes:
32981
   - hsItem
32982
  """
32983
 
32984
  thrift_spec = (
32985
    None, # 0
32986
    (1, TType.STRUCT, 'hsItem', (HsItem, HsItem.thrift_spec), None, ), # 1
32987
  )
32988
 
32989
  def __init__(self, hsItem=None,):
32990
    self.hsItem = hsItem
32991
 
32992
  def read(self, iprot):
32993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32995
      return
32996
    iprot.readStructBegin()
32997
    while True:
32998
      (fname, ftype, fid) = iprot.readFieldBegin()
32999
      if ftype == TType.STOP:
33000
        break
33001
      if fid == 1:
33002
        if ftype == TType.STRUCT:
33003
          self.hsItem = HsItem()
33004
          self.hsItem.read(iprot)
33005
        else:
33006
          iprot.skip(ftype)
33007
      else:
33008
        iprot.skip(ftype)
33009
      iprot.readFieldEnd()
33010
    iprot.readStructEnd()
33011
 
33012
  def write(self, oprot):
33013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
33014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
33015
      return
33016
    oprot.writeStructBegin('updateHsItem_args')
33017
    if self.hsItem is not None:
33018
      oprot.writeFieldBegin('hsItem', TType.STRUCT, 1)
33019
      self.hsItem.write(oprot)
33020
      oprot.writeFieldEnd()
33021
    oprot.writeFieldStop()
33022
    oprot.writeStructEnd()
33023
 
33024
  def validate(self):
33025
    return
33026
 
33027
 
33028
  def __repr__(self):
33029
    L = ['%s=%r' % (key, value)
33030
      for key, value in self.__dict__.iteritems()]
33031
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
33032
 
33033
  def __eq__(self, other):
33034
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
33035
 
33036
  def __ne__(self, other):
33037
    return not (self == other)
33038
 
33039
class updateHsItem_result:
33040
 
33041
  thrift_spec = (
33042
  )
33043
 
33044
  def read(self, iprot):
33045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
33046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
33047
      return
33048
    iprot.readStructBegin()
33049
    while True:
33050
      (fname, ftype, fid) = iprot.readFieldBegin()
33051
      if ftype == TType.STOP:
33052
        break
33053
      else:
33054
        iprot.skip(ftype)
33055
      iprot.readFieldEnd()
33056
    iprot.readStructEnd()
33057
 
33058
  def write(self, oprot):
33059
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
33060
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
33061
      return
33062
    oprot.writeStructBegin('updateHsItem_result')
33063
    oprot.writeFieldStop()
33064
    oprot.writeStructEnd()
33065
 
33066
  def validate(self):
33067
    return
33068
 
33069
 
33070
  def __repr__(self):
33071
    L = ['%s=%r' % (key, value)
33072
      for key, value in self.__dict__.iteritems()]
33073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
33074
 
33075
  def __eq__(self, other):
33076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
33077
 
33078
  def __ne__(self, other):
33079
    return not (self == other)