Subversion Repositories SmartDukaan

Rev

Rev 13136 | Rev 13709 | 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
 
13136 amit.gupta 1296
 
5944 mandeep.dh 1297
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1298
  def __init__(self, iprot, oprot=None):
1299
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1300
 
1301
  def addItem(self, item):
1302
    """
1303
    Availability and inventory attributes
1304
 
1305
    Parameters:
1306
     - item
1307
    """
1308
    self.send_addItem(item)
1309
    return self.recv_addItem()
1310
 
1311
  def send_addItem(self, item):
1312
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1313
    args = addItem_args()
1314
    args.item = item
1315
    args.write(self._oprot)
1316
    self._oprot.writeMessageEnd()
1317
    self._oprot.trans.flush()
1318
 
1319
  def recv_addItem(self, ):
1320
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1321
    if mtype == TMessageType.EXCEPTION:
1322
      x = TApplicationException()
1323
      x.read(self._iprot)
1324
      self._iprot.readMessageEnd()
1325
      raise x
1326
    result = addItem_result()
1327
    result.read(self._iprot)
1328
    self._iprot.readMessageEnd()
1329
    if result.success is not None:
1330
      return result.success
1331
    if result.cex is not None:
1332
      raise result.cex
1333
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1334
 
1335
  def updateItem(self, item):
1336
    """
1337
    Parameters:
1338
     - item
1339
    """
1340
    self.send_updateItem(item)
1341
    return self.recv_updateItem()
1342
 
1343
  def send_updateItem(self, item):
1344
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1345
    args = updateItem_args()
1346
    args.item = item
1347
    args.write(self._oprot)
1348
    self._oprot.writeMessageEnd()
1349
    self._oprot.trans.flush()
1350
 
1351
  def recv_updateItem(self, ):
1352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1353
    if mtype == TMessageType.EXCEPTION:
1354
      x = TApplicationException()
1355
      x.read(self._iprot)
1356
      self._iprot.readMessageEnd()
1357
      raise x
1358
    result = updateItem_result()
1359
    result.read(self._iprot)
1360
    self._iprot.readMessageEnd()
1361
    if result.success is not None:
1362
      return result.success
1363
    if result.cex is not None:
1364
      raise result.cex
1365
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1366
 
1367
  def isActive(self, itemId):
1368
    """
1369
    Checks if the item given to the corresponding itemId is active. If it's active,
1370
    whether it's risky and if it's risky, its inventory position.
1371
 
1372
    Parameters:
1373
     - itemId
1374
    """
1375
    self.send_isActive(itemId)
1376
    return self.recv_isActive()
1377
 
1378
  def send_isActive(self, itemId):
1379
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1380
    args = isActive_args()
1381
    args.itemId = itemId
1382
    args.write(self._oprot)
1383
    self._oprot.writeMessageEnd()
1384
    self._oprot.trans.flush()
1385
 
1386
  def recv_isActive(self, ):
1387
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1388
    if mtype == TMessageType.EXCEPTION:
1389
      x = TApplicationException()
1390
      x.read(self._iprot)
1391
      self._iprot.readMessageEnd()
1392
      raise x
1393
    result = isActive_result()
1394
    result.read(self._iprot)
1395
    self._iprot.readMessageEnd()
1396
    if result.success is not None:
1397
      return result.success
1398
    if result.isex is not None:
1399
      raise result.isex
1400
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1401
 
7438 amit.gupta 1402
  def getItemsStatus(self, itemIds):
1403
    """
1404
    Parameters:
1405
     - itemIds
1406
    """
1407
    self.send_getItemsStatus(itemIds)
1408
    return self.recv_getItemsStatus()
1409
 
1410
  def send_getItemsStatus(self, itemIds):
1411
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1412
    args = getItemsStatus_args()
1413
    args.itemIds = itemIds
1414
    args.write(self._oprot)
1415
    self._oprot.writeMessageEnd()
1416
    self._oprot.trans.flush()
1417
 
1418
  def recv_getItemsStatus(self, ):
1419
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1420
    if mtype == TMessageType.EXCEPTION:
1421
      x = TApplicationException()
1422
      x.read(self._iprot)
1423
      self._iprot.readMessageEnd()
1424
      raise x
1425
    result = getItemsStatus_result()
1426
    result.read(self._iprot)
1427
    self._iprot.readMessageEnd()
1428
    if result.success is not None:
1429
      return result.success
1430
    if result.isex is not None:
1431
      raise result.isex
1432
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1433
 
5944 mandeep.dh 1434
  def getItemStatusDescription(self, itemId):
1435
    """
1436
    Parameters:
1437
     - itemId
1438
    """
1439
    self.send_getItemStatusDescription(itemId)
1440
    return self.recv_getItemStatusDescription()
1441
 
1442
  def send_getItemStatusDescription(self, itemId):
1443
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1444
    args = getItemStatusDescription_args()
1445
    args.itemId = itemId
1446
    args.write(self._oprot)
1447
    self._oprot.writeMessageEnd()
1448
    self._oprot.trans.flush()
1449
 
1450
  def recv_getItemStatusDescription(self, ):
1451
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1452
    if mtype == TMessageType.EXCEPTION:
1453
      x = TApplicationException()
1454
      x.read(self._iprot)
1455
      self._iprot.readMessageEnd()
1456
      raise x
1457
    result = getItemStatusDescription_result()
1458
    result.read(self._iprot)
1459
    self._iprot.readMessageEnd()
1460
    if result.success is not None:
1461
      return result.success
1462
    if result.isex is not None:
1463
      raise result.isex
1464
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1465
 
1466
  def startItemOn(self, item_id, timestamp):
1467
    """
1468
    Parameters:
1469
     - item_id
1470
     - timestamp
1471
    """
1472
    self.send_startItemOn(item_id, timestamp)
1473
    self.recv_startItemOn()
1474
 
1475
  def send_startItemOn(self, item_id, timestamp):
1476
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1477
    args = startItemOn_args()
1478
    args.item_id = item_id
1479
    args.timestamp = timestamp
1480
    args.write(self._oprot)
1481
    self._oprot.writeMessageEnd()
1482
    self._oprot.trans.flush()
1483
 
1484
  def recv_startItemOn(self, ):
1485
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1486
    if mtype == TMessageType.EXCEPTION:
1487
      x = TApplicationException()
1488
      x.read(self._iprot)
1489
      self._iprot.readMessageEnd()
1490
      raise x
1491
    result = startItemOn_result()
1492
    result.read(self._iprot)
1493
    self._iprot.readMessageEnd()
1494
    if result.cex is not None:
1495
      raise result.cex
1496
    return
1497
 
1498
  def retireItemOn(self, item_id, timestamp):
1499
    """
1500
    Parameters:
1501
     - item_id
1502
     - timestamp
1503
    """
1504
    self.send_retireItemOn(item_id, timestamp)
1505
    self.recv_retireItemOn()
1506
 
1507
  def send_retireItemOn(self, item_id, timestamp):
1508
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1509
    args = retireItemOn_args()
1510
    args.item_id = item_id
1511
    args.timestamp = timestamp
1512
    args.write(self._oprot)
1513
    self._oprot.writeMessageEnd()
1514
    self._oprot.trans.flush()
1515
 
1516
  def recv_retireItemOn(self, ):
1517
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1518
    if mtype == TMessageType.EXCEPTION:
1519
      x = TApplicationException()
1520
      x.read(self._iprot)
1521
      self._iprot.readMessageEnd()
1522
      raise x
1523
    result = retireItemOn_result()
1524
    result.read(self._iprot)
1525
    self._iprot.readMessageEnd()
1526
    if result.cex is not None:
1527
      raise result.cex
1528
    return
1529
 
1530
  def changeItemStatus(self, item_id, timestamp, newstatus):
1531
    """
1532
    Parameters:
1533
     - item_id
1534
     - timestamp
1535
     - newstatus
1536
    """
1537
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1538
    self.recv_changeItemStatus()
1539
 
1540
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1541
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1542
    args = changeItemStatus_args()
1543
    args.item_id = item_id
1544
    args.timestamp = timestamp
1545
    args.newstatus = newstatus
1546
    args.write(self._oprot)
1547
    self._oprot.writeMessageEnd()
1548
    self._oprot.trans.flush()
1549
 
1550
  def recv_changeItemStatus(self, ):
1551
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1552
    if mtype == TMessageType.EXCEPTION:
1553
      x = TApplicationException()
1554
      x.read(self._iprot)
1555
      self._iprot.readMessageEnd()
1556
      raise x
1557
    result = changeItemStatus_result()
1558
    result.read(self._iprot)
1559
    self._iprot.readMessageEnd()
1560
    if result.cex is not None:
1561
      raise result.cex
1562
    return
1563
 
1564
  def getItem(self, item_id):
1565
    """
1566
    Parameters:
1567
     - item_id
1568
    """
1569
    self.send_getItem(item_id)
1570
    return self.recv_getItem()
1571
 
1572
  def send_getItem(self, item_id):
1573
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1574
    args = getItem_args()
1575
    args.item_id = item_id
1576
    args.write(self._oprot)
1577
    self._oprot.writeMessageEnd()
1578
    self._oprot.trans.flush()
1579
 
1580
  def recv_getItem(self, ):
1581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1582
    if mtype == TMessageType.EXCEPTION:
1583
      x = TApplicationException()
1584
      x.read(self._iprot)
1585
      self._iprot.readMessageEnd()
1586
      raise x
1587
    result = getItem_result()
1588
    result.read(self._iprot)
1589
    self._iprot.readMessageEnd()
1590
    if result.success is not None:
1591
      return result.success
1592
    if result.cex is not None:
1593
      raise result.cex
1594
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1595
 
13493 amit.gupta 1596
  def getItems(self, item_ids):
1597
    """
1598
    Parameters:
1599
     - item_ids
1600
    """
1601
    self.send_getItems(item_ids)
1602
    return self.recv_getItems()
1603
 
1604
  def send_getItems(self, item_ids):
1605
    self._oprot.writeMessageBegin('getItems', TMessageType.CALL, self._seqid)
1606
    args = getItems_args()
1607
    args.item_ids = item_ids
1608
    args.write(self._oprot)
1609
    self._oprot.writeMessageEnd()
1610
    self._oprot.trans.flush()
1611
 
1612
  def recv_getItems(self, ):
1613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1614
    if mtype == TMessageType.EXCEPTION:
1615
      x = TApplicationException()
1616
      x.read(self._iprot)
1617
      self._iprot.readMessageEnd()
1618
      raise x
1619
    result = getItems_result()
1620
    result.read(self._iprot)
1621
    self._iprot.readMessageEnd()
1622
    if result.success is not None:
1623
      return result.success
1624
    if result.cex is not None:
1625
      raise result.cex
1626
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItems failed: unknown result");
1627
 
5944 mandeep.dh 1628
  def getItemsByCatalogId(self, catalog_item_id):
1629
    """
1630
    Parameters:
1631
     - catalog_item_id
1632
    """
1633
    self.send_getItemsByCatalogId(catalog_item_id)
1634
    return self.recv_getItemsByCatalogId()
1635
 
1636
  def send_getItemsByCatalogId(self, catalog_item_id):
1637
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1638
    args = getItemsByCatalogId_args()
1639
    args.catalog_item_id = catalog_item_id
1640
    args.write(self._oprot)
1641
    self._oprot.writeMessageEnd()
1642
    self._oprot.trans.flush()
1643
 
1644
  def recv_getItemsByCatalogId(self, ):
1645
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1646
    if mtype == TMessageType.EXCEPTION:
1647
      x = TApplicationException()
1648
      x.read(self._iprot)
1649
      self._iprot.readMessageEnd()
1650
      raise x
1651
    result = getItemsByCatalogId_result()
1652
    result.read(self._iprot)
1653
    self._iprot.readMessageEnd()
1654
    if result.success is not None:
1655
      return result.success
1656
    if result.cex is not None:
1657
      raise result.cex
1658
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1659
 
1660
  def getValidItemsByCatalogId(self, catalog_item_id):
1661
    """
1662
    Parameters:
1663
     - catalog_item_id
1664
    """
1665
    self.send_getValidItemsByCatalogId(catalog_item_id)
1666
    return self.recv_getValidItemsByCatalogId()
1667
 
1668
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1669
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1670
    args = getValidItemsByCatalogId_args()
1671
    args.catalog_item_id = catalog_item_id
1672
    args.write(self._oprot)
1673
    self._oprot.writeMessageEnd()
1674
    self._oprot.trans.flush()
1675
 
1676
  def recv_getValidItemsByCatalogId(self, ):
1677
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1678
    if mtype == TMessageType.EXCEPTION:
1679
      x = TApplicationException()
1680
      x.read(self._iprot)
1681
      self._iprot.readMessageEnd()
1682
      raise x
1683
    result = getValidItemsByCatalogId_result()
1684
    result.read(self._iprot)
1685
    self._iprot.readMessageEnd()
1686
    if result.success is not None:
1687
      return result.success
1688
    if result.cex is not None:
1689
      raise result.cex
1690
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1691
 
1692
  def getAllItems(self, isActive):
1693
    """
1694
    Parameters:
1695
     - isActive
1696
    """
1697
    self.send_getAllItems(isActive)
1698
    return self.recv_getAllItems()
1699
 
1700
  def send_getAllItems(self, isActive):
1701
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1702
    args = getAllItems_args()
1703
    args.isActive = isActive
1704
    args.write(self._oprot)
1705
    self._oprot.writeMessageEnd()
1706
    self._oprot.trans.flush()
1707
 
1708
  def recv_getAllItems(self, ):
1709
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1710
    if mtype == TMessageType.EXCEPTION:
1711
      x = TApplicationException()
1712
      x.read(self._iprot)
1713
      self._iprot.readMessageEnd()
1714
      raise x
1715
    result = getAllItems_result()
1716
    result.read(self._iprot)
1717
    self._iprot.readMessageEnd()
1718
    if result.success is not None:
1719
      return result.success
1720
    if result.cex is not None:
1721
      raise result.cex
1722
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1723
 
1724
  def getAllItemsByStatus(self, itemStatus):
1725
    """
1726
    Parameters:
1727
     - itemStatus
1728
    """
1729
    self.send_getAllItemsByStatus(itemStatus)
1730
    return self.recv_getAllItemsByStatus()
1731
 
1732
  def send_getAllItemsByStatus(self, itemStatus):
1733
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1734
    args = getAllItemsByStatus_args()
1735
    args.itemStatus = itemStatus
1736
    args.write(self._oprot)
1737
    self._oprot.writeMessageEnd()
1738
    self._oprot.trans.flush()
1739
 
1740
  def recv_getAllItemsByStatus(self, ):
1741
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1742
    if mtype == TMessageType.EXCEPTION:
1743
      x = TApplicationException()
1744
      x.read(self._iprot)
1745
      self._iprot.readMessageEnd()
1746
      raise x
1747
    result = getAllItemsByStatus_result()
1748
    result.read(self._iprot)
1749
    self._iprot.readMessageEnd()
1750
    if result.success is not None:
1751
      return result.success
1752
    if result.cex is not None:
1753
      raise result.cex
1754
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1755
 
9253 rajveer 1756
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1757
    """
1758
    Parameters:
1759
     - entityId
1760
     - category
1761
     - brand
1762
     - modelName
1763
     - modelNumber
9253 rajveer 1764
     - isAndroid
5944 mandeep.dh 1765
    """
9253 rajveer 1766
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1767
    return self.recv_markItemAsContentComplete()
1768
 
9253 rajveer 1769
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1770
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1771
    args = markItemAsContentComplete_args()
1772
    args.entityId = entityId
1773
    args.category = category
1774
    args.brand = brand
1775
    args.modelName = modelName
1776
    args.modelNumber = modelNumber
9253 rajveer 1777
    args.isAndroid = isAndroid
5944 mandeep.dh 1778
    args.write(self._oprot)
1779
    self._oprot.writeMessageEnd()
1780
    self._oprot.trans.flush()
1781
 
1782
  def recv_markItemAsContentComplete(self, ):
1783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1784
    if mtype == TMessageType.EXCEPTION:
1785
      x = TApplicationException()
1786
      x.read(self._iprot)
1787
      self._iprot.readMessageEnd()
1788
      raise x
1789
    result = markItemAsContentComplete_result()
1790
    result.read(self._iprot)
1791
    self._iprot.readMessageEnd()
1792
    if result.success is not None:
1793
      return result.success
1794
    if result.cex is not None:
1795
      raise result.cex
1796
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1797
 
12567 amit.gupta 1798
  def getVatRates(self, itemId, categoryId):
1799
    """
1800
    Parameters:
1801
     - itemId
1802
     - categoryId
1803
    """
1804
    self.send_getVatRates(itemId, categoryId)
1805
    return self.recv_getVatRates()
1806
 
1807
  def send_getVatRates(self, itemId, categoryId):
1808
    self._oprot.writeMessageBegin('getVatRates', TMessageType.CALL, self._seqid)
1809
    args = getVatRates_args()
1810
    args.itemId = itemId
1811
    args.categoryId = categoryId
1812
    args.write(self._oprot)
1813
    self._oprot.writeMessageEnd()
1814
    self._oprot.trans.flush()
1815
 
1816
  def recv_getVatRates(self, ):
1817
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1818
    if mtype == TMessageType.EXCEPTION:
1819
      x = TApplicationException()
1820
      x.read(self._iprot)
1821
      self._iprot.readMessageEnd()
1822
      raise x
1823
    result = getVatRates_result()
1824
    result.read(self._iprot)
1825
    self._iprot.readMessageEnd()
1826
    if result.success is not None:
1827
      return result.success
1828
    if result.cex is not None:
1829
      raise result.cex
1830
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatRates failed: unknown result");
1831
 
5944 mandeep.dh 1832
  def getAllItemsInRange(self, offset, limit):
1833
    """
1834
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1835
 
1836
    Parameters:
1837
     - offset
1838
     - limit
1839
    """
1840
    self.send_getAllItemsInRange(offset, limit)
1841
    return self.recv_getAllItemsInRange()
1842
 
1843
  def send_getAllItemsInRange(self, offset, limit):
1844
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1845
    args = getAllItemsInRange_args()
1846
    args.offset = offset
1847
    args.limit = limit
1848
    args.write(self._oprot)
1849
    self._oprot.writeMessageEnd()
1850
    self._oprot.trans.flush()
1851
 
1852
  def recv_getAllItemsInRange(self, ):
1853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1854
    if mtype == TMessageType.EXCEPTION:
1855
      x = TApplicationException()
1856
      x.read(self._iprot)
1857
      self._iprot.readMessageEnd()
1858
      raise x
1859
    result = getAllItemsInRange_result()
1860
    result.read(self._iprot)
1861
    self._iprot.readMessageEnd()
1862
    if result.success is not None:
1863
      return result.success
1864
    if result.cex is not None:
1865
      raise result.cex
1866
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1867
 
1868
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1869
    """
1870
    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.
1871
 
1872
    Parameters:
1873
     - itemStatus
1874
     - offset
1875
     - limit
1876
    """
1877
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1878
    return self.recv_getAllItemsByStatusInRange()
1879
 
1880
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1881
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1882
    args = getAllItemsByStatusInRange_args()
1883
    args.itemStatus = itemStatus
1884
    args.offset = offset
1885
    args.limit = limit
1886
    args.write(self._oprot)
1887
    self._oprot.writeMessageEnd()
1888
    self._oprot.trans.flush()
1889
 
1890
  def recv_getAllItemsByStatusInRange(self, ):
1891
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1892
    if mtype == TMessageType.EXCEPTION:
1893
      x = TApplicationException()
1894
      x.read(self._iprot)
1895
      self._iprot.readMessageEnd()
1896
      raise x
1897
    result = getAllItemsByStatusInRange_result()
1898
    result.read(self._iprot)
1899
    self._iprot.readMessageEnd()
1900
    if result.success is not None:
1901
      return result.success
1902
    if result.cex is not None:
1903
      raise result.cex
1904
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1905
 
1906
  def getItemCountByStatus(self, useStatus, itemStatus):
1907
    """
1908
    Gets a count of all items by status
1909
 
1910
    Parameters:
1911
     - useStatus
1912
     - itemStatus
1913
    """
1914
    self.send_getItemCountByStatus(useStatus, itemStatus)
1915
    return self.recv_getItemCountByStatus()
1916
 
1917
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1918
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1919
    args = getItemCountByStatus_args()
1920
    args.useStatus = useStatus
1921
    args.itemStatus = itemStatus
1922
    args.write(self._oprot)
1923
    self._oprot.writeMessageEnd()
1924
    self._oprot.trans.flush()
1925
 
1926
  def recv_getItemCountByStatus(self, ):
1927
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1928
    if mtype == TMessageType.EXCEPTION:
1929
      x = TApplicationException()
1930
      x.read(self._iprot)
1931
      self._iprot.readMessageEnd()
1932
      raise x
1933
    result = getItemCountByStatus_result()
1934
    result.read(self._iprot)
1935
    self._iprot.readMessageEnd()
1936
    if result.success is not None:
1937
      return result.success
1938
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1939
 
1940
  def getBestSellers(self, ):
1941
    self.send_getBestSellers()
1942
    return self.recv_getBestSellers()
1943
 
1944
  def send_getBestSellers(self, ):
1945
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1946
    args = getBestSellers_args()
1947
    args.write(self._oprot)
1948
    self._oprot.writeMessageEnd()
1949
    self._oprot.trans.flush()
1950
 
1951
  def recv_getBestSellers(self, ):
1952
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1953
    if mtype == TMessageType.EXCEPTION:
1954
      x = TApplicationException()
1955
      x.read(self._iprot)
1956
      self._iprot.readMessageEnd()
1957
      raise x
1958
    result = getBestSellers_result()
1959
    result.read(self._iprot)
1960
    self._iprot.readMessageEnd()
1961
    if result.success is not None:
1962
      return result.success
1963
    if result.isex is not None:
1964
      raise result.isex
1965
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1966
 
1967
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1968
    """
1969
    Parameters:
1970
     - beginIndex
1971
     - totalItems
1972
     - brand
1973
     - category
1974
    """
1975
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1976
    return self.recv_getBestSellersCatalogIds()
1977
 
1978
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1979
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1980
    args = getBestSellersCatalogIds_args()
1981
    args.beginIndex = beginIndex
1982
    args.totalItems = totalItems
1983
    args.brand = brand
1984
    args.category = category
1985
    args.write(self._oprot)
1986
    self._oprot.writeMessageEnd()
1987
    self._oprot.trans.flush()
1988
 
1989
  def recv_getBestSellersCatalogIds(self, ):
1990
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1991
    if mtype == TMessageType.EXCEPTION:
1992
      x = TApplicationException()
1993
      x.read(self._iprot)
1994
      self._iprot.readMessageEnd()
1995
      raise x
1996
    result = getBestSellersCatalogIds_result()
1997
    result.read(self._iprot)
1998
    self._iprot.readMessageEnd()
1999
    if result.success is not None:
2000
      return result.success
2001
    if result.cex is not None:
2002
      raise result.cex
2003
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
2004
 
2005
  def getBestSellersCount(self, ):
2006
    self.send_getBestSellersCount()
2007
    return self.recv_getBestSellersCount()
2008
 
2009
  def send_getBestSellersCount(self, ):
2010
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
2011
    args = getBestSellersCount_args()
2012
    args.write(self._oprot)
2013
    self._oprot.writeMessageEnd()
2014
    self._oprot.trans.flush()
2015
 
2016
  def recv_getBestSellersCount(self, ):
2017
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2018
    if mtype == TMessageType.EXCEPTION:
2019
      x = TApplicationException()
2020
      x.read(self._iprot)
2021
      self._iprot.readMessageEnd()
2022
      raise x
2023
    result = getBestSellersCount_result()
2024
    result.read(self._iprot)
2025
    self._iprot.readMessageEnd()
2026
    if result.success is not None:
2027
      return result.success
2028
    if result.cex is not None:
2029
      raise result.cex
2030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
2031
 
2032
  def getBestDeals(self, ):
2033
    self.send_getBestDeals()
2034
    return self.recv_getBestDeals()
2035
 
2036
  def send_getBestDeals(self, ):
2037
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
2038
    args = getBestDeals_args()
2039
    args.write(self._oprot)
2040
    self._oprot.writeMessageEnd()
2041
    self._oprot.trans.flush()
2042
 
2043
  def recv_getBestDeals(self, ):
2044
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2045
    if mtype == TMessageType.EXCEPTION:
2046
      x = TApplicationException()
2047
      x.read(self._iprot)
2048
      self._iprot.readMessageEnd()
2049
      raise x
2050
    result = getBestDeals_result()
2051
    result.read(self._iprot)
2052
    self._iprot.readMessageEnd()
2053
    if result.success is not None:
2054
      return result.success
2055
    if result.isex is not None:
2056
      raise result.isex
2057
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
2058
 
2059
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2060
    """
2061
    Parameters:
2062
     - beginIndex
2063
     - totalItems
2064
     - brand
2065
     - category
2066
    """
2067
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
2068
    return self.recv_getBestDealsCatalogIds()
2069
 
2070
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2071
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
2072
    args = getBestDealsCatalogIds_args()
2073
    args.beginIndex = beginIndex
2074
    args.totalItems = totalItems
2075
    args.brand = brand
2076
    args.category = category
2077
    args.write(self._oprot)
2078
    self._oprot.writeMessageEnd()
2079
    self._oprot.trans.flush()
2080
 
2081
  def recv_getBestDealsCatalogIds(self, ):
2082
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2083
    if mtype == TMessageType.EXCEPTION:
2084
      x = TApplicationException()
2085
      x.read(self._iprot)
2086
      self._iprot.readMessageEnd()
2087
      raise x
2088
    result = getBestDealsCatalogIds_result()
2089
    result.read(self._iprot)
2090
    self._iprot.readMessageEnd()
2091
    if result.success is not None:
2092
      return result.success
2093
    if result.cex is not None:
2094
      raise result.cex
2095
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
2096
 
2097
  def getBestDealsCount(self, ):
2098
    self.send_getBestDealsCount()
2099
    return self.recv_getBestDealsCount()
2100
 
2101
  def send_getBestDealsCount(self, ):
2102
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
2103
    args = getBestDealsCount_args()
2104
    args.write(self._oprot)
2105
    self._oprot.writeMessageEnd()
2106
    self._oprot.trans.flush()
2107
 
2108
  def recv_getBestDealsCount(self, ):
2109
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2110
    if mtype == TMessageType.EXCEPTION:
2111
      x = TApplicationException()
2112
      x.read(self._iprot)
2113
      self._iprot.readMessageEnd()
2114
      raise x
2115
    result = getBestDealsCount_result()
2116
    result.read(self._iprot)
2117
    self._iprot.readMessageEnd()
2118
    if result.success is not None:
2119
      return result.success
2120
    if result.cex is not None:
2121
      raise result.cex
2122
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
2123
 
2124
  def getComingSoon(self, ):
2125
    self.send_getComingSoon()
2126
    return self.recv_getComingSoon()
2127
 
2128
  def send_getComingSoon(self, ):
2129
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
2130
    args = getComingSoon_args()
2131
    args.write(self._oprot)
2132
    self._oprot.writeMessageEnd()
2133
    self._oprot.trans.flush()
2134
 
2135
  def recv_getComingSoon(self, ):
2136
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2137
    if mtype == TMessageType.EXCEPTION:
2138
      x = TApplicationException()
2139
      x.read(self._iprot)
2140
      self._iprot.readMessageEnd()
2141
      raise x
2142
    result = getComingSoon_result()
2143
    result.read(self._iprot)
2144
    self._iprot.readMessageEnd()
2145
    if result.success is not None:
2146
      return result.success
2147
    if result.isex is not None:
2148
      raise result.isex
2149
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
2150
 
2151
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2152
    """
2153
    Parameters:
2154
     - beginIndex
2155
     - totalItems
2156
     - brand
2157
     - category
2158
    """
2159
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
2160
    return self.recv_getComingSoonCatalogIds()
2161
 
2162
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2163
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
2164
    args = getComingSoonCatalogIds_args()
2165
    args.beginIndex = beginIndex
2166
    args.totalItems = totalItems
2167
    args.brand = brand
2168
    args.category = category
2169
    args.write(self._oprot)
2170
    self._oprot.writeMessageEnd()
2171
    self._oprot.trans.flush()
2172
 
2173
  def recv_getComingSoonCatalogIds(self, ):
2174
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2175
    if mtype == TMessageType.EXCEPTION:
2176
      x = TApplicationException()
2177
      x.read(self._iprot)
2178
      self._iprot.readMessageEnd()
2179
      raise x
2180
    result = getComingSoonCatalogIds_result()
2181
    result.read(self._iprot)
2182
    self._iprot.readMessageEnd()
2183
    if result.success is not None:
2184
      return result.success
2185
    if result.cex is not None:
2186
      raise result.cex
2187
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
2188
 
2189
  def getComingSoonCount(self, ):
2190
    self.send_getComingSoonCount()
2191
    return self.recv_getComingSoonCount()
2192
 
2193
  def send_getComingSoonCount(self, ):
2194
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
2195
    args = getComingSoonCount_args()
2196
    args.write(self._oprot)
2197
    self._oprot.writeMessageEnd()
2198
    self._oprot.trans.flush()
2199
 
2200
  def recv_getComingSoonCount(self, ):
2201
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2202
    if mtype == TMessageType.EXCEPTION:
2203
      x = TApplicationException()
2204
      x.read(self._iprot)
2205
      self._iprot.readMessageEnd()
2206
      raise x
2207
    result = getComingSoonCount_result()
2208
    result.read(self._iprot)
2209
    self._iprot.readMessageEnd()
2210
    if result.success is not None:
2211
      return result.success
2212
    if result.cex is not None:
2213
      raise result.cex
2214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
2215
 
2216
  def getLatestArrivals(self, ):
2217
    """
2218
    Returns a list of items sorted in the descending order by start date.
2219
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
2220
    """
2221
    self.send_getLatestArrivals()
2222
    return self.recv_getLatestArrivals()
2223
 
2224
  def send_getLatestArrivals(self, ):
2225
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
2226
    args = getLatestArrivals_args()
2227
    args.write(self._oprot)
2228
    self._oprot.writeMessageEnd()
2229
    self._oprot.trans.flush()
2230
 
2231
  def recv_getLatestArrivals(self, ):
2232
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2233
    if mtype == TMessageType.EXCEPTION:
2234
      x = TApplicationException()
2235
      x.read(self._iprot)
2236
      self._iprot.readMessageEnd()
2237
      raise x
2238
    result = getLatestArrivals_result()
2239
    result.read(self._iprot)
2240
    self._iprot.readMessageEnd()
2241
    if result.success is not None:
2242
      return result.success
2243
    if result.isex is not None:
2244
      raise result.isex
2245
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2246
 
2247
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2248
    """
2249
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2250
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2251
 
2252
    Parameters:
2253
     - beginIndex
2254
     - totalItems
2255
     - brand
2256
     - categories
2257
    """
2258
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2259
    return self.recv_getLatestArrivalsCatalogIds()
2260
 
2261
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2262
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2263
    args = getLatestArrivalsCatalogIds_args()
2264
    args.beginIndex = beginIndex
2265
    args.totalItems = totalItems
2266
    args.brand = brand
2267
    args.categories = categories
2268
    args.write(self._oprot)
2269
    self._oprot.writeMessageEnd()
2270
    self._oprot.trans.flush()
2271
 
2272
  def recv_getLatestArrivalsCatalogIds(self, ):
2273
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2274
    if mtype == TMessageType.EXCEPTION:
2275
      x = TApplicationException()
2276
      x.read(self._iprot)
2277
      self._iprot.readMessageEnd()
2278
      raise x
2279
    result = getLatestArrivalsCatalogIds_result()
2280
    result.read(self._iprot)
2281
    self._iprot.readMessageEnd()
2282
    if result.success is not None:
2283
      return result.success
2284
    if result.cex is not None:
2285
      raise result.cex
2286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2287
 
2288
  def getLatestArrivalsCount(self, ):
2289
    """
2290
    Get the total number of latest arrivals we are willing to show.
2291
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2292
    """
2293
    self.send_getLatestArrivalsCount()
2294
    return self.recv_getLatestArrivalsCount()
2295
 
2296
  def send_getLatestArrivalsCount(self, ):
2297
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2298
    args = getLatestArrivalsCount_args()
2299
    args.write(self._oprot)
2300
    self._oprot.writeMessageEnd()
2301
    self._oprot.trans.flush()
2302
 
2303
  def recv_getLatestArrivalsCount(self, ):
2304
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2305
    if mtype == TMessageType.EXCEPTION:
2306
      x = TApplicationException()
2307
      x.read(self._iprot)
2308
      self._iprot.readMessageEnd()
2309
      raise x
2310
    result = getLatestArrivalsCount_result()
2311
    result.read(self._iprot)
2312
    self._iprot.readMessageEnd()
2313
    if result.success is not None:
2314
      return result.success
2315
    if result.cex is not None:
2316
      raise result.cex
2317
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2318
 
2319
  def generateNewEntityID(self, ):
2320
    self.send_generateNewEntityID()
2321
    return self.recv_generateNewEntityID()
2322
 
2323
  def send_generateNewEntityID(self, ):
2324
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2325
    args = generateNewEntityID_args()
2326
    args.write(self._oprot)
2327
    self._oprot.writeMessageEnd()
2328
    self._oprot.trans.flush()
2329
 
2330
  def recv_generateNewEntityID(self, ):
2331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2332
    if mtype == TMessageType.EXCEPTION:
2333
      x = TApplicationException()
2334
      x.read(self._iprot)
2335
      self._iprot.readMessageEnd()
2336
      raise x
2337
    result = generateNewEntityID_result()
2338
    result.read(self._iprot)
2339
    self._iprot.readMessageEnd()
2340
    if result.success is not None:
2341
      return result.success
2342
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2343
 
2344
  def addCategory(self, category):
2345
    """
2346
    All category related functions
2347
 
2348
    Parameters:
2349
     - category
2350
    """
2351
    self.send_addCategory(category)
2352
    return self.recv_addCategory()
2353
 
2354
  def send_addCategory(self, category):
2355
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2356
    args = addCategory_args()
2357
    args.category = category
2358
    args.write(self._oprot)
2359
    self._oprot.writeMessageEnd()
2360
    self._oprot.trans.flush()
2361
 
2362
  def recv_addCategory(self, ):
2363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2364
    if mtype == TMessageType.EXCEPTION:
2365
      x = TApplicationException()
2366
      x.read(self._iprot)
2367
      self._iprot.readMessageEnd()
2368
      raise x
2369
    result = addCategory_result()
2370
    result.read(self._iprot)
2371
    self._iprot.readMessageEnd()
2372
    if result.success is not None:
2373
      return result.success
2374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2375
 
2376
  def getCategory(self, id):
2377
    """
2378
    Parameters:
2379
     - id
2380
    """
2381
    self.send_getCategory(id)
2382
    return self.recv_getCategory()
2383
 
2384
  def send_getCategory(self, id):
2385
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2386
    args = getCategory_args()
2387
    args.id = id
2388
    args.write(self._oprot)
2389
    self._oprot.writeMessageEnd()
2390
    self._oprot.trans.flush()
2391
 
2392
  def recv_getCategory(self, ):
2393
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2394
    if mtype == TMessageType.EXCEPTION:
2395
      x = TApplicationException()
2396
      x.read(self._iprot)
2397
      self._iprot.readMessageEnd()
2398
      raise x
2399
    result = getCategory_result()
2400
    result.read(self._iprot)
2401
    self._iprot.readMessageEnd()
2402
    if result.success is not None:
2403
      return result.success
2404
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2405
 
2406
  def getAllCategories(self, ):
2407
    self.send_getAllCategories()
2408
    return self.recv_getAllCategories()
2409
 
2410
  def send_getAllCategories(self, ):
2411
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2412
    args = getAllCategories_args()
2413
    args.write(self._oprot)
2414
    self._oprot.writeMessageEnd()
2415
    self._oprot.trans.flush()
2416
 
2417
  def recv_getAllCategories(self, ):
2418
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2419
    if mtype == TMessageType.EXCEPTION:
2420
      x = TApplicationException()
2421
      x.read(self._iprot)
2422
      self._iprot.readMessageEnd()
2423
      raise x
2424
    result = getAllCategories_result()
2425
    result.read(self._iprot)
2426
    self._iprot.readMessageEnd()
2427
    if result.success is not None:
2428
      return result.success
2429
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2430
 
2431
  def getAllSimilarItems(self, itemId):
2432
    """
2433
    Returns the list of similar items.
2434
 
2435
    Parameters:
2436
     - itemId
2437
    """
2438
    self.send_getAllSimilarItems(itemId)
2439
    return self.recv_getAllSimilarItems()
2440
 
2441
  def send_getAllSimilarItems(self, itemId):
2442
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2443
    args = getAllSimilarItems_args()
2444
    args.itemId = itemId
2445
    args.write(self._oprot)
2446
    self._oprot.writeMessageEnd()
2447
    self._oprot.trans.flush()
2448
 
2449
  def recv_getAllSimilarItems(self, ):
2450
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2451
    if mtype == TMessageType.EXCEPTION:
2452
      x = TApplicationException()
2453
      x.read(self._iprot)
2454
      self._iprot.readMessageEnd()
2455
      raise x
2456
    result = getAllSimilarItems_result()
2457
    result.read(self._iprot)
2458
    self._iprot.readMessageEnd()
2459
    if result.success is not None:
2460
      return result.success
2461
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2462
 
2463
  def addSimilarItem(self, itemId, catalogItemId):
2464
    """
2465
    Adds similar item.
2466
 
2467
    Parameters:
2468
     - itemId
2469
     - catalogItemId
2470
    """
2471
    self.send_addSimilarItem(itemId, catalogItemId)
2472
    return self.recv_addSimilarItem()
2473
 
2474
  def send_addSimilarItem(self, itemId, catalogItemId):
2475
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2476
    args = addSimilarItem_args()
2477
    args.itemId = itemId
2478
    args.catalogItemId = catalogItemId
2479
    args.write(self._oprot)
2480
    self._oprot.writeMessageEnd()
2481
    self._oprot.trans.flush()
2482
 
2483
  def recv_addSimilarItem(self, ):
2484
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2485
    if mtype == TMessageType.EXCEPTION:
2486
      x = TApplicationException()
2487
      x.read(self._iprot)
2488
      self._iprot.readMessageEnd()
2489
      raise x
2490
    result = addSimilarItem_result()
2491
    result.read(self._iprot)
2492
    self._iprot.readMessageEnd()
2493
    if result.success is not None:
2494
      return result.success
2495
    if result.cex is not None:
2496
      raise result.cex
2497
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2498
 
6512 kshitij.so 2499
  def addTag(self, displayName, itemId):
2500
    """
2501
    Tag Related
2502
 
2503
    Parameters:
2504
     - displayName
2505
     - itemId
2506
    """
2507
    self.send_addTag(displayName, itemId)
2508
    return self.recv_addTag()
2509
 
2510
  def send_addTag(self, displayName, itemId):
2511
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2512
    args = addTag_args()
2513
    args.displayName = displayName
2514
    args.itemId = itemId
2515
    args.write(self._oprot)
2516
    self._oprot.writeMessageEnd()
2517
    self._oprot.trans.flush()
2518
 
2519
  def recv_addTag(self, ):
2520
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2521
    if mtype == TMessageType.EXCEPTION:
2522
      x = TApplicationException()
2523
      x.read(self._iprot)
2524
      self._iprot.readMessageEnd()
2525
      raise x
2526
    result = addTag_result()
2527
    result.read(self._iprot)
2528
    self._iprot.readMessageEnd()
2529
    if result.success is not None:
2530
      return result.success
2531
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2532
 
2533
  def deleteEntityTag(self, displayName, itemId):
2534
    """
2535
    Parameters:
2536
     - displayName
2537
     - itemId
2538
    """
2539
    self.send_deleteEntityTag(displayName, itemId)
2540
    return self.recv_deleteEntityTag()
2541
 
2542
  def send_deleteEntityTag(self, displayName, itemId):
2543
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2544
    args = deleteEntityTag_args()
2545
    args.displayName = displayName
2546
    args.itemId = itemId
2547
    args.write(self._oprot)
2548
    self._oprot.writeMessageEnd()
2549
    self._oprot.trans.flush()
2550
 
2551
  def recv_deleteEntityTag(self, ):
2552
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2553
    if mtype == TMessageType.EXCEPTION:
2554
      x = TApplicationException()
2555
      x.read(self._iprot)
2556
      self._iprot.readMessageEnd()
2557
      raise x
2558
    result = deleteEntityTag_result()
2559
    result.read(self._iprot)
2560
    self._iprot.readMessageEnd()
2561
    if result.success is not None:
2562
      return result.success
2563
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2564
 
2565
  def deleteTag(self, displayName):
2566
    """
2567
    Parameters:
2568
     - displayName
2569
    """
2570
    self.send_deleteTag(displayName)
2571
    return self.recv_deleteTag()
2572
 
2573
  def send_deleteTag(self, displayName):
2574
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2575
    args = deleteTag_args()
2576
    args.displayName = displayName
2577
    args.write(self._oprot)
2578
    self._oprot.writeMessageEnd()
2579
    self._oprot.trans.flush()
2580
 
2581
  def recv_deleteTag(self, ):
2582
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2583
    if mtype == TMessageType.EXCEPTION:
2584
      x = TApplicationException()
2585
      x.read(self._iprot)
2586
      self._iprot.readMessageEnd()
2587
      raise x
2588
    result = deleteTag_result()
2589
    result.read(self._iprot)
2590
    self._iprot.readMessageEnd()
2591
    if result.success is not None:
2592
      return result.success
2593
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2594
 
2595
  def getAllTags(self, ):
2596
    self.send_getAllTags()
2597
    return self.recv_getAllTags()
2598
 
2599
  def send_getAllTags(self, ):
2600
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2601
    args = getAllTags_args()
2602
    args.write(self._oprot)
2603
    self._oprot.writeMessageEnd()
2604
    self._oprot.trans.flush()
2605
 
2606
  def recv_getAllTags(self, ):
2607
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2608
    if mtype == TMessageType.EXCEPTION:
2609
      x = TApplicationException()
2610
      x.read(self._iprot)
2611
      self._iprot.readMessageEnd()
2612
      raise x
2613
    result = getAllTags_result()
2614
    result.read(self._iprot)
2615
    self._iprot.readMessageEnd()
2616
    if result.success is not None:
2617
      return result.success
2618
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2619
 
2620
  def getAllEntitiesByTagName(self, displayName):
2621
    """
2622
    Parameters:
2623
     - displayName
2624
    """
2625
    self.send_getAllEntitiesByTagName(displayName)
2626
    return self.recv_getAllEntitiesByTagName()
2627
 
2628
  def send_getAllEntitiesByTagName(self, displayName):
2629
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2630
    args = getAllEntitiesByTagName_args()
2631
    args.displayName = displayName
2632
    args.write(self._oprot)
2633
    self._oprot.writeMessageEnd()
2634
    self._oprot.trans.flush()
2635
 
2636
  def recv_getAllEntitiesByTagName(self, ):
2637
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2638
    if mtype == TMessageType.EXCEPTION:
2639
      x = TApplicationException()
2640
      x.read(self._iprot)
2641
      self._iprot.readMessageEnd()
2642
      raise x
2643
    result = getAllEntitiesByTagName_result()
2644
    result.read(self._iprot)
2645
    self._iprot.readMessageEnd()
2646
    if result.success is not None:
2647
      return result.success
2648
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2649
 
6845 amit.gupta 2650
  def getAllEntityTags(self, ):
2651
    self.send_getAllEntityTags()
2652
    return self.recv_getAllEntityTags()
2653
 
2654
  def send_getAllEntityTags(self, ):
2655
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2656
    args = getAllEntityTags_args()
2657
    args.write(self._oprot)
2658
    self._oprot.writeMessageEnd()
2659
    self._oprot.trans.flush()
2660
 
2661
  def recv_getAllEntityTags(self, ):
2662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2663
    if mtype == TMessageType.EXCEPTION:
2664
      x = TApplicationException()
2665
      x.read(self._iprot)
2666
      self._iprot.readMessageEnd()
2667
      raise x
2668
    result = getAllEntityTags_result()
2669
    result.read(self._iprot)
2670
    self._iprot.readMessageEnd()
2671
    if result.success is not None:
2672
      return result.success
2673
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2674
 
8590 kshitij.so 2675
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2676
    """
8579 kshitij.so 2677
    Banner Related
2678
 
6850 kshitij.so 2679
    Parameters:
8590 kshitij.so 2680
     - bannerCongregate
6850 kshitij.so 2681
    """
8590 kshitij.so 2682
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2683
    return self.recv_addBanner()
6850 kshitij.so 2684
 
8590 kshitij.so 2685
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2686
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2687
    args = addBanner_args()
8590 kshitij.so 2688
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2689
    args.write(self._oprot)
2690
    self._oprot.writeMessageEnd()
2691
    self._oprot.trans.flush()
2692
 
2693
  def recv_addBanner(self, ):
2694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2695
    if mtype == TMessageType.EXCEPTION:
2696
      x = TApplicationException()
2697
      x.read(self._iprot)
2698
      self._iprot.readMessageEnd()
2699
      raise x
2700
    result = addBanner_result()
2701
    result.read(self._iprot)
2702
    self._iprot.readMessageEnd()
10097 kshitij.so 2703
    if result.success is not None:
2704
      return result.success
2705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2706
 
8579 kshitij.so 2707
  def updateBanner(self, banner):
2708
    """
2709
    Parameters:
2710
     - banner
2711
    """
2712
    self.send_updateBanner(banner)
2713
    return self.recv_updateBanner()
2714
 
2715
  def send_updateBanner(self, banner):
2716
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2717
    args = updateBanner_args()
2718
    args.banner = banner
2719
    args.write(self._oprot)
2720
    self._oprot.writeMessageEnd()
2721
    self._oprot.trans.flush()
2722
 
2723
  def recv_updateBanner(self, ):
2724
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2725
    if mtype == TMessageType.EXCEPTION:
2726
      x = TApplicationException()
2727
      x.read(self._iprot)
2728
      self._iprot.readMessageEnd()
2729
      raise x
2730
    result = updateBanner_result()
2731
    result.read(self._iprot)
2732
    self._iprot.readMessageEnd()
2733
    if result.success is not None:
2734
      return result.success
2735
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2736
 
6850 kshitij.so 2737
  def getAllBanners(self, ):
2738
    self.send_getAllBanners()
2739
    return self.recv_getAllBanners()
2740
 
2741
  def send_getAllBanners(self, ):
2742
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2743
    args = getAllBanners_args()
2744
    args.write(self._oprot)
2745
    self._oprot.writeMessageEnd()
2746
    self._oprot.trans.flush()
2747
 
2748
  def recv_getAllBanners(self, ):
2749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2750
    if mtype == TMessageType.EXCEPTION:
2751
      x = TApplicationException()
2752
      x.read(self._iprot)
2753
      self._iprot.readMessageEnd()
2754
      raise x
2755
    result = getAllBanners_result()
2756
    result.read(self._iprot)
2757
    self._iprot.readMessageEnd()
2758
    if result.success is not None:
2759
      return result.success
2760
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2761
 
9155 kshitij.so 2762
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2763
    """
2764
    Parameters:
2765
     - bannerName
9155 kshitij.so 2766
     - bannerType
6850 kshitij.so 2767
    """
9155 kshitij.so 2768
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2769
    return self.recv_deleteBanner()
2770
 
9155 kshitij.so 2771
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2772
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2773
    args = deleteBanner_args()
2774
    args.bannerName = bannerName
9155 kshitij.so 2775
    args.bannerType = bannerType
6850 kshitij.so 2776
    args.write(self._oprot)
2777
    self._oprot.writeMessageEnd()
2778
    self._oprot.trans.flush()
2779
 
2780
  def recv_deleteBanner(self, ):
2781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2782
    if mtype == TMessageType.EXCEPTION:
2783
      x = TApplicationException()
2784
      x.read(self._iprot)
2785
      self._iprot.readMessageEnd()
2786
      raise x
2787
    result = deleteBanner_result()
2788
    result.read(self._iprot)
2789
    self._iprot.readMessageEnd()
2790
    if result.success is not None:
2791
      return result.success
2792
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2793
 
9155 kshitij.so 2794
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2795
    """
2796
    Parameters:
2797
     - bannerName
9155 kshitij.so 2798
     - bannerType
6850 kshitij.so 2799
    """
9155 kshitij.so 2800
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2801
    return self.recv_getBannerDetails()
2802
 
9155 kshitij.so 2803
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2804
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2805
    args = getBannerDetails_args()
2806
    args.bannerName = bannerName
9155 kshitij.so 2807
    args.bannerType = bannerType
6850 kshitij.so 2808
    args.write(self._oprot)
2809
    self._oprot.writeMessageEnd()
2810
    self._oprot.trans.flush()
2811
 
2812
  def recv_getBannerDetails(self, ):
2813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2814
    if mtype == TMessageType.EXCEPTION:
2815
      x = TApplicationException()
2816
      x.read(self._iprot)
2817
      self._iprot.readMessageEnd()
2818
      raise x
2819
    result = getBannerDetails_result()
2820
    result.read(self._iprot)
2821
    self._iprot.readMessageEnd()
2822
    if result.success is not None:
2823
      return result.success
2824
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2825
 
2826
  def getActiveBanners(self, ):
2827
    self.send_getActiveBanners()
2828
    return self.recv_getActiveBanners()
2829
 
2830
  def send_getActiveBanners(self, ):
2831
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2832
    args = getActiveBanners_args()
2833
    args.write(self._oprot)
2834
    self._oprot.writeMessageEnd()
2835
    self._oprot.trans.flush()
2836
 
2837
  def recv_getActiveBanners(self, ):
2838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2839
    if mtype == TMessageType.EXCEPTION:
2840
      x = TApplicationException()
2841
      x.read(self._iprot)
2842
      self._iprot.readMessageEnd()
2843
      raise x
2844
    result = getActiveBanners_result()
2845
    result.read(self._iprot)
2846
    self._iprot.readMessageEnd()
2847
    if result.success is not None:
2848
      return result.success
2849
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2850
 
8579 kshitij.so 2851
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2852
    """
2853
    Parameters:
8579 kshitij.so 2854
     - bannerMaps
6849 kshitij.so 2855
    """
8579 kshitij.so 2856
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2857
    return self.recv_addBannerMap()
2858
 
8579 kshitij.so 2859
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2860
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2861
    args = addBannerMap_args()
8579 kshitij.so 2862
    args.bannerMaps = bannerMaps
6849 kshitij.so 2863
    args.write(self._oprot)
2864
    self._oprot.writeMessageEnd()
2865
    self._oprot.trans.flush()
2866
 
2867
  def recv_addBannerMap(self, ):
2868
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2869
    if mtype == TMessageType.EXCEPTION:
2870
      x = TApplicationException()
2871
      x.read(self._iprot)
2872
      self._iprot.readMessageEnd()
2873
      raise x
2874
    result = addBannerMap_result()
2875
    result.read(self._iprot)
2876
    self._iprot.readMessageEnd()
2877
    if result.success is not None:
2878
      return result.success
2879
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2880
 
8579 kshitij.so 2881
  def updateBannerMap(self, bannerMap):
2882
    """
2883
    Parameters:
2884
     - bannerMap
2885
    """
2886
    self.send_updateBannerMap(bannerMap)
2887
    return self.recv_updateBannerMap()
2888
 
2889
  def send_updateBannerMap(self, bannerMap):
2890
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2891
    args = updateBannerMap_args()
2892
    args.bannerMap = bannerMap
2893
    args.write(self._oprot)
2894
    self._oprot.writeMessageEnd()
2895
    self._oprot.trans.flush()
2896
 
2897
  def recv_updateBannerMap(self, ):
2898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2899
    if mtype == TMessageType.EXCEPTION:
2900
      x = TApplicationException()
2901
      x.read(self._iprot)
2902
      self._iprot.readMessageEnd()
2903
      raise x
2904
    result = updateBannerMap_result()
2905
    result.read(self._iprot)
2906
    self._iprot.readMessageEnd()
2907
    if result.success is not None:
2908
      return result.success
2909
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2910
 
6849 kshitij.so 2911
  def deleteBannerMap(self, bannerName):
2912
    """
2913
    Parameters:
2914
     - bannerName
2915
    """
2916
    self.send_deleteBannerMap(bannerName)
2917
    return self.recv_deleteBannerMap()
2918
 
2919
  def send_deleteBannerMap(self, bannerName):
2920
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2921
    args = deleteBannerMap_args()
2922
    args.bannerName = bannerName
2923
    args.write(self._oprot)
2924
    self._oprot.writeMessageEnd()
2925
    self._oprot.trans.flush()
2926
 
2927
  def recv_deleteBannerMap(self, ):
2928
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2929
    if mtype == TMessageType.EXCEPTION:
2930
      x = TApplicationException()
2931
      x.read(self._iprot)
2932
      self._iprot.readMessageEnd()
2933
      raise x
2934
    result = deleteBannerMap_result()
2935
    result.read(self._iprot)
2936
    self._iprot.readMessageEnd()
2937
    if result.success is not None:
2938
      return result.success
2939
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2940
 
9155 kshitij.so 2941
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2942
    """
2943
    Parameters:
2944
     - bannerName
9155 kshitij.so 2945
     - bannerType
6849 kshitij.so 2946
    """
9155 kshitij.so 2947
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2948
    return self.recv_getBannerMapDetails()
2949
 
9155 kshitij.so 2950
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2951
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2952
    args = getBannerMapDetails_args()
2953
    args.bannerName = bannerName
9155 kshitij.so 2954
    args.bannerType = bannerType
6849 kshitij.so 2955
    args.write(self._oprot)
2956
    self._oprot.writeMessageEnd()
2957
    self._oprot.trans.flush()
2958
 
2959
  def recv_getBannerMapDetails(self, ):
2960
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2961
    if mtype == TMessageType.EXCEPTION:
2962
      x = TApplicationException()
2963
      x.read(self._iprot)
2964
      self._iprot.readMessageEnd()
2965
      raise x
2966
    result = getBannerMapDetails_result()
2967
    result.read(self._iprot)
2968
    self._iprot.readMessageEnd()
2969
    if result.success is not None:
2970
      return result.success
2971
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2972
 
8579 kshitij.so 2973
  def addBannerUri(self, bannerUriMappings):
2974
    """
2975
    Parameters:
2976
     - bannerUriMappings
2977
    """
2978
    self.send_addBannerUri(bannerUriMappings)
2979
    self.recv_addBannerUri()
2980
 
2981
  def send_addBannerUri(self, bannerUriMappings):
2982
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2983
    args = addBannerUri_args()
2984
    args.bannerUriMappings = bannerUriMappings
2985
    args.write(self._oprot)
2986
    self._oprot.writeMessageEnd()
2987
    self._oprot.trans.flush()
2988
 
2989
  def recv_addBannerUri(self, ):
2990
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2991
    if mtype == TMessageType.EXCEPTION:
2992
      x = TApplicationException()
2993
      x.read(self._iprot)
2994
      self._iprot.readMessageEnd()
2995
      raise x
2996
    result = addBannerUri_result()
2997
    result.read(self._iprot)
2998
    self._iprot.readMessageEnd()
2999
    return
3000
 
9155 kshitij.so 3001
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 3002
    """
3003
    Parameters:
3004
     - bannerName
9155 kshitij.so 3005
     - bannerType
8579 kshitij.so 3006
    """
9155 kshitij.so 3007
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 3008
    return self.recv_getUriMapping()
3009
 
9155 kshitij.so 3010
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 3011
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
3012
    args = getUriMapping_args()
3013
    args.bannerName = bannerName
9155 kshitij.so 3014
    args.bannerType = bannerType
8579 kshitij.so 3015
    args.write(self._oprot)
3016
    self._oprot.writeMessageEnd()
3017
    self._oprot.trans.flush()
3018
 
3019
  def recv_getUriMapping(self, ):
3020
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3021
    if mtype == TMessageType.EXCEPTION:
3022
      x = TApplicationException()
3023
      x.read(self._iprot)
3024
      self._iprot.readMessageEnd()
3025
      raise x
3026
    result = getUriMapping_result()
3027
    result.read(self._iprot)
3028
    self._iprot.readMessageEnd()
3029
    if result.success is not None:
3030
      return result.success
3031
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
3032
 
3033
  def addCampaign(self, campaign):
3034
    """
3035
    Parameters:
3036
     - campaign
3037
    """
3038
    self.send_addCampaign(campaign)
3039
    self.recv_addCampaign()
3040
 
3041
  def send_addCampaign(self, campaign):
3042
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
3043
    args = addCampaign_args()
3044
    args.campaign = campaign
3045
    args.write(self._oprot)
3046
    self._oprot.writeMessageEnd()
3047
    self._oprot.trans.flush()
3048
 
3049
  def recv_addCampaign(self, ):
3050
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3051
    if mtype == TMessageType.EXCEPTION:
3052
      x = TApplicationException()
3053
      x.read(self._iprot)
3054
      self._iprot.readMessageEnd()
3055
      raise x
3056
    result = addCampaign_result()
3057
    result.read(self._iprot)
3058
    self._iprot.readMessageEnd()
3059
    return
3060
 
3061
  def getCampaigns(self, campaignName):
3062
    """
3063
    Parameters:
3064
     - campaignName
3065
    """
3066
    self.send_getCampaigns(campaignName)
3067
    return self.recv_getCampaigns()
3068
 
3069
  def send_getCampaigns(self, campaignName):
3070
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
3071
    args = getCampaigns_args()
3072
    args.campaignName = campaignName
3073
    args.write(self._oprot)
3074
    self._oprot.writeMessageEnd()
3075
    self._oprot.trans.flush()
3076
 
3077
  def recv_getCampaigns(self, ):
3078
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3079
    if mtype == TMessageType.EXCEPTION:
3080
      x = TApplicationException()
3081
      x.read(self._iprot)
3082
      self._iprot.readMessageEnd()
3083
      raise x
3084
    result = getCampaigns_result()
3085
    result.read(self._iprot)
3086
    self._iprot.readMessageEnd()
3087
    if result.success is not None:
3088
      return result.success
3089
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
3090
 
3091
  def deleteCampaign(self, campaignId):
3092
    """
3093
    Parameters:
3094
     - campaignId
3095
    """
3096
    self.send_deleteCampaign(campaignId)
3097
    self.recv_deleteCampaign()
3098
 
3099
  def send_deleteCampaign(self, campaignId):
3100
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
3101
    args = deleteCampaign_args()
3102
    args.campaignId = campaignId
3103
    args.write(self._oprot)
3104
    self._oprot.writeMessageEnd()
3105
    self._oprot.trans.flush()
3106
 
3107
  def recv_deleteCampaign(self, ):
3108
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3109
    if mtype == TMessageType.EXCEPTION:
3110
      x = TApplicationException()
3111
      x.read(self._iprot)
3112
      self._iprot.readMessageEnd()
3113
      raise x
3114
    result = deleteCampaign_result()
3115
    result.read(self._iprot)
3116
    self._iprot.readMessageEnd()
3117
    return
3118
 
3119
  def getAllCampaigns(self, ):
3120
    self.send_getAllCampaigns()
3121
    return self.recv_getAllCampaigns()
3122
 
3123
  def send_getAllCampaigns(self, ):
3124
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
3125
    args = getAllCampaigns_args()
3126
    args.write(self._oprot)
3127
    self._oprot.writeMessageEnd()
3128
    self._oprot.trans.flush()
3129
 
3130
  def recv_getAllCampaigns(self, ):
3131
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3132
    if mtype == TMessageType.EXCEPTION:
3133
      x = TApplicationException()
3134
      x.read(self._iprot)
3135
      self._iprot.readMessageEnd()
3136
      raise x
3137
    result = getAllCampaigns_result()
3138
    result.read(self._iprot)
3139
    self._iprot.readMessageEnd()
3140
    if result.success is not None:
3141
      return result.success
3142
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
3143
 
9155 kshitij.so 3144
  def getActiveBannersForMobileSite(self, ):
3145
    self.send_getActiveBannersForMobileSite()
3146
    return self.recv_getActiveBannersForMobileSite()
3147
 
3148
  def send_getActiveBannersForMobileSite(self, ):
3149
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
3150
    args = getActiveBannersForMobileSite_args()
3151
    args.write(self._oprot)
3152
    self._oprot.writeMessageEnd()
3153
    self._oprot.trans.flush()
3154
 
3155
  def recv_getActiveBannersForMobileSite(self, ):
3156
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3157
    if mtype == TMessageType.EXCEPTION:
3158
      x = TApplicationException()
3159
      x.read(self._iprot)
3160
      self._iprot.readMessageEnd()
3161
      raise x
3162
    result = getActiveBannersForMobileSite_result()
3163
    result.read(self._iprot)
3164
    self._iprot.readMessageEnd()
3165
    if result.success is not None:
3166
      return result.success
3167
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
3168
 
5944 mandeep.dh 3169
  def deleteSimilarItem(self, itemId, catalogItemId):
3170
    """
3171
    Delete similar item.
3172
 
3173
    Parameters:
3174
     - itemId
3175
     - catalogItemId
3176
    """
3177
    self.send_deleteSimilarItem(itemId, catalogItemId)
3178
    return self.recv_deleteSimilarItem()
3179
 
3180
  def send_deleteSimilarItem(self, itemId, catalogItemId):
3181
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
3182
    args = deleteSimilarItem_args()
3183
    args.itemId = itemId
3184
    args.catalogItemId = catalogItemId
3185
    args.write(self._oprot)
3186
    self._oprot.writeMessageEnd()
3187
    self._oprot.trans.flush()
3188
 
3189
  def recv_deleteSimilarItem(self, ):
3190
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3191
    if mtype == TMessageType.EXCEPTION:
3192
      x = TApplicationException()
3193
      x.read(self._iprot)
3194
      self._iprot.readMessageEnd()
3195
      raise x
3196
    result = deleteSimilarItem_result()
3197
    result.read(self._iprot)
3198
    self._iprot.readMessageEnd()
3199
    if result.success is not None:
3200
      return result.success
3201
    if result.cex is not None:
3202
      raise result.cex
3203
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
3204
 
3205
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
3206
    """
3207
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
3208
    If yes, returns the itemId else returns 0
3209
 
3210
    Parameters:
3211
     - brand
3212
     - modelNumber
3213
     - modelName
3214
     - color
3215
    """
3216
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
3217
    return self.recv_checkSimilarItem()
3218
 
3219
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
3220
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
3221
    args = checkSimilarItem_args()
3222
    args.brand = brand
3223
    args.modelNumber = modelNumber
3224
    args.modelName = modelName
3225
    args.color = color
3226
    args.write(self._oprot)
3227
    self._oprot.writeMessageEnd()
3228
    self._oprot.trans.flush()
3229
 
3230
  def recv_checkSimilarItem(self, ):
3231
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3232
    if mtype == TMessageType.EXCEPTION:
3233
      x = TApplicationException()
3234
      x.read(self._iprot)
3235
      self._iprot.readMessageEnd()
3236
      raise x
3237
    result = checkSimilarItem_result()
3238
    result.read(self._iprot)
3239
    self._iprot.readMessageEnd()
3240
    if result.success is not None:
3241
      return result.success
3242
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
3243
 
3244
  def validateRiskyStatus(self, itemId):
3245
    """
3246
    Check wether item is risky and change status if inventory is not available for risky items
3247
 
3248
    Parameters:
3249
     - itemId
3250
    """
3251
    self.send_validateRiskyStatus(itemId)
3252
    self.recv_validateRiskyStatus()
3253
 
3254
  def send_validateRiskyStatus(self, itemId):
3255
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3256
    args = validateRiskyStatus_args()
3257
    args.itemId = itemId
3258
    args.write(self._oprot)
3259
    self._oprot.writeMessageEnd()
3260
    self._oprot.trans.flush()
3261
 
3262
  def recv_validateRiskyStatus(self, ):
3263
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3264
    if mtype == TMessageType.EXCEPTION:
3265
      x = TApplicationException()
3266
      x.read(self._iprot)
3267
      self._iprot.readMessageEnd()
3268
      raise x
3269
    result = validateRiskyStatus_result()
3270
    result.read(self._iprot)
3271
    self._iprot.readMessageEnd()
3272
    return
3273
 
3274
  def changeItemRiskyFlag(self, itemId, risky):
3275
    """
3276
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3277
 
3278
    Parameters:
3279
     - itemId
3280
     - risky
3281
    """
3282
    self.send_changeItemRiskyFlag(itemId, risky)
3283
    self.recv_changeItemRiskyFlag()
3284
 
3285
  def send_changeItemRiskyFlag(self, itemId, risky):
3286
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3287
    args = changeItemRiskyFlag_args()
3288
    args.itemId = itemId
3289
    args.risky = risky
3290
    args.write(self._oprot)
3291
    self._oprot.writeMessageEnd()
3292
    self._oprot.trans.flush()
3293
 
3294
  def recv_changeItemRiskyFlag(self, ):
3295
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3296
    if mtype == TMessageType.EXCEPTION:
3297
      x = TApplicationException()
3298
      x.read(self._iprot)
3299
      self._iprot.readMessageEnd()
3300
      raise x
3301
    result = changeItemRiskyFlag_result()
3302
    result.read(self._iprot)
3303
    self._iprot.readMessageEnd()
3304
    return
3305
 
3306
  def getItemsByRiskyFlag(self, ):
3307
    """
3308
    Returns list of items marked as risky.
3309
    """
3310
    self.send_getItemsByRiskyFlag()
3311
    return self.recv_getItemsByRiskyFlag()
3312
 
3313
  def send_getItemsByRiskyFlag(self, ):
3314
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3315
    args = getItemsByRiskyFlag_args()
3316
    args.write(self._oprot)
3317
    self._oprot.writeMessageEnd()
3318
    self._oprot.trans.flush()
3319
 
3320
  def recv_getItemsByRiskyFlag(self, ):
3321
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3322
    if mtype == TMessageType.EXCEPTION:
3323
      x = TApplicationException()
3324
      x.read(self._iprot)
3325
      self._iprot.readMessageEnd()
3326
      raise x
3327
    result = getItemsByRiskyFlag_result()
3328
    result.read(self._iprot)
3329
    self._iprot.readMessageEnd()
3330
    if result.success is not None:
3331
      return result.success
3332
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3333
 
3334
  def getItemsForMasterSheet(self, category, brand):
3335
    """
3336
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3337
 
3338
    Parameters:
3339
     - category
3340
     - brand
3341
    """
3342
    self.send_getItemsForMasterSheet(category, brand)
3343
    return self.recv_getItemsForMasterSheet()
3344
 
3345
  def send_getItemsForMasterSheet(self, category, brand):
3346
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3347
    args = getItemsForMasterSheet_args()
3348
    args.category = category
3349
    args.brand = brand
3350
    args.write(self._oprot)
3351
    self._oprot.writeMessageEnd()
3352
    self._oprot.trans.flush()
3353
 
3354
  def recv_getItemsForMasterSheet(self, ):
3355
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3356
    if mtype == TMessageType.EXCEPTION:
3357
      x = TApplicationException()
3358
      x.read(self._iprot)
3359
      self._iprot.readMessageEnd()
3360
      raise x
3361
    result = getItemsForMasterSheet_result()
3362
    result.read(self._iprot)
3363
    self._iprot.readMessageEnd()
3364
    if result.success is not None:
3365
      return result.success
3366
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3367
 
3368
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3369
    """
3370
    Returns list of catalog ids of items with same similarity index as of the given itemId
3371
 
3372
    Parameters:
3373
     - beginIndex
3374
     - totalItems
3375
     - itemId
3376
    """
3377
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3378
    return self.recv_getSimilarItemsCatalogIds()
3379
 
3380
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3381
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3382
    args = getSimilarItemsCatalogIds_args()
3383
    args.beginIndex = beginIndex
3384
    args.totalItems = totalItems
3385
    args.itemId = itemId
3386
    args.write(self._oprot)
3387
    self._oprot.writeMessageEnd()
3388
    self._oprot.trans.flush()
3389
 
3390
  def recv_getSimilarItemsCatalogIds(self, ):
3391
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3392
    if mtype == TMessageType.EXCEPTION:
3393
      x = TApplicationException()
3394
      x.read(self._iprot)
3395
      self._iprot.readMessageEnd()
3396
      raise x
3397
    result = getSimilarItemsCatalogIds_result()
3398
    result.read(self._iprot)
3399
    self._iprot.readMessageEnd()
3400
    if result.success is not None:
3401
      return result.success
3402
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3403
 
3404
  def addProductNotification(self, itemId, email):
3405
    """
3406
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3407
 
3408
    Parameters:
3409
     - itemId
3410
     - email
3411
    """
3412
    self.send_addProductNotification(itemId, email)
3413
    return self.recv_addProductNotification()
3414
 
3415
  def send_addProductNotification(self, itemId, email):
3416
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3417
    args = addProductNotification_args()
3418
    args.itemId = itemId
3419
    args.email = email
3420
    args.write(self._oprot)
3421
    self._oprot.writeMessageEnd()
3422
    self._oprot.trans.flush()
3423
 
3424
  def recv_addProductNotification(self, ):
3425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3426
    if mtype == TMessageType.EXCEPTION:
3427
      x = TApplicationException()
3428
      x.read(self._iprot)
3429
      self._iprot.readMessageEnd()
3430
      raise x
3431
    result = addProductNotification_result()
3432
    result.read(self._iprot)
3433
    self._iprot.readMessageEnd()
3434
    if result.success is not None:
3435
      return result.success
3436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3437
 
3438
  def sendProductNotifications(self, ):
3439
    """
3440
    Send the product notifications to the users for items which has stock.
3441
    """
3442
    self.send_sendProductNotifications()
3443
    return self.recv_sendProductNotifications()
3444
 
3445
  def send_sendProductNotifications(self, ):
3446
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3447
    args = sendProductNotifications_args()
3448
    args.write(self._oprot)
3449
    self._oprot.writeMessageEnd()
3450
    self._oprot.trans.flush()
3451
 
3452
  def recv_sendProductNotifications(self, ):
3453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3454
    if mtype == TMessageType.EXCEPTION:
3455
      x = TApplicationException()
3456
      x.read(self._iprot)
3457
      self._iprot.readMessageEnd()
3458
      raise x
3459
    result = sendProductNotifications_result()
3460
    result.read(self._iprot)
3461
    self._iprot.readMessageEnd()
3462
    if result.success is not None:
3463
      return result.success
3464
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3465
 
3466
  def getAllBrandsByCategory(self, categoryId):
3467
    """
3468
    Returns list of brand names for a given category Id
3469
 
3470
    Parameters:
3471
     - categoryId
3472
    """
3473
    self.send_getAllBrandsByCategory(categoryId)
3474
    return self.recv_getAllBrandsByCategory()
3475
 
3476
  def send_getAllBrandsByCategory(self, categoryId):
3477
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3478
    args = getAllBrandsByCategory_args()
3479
    args.categoryId = categoryId
3480
    args.write(self._oprot)
3481
    self._oprot.writeMessageEnd()
3482
    self._oprot.trans.flush()
3483
 
3484
  def recv_getAllBrandsByCategory(self, ):
3485
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3486
    if mtype == TMessageType.EXCEPTION:
3487
      x = TApplicationException()
3488
      x.read(self._iprot)
3489
      self._iprot.readMessageEnd()
3490
      raise x
3491
    result = getAllBrandsByCategory_result()
3492
    result.read(self._iprot)
3493
    self._iprot.readMessageEnd()
3494
    if result.success is not None:
3495
      return result.success
3496
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3497
 
3498
  def getAllBrands(self, ):
3499
    """
3500
    Returns list of brand names
3501
    """
3502
    self.send_getAllBrands()
3503
    return self.recv_getAllBrands()
3504
 
3505
  def send_getAllBrands(self, ):
3506
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3507
    args = getAllBrands_args()
3508
    args.write(self._oprot)
3509
    self._oprot.writeMessageEnd()
3510
    self._oprot.trans.flush()
3511
 
3512
  def recv_getAllBrands(self, ):
3513
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3514
    if mtype == TMessageType.EXCEPTION:
3515
      x = TApplicationException()
3516
      x.read(self._iprot)
3517
      self._iprot.readMessageEnd()
3518
      raise x
3519
    result = getAllBrands_result()
3520
    result.read(self._iprot)
3521
    self._iprot.readMessageEnd()
3522
    if result.success is not None:
3523
      return result.success
3524
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3525
 
3526
  def getAllSources(self, ):
3527
    """
3528
    Return list of all sources
3529
    """
3530
    self.send_getAllSources()
3531
    return self.recv_getAllSources()
3532
 
3533
  def send_getAllSources(self, ):
3534
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3535
    args = getAllSources_args()
3536
    args.write(self._oprot)
3537
    self._oprot.writeMessageEnd()
3538
    self._oprot.trans.flush()
3539
 
3540
  def recv_getAllSources(self, ):
3541
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3542
    if mtype == TMessageType.EXCEPTION:
3543
      x = TApplicationException()
3544
      x.read(self._iprot)
3545
      self._iprot.readMessageEnd()
3546
      raise x
3547
    result = getAllSources_result()
3548
    result.read(self._iprot)
3549
    self._iprot.readMessageEnd()
3550
    if result.success is not None:
3551
      return result.success
3552
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3553
 
3554
  def getItemPricingBySource(self, itemId, sourceId):
3555
    """
3556
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3557
 
3558
    Parameters:
3559
     - itemId
3560
     - sourceId
3561
    """
3562
    self.send_getItemPricingBySource(itemId, sourceId)
3563
    return self.recv_getItemPricingBySource()
3564
 
3565
  def send_getItemPricingBySource(self, itemId, sourceId):
3566
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3567
    args = getItemPricingBySource_args()
3568
    args.itemId = itemId
3569
    args.sourceId = sourceId
3570
    args.write(self._oprot)
3571
    self._oprot.writeMessageEnd()
3572
    self._oprot.trans.flush()
3573
 
3574
  def recv_getItemPricingBySource(self, ):
3575
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3576
    if mtype == TMessageType.EXCEPTION:
3577
      x = TApplicationException()
3578
      x.read(self._iprot)
3579
      self._iprot.readMessageEnd()
3580
      raise x
3581
    result = getItemPricingBySource_result()
3582
    result.read(self._iprot)
3583
    self._iprot.readMessageEnd()
3584
    if result.success is not None:
3585
      return result.success
3586
    if result.cex is not None:
3587
      raise result.cex
3588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3589
 
3590
  def addSourceItemPricing(self, sourceItemPricing):
3591
    """
3592
    Adds prices to be displayed corresponding to the item if user comes from a source.
3593
    If item is not found or source is not found, it will throw exception.
3594
 
3595
    Parameters:
3596
     - sourceItemPricing
3597
    """
3598
    self.send_addSourceItemPricing(sourceItemPricing)
3599
    self.recv_addSourceItemPricing()
3600
 
3601
  def send_addSourceItemPricing(self, sourceItemPricing):
3602
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3603
    args = addSourceItemPricing_args()
3604
    args.sourceItemPricing = sourceItemPricing
3605
    args.write(self._oprot)
3606
    self._oprot.writeMessageEnd()
3607
    self._oprot.trans.flush()
3608
 
3609
  def recv_addSourceItemPricing(self, ):
3610
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3611
    if mtype == TMessageType.EXCEPTION:
3612
      x = TApplicationException()
3613
      x.read(self._iprot)
3614
      self._iprot.readMessageEnd()
3615
      raise x
3616
    result = addSourceItemPricing_result()
3617
    result.read(self._iprot)
3618
    self._iprot.readMessageEnd()
3619
    if result.cex is not None:
3620
      raise result.cex
3621
    return
3622
 
3623
  def getAllSourcePricing(self, itemId):
3624
    """
3625
    Returns the list of source pricing information of an item.
3626
    Raises an exception if item not found corresponding to itemId
3627
 
3628
    Parameters:
3629
     - itemId
3630
    """
3631
    self.send_getAllSourcePricing(itemId)
3632
    return self.recv_getAllSourcePricing()
3633
 
3634
  def send_getAllSourcePricing(self, itemId):
3635
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3636
    args = getAllSourcePricing_args()
3637
    args.itemId = itemId
3638
    args.write(self._oprot)
3639
    self._oprot.writeMessageEnd()
3640
    self._oprot.trans.flush()
3641
 
3642
  def recv_getAllSourcePricing(self, ):
3643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3644
    if mtype == TMessageType.EXCEPTION:
3645
      x = TApplicationException()
3646
      x.read(self._iprot)
3647
      self._iprot.readMessageEnd()
3648
      raise x
3649
    result = getAllSourcePricing_result()
3650
    result.read(self._iprot)
3651
    self._iprot.readMessageEnd()
3652
    if result.success is not None:
3653
      return result.success
3654
    if result.cex is not None:
3655
      raise result.cex
3656
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3657
 
3658
  def getItemForSource(self, item_id, sourceId):
3659
    """
3660
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3661
 
3662
    Parameters:
3663
     - item_id
3664
     - sourceId
3665
    """
3666
    self.send_getItemForSource(item_id, sourceId)
3667
    return self.recv_getItemForSource()
3668
 
3669
  def send_getItemForSource(self, item_id, sourceId):
3670
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3671
    args = getItemForSource_args()
3672
    args.item_id = item_id
3673
    args.sourceId = sourceId
3674
    args.write(self._oprot)
3675
    self._oprot.writeMessageEnd()
3676
    self._oprot.trans.flush()
3677
 
3678
  def recv_getItemForSource(self, ):
3679
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3680
    if mtype == TMessageType.EXCEPTION:
3681
      x = TApplicationException()
3682
      x.read(self._iprot)
3683
      self._iprot.readMessageEnd()
3684
      raise x
3685
    result = getItemForSource_result()
3686
    result.read(self._iprot)
3687
    self._iprot.readMessageEnd()
3688
    if result.success is not None:
3689
      return result.success
3690
    if result.cex is not None:
3691
      raise result.cex
3692
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3693
 
3694
  def searchItemsInRange(self, searchTerms, offset, limit):
3695
    """
3696
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3697
 
3698
    Parameters:
3699
     - searchTerms
3700
     - offset
3701
     - limit
3702
    """
3703
    self.send_searchItemsInRange(searchTerms, offset, limit)
3704
    return self.recv_searchItemsInRange()
3705
 
3706
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3707
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3708
    args = searchItemsInRange_args()
3709
    args.searchTerms = searchTerms
3710
    args.offset = offset
3711
    args.limit = limit
3712
    args.write(self._oprot)
3713
    self._oprot.writeMessageEnd()
3714
    self._oprot.trans.flush()
3715
 
3716
  def recv_searchItemsInRange(self, ):
3717
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3718
    if mtype == TMessageType.EXCEPTION:
3719
      x = TApplicationException()
3720
      x.read(self._iprot)
3721
      self._iprot.readMessageEnd()
3722
      raise x
3723
    result = searchItemsInRange_result()
3724
    result.read(self._iprot)
3725
    self._iprot.readMessageEnd()
3726
    if result.success is not None:
3727
      return result.success
3728
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3729
 
3730
  def getSearchResultCount(self, searchTerms):
3731
    """
3732
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3733
 
3734
    Parameters:
3735
     - searchTerms
3736
    """
3737
    self.send_getSearchResultCount(searchTerms)
3738
    return self.recv_getSearchResultCount()
3739
 
3740
  def send_getSearchResultCount(self, searchTerms):
3741
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3742
    args = getSearchResultCount_args()
3743
    args.searchTerms = searchTerms
3744
    args.write(self._oprot)
3745
    self._oprot.writeMessageEnd()
3746
    self._oprot.trans.flush()
3747
 
3748
  def recv_getSearchResultCount(self, ):
3749
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3750
    if mtype == TMessageType.EXCEPTION:
3751
      x = TApplicationException()
3752
      x.read(self._iprot)
3753
      self._iprot.readMessageEnd()
3754
      raise x
3755
    result = getSearchResultCount_result()
3756
    result.read(self._iprot)
3757
    self._iprot.readMessageEnd()
3758
    if result.success is not None:
3759
      return result.success
3760
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3761
 
3762
  def getProductNotifications(self, startDateTime):
3763
    """
3764
    Returns a list of product notifications added after a supplied datetime
3765
 
3766
    Parameters:
3767
     - startDateTime
3768
    """
3769
    self.send_getProductNotifications(startDateTime)
3770
    return self.recv_getProductNotifications()
3771
 
3772
  def send_getProductNotifications(self, startDateTime):
3773
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3774
    args = getProductNotifications_args()
3775
    args.startDateTime = startDateTime
3776
    args.write(self._oprot)
3777
    self._oprot.writeMessageEnd()
3778
    self._oprot.trans.flush()
3779
 
3780
  def recv_getProductNotifications(self, ):
3781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3782
    if mtype == TMessageType.EXCEPTION:
3783
      x = TApplicationException()
3784
      x.read(self._iprot)
3785
      self._iprot.readMessageEnd()
3786
      raise x
3787
    result = getProductNotifications_result()
3788
    result.read(self._iprot)
3789
    self._iprot.readMessageEnd()
3790
    if result.success is not None:
3791
      return result.success
3792
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3793
 
7897 amar.kumar 3794
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3795
    """
3796
    Returns a list of count of requests for product notification against each item
3797
 
3798
    Parameters:
3799
     - startDateTime
7897 amar.kumar 3800
     - categoryId
5944 mandeep.dh 3801
    """
7897 amar.kumar 3802
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3803
    return self.recv_getProductNotificationRequestCount()
3804
 
7897 amar.kumar 3805
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3806
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3807
    args = getProductNotificationRequestCount_args()
3808
    args.startDateTime = startDateTime
7897 amar.kumar 3809
    args.categoryId = categoryId
5944 mandeep.dh 3810
    args.write(self._oprot)
3811
    self._oprot.writeMessageEnd()
3812
    self._oprot.trans.flush()
3813
 
3814
  def recv_getProductNotificationRequestCount(self, ):
3815
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3816
    if mtype == TMessageType.EXCEPTION:
3817
      x = TApplicationException()
3818
      x.read(self._iprot)
3819
      self._iprot.readMessageEnd()
3820
      raise x
3821
    result = getProductNotificationRequestCount_result()
3822
    result.read(self._iprot)
3823
    self._iprot.readMessageEnd()
3824
    if result.success is not None:
3825
      return result.success
3826
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3827
 
3828
  def addAuthorizationLog(self, itemId, username, reason):
3829
    """
3830
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3831
 
3832
    Parameters:
3833
     - itemId
3834
     - username
3835
     - reason
3836
    """
3837
    self.send_addAuthorizationLog(itemId, username, reason)
3838
    return self.recv_addAuthorizationLog()
3839
 
3840
  def send_addAuthorizationLog(self, itemId, username, reason):
3841
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3842
    args = addAuthorizationLog_args()
3843
    args.itemId = itemId
3844
    args.username = username
3845
    args.reason = reason
3846
    args.write(self._oprot)
3847
    self._oprot.writeMessageEnd()
3848
    self._oprot.trans.flush()
3849
 
3850
  def recv_addAuthorizationLog(self, ):
3851
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3852
    if mtype == TMessageType.EXCEPTION:
3853
      x = TApplicationException()
3854
      x.read(self._iprot)
3855
      self._iprot.readMessageEnd()
3856
      raise x
3857
    result = addAuthorizationLog_result()
3858
    result.read(self._iprot)
3859
    self._iprot.readMessageEnd()
3860
    if result.success is not None:
3861
      return result.success
3862
    if result.cex is not None:
3863
      raise result.cex
3864
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3865
 
3866
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3867
    """
3868
    Parameters:
3869
     - catalog_item_id
3870
     - voucherType
3871
     - voucherAmount
3872
    """
3873
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3874
    return self.recv_addupdateVoucherForItem()
3875
 
3876
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3877
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3878
    args = addupdateVoucherForItem_args()
3879
    args.catalog_item_id = catalog_item_id
3880
    args.voucherType = voucherType
3881
    args.voucherAmount = voucherAmount
3882
    args.write(self._oprot)
3883
    self._oprot.writeMessageEnd()
3884
    self._oprot.trans.flush()
3885
 
3886
  def recv_addupdateVoucherForItem(self, ):
3887
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3888
    if mtype == TMessageType.EXCEPTION:
3889
      x = TApplicationException()
3890
      x.read(self._iprot)
3891
      self._iprot.readMessageEnd()
3892
      raise x
3893
    result = addupdateVoucherForItem_result()
3894
    result.read(self._iprot)
3895
    self._iprot.readMessageEnd()
3896
    if result.success is not None:
3897
      return result.success
3898
    if result.cex is not None:
3899
      raise result.cex
3900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3901
 
3902
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3903
    """
3904
    Parameters:
3905
     - catalog_item_id
3906
     - voucherType
3907
    """
3908
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3909
    return self.recv_deleteVoucherForItem()
3910
 
3911
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3912
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3913
    args = deleteVoucherForItem_args()
3914
    args.catalog_item_id = catalog_item_id
3915
    args.voucherType = voucherType
3916
    args.write(self._oprot)
3917
    self._oprot.writeMessageEnd()
3918
    self._oprot.trans.flush()
3919
 
3920
  def recv_deleteVoucherForItem(self, ):
3921
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3922
    if mtype == TMessageType.EXCEPTION:
3923
      x = TApplicationException()
3924
      x.read(self._iprot)
3925
      self._iprot.readMessageEnd()
3926
      raise x
3927
    result = deleteVoucherForItem_result()
3928
    result.read(self._iprot)
3929
    self._iprot.readMessageEnd()
3930
    if result.success is not None:
3931
      return result.success
3932
    if result.cex is not None:
3933
      raise result.cex
3934
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3935
 
3936
  def getVoucherAmount(self, itemId, voucherType):
3937
    """
3938
    Parameters:
3939
     - itemId
3940
     - voucherType
3941
    """
3942
    self.send_getVoucherAmount(itemId, voucherType)
3943
    return self.recv_getVoucherAmount()
3944
 
3945
  def send_getVoucherAmount(self, itemId, voucherType):
3946
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3947
    args = getVoucherAmount_args()
3948
    args.itemId = itemId
3949
    args.voucherType = voucherType
3950
    args.write(self._oprot)
3951
    self._oprot.writeMessageEnd()
3952
    self._oprot.trans.flush()
3953
 
3954
  def recv_getVoucherAmount(self, ):
3955
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3956
    if mtype == TMessageType.EXCEPTION:
3957
      x = TApplicationException()
3958
      x.read(self._iprot)
3959
      self._iprot.readMessageEnd()
3960
      raise x
3961
    result = getVoucherAmount_result()
3962
    result.read(self._iprot)
3963
    self._iprot.readMessageEnd()
3964
    if result.success is not None:
3965
      return result.success
3966
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3967
 
3968
  def getAllItemVouchers(self, itemId):
3969
    """
3970
    Parameters:
3971
     - itemId
3972
    """
3973
    self.send_getAllItemVouchers(itemId)
3974
    return self.recv_getAllItemVouchers()
3975
 
3976
  def send_getAllItemVouchers(self, itemId):
3977
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3978
    args = getAllItemVouchers_args()
3979
    args.itemId = itemId
3980
    args.write(self._oprot)
3981
    self._oprot.writeMessageEnd()
3982
    self._oprot.trans.flush()
3983
 
3984
  def recv_getAllItemVouchers(self, ):
3985
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3986
    if mtype == TMessageType.EXCEPTION:
3987
      x = TApplicationException()
3988
      x.read(self._iprot)
3989
      self._iprot.readMessageEnd()
3990
      raise x
3991
    result = getAllItemVouchers_result()
3992
    result.read(self._iprot)
3993
    self._iprot.readMessageEnd()
3994
    if result.success is not None:
3995
      return result.success
3996
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3997
 
3998
  def isValidCatalogItemId(self, catalog_item_id):
3999
    """
4000
    Parameters:
4001
     - catalog_item_id
4002
    """
4003
    self.send_isValidCatalogItemId(catalog_item_id)
4004
    return self.recv_isValidCatalogItemId()
4005
 
4006
  def send_isValidCatalogItemId(self, catalog_item_id):
4007
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
4008
    args = isValidCatalogItemId_args()
4009
    args.catalog_item_id = catalog_item_id
4010
    args.write(self._oprot)
4011
    self._oprot.writeMessageEnd()
4012
    self._oprot.trans.flush()
4013
 
4014
  def recv_isValidCatalogItemId(self, ):
4015
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4016
    if mtype == TMessageType.EXCEPTION:
4017
      x = TApplicationException()
4018
      x.read(self._iprot)
4019
      self._iprot.readMessageEnd()
4020
      raise x
4021
    result = isValidCatalogItemId_result()
4022
    result.read(self._iprot)
4023
    self._iprot.readMessageEnd()
4024
    if result.success is not None:
4025
      return result.success
4026
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
4027
 
7330 amit.gupta 4028
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 4029
    """
4030
    Parameters:
4031
     - itemId
7330 amit.gupta 4032
     - stateId
6039 amit.gupta 4033
     - price
4034
    """
7330 amit.gupta 4035
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 4036
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 4037
 
7330 amit.gupta 4038
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 4039
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
4040
    args = getVatPercentageForItem_args()
4041
    args.itemId = itemId
7330 amit.gupta 4042
    args.stateId = stateId
6039 amit.gupta 4043
    args.price = price
4044
    args.write(self._oprot)
4045
    self._oprot.writeMessageEnd()
4046
    self._oprot.trans.flush()
4047
 
4048
  def recv_getVatPercentageForItem(self, ):
4049
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4050
    if mtype == TMessageType.EXCEPTION:
4051
      x = TApplicationException()
4052
      x.read(self._iprot)
4053
      self._iprot.readMessageEnd()
4054
      raise x
4055
    result = getVatPercentageForItem_result()
4056
    result.read(self._iprot)
4057
    self._iprot.readMessageEnd()
4058
    if result.success is not None:
4059
      return result.success
7340 amit.gupta 4060
    if result.cex is not None:
4061
      raise result.cex
6039 amit.gupta 4062
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
4063
 
4064
  def getVatAmountForItem(self, itemId, price):
4065
    """
4066
    Parameters:
4067
     - itemId
4068
     - price
4069
    """
4070
    self.send_getVatAmountForItem(itemId, price)
4071
    return self.recv_getVatAmountForItem()
4072
 
4073
  def send_getVatAmountForItem(self, itemId, price):
4074
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
4075
    args = getVatAmountForItem_args()
4076
    args.itemId = itemId
4077
    args.price = price
4078
    args.write(self._oprot)
4079
    self._oprot.writeMessageEnd()
4080
    self._oprot.trans.flush()
4081
 
4082
  def recv_getVatAmountForItem(self, ):
4083
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4084
    if mtype == TMessageType.EXCEPTION:
4085
      x = TApplicationException()
4086
      x.read(self._iprot)
4087
      self._iprot.readMessageEnd()
4088
      raise x
4089
    result = getVatAmountForItem_result()
4090
    result.read(self._iprot)
4091
    self._iprot.readMessageEnd()
4092
    if result.success is not None:
4093
      return result.success
4094
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
4095
 
6531 vikram.rag 4096
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4097
    """
4098
    Parameters:
4099
     - offset
4100
     - limit
4101
    """
4102
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
4103
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 4104
 
6531 vikram.rag 4105
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4106
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
4107
    args = getAllIgnoredInventoryUpdateItemsList_args()
4108
    args.offset = offset
4109
    args.limit = limit
4110
    args.write(self._oprot)
4111
    self._oprot.writeMessageEnd()
4112
    self._oprot.trans.flush()
4113
 
4114
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
4115
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4116
    if mtype == TMessageType.EXCEPTION:
4117
      x = TApplicationException()
4118
      x.read(self._iprot)
4119
      self._iprot.readMessageEnd()
4120
      raise x
4121
    result = getAllIgnoredInventoryUpdateItemsList_result()
4122
    result.read(self._iprot)
4123
    self._iprot.readMessageEnd()
4124
    if result.success is not None:
4125
      return result.success
4126
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
4127
 
6821 amar.kumar 4128
  def getAllAliveItems(self, ):
4129
    self.send_getAllAliveItems()
4130
    return self.recv_getAllAliveItems()
4131
 
4132
  def send_getAllAliveItems(self, ):
4133
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
4134
    args = getAllAliveItems_args()
4135
    args.write(self._oprot)
4136
    self._oprot.writeMessageEnd()
4137
    self._oprot.trans.flush()
4138
 
4139
  def recv_getAllAliveItems(self, ):
4140
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4141
    if mtype == TMessageType.EXCEPTION:
4142
      x = TApplicationException()
4143
      x.read(self._iprot)
4144
      self._iprot.readMessageEnd()
4145
      raise x
4146
    result = getAllAliveItems_result()
4147
    result.read(self._iprot)
4148
    self._iprot.readMessageEnd()
4149
    if result.success is not None:
4150
      return result.success
4151
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
4152
 
6921 anupam.sin 4153
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4154
    """
4155
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 4156
 
6805 anupam.sin 4157
    Parameters:
4158
     - itemId
6921 anupam.sin 4159
     - price
6805 anupam.sin 4160
     - insurerId
4161
     - quantity
4162
    """
6921 anupam.sin 4163
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 4164
    return self.recv_getInsuranceAmount()
4165
 
6921 anupam.sin 4166
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4167
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
4168
    args = getInsuranceAmount_args()
4169
    args.itemId = itemId
6921 anupam.sin 4170
    args.price = price
6805 anupam.sin 4171
    args.insurerId = insurerId
4172
    args.quantity = quantity
4173
    args.write(self._oprot)
4174
    self._oprot.writeMessageEnd()
4175
    self._oprot.trans.flush()
4176
 
4177
  def recv_getInsuranceAmount(self, ):
4178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4179
    if mtype == TMessageType.EXCEPTION:
4180
      x = TApplicationException()
4181
      x.read(self._iprot)
4182
      self._iprot.readMessageEnd()
4183
      raise x
4184
    result = getInsuranceAmount_result()
4185
    result.read(self._iprot)
4186
    self._iprot.readMessageEnd()
4187
    if result.success is not None:
4188
      return result.success
4189
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
4190
 
4191
  def getInsurer(self, insurerId):
4192
    """
4193
    Parameters:
4194
     - insurerId
4195
    """
4196
    self.send_getInsurer(insurerId)
4197
    return self.recv_getInsurer()
4198
 
4199
  def send_getInsurer(self, insurerId):
4200
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
4201
    args = getInsurer_args()
4202
    args.insurerId = insurerId
4203
    args.write(self._oprot)
4204
    self._oprot.writeMessageEnd()
4205
    self._oprot.trans.flush()
4206
 
4207
  def recv_getInsurer(self, ):
4208
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4209
    if mtype == TMessageType.EXCEPTION:
4210
      x = TApplicationException()
4211
      x.read(self._iprot)
4212
      self._iprot.readMessageEnd()
4213
      raise x
4214
    result = getInsurer_result()
4215
    result.read(self._iprot)
4216
    self._iprot.readMessageEnd()
4217
    if result.success is not None:
4218
      return result.success
4219
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
4220
 
6838 vikram.rag 4221
  def getAllInsurers(self, ):
4222
    self.send_getAllInsurers()
4223
    return self.recv_getAllInsurers()
6805 anupam.sin 4224
 
6838 vikram.rag 4225
  def send_getAllInsurers(self, ):
4226
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
4227
    args = getAllInsurers_args()
4228
    args.write(self._oprot)
4229
    self._oprot.writeMessageEnd()
4230
    self._oprot.trans.flush()
4231
 
4232
  def recv_getAllInsurers(self, ):
4233
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4234
    if mtype == TMessageType.EXCEPTION:
4235
      x = TApplicationException()
4236
      x.read(self._iprot)
4237
      self._iprot.readMessageEnd()
4238
      raise x
4239
    result = getAllInsurers_result()
4240
    result.read(self._iprot)
4241
    self._iprot.readMessageEnd()
4242
    if result.success is not None:
4243
      return result.success
4244
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4245
 
6962 rajveer 4246
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4247
    """
4248
    Parameters:
4249
     - insurerId
4250
     - amount
4251
    """
4252
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4253
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4254
 
6962 rajveer 4255
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4256
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4257
    args = updateInsuranceDeclaredAmount_args()
4258
    args.insurerId = insurerId
4259
    args.amount = amount
4260
    args.write(self._oprot)
4261
    self._oprot.writeMessageEnd()
4262
    self._oprot.trans.flush()
4263
 
4264
  def recv_updateInsuranceDeclaredAmount(self, ):
4265
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4266
    if mtype == TMessageType.EXCEPTION:
4267
      x = TApplicationException()
4268
      x.read(self._iprot)
4269
      self._iprot.readMessageEnd()
4270
      raise x
4271
    result = updateInsuranceDeclaredAmount_result()
4272
    result.read(self._iprot)
4273
    self._iprot.readMessageEnd()
4274
    return
4275
 
7190 amar.kumar 4276
  def getFreebieForItem(self, itemId):
4277
    """
4278
    Parameters:
4279
     - itemId
4280
    """
4281
    self.send_getFreebieForItem(itemId)
4282
    return self.recv_getFreebieForItem()
6962 rajveer 4283
 
7190 amar.kumar 4284
  def send_getFreebieForItem(self, itemId):
4285
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4286
    args = getFreebieForItem_args()
4287
    args.itemId = itemId
4288
    args.write(self._oprot)
4289
    self._oprot.writeMessageEnd()
4290
    self._oprot.trans.flush()
4291
 
4292
  def recv_getFreebieForItem(self, ):
4293
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4294
    if mtype == TMessageType.EXCEPTION:
4295
      x = TApplicationException()
4296
      x.read(self._iprot)
4297
      self._iprot.readMessageEnd()
4298
      raise x
4299
    result = getFreebieForItem_result()
4300
    result.read(self._iprot)
4301
    self._iprot.readMessageEnd()
4302
    if result.success is not None:
4303
      return result.success
4304
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4305
 
4306
  def addOrUpdateFreebieForItem(self, freebieItem):
4307
    """
4308
    Parameters:
4309
     - freebieItem
4310
    """
4311
    self.send_addOrUpdateFreebieForItem(freebieItem)
4312
    self.recv_addOrUpdateFreebieForItem()
4313
 
4314
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4315
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4316
    args = addOrUpdateFreebieForItem_args()
4317
    args.freebieItem = freebieItem
4318
    args.write(self._oprot)
4319
    self._oprot.writeMessageEnd()
4320
    self._oprot.trans.flush()
4321
 
4322
  def recv_addOrUpdateFreebieForItem(self, ):
4323
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4324
    if mtype == TMessageType.EXCEPTION:
4325
      x = TApplicationException()
4326
      x.read(self._iprot)
4327
      self._iprot.readMessageEnd()
4328
      raise x
4329
    result = addOrUpdateFreebieForItem_result()
4330
    result.read(self._iprot)
4331
    self._iprot.readMessageEnd()
4332
    return
4333
 
7272 amit.gupta 4334
  def addOrUpdateBrandInfo(self, brandInfo):
4335
    """
4336
    Parameters:
4337
     - brandInfo
4338
    """
4339
    self.send_addOrUpdateBrandInfo(brandInfo)
4340
    self.recv_addOrUpdateBrandInfo()
4341
 
4342
  def send_addOrUpdateBrandInfo(self, brandInfo):
4343
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4344
    args = addOrUpdateBrandInfo_args()
4345
    args.brandInfo = brandInfo
4346
    args.write(self._oprot)
4347
    self._oprot.writeMessageEnd()
4348
    self._oprot.trans.flush()
4349
 
4350
  def recv_addOrUpdateBrandInfo(self, ):
4351
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4352
    if mtype == TMessageType.EXCEPTION:
4353
      x = TApplicationException()
4354
      x.read(self._iprot)
4355
      self._iprot.readMessageEnd()
4356
      raise x
4357
    result = addOrUpdateBrandInfo_result()
4358
    result.read(self._iprot)
4359
    self._iprot.readMessageEnd()
4360
    return
4361
 
4362
  def getBrandInfo(self, ):
4363
    self.send_getBrandInfo()
4364
    return self.recv_getBrandInfo()
4365
 
4366
  def send_getBrandInfo(self, ):
4367
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4368
    args = getBrandInfo_args()
4369
    args.write(self._oprot)
4370
    self._oprot.writeMessageEnd()
4371
    self._oprot.trans.flush()
4372
 
4373
  def recv_getBrandInfo(self, ):
4374
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4375
    if mtype == TMessageType.EXCEPTION:
4376
      x = TApplicationException()
4377
      x.read(self._iprot)
4378
      self._iprot.readMessageEnd()
4379
      raise x
4380
    result = getBrandInfo_result()
4381
    result.read(self._iprot)
4382
    self._iprot.readMessageEnd()
4383
    if result.success is not None:
4384
      return result.success
4385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4386
 
7256 rajveer 4387
  def getStorePricing(self, itemId):
4388
    """
4389
    Parameters:
4390
     - itemId
4391
    """
4392
    self.send_getStorePricing(itemId)
4393
    return self.recv_getStorePricing()
7190 amar.kumar 4394
 
7256 rajveer 4395
  def send_getStorePricing(self, itemId):
4396
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4397
    args = getStorePricing_args()
4398
    args.itemId = itemId
4399
    args.write(self._oprot)
4400
    self._oprot.writeMessageEnd()
4401
    self._oprot.trans.flush()
4402
 
4403
  def recv_getStorePricing(self, ):
4404
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4405
    if mtype == TMessageType.EXCEPTION:
4406
      x = TApplicationException()
4407
      x.read(self._iprot)
4408
      self._iprot.readMessageEnd()
4409
      raise x
4410
    result = getStorePricing_result()
4411
    result.read(self._iprot)
4412
    self._iprot.readMessageEnd()
4413
    if result.success is not None:
4414
      return result.success
4415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4416
 
7306 rajveer 4417
  def getStorePricings(self, itemIds):
4418
    """
4419
    Parameters:
4420
     - itemIds
4421
    """
4422
    self.send_getStorePricings(itemIds)
4423
    return self.recv_getStorePricings()
4424
 
4425
  def send_getStorePricings(self, itemIds):
4426
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4427
    args = getStorePricings_args()
4428
    args.itemIds = itemIds
4429
    args.write(self._oprot)
4430
    self._oprot.writeMessageEnd()
4431
    self._oprot.trans.flush()
4432
 
4433
  def recv_getStorePricings(self, ):
4434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4435
    if mtype == TMessageType.EXCEPTION:
4436
      x = TApplicationException()
4437
      x.read(self._iprot)
4438
      self._iprot.readMessageEnd()
4439
      raise x
4440
    result = getStorePricings_result()
4441
    result.read(self._iprot)
4442
    self._iprot.readMessageEnd()
4443
    if result.success is not None:
4444
      return result.success
4445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4446
 
7382 rajveer 4447
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4448
    """
4449
    Parameters:
4450
     - sp
7382 rajveer 4451
     - allColors
7265 rajveer 4452
    """
7382 rajveer 4453
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4454
    self.recv_updateStorePricing()
7256 rajveer 4455
 
7382 rajveer 4456
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4457
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4458
    args = updateStorePricing_args()
4459
    args.sp = sp
7382 rajveer 4460
    args.allColors = allColors
7265 rajveer 4461
    args.write(self._oprot)
4462
    self._oprot.writeMessageEnd()
4463
    self._oprot.trans.flush()
4464
 
4465
  def recv_updateStorePricing(self, ):
4466
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4467
    if mtype == TMessageType.EXCEPTION:
4468
      x = TApplicationException()
4469
      x.read(self._iprot)
4470
      self._iprot.readMessageEnd()
4471
      raise x
4472
    result = updateStorePricing_result()
4473
    result.read(self._iprot)
4474
    self._iprot.readMessageEnd()
4475
    return
4476
 
7281 kshitij.so 4477
  def getAllAmazonListedItems(self, ):
4478
    self.send_getAllAmazonListedItems()
4479
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4480
 
7281 kshitij.so 4481
  def send_getAllAmazonListedItems(self, ):
4482
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4483
    args = getAllAmazonListedItems_args()
4484
    args.write(self._oprot)
4485
    self._oprot.writeMessageEnd()
4486
    self._oprot.trans.flush()
4487
 
4488
  def recv_getAllAmazonListedItems(self, ):
4489
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4490
    if mtype == TMessageType.EXCEPTION:
4491
      x = TApplicationException()
4492
      x.read(self._iprot)
4493
      self._iprot.readMessageEnd()
4494
      raise x
4495
    result = getAllAmazonListedItems_result()
4496
    result.read(self._iprot)
4497
    self._iprot.readMessageEnd()
4498
    if result.success is not None:
4499
      return result.success
4500
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4501
 
8619 kshitij.so 4502
  def searchAmazonItems(self, searchTerm, offset, limit):
4503
    """
4504
    Parameters:
4505
     - searchTerm
4506
     - offset
4507
     - limit
4508
    """
4509
    self.send_searchAmazonItems(searchTerm, offset, limit)
4510
    return self.recv_searchAmazonItems()
4511
 
4512
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4513
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4514
    args = searchAmazonItems_args()
4515
    args.searchTerm = searchTerm
4516
    args.offset = offset
4517
    args.limit = limit
4518
    args.write(self._oprot)
4519
    self._oprot.writeMessageEnd()
4520
    self._oprot.trans.flush()
4521
 
4522
  def recv_searchAmazonItems(self, ):
4523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4524
    if mtype == TMessageType.EXCEPTION:
4525
      x = TApplicationException()
4526
      x.read(self._iprot)
4527
      self._iprot.readMessageEnd()
4528
      raise x
4529
    result = searchAmazonItems_result()
4530
    result.read(self._iprot)
4531
    self._iprot.readMessageEnd()
4532
    if result.success is not None:
4533
      return result.success
4534
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4535
 
4536
  def getAmazonSearchResultCount(self, searchTerm):
4537
    """
4538
    Parameters:
4539
     - searchTerm
4540
    """
4541
    self.send_getAmazonSearchResultCount(searchTerm)
4542
    return self.recv_getAmazonSearchResultCount()
4543
 
4544
  def send_getAmazonSearchResultCount(self, searchTerm):
4545
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4546
    args = getAmazonSearchResultCount_args()
4547
    args.searchTerm = searchTerm
4548
    args.write(self._oprot)
4549
    self._oprot.writeMessageEnd()
4550
    self._oprot.trans.flush()
4551
 
4552
  def recv_getAmazonSearchResultCount(self, ):
4553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4554
    if mtype == TMessageType.EXCEPTION:
4555
      x = TApplicationException()
4556
      x.read(self._iprot)
4557
      self._iprot.readMessageEnd()
4558
      raise x
4559
    result = getAmazonSearchResultCount_result()
4560
    result.read(self._iprot)
4561
    self._iprot.readMessageEnd()
4562
    if result.success is not None:
4563
      return result.success
4564
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4565
 
4566
  def getCountForAmazonlistedItems(self, ):
4567
    self.send_getCountForAmazonlistedItems()
4568
    return self.recv_getCountForAmazonlistedItems()
4569
 
4570
  def send_getCountForAmazonlistedItems(self, ):
4571
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4572
    args = getCountForAmazonlistedItems_args()
4573
    args.write(self._oprot)
4574
    self._oprot.writeMessageEnd()
4575
    self._oprot.trans.flush()
4576
 
4577
  def recv_getCountForAmazonlistedItems(self, ):
4578
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4579
    if mtype == TMessageType.EXCEPTION:
4580
      x = TApplicationException()
4581
      x.read(self._iprot)
4582
      self._iprot.readMessageEnd()
4583
      raise x
4584
    result = getCountForAmazonlistedItems_result()
4585
    result.read(self._iprot)
4586
    self._iprot.readMessageEnd()
4587
    if result.success is not None:
4588
      return result.success
4589
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4590
 
7281 kshitij.so 4591
  def getAmazonItemDetails(self, itemId):
4592
    """
4593
    Parameters:
4594
     - itemId
4595
    """
4596
    self.send_getAmazonItemDetails(itemId)
4597
    return self.recv_getAmazonItemDetails()
4598
 
4599
  def send_getAmazonItemDetails(self, itemId):
4600
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4601
    args = getAmazonItemDetails_args()
4602
    args.itemId = itemId
4603
    args.write(self._oprot)
4604
    self._oprot.writeMessageEnd()
4605
    self._oprot.trans.flush()
4606
 
4607
  def recv_getAmazonItemDetails(self, ):
4608
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4609
    if mtype == TMessageType.EXCEPTION:
4610
      x = TApplicationException()
4611
      x.read(self._iprot)
4612
      self._iprot.readMessageEnd()
4613
      raise x
4614
    result = getAmazonItemDetails_result()
4615
    result.read(self._iprot)
4616
    self._iprot.readMessageEnd()
4617
    if result.success is not None:
4618
      return result.success
4619
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4620
 
8168 kshitij.so 4621
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4622
    """
4623
    Parameters:
8168 kshitij.so 4624
     - amazonlisted
7281 kshitij.so 4625
    """
8168 kshitij.so 4626
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4627
    self.recv_updateAmazonItemDetails()
4628
 
8168 kshitij.so 4629
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4630
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4631
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4632
    args.amazonlisted = amazonlisted
7281 kshitij.so 4633
    args.write(self._oprot)
4634
    self._oprot.writeMessageEnd()
4635
    self._oprot.trans.flush()
4636
 
4637
  def recv_updateAmazonItemDetails(self, ):
4638
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4639
    if mtype == TMessageType.EXCEPTION:
4640
      x = TApplicationException()
4641
      x.read(self._iprot)
4642
      self._iprot.readMessageEnd()
4643
      raise x
4644
    result = updateAmazonItemDetails_result()
4645
    result.read(self._iprot)
4646
    self._iprot.readMessageEnd()
4647
    return
4648
 
4649
  def addAmazonItem(self, amazonlisted):
4650
    """
4651
    Parameters:
4652
     - amazonlisted
4653
    """
4654
    self.send_addAmazonItem(amazonlisted)
4655
    self.recv_addAmazonItem()
4656
 
4657
  def send_addAmazonItem(self, amazonlisted):
4658
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4659
    args = addAmazonItem_args()
4660
    args.amazonlisted = amazonlisted
4661
    args.write(self._oprot)
4662
    self._oprot.writeMessageEnd()
4663
    self._oprot.trans.flush()
4664
 
4665
  def recv_addAmazonItem(self, ):
4666
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4667
    if mtype == TMessageType.EXCEPTION:
4668
      x = TApplicationException()
4669
      x.read(self._iprot)
4670
      self._iprot.readMessageEnd()
4671
      raise x
4672
    result = addAmazonItem_result()
4673
    result.read(self._iprot)
4674
    self._iprot.readMessageEnd()
4675
    return
4676
 
7291 vikram.rag 4677
  def getAsinItems(self, ):
4678
    self.send_getAsinItems()
4679
    return self.recv_getAsinItems()
7281 kshitij.so 4680
 
7291 vikram.rag 4681
  def send_getAsinItems(self, ):
4682
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4683
    args = getAsinItems_args()
4684
    args.write(self._oprot)
4685
    self._oprot.writeMessageEnd()
4686
    self._oprot.trans.flush()
4687
 
4688
  def recv_getAsinItems(self, ):
4689
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4690
    if mtype == TMessageType.EXCEPTION:
4691
      x = TApplicationException()
4692
      x.read(self._iprot)
4693
      self._iprot.readMessageEnd()
4694
      raise x
4695
    result = getAsinItems_result()
4696
    result.read(self._iprot)
4697
    self._iprot.readMessageEnd()
4698
    if result.success is not None:
4699
      return result.success
4700
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4701
 
4702
  def getAllFbaListedItems(self, ):
4703
    self.send_getAllFbaListedItems()
4704
    return self.recv_getAllFbaListedItems()
4705
 
4706
  def send_getAllFbaListedItems(self, ):
4707
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4708
    args = getAllFbaListedItems_args()
4709
    args.write(self._oprot)
4710
    self._oprot.writeMessageEnd()
4711
    self._oprot.trans.flush()
4712
 
4713
  def recv_getAllFbaListedItems(self, ):
4714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4715
    if mtype == TMessageType.EXCEPTION:
4716
      x = TApplicationException()
4717
      x.read(self._iprot)
4718
      self._iprot.readMessageEnd()
4719
      raise x
4720
    result = getAllFbaListedItems_result()
4721
    result.read(self._iprot)
4722
    self._iprot.readMessageEnd()
4723
    if result.success is not None:
4724
      return result.success
4725
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4726
 
4727
  def getAllNonFbaListedItems(self, ):
4728
    self.send_getAllNonFbaListedItems()
4729
    return self.recv_getAllNonFbaListedItems()
4730
 
4731
  def send_getAllNonFbaListedItems(self, ):
4732
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4733
    args = getAllNonFbaListedItems_args()
4734
    args.write(self._oprot)
4735
    self._oprot.writeMessageEnd()
4736
    self._oprot.trans.flush()
4737
 
4738
  def recv_getAllNonFbaListedItems(self, ):
4739
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4740
    if mtype == TMessageType.EXCEPTION:
4741
      x = TApplicationException()
4742
      x.read(self._iprot)
4743
      self._iprot.readMessageEnd()
4744
      raise x
4745
    result = getAllNonFbaListedItems_result()
4746
    result.read(self._iprot)
4747
    self._iprot.readMessageEnd()
4748
    if result.success is not None:
4749
      return result.success
4750
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4751
 
7460 kshitij.so 4752
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4753
    """
4754
    Parameters:
4755
     - itemId
4756
     - holdInventory
4757
     - defaultInventory
4758
    """
4759
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4760
    return self.recv_updateItemInventory()
7291 vikram.rag 4761
 
7460 kshitij.so 4762
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4763
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4764
    args = updateItemInventory_args()
4765
    args.itemId = itemId
4766
    args.holdInventory = holdInventory
4767
    args.defaultInventory = defaultInventory
4768
    args.write(self._oprot)
4769
    self._oprot.writeMessageEnd()
4770
    self._oprot.trans.flush()
4771
 
4772
  def recv_updateItemInventory(self, ):
4773
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4774
    if mtype == TMessageType.EXCEPTION:
4775
      x = TApplicationException()
4776
      x.read(self._iprot)
4777
      self._iprot.readMessageEnd()
4778
      raise x
4779
    result = updateItemInventory_result()
4780
    result.read(self._iprot)
4781
    self._iprot.readMessageEnd()
4782
    if result.success is not None:
4783
      return result.success
4784
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4785
 
7770 kshitij.so 4786
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4787
    """
4788
    Parameters:
4789
     - type
4790
     - sku
4791
     - timestamp
4792
    """
4793
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4794
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4795
 
7770 kshitij.so 4796
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4797
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4798
    args = updateTimestampForAmazonFeeds_args()
4799
    args.type = type
4800
    args.sku = sku
4801
    args.timestamp = timestamp
4802
    args.write(self._oprot)
4803
    self._oprot.writeMessageEnd()
4804
    self._oprot.trans.flush()
4805
 
4806
  def recv_updateTimestampForAmazonFeeds(self, ):
4807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4808
    if mtype == TMessageType.EXCEPTION:
4809
      x = TApplicationException()
4810
      x.read(self._iprot)
4811
      self._iprot.readMessageEnd()
4812
      raise x
4813
    result = updateTimestampForAmazonFeeds_result()
4814
    result.read(self._iprot)
4815
    self._iprot.readMessageEnd()
4816
    if result.success is not None:
4817
      return result.success
4818
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4819
 
7897 amar.kumar 4820
  def getAllParentCategories(self, ):
4821
    self.send_getAllParentCategories()
4822
    return self.recv_getAllParentCategories()
7770 kshitij.so 4823
 
7897 amar.kumar 4824
  def send_getAllParentCategories(self, ):
4825
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4826
    args = getAllParentCategories_args()
4827
    args.write(self._oprot)
4828
    self._oprot.writeMessageEnd()
4829
    self._oprot.trans.flush()
4830
 
4831
  def recv_getAllParentCategories(self, ):
4832
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4833
    if mtype == TMessageType.EXCEPTION:
4834
      x = TApplicationException()
4835
      x.read(self._iprot)
4836
      self._iprot.readMessageEnd()
4837
      raise x
4838
    result = getAllParentCategories_result()
4839
    result.read(self._iprot)
4840
    self._iprot.readMessageEnd()
4841
    if result.success is not None:
4842
      return result.success
4843
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4844
 
7977 kshitij.so 4845
  def addPageViewEvent(self, pageViewEvents):
4846
    """
4847
    Parameters:
4848
     - pageViewEvents
4849
    """
4850
    self.send_addPageViewEvent(pageViewEvents)
4851
    self.recv_addPageViewEvent()
7897 amar.kumar 4852
 
7977 kshitij.so 4853
  def send_addPageViewEvent(self, pageViewEvents):
4854
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4855
    args = addPageViewEvent_args()
4856
    args.pageViewEvents = pageViewEvents
4857
    args.write(self._oprot)
4858
    self._oprot.writeMessageEnd()
4859
    self._oprot.trans.flush()
4860
 
4861
  def recv_addPageViewEvent(self, ):
4862
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4863
    if mtype == TMessageType.EXCEPTION:
4864
      x = TApplicationException()
4865
      x.read(self._iprot)
4866
      self._iprot.readMessageEnd()
4867
      raise x
4868
    result = addPageViewEvent_result()
4869
    result.read(self._iprot)
4870
    self._iprot.readMessageEnd()
4871
    return
4872
 
4873
  def addCartEvent(self, cartEvents):
4874
    """
4875
    Parameters:
4876
     - cartEvents
4877
    """
4878
    self.send_addCartEvent(cartEvents)
4879
    self.recv_addCartEvent()
4880
 
4881
  def send_addCartEvent(self, cartEvents):
4882
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4883
    args = addCartEvent_args()
4884
    args.cartEvents = cartEvents
4885
    args.write(self._oprot)
4886
    self._oprot.writeMessageEnd()
4887
    self._oprot.trans.flush()
4888
 
4889
  def recv_addCartEvent(self, ):
4890
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4891
    if mtype == TMessageType.EXCEPTION:
4892
      x = TApplicationException()
4893
      x.read(self._iprot)
4894
      self._iprot.readMessageEnd()
4895
      raise x
4896
    result = addCartEvent_result()
4897
    result.read(self._iprot)
4898
    self._iprot.readMessageEnd()
4899
    return
4900
 
8182 amar.kumar 4901
  def addEbayItem(self, ebayItem):
4902
    """
4903
    Parameters:
4904
     - ebayItem
4905
    """
4906
    self.send_addEbayItem(ebayItem)
4907
    self.recv_addEbayItem()
4908
 
4909
  def send_addEbayItem(self, ebayItem):
4910
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4911
    args = addEbayItem_args()
4912
    args.ebayItem = ebayItem
4913
    args.write(self._oprot)
4914
    self._oprot.writeMessageEnd()
4915
    self._oprot.trans.flush()
4916
 
4917
  def recv_addEbayItem(self, ):
4918
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4919
    if mtype == TMessageType.EXCEPTION:
4920
      x = TApplicationException()
4921
      x.read(self._iprot)
4922
      self._iprot.readMessageEnd()
4923
      raise x
4924
    result = addEbayItem_result()
4925
    result.read(self._iprot)
4926
    self._iprot.readMessageEnd()
4927
    return
4928
 
4929
  def getEbayItem(self, listingId):
4930
    """
4931
    Parameters:
4932
     - listingId
4933
    """
4934
    self.send_getEbayItem(listingId)
4935
    return self.recv_getEbayItem()
4936
 
4937
  def send_getEbayItem(self, listingId):
4938
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4939
    args = getEbayItem_args()
4940
    args.listingId = listingId
4941
    args.write(self._oprot)
4942
    self._oprot.writeMessageEnd()
4943
    self._oprot.trans.flush()
4944
 
4945
  def recv_getEbayItem(self, ):
4946
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4947
    if mtype == TMessageType.EXCEPTION:
4948
      x = TApplicationException()
4949
      x.read(self._iprot)
4950
      self._iprot.readMessageEnd()
4951
      raise x
4952
    result = getEbayItem_result()
4953
    result.read(self._iprot)
4954
    self._iprot.readMessageEnd()
4955
    if result.success is not None:
4956
      return result.success
4957
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4958
 
4959
  def updateEbayItem(self, ebayItem):
4960
    """
4961
    Parameters:
4962
     - ebayItem
4963
    """
4964
    self.send_updateEbayItem(ebayItem)
4965
    self.recv_updateEbayItem()
4966
 
4967
  def send_updateEbayItem(self, ebayItem):
4968
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4969
    args = updateEbayItem_args()
4970
    args.ebayItem = ebayItem
4971
    args.write(self._oprot)
4972
    self._oprot.writeMessageEnd()
4973
    self._oprot.trans.flush()
4974
 
4975
  def recv_updateEbayItem(self, ):
4976
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4977
    if mtype == TMessageType.EXCEPTION:
4978
      x = TApplicationException()
4979
      x.read(self._iprot)
4980
      self._iprot.readMessageEnd()
4981
      raise x
4982
    result = updateEbayItem_result()
4983
    result.read(self._iprot)
4984
    self._iprot.readMessageEnd()
4985
    return
4986
 
8139 kshitij.so 4987
  def getAmazonListedItems(self, offset, limit):
4988
    """
4989
    Parameters:
4990
     - offset
4991
     - limit
4992
    """
4993
    self.send_getAmazonListedItems(offset, limit)
4994
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4995
 
8139 kshitij.so 4996
  def send_getAmazonListedItems(self, offset, limit):
4997
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4998
    args = getAmazonListedItems_args()
4999
    args.offset = offset
5000
    args.limit = limit
5001
    args.write(self._oprot)
5002
    self._oprot.writeMessageEnd()
5003
    self._oprot.trans.flush()
5004
 
5005
  def recv_getAmazonListedItems(self, ):
5006
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5007
    if mtype == TMessageType.EXCEPTION:
5008
      x = TApplicationException()
5009
      x.read(self._iprot)
5010
      self._iprot.readMessageEnd()
5011
      raise x
5012
    result = getAmazonListedItems_result()
5013
    result.read(self._iprot)
5014
    self._iprot.readMessageEnd()
5015
    if result.success is not None:
5016
      return result.success
5017
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
5018
 
8168 kshitij.so 5019
  def updateAmazonAttributesInBulk(self, amazonlisted):
5020
    """
5021
    Parameters:
5022
     - amazonlisted
5023
    """
5024
    self.send_updateAmazonAttributesInBulk(amazonlisted)
5025
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 5026
 
8168 kshitij.so 5027
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
5028
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
5029
    args = updateAmazonAttributesInBulk_args()
5030
    args.amazonlisted = amazonlisted
5031
    args.write(self._oprot)
5032
    self._oprot.writeMessageEnd()
5033
    self._oprot.trans.flush()
5034
 
5035
  def recv_updateAmazonAttributesInBulk(self, ):
5036
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5037
    if mtype == TMessageType.EXCEPTION:
5038
      x = TApplicationException()
5039
      x.read(self._iprot)
5040
      self._iprot.readMessageEnd()
5041
      raise x
5042
    result = updateAmazonAttributesInBulk_result()
5043
    result.read(self._iprot)
5044
    self._iprot.readMessageEnd()
5045
    if result.success is not None:
5046
      return result.success
5047
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
5048
 
8379 vikram.rag 5049
  def getAllItemstoListOnFba(self, ):
5050
    self.send_getAllItemstoListOnFba()
5051
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 5052
 
8379 vikram.rag 5053
  def send_getAllItemstoListOnFba(self, ):
5054
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
5055
    args = getAllItemstoListOnFba_args()
5056
    args.write(self._oprot)
5057
    self._oprot.writeMessageEnd()
5058
    self._oprot.trans.flush()
5059
 
5060
  def recv_getAllItemstoListOnFba(self, ):
5061
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5062
    if mtype == TMessageType.EXCEPTION:
5063
      x = TApplicationException()
5064
      x.read(self._iprot)
5065
      self._iprot.readMessageEnd()
5066
      raise x
5067
    result = getAllItemstoListOnFba_result()
5068
    result.read(self._iprot)
5069
    self._iprot.readMessageEnd()
5070
    if result.success is not None:
5071
      return result.success
5072
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
5073
 
5074
  def getAllItemstoListOnNonFba(self, ):
5075
    self.send_getAllItemstoListOnNonFba()
5076
    return self.recv_getAllItemstoListOnNonFba()
5077
 
5078
  def send_getAllItemstoListOnNonFba(self, ):
5079
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
5080
    args = getAllItemstoListOnNonFba_args()
5081
    args.write(self._oprot)
5082
    self._oprot.writeMessageEnd()
5083
    self._oprot.trans.flush()
5084
 
5085
  def recv_getAllItemstoListOnNonFba(self, ):
5086
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5087
    if mtype == TMessageType.EXCEPTION:
5088
      x = TApplicationException()
5089
      x.read(self._iprot)
5090
      self._iprot.readMessageEnd()
5091
      raise x
5092
    result = getAllItemstoListOnNonFba_result()
5093
    result.read(self._iprot)
5094
    self._iprot.readMessageEnd()
5095
    if result.success is not None:
5096
      return result.success
5097
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
5098
 
8619 kshitij.so 5099
  def updateAsin(self, item):
5100
    """
5101
    Parameters:
5102
     - item
5103
    """
5104
    self.send_updateAsin(item)
5105
    self.recv_updateAsin()
8616 vikram.rag 5106
 
8619 kshitij.so 5107
  def send_updateAsin(self, item):
5108
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
5109
    args = updateAsin_args()
5110
    args.item = item
5111
    args.write(self._oprot)
5112
    self._oprot.writeMessageEnd()
5113
    self._oprot.trans.flush()
5114
 
5115
  def recv_updateAsin(self, ):
5116
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5117
    if mtype == TMessageType.EXCEPTION:
5118
      x = TApplicationException()
5119
      x.read(self._iprot)
5120
      self._iprot.readMessageEnd()
5121
      raise x
5122
    result = updateAsin_result()
5123
    result.read(self._iprot)
5124
    self._iprot.readMessageEnd()
5125
    return
5126
 
8739 vikram.rag 5127
  def addOrUpdateSnapdealItem(self, snapdealitem):
5128
    """
5129
    Parameters:
5130
     - snapdealitem
5131
    """
5132
    self.send_addOrUpdateSnapdealItem(snapdealitem)
5133
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 5134
 
8739 vikram.rag 5135
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
5136
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
5137
    args = addOrUpdateSnapdealItem_args()
5138
    args.snapdealitem = snapdealitem
5139
    args.write(self._oprot)
5140
    self._oprot.writeMessageEnd()
5141
    self._oprot.trans.flush()
5142
 
5143
  def recv_addOrUpdateSnapdealItem(self, ):
5144
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5145
    if mtype == TMessageType.EXCEPTION:
5146
      x = TApplicationException()
5147
      x.read(self._iprot)
5148
      self._iprot.readMessageEnd()
5149
      raise x
5150
    result = addOrUpdateSnapdealItem_result()
5151
    result.read(self._iprot)
5152
    self._iprot.readMessageEnd()
5153
    if result.success is not None:
5154
      return result.success
5155
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
5156
 
5157
  def getSnapdealItem(self, item_id):
5158
    """
5159
    Parameters:
5160
     - item_id
5161
    """
5162
    self.send_getSnapdealItem(item_id)
5163
    return self.recv_getSnapdealItem()
5164
 
5165
  def send_getSnapdealItem(self, item_id):
5166
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
5167
    args = getSnapdealItem_args()
5168
    args.item_id = item_id
5169
    args.write(self._oprot)
5170
    self._oprot.writeMessageEnd()
5171
    self._oprot.trans.flush()
5172
 
5173
  def recv_getSnapdealItem(self, ):
5174
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5175
    if mtype == TMessageType.EXCEPTION:
5176
      x = TApplicationException()
5177
      x.read(self._iprot)
5178
      self._iprot.readMessageEnd()
5179
      raise x
5180
    result = getSnapdealItem_result()
5181
    result.read(self._iprot)
5182
    self._iprot.readMessageEnd()
5183
    if result.success is not None:
5184
      return result.success
5185
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
5186
 
9242 kshitij.so 5187
  def getSnapdealItemDetails(self, item_id):
5188
    """
5189
    Parameters:
5190
     - item_id
5191
    """
5192
    self.send_getSnapdealItemDetails(item_id)
5193
    return self.recv_getSnapdealItemDetails()
5194
 
5195
  def send_getSnapdealItemDetails(self, item_id):
5196
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
5197
    args = getSnapdealItemDetails_args()
5198
    args.item_id = item_id
5199
    args.write(self._oprot)
5200
    self._oprot.writeMessageEnd()
5201
    self._oprot.trans.flush()
5202
 
5203
  def recv_getSnapdealItemDetails(self, ):
5204
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5205
    if mtype == TMessageType.EXCEPTION:
5206
      x = TApplicationException()
5207
      x.read(self._iprot)
5208
      self._iprot.readMessageEnd()
5209
      raise x
5210
    result = getSnapdealItemDetails_result()
5211
    result.read(self._iprot)
5212
    self._iprot.readMessageEnd()
5213
    if result.success is not None:
5214
      return result.success
5215
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
5216
 
8739 vikram.rag 5217
  def getAllSnapdealItems(self, ):
5218
    self.send_getAllSnapdealItems()
5219
    return self.recv_getAllSnapdealItems()
5220
 
5221
  def send_getAllSnapdealItems(self, ):
5222
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
5223
    args = getAllSnapdealItems_args()
5224
    args.write(self._oprot)
5225
    self._oprot.writeMessageEnd()
5226
    self._oprot.trans.flush()
5227
 
5228
  def recv_getAllSnapdealItems(self, ):
5229
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5230
    if mtype == TMessageType.EXCEPTION:
5231
      x = TApplicationException()
5232
      x.read(self._iprot)
5233
      self._iprot.readMessageEnd()
5234
      raise x
5235
    result = getAllSnapdealItems_result()
5236
    result.read(self._iprot)
5237
    self._iprot.readMessageEnd()
5238
    if result.success is not None:
5239
      return result.success
5240
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
5241
 
9242 kshitij.so 5242
  def getSnapdealItems(self, offset, limit):
5243
    """
5244
    Parameters:
5245
     - offset
5246
     - limit
5247
    """
5248
    self.send_getSnapdealItems(offset, limit)
5249
    return self.recv_getSnapdealItems()
8739 vikram.rag 5250
 
9242 kshitij.so 5251
  def send_getSnapdealItems(self, offset, limit):
5252
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5253
    args = getSnapdealItems_args()
5254
    args.offset = offset
5255
    args.limit = limit
5256
    args.write(self._oprot)
5257
    self._oprot.writeMessageEnd()
5258
    self._oprot.trans.flush()
5259
 
5260
  def recv_getSnapdealItems(self, ):
5261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5262
    if mtype == TMessageType.EXCEPTION:
5263
      x = TApplicationException()
5264
      x.read(self._iprot)
5265
      self._iprot.readMessageEnd()
5266
      raise x
5267
    result = getSnapdealItems_result()
5268
    result.read(self._iprot)
5269
    self._iprot.readMessageEnd()
5270
    if result.success is not None:
5271
      return result.success
5272
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5273
 
5274
  def searchSnapdealItems(self, searchTerm, offset, limit):
5275
    """
5276
    Parameters:
5277
     - searchTerm
5278
     - offset
5279
     - limit
5280
    """
5281
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5282
    return self.recv_searchSnapdealItems()
5283
 
5284
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5285
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5286
    args = searchSnapdealItems_args()
5287
    args.searchTerm = searchTerm
5288
    args.offset = offset
5289
    args.limit = limit
5290
    args.write(self._oprot)
5291
    self._oprot.writeMessageEnd()
5292
    self._oprot.trans.flush()
5293
 
5294
  def recv_searchSnapdealItems(self, ):
5295
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5296
    if mtype == TMessageType.EXCEPTION:
5297
      x = TApplicationException()
5298
      x.read(self._iprot)
5299
      self._iprot.readMessageEnd()
5300
      raise x
5301
    result = searchSnapdealItems_result()
5302
    result.read(self._iprot)
5303
    self._iprot.readMessageEnd()
5304
    if result.success is not None:
5305
      return result.success
5306
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5307
 
5308
  def getCountForSnapdealItems(self, ):
5309
    self.send_getCountForSnapdealItems()
5310
    return self.recv_getCountForSnapdealItems()
5311
 
5312
  def send_getCountForSnapdealItems(self, ):
5313
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5314
    args = getCountForSnapdealItems_args()
5315
    args.write(self._oprot)
5316
    self._oprot.writeMessageEnd()
5317
    self._oprot.trans.flush()
5318
 
5319
  def recv_getCountForSnapdealItems(self, ):
5320
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5321
    if mtype == TMessageType.EXCEPTION:
5322
      x = TApplicationException()
5323
      x.read(self._iprot)
5324
      self._iprot.readMessageEnd()
5325
      raise x
5326
    result = getCountForSnapdealItems_result()
5327
    result.read(self._iprot)
5328
    self._iprot.readMessageEnd()
5329
    if result.success is not None:
5330
      return result.success
5331
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5332
 
5333
  def getSnapdealSearchResultCount(self, searchTerm):
5334
    """
5335
    Parameters:
5336
     - searchTerm
5337
    """
5338
    self.send_getSnapdealSearchResultCount(searchTerm)
5339
    return self.recv_getSnapdealSearchResultCount()
5340
 
5341
  def send_getSnapdealSearchResultCount(self, searchTerm):
5342
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5343
    args = getSnapdealSearchResultCount_args()
5344
    args.searchTerm = searchTerm
5345
    args.write(self._oprot)
5346
    self._oprot.writeMessageEnd()
5347
    self._oprot.trans.flush()
5348
 
5349
  def recv_getSnapdealSearchResultCount(self, ):
5350
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5351
    if mtype == TMessageType.EXCEPTION:
5352
      x = TApplicationException()
5353
      x.read(self._iprot)
5354
      self._iprot.readMessageEnd()
5355
      raise x
5356
    result = getSnapdealSearchResultCount_result()
5357
    result.read(self._iprot)
5358
    self._iprot.readMessageEnd()
5359
    if result.success is not None:
5360
      return result.success
5361
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5362
 
9299 kshitij.so 5363
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5364
    """
5365
    Parameters:
5366
     - itemId
5367
     - insurerType
5368
    """
5369
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5370
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5371
 
9299 kshitij.so 5372
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5373
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5374
    args = getPrefferedInsurerForItem_args()
5375
    args.itemId = itemId
5376
    args.insurerType = insurerType
5377
    args.write(self._oprot)
5378
    self._oprot.writeMessageEnd()
5379
    self._oprot.trans.flush()
5380
 
5381
  def recv_getPrefferedInsurerForItem(self, ):
5382
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5383
    if mtype == TMessageType.EXCEPTION:
5384
      x = TApplicationException()
5385
      x.read(self._iprot)
5386
      self._iprot.readMessageEnd()
5387
      raise x
5388
    result = getPrefferedInsurerForItem_result()
5389
    result.read(self._iprot)
5390
    self._iprot.readMessageEnd()
5391
    if result.success is not None:
5392
      return result.success
5393
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5394
 
9456 vikram.rag 5395
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5396
    """
5397
    Parameters:
5398
     - skuAtSnapdeal
5399
    """
5400
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5401
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5402
 
9456 vikram.rag 5403
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5404
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5405
    args = getSnapdealItembySkuAtSnapdeal_args()
5406
    args.skuAtSnapdeal = skuAtSnapdeal
5407
    args.write(self._oprot)
5408
    self._oprot.writeMessageEnd()
5409
    self._oprot.trans.flush()
5410
 
5411
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5412
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5413
    if mtype == TMessageType.EXCEPTION:
5414
      x = TApplicationException()
5415
      x.read(self._iprot)
5416
      self._iprot.readMessageEnd()
5417
      raise x
5418
    result = getSnapdealItembySkuAtSnapdeal_result()
5419
    result.read(self._iprot)
5420
    self._iprot.readMessageEnd()
5421
    if result.success is not None:
5422
      return result.success
5423
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5424
 
9621 manish.sha 5425
  def getProductFeedSubmit(self, catalogItemId):
5426
    """
5427
    Parameters:
5428
     - catalogItemId
5429
    """
5430
    self.send_getProductFeedSubmit(catalogItemId)
5431
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5432
 
9621 manish.sha 5433
  def send_getProductFeedSubmit(self, catalogItemId):
5434
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5435
    args = getProductFeedSubmit_args()
5436
    args.catalogItemId = catalogItemId
5437
    args.write(self._oprot)
5438
    self._oprot.writeMessageEnd()
5439
    self._oprot.trans.flush()
5440
 
5441
  def recv_getProductFeedSubmit(self, ):
5442
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5443
    if mtype == TMessageType.EXCEPTION:
5444
      x = TApplicationException()
5445
      x.read(self._iprot)
5446
      self._iprot.readMessageEnd()
5447
      raise x
5448
    result = getProductFeedSubmit_result()
5449
    result.read(self._iprot)
5450
    self._iprot.readMessageEnd()
5451
    if result.success is not None:
5452
      return result.success
5453
    if result.cex is not None:
5454
      raise result.cex
5455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5456
 
5457
  def addProductFeedSubmit(self, productFeedSubmit):
5458
    """
5459
    Parameters:
5460
     - productFeedSubmit
5461
    """
5462
    self.send_addProductFeedSubmit(productFeedSubmit)
5463
    return self.recv_addProductFeedSubmit()
5464
 
5465
  def send_addProductFeedSubmit(self, productFeedSubmit):
5466
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5467
    args = addProductFeedSubmit_args()
5468
    args.productFeedSubmit = productFeedSubmit
5469
    args.write(self._oprot)
5470
    self._oprot.writeMessageEnd()
5471
    self._oprot.trans.flush()
5472
 
5473
  def recv_addProductFeedSubmit(self, ):
5474
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5475
    if mtype == TMessageType.EXCEPTION:
5476
      x = TApplicationException()
5477
      x.read(self._iprot)
5478
      self._iprot.readMessageEnd()
5479
      raise x
5480
    result = addProductFeedSubmit_result()
5481
    result.read(self._iprot)
5482
    self._iprot.readMessageEnd()
5483
    if result.success is not None:
5484
      return result.success
5485
    if result.cex is not None:
5486
      raise result.cex
5487
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5488
 
5489
  def updateProductFeedSubmit(self, productFeedSubmit):
5490
    """
5491
    Parameters:
5492
     - productFeedSubmit
5493
    """
5494
    self.send_updateProductFeedSubmit(productFeedSubmit)
5495
    return self.recv_updateProductFeedSubmit()
5496
 
5497
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5498
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5499
    args = updateProductFeedSubmit_args()
5500
    args.productFeedSubmit = productFeedSubmit
5501
    args.write(self._oprot)
5502
    self._oprot.writeMessageEnd()
5503
    self._oprot.trans.flush()
5504
 
5505
  def recv_updateProductFeedSubmit(self, ):
5506
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5507
    if mtype == TMessageType.EXCEPTION:
5508
      x = TApplicationException()
5509
      x.read(self._iprot)
5510
      self._iprot.readMessageEnd()
5511
      raise x
5512
    result = updateProductFeedSubmit_result()
5513
    result.read(self._iprot)
5514
    self._iprot.readMessageEnd()
5515
    if result.success is not None:
5516
      return result.success
5517
    if result.cex is not None:
5518
      raise result.cex
5519
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5520
 
5521
  def deleteProductFeedSubmit(self, catalogItemId):
5522
    """
5523
    Parameters:
5524
     - catalogItemId
5525
    """
5526
    self.send_deleteProductFeedSubmit(catalogItemId)
5527
    return self.recv_deleteProductFeedSubmit()
5528
 
5529
  def send_deleteProductFeedSubmit(self, catalogItemId):
5530
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5531
    args = deleteProductFeedSubmit_args()
5532
    args.catalogItemId = catalogItemId
5533
    args.write(self._oprot)
5534
    self._oprot.writeMessageEnd()
5535
    self._oprot.trans.flush()
5536
 
5537
  def recv_deleteProductFeedSubmit(self, ):
5538
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5539
    if mtype == TMessageType.EXCEPTION:
5540
      x = TApplicationException()
5541
      x.read(self._iprot)
5542
      self._iprot.readMessageEnd()
5543
      raise x
5544
    result = deleteProductFeedSubmit_result()
5545
    result.read(self._iprot)
5546
    self._iprot.readMessageEnd()
5547
    if result.success is not None:
5548
      return result.success
5549
    if result.cex is not None:
5550
      raise result.cex
5551
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5552
 
5553
  def getAllProductFeedSubmit(self, ):
5554
    self.send_getAllProductFeedSubmit()
5555
    return self.recv_getAllProductFeedSubmit()
5556
 
5557
  def send_getAllProductFeedSubmit(self, ):
5558
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5559
    args = getAllProductFeedSubmit_args()
5560
    args.write(self._oprot)
5561
    self._oprot.writeMessageEnd()
5562
    self._oprot.trans.flush()
5563
 
5564
  def recv_getAllProductFeedSubmit(self, ):
5565
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5566
    if mtype == TMessageType.EXCEPTION:
5567
      x = TApplicationException()
5568
      x.read(self._iprot)
5569
      self._iprot.readMessageEnd()
5570
      raise x
5571
    result = getAllProductFeedSubmit_result()
5572
    result.read(self._iprot)
5573
    self._iprot.readMessageEnd()
5574
    if result.success is not None:
5575
      return result.success
5576
    if result.cex is not None:
5577
      raise result.cex
5578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5579
 
9724 kshitij.so 5580
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5581
    """
5582
    Parameters:
5583
     - itemId
5584
     - sourceId
5585
    """
5586
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5587
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5588
 
9724 kshitij.so 5589
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5590
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5591
    args = getMarketplacedetailsForItem_args()
5592
    args.itemId = itemId
5593
    args.sourceId = sourceId
5594
    args.write(self._oprot)
5595
    self._oprot.writeMessageEnd()
5596
    self._oprot.trans.flush()
5597
 
5598
  def recv_getMarketplacedetailsForItem(self, ):
5599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5600
    if mtype == TMessageType.EXCEPTION:
5601
      x = TApplicationException()
5602
      x.read(self._iprot)
5603
      self._iprot.readMessageEnd()
5604
      raise x
5605
    result = getMarketplacedetailsForItem_result()
5606
    result.read(self._iprot)
5607
    self._iprot.readMessageEnd()
5608
    if result.success is not None:
5609
      return result.success
5610
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5611
 
5612
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5613
    """
5614
    Parameters:
5615
     - marketPlaceItem
5616
    """
5617
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5618
    return self.recv_updateMarketplaceAttributesForItem()
5619
 
5620
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5621
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5622
    args = updateMarketplaceAttributesForItem_args()
5623
    args.marketPlaceItem = marketPlaceItem
5624
    args.write(self._oprot)
5625
    self._oprot.writeMessageEnd()
5626
    self._oprot.trans.flush()
5627
 
5628
  def recv_updateMarketplaceAttributesForItem(self, ):
5629
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5630
    if mtype == TMessageType.EXCEPTION:
5631
      x = TApplicationException()
5632
      x.read(self._iprot)
5633
      self._iprot.readMessageEnd()
5634
      raise x
5635
    result = updateMarketplaceAttributesForItem_result()
5636
    result.read(self._iprot)
5637
    self._iprot.readMessageEnd()
5638
    if result.success is not None:
5639
      return result.success
5640
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5641
 
9779 kshitij.so 5642
  def getCostingForMarketplace(self, source, item_id):
5643
    """
5644
    Parameters:
5645
     - source
5646
     - item_id
5647
    """
5648
    self.send_getCostingForMarketplace(source, item_id)
5649
    return self.recv_getCostingForMarketplace()
5650
 
5651
  def send_getCostingForMarketplace(self, source, item_id):
5652
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5653
    args = getCostingForMarketplace_args()
5654
    args.source = source
5655
    args.item_id = item_id
5656
    args.write(self._oprot)
5657
    self._oprot.writeMessageEnd()
5658
    self._oprot.trans.flush()
5659
 
5660
  def recv_getCostingForMarketplace(self, ):
5661
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5662
    if mtype == TMessageType.EXCEPTION:
5663
      x = TApplicationException()
5664
      x.read(self._iprot)
5665
      self._iprot.readMessageEnd()
5666
      raise x
5667
    result = getCostingForMarketplace_result()
5668
    result.read(self._iprot)
5669
    self._iprot.readMessageEnd()
5670
    if result.success is not None:
5671
      return result.success
5672
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5673
 
9776 vikram.rag 5674
  def getMarketPlaceItemsForPriceUpdate(self, source):
5675
    """
5676
    Parameters:
5677
     - source
5678
    """
5679
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5680
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5681
 
9776 vikram.rag 5682
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5683
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5684
    args = getMarketPlaceItemsForPriceUpdate_args()
5685
    args.source = source
5686
    args.write(self._oprot)
5687
    self._oprot.writeMessageEnd()
5688
    self._oprot.trans.flush()
5689
 
5690
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5692
    if mtype == TMessageType.EXCEPTION:
5693
      x = TApplicationException()
5694
      x.read(self._iprot)
5695
      self._iprot.readMessageEnd()
5696
      raise x
5697
    result = getMarketPlaceItemsForPriceUpdate_result()
5698
    result.read(self._iprot)
5699
    self._iprot.readMessageEnd()
5700
    if result.success is not None:
5701
      return result.success
5702
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5703
 
9816 kshitij.so 5704
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5705
    """
5706
    Parameters:
5707
     - skulist
5708
     - timestamp
9816 kshitij.so 5709
     - source
9776 vikram.rag 5710
    """
9816 kshitij.so 5711
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5712
    self.recv_updateMarketPlacePriceUpdateStatus()
5713
 
9816 kshitij.so 5714
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5715
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5716
    args = updateMarketPlacePriceUpdateStatus_args()
5717
    args.skulist = skulist
5718
    args.timestamp = timestamp
9816 kshitij.so 5719
    args.source = source
9776 vikram.rag 5720
    args.write(self._oprot)
5721
    self._oprot.writeMessageEnd()
5722
    self._oprot.trans.flush()
5723
 
5724
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5725
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5726
    if mtype == TMessageType.EXCEPTION:
5727
      x = TApplicationException()
5728
      x.read(self._iprot)
5729
      self._iprot.readMessageEnd()
5730
      raise x
5731
    result = updateMarketPlacePriceUpdateStatus_result()
5732
    result.read(self._iprot)
5733
    self._iprot.readMessageEnd()
5734
    return
5735
 
9861 rajveer 5736
  def updateItemHoldInventory(self, itemHoldMap):
5737
    """
5738
    Parameters:
5739
     - itemHoldMap
5740
    """
5741
    self.send_updateItemHoldInventory(itemHoldMap)
5742
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5743
 
9861 rajveer 5744
  def send_updateItemHoldInventory(self, itemHoldMap):
5745
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5746
    args = updateItemHoldInventory_args()
5747
    args.itemHoldMap = itemHoldMap
5748
    args.write(self._oprot)
5749
    self._oprot.writeMessageEnd()
5750
    self._oprot.trans.flush()
5751
 
5752
  def recv_updateItemHoldInventory(self, ):
5753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5754
    if mtype == TMessageType.EXCEPTION:
5755
      x = TApplicationException()
5756
      x.read(self._iprot)
5757
      self._iprot.readMessageEnd()
5758
      raise x
5759
    result = updateItemHoldInventory_result()
5760
    result.read(self._iprot)
5761
    self._iprot.readMessageEnd()
5762
    return
5763
 
9895 vikram.rag 5764
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5765
    """
5766
    Parameters:
5767
     - item_id
5768
     - vendor_id
5769
     - nlc
5770
    """
5771
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5772
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5773
 
9895 vikram.rag 5774
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5775
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5776
    args = updateNlcAtMarketplaces_args()
5777
    args.item_id = item_id
5778
    args.vendor_id = vendor_id
5779
    args.nlc = nlc
5780
    args.write(self._oprot)
5781
    self._oprot.writeMessageEnd()
5782
    self._oprot.trans.flush()
5783
 
5784
  def recv_updateNlcAtMarketplaces(self, ):
5785
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5786
    if mtype == TMessageType.EXCEPTION:
5787
      x = TApplicationException()
5788
      x.read(self._iprot)
5789
      self._iprot.readMessageEnd()
5790
      raise x
5791
    result = updateNlcAtMarketplaces_result()
5792
    result.read(self._iprot)
5793
    self._iprot.readMessageEnd()
5794
    return
5795
 
9945 vikram.rag 5796
  def getAllFlipkartItems(self, ):
5797
    self.send_getAllFlipkartItems()
5798
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5799
 
9945 vikram.rag 5800
  def send_getAllFlipkartItems(self, ):
5801
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5802
    args = getAllFlipkartItems_args()
5803
    args.write(self._oprot)
5804
    self._oprot.writeMessageEnd()
5805
    self._oprot.trans.flush()
5806
 
5807
  def recv_getAllFlipkartItems(self, ):
5808
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5809
    if mtype == TMessageType.EXCEPTION:
5810
      x = TApplicationException()
5811
      x.read(self._iprot)
5812
      self._iprot.readMessageEnd()
5813
      raise x
5814
    result = getAllFlipkartItems_result()
5815
    result.read(self._iprot)
5816
    self._iprot.readMessageEnd()
5817
    if result.success is not None:
5818
      return result.success
5819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5820
 
10097 kshitij.so 5821
  def addOrUpdateFlipkartItem(self, flipkartitem):
5822
    """
5823
    Parameters:
5824
     - flipkartitem
5825
    """
5826
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5827
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5828
 
10097 kshitij.so 5829
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5830
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5831
    args = addOrUpdateFlipkartItem_args()
5832
    args.flipkartitem = flipkartitem
5833
    args.write(self._oprot)
5834
    self._oprot.writeMessageEnd()
5835
    self._oprot.trans.flush()
5836
 
5837
  def recv_addOrUpdateFlipkartItem(self, ):
5838
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5839
    if mtype == TMessageType.EXCEPTION:
5840
      x = TApplicationException()
5841
      x.read(self._iprot)
5842
      self._iprot.readMessageEnd()
5843
      raise x
5844
    result = addOrUpdateFlipkartItem_result()
5845
    result.read(self._iprot)
5846
    self._iprot.readMessageEnd()
5847
    if result.success is not None:
5848
      return result.success
5849
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5850
 
5851
  def getFlipkartItem(self, item_id):
5852
    """
5853
    Parameters:
5854
     - item_id
5855
    """
5856
    self.send_getFlipkartItem(item_id)
5857
    return self.recv_getFlipkartItem()
5858
 
5859
  def send_getFlipkartItem(self, item_id):
5860
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5861
    args = getFlipkartItem_args()
5862
    args.item_id = item_id
5863
    args.write(self._oprot)
5864
    self._oprot.writeMessageEnd()
5865
    self._oprot.trans.flush()
5866
 
5867
  def recv_getFlipkartItem(self, ):
5868
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5869
    if mtype == TMessageType.EXCEPTION:
5870
      x = TApplicationException()
5871
      x.read(self._iprot)
5872
      self._iprot.readMessageEnd()
5873
      raise x
5874
    result = getFlipkartItem_result()
5875
    result.read(self._iprot)
5876
    self._iprot.readMessageEnd()
5877
    if result.success is not None:
5878
      return result.success
5879
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5880
 
5881
  def getFlipkartItemDetails(self, item_id):
5882
    """
5883
    Parameters:
5884
     - item_id
5885
    """
5886
    self.send_getFlipkartItemDetails(item_id)
5887
    return self.recv_getFlipkartItemDetails()
5888
 
5889
  def send_getFlipkartItemDetails(self, item_id):
5890
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5891
    args = getFlipkartItemDetails_args()
5892
    args.item_id = item_id
5893
    args.write(self._oprot)
5894
    self._oprot.writeMessageEnd()
5895
    self._oprot.trans.flush()
5896
 
5897
  def recv_getFlipkartItemDetails(self, ):
5898
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5899
    if mtype == TMessageType.EXCEPTION:
5900
      x = TApplicationException()
5901
      x.read(self._iprot)
5902
      self._iprot.readMessageEnd()
5903
      raise x
5904
    result = getFlipkartItemDetails_result()
5905
    result.read(self._iprot)
5906
    self._iprot.readMessageEnd()
5907
    if result.success is not None:
5908
      return result.success
5909
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5910
 
5911
  def getFlipkartItems(self, offset, limit):
5912
    """
5913
    Parameters:
5914
     - offset
5915
     - limit
5916
    """
5917
    self.send_getFlipkartItems(offset, limit)
5918
    return self.recv_getFlipkartItems()
5919
 
5920
  def send_getFlipkartItems(self, offset, limit):
5921
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5922
    args = getFlipkartItems_args()
5923
    args.offset = offset
5924
    args.limit = limit
5925
    args.write(self._oprot)
5926
    self._oprot.writeMessageEnd()
5927
    self._oprot.trans.flush()
5928
 
5929
  def recv_getFlipkartItems(self, ):
5930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5931
    if mtype == TMessageType.EXCEPTION:
5932
      x = TApplicationException()
5933
      x.read(self._iprot)
5934
      self._iprot.readMessageEnd()
5935
      raise x
5936
    result = getFlipkartItems_result()
5937
    result.read(self._iprot)
5938
    self._iprot.readMessageEnd()
5939
    if result.success is not None:
5940
      return result.success
5941
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5942
 
5943
  def searchFlipkartItems(self, searchTerm, offset, limit):
5944
    """
5945
    Parameters:
5946
     - searchTerm
5947
     - offset
5948
     - limit
5949
    """
5950
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5951
    return self.recv_searchFlipkartItems()
5952
 
5953
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5954
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5955
    args = searchFlipkartItems_args()
5956
    args.searchTerm = searchTerm
5957
    args.offset = offset
5958
    args.limit = limit
5959
    args.write(self._oprot)
5960
    self._oprot.writeMessageEnd()
5961
    self._oprot.trans.flush()
5962
 
5963
  def recv_searchFlipkartItems(self, ):
5964
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5965
    if mtype == TMessageType.EXCEPTION:
5966
      x = TApplicationException()
5967
      x.read(self._iprot)
5968
      self._iprot.readMessageEnd()
5969
      raise x
5970
    result = searchFlipkartItems_result()
5971
    result.read(self._iprot)
5972
    self._iprot.readMessageEnd()
5973
    if result.success is not None:
5974
      return result.success
5975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5976
 
5977
  def getCountForFlipkartItems(self, ):
5978
    self.send_getCountForFlipkartItems()
5979
    return self.recv_getCountForFlipkartItems()
5980
 
5981
  def send_getCountForFlipkartItems(self, ):
5982
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5983
    args = getCountForFlipkartItems_args()
5984
    args.write(self._oprot)
5985
    self._oprot.writeMessageEnd()
5986
    self._oprot.trans.flush()
5987
 
5988
  def recv_getCountForFlipkartItems(self, ):
5989
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5990
    if mtype == TMessageType.EXCEPTION:
5991
      x = TApplicationException()
5992
      x.read(self._iprot)
5993
      self._iprot.readMessageEnd()
5994
      raise x
5995
    result = getCountForFlipkartItems_result()
5996
    result.read(self._iprot)
5997
    self._iprot.readMessageEnd()
5998
    if result.success is not None:
5999
      return result.success
6000
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
6001
 
6002
  def getFlipkartSearchResultCount(self, searchTerm):
6003
    """
6004
    Parameters:
6005
     - searchTerm
6006
    """
6007
    self.send_getFlipkartSearchResultCount(searchTerm)
6008
    return self.recv_getFlipkartSearchResultCount()
6009
 
6010
  def send_getFlipkartSearchResultCount(self, searchTerm):
6011
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
6012
    args = getFlipkartSearchResultCount_args()
6013
    args.searchTerm = searchTerm
6014
    args.write(self._oprot)
6015
    self._oprot.writeMessageEnd()
6016
    self._oprot.trans.flush()
6017
 
6018
  def recv_getFlipkartSearchResultCount(self, ):
6019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6020
    if mtype == TMessageType.EXCEPTION:
6021
      x = TApplicationException()
6022
      x.read(self._iprot)
6023
      self._iprot.readMessageEnd()
6024
      raise x
6025
    result = getFlipkartSearchResultCount_result()
6026
    result.read(self._iprot)
6027
    self._iprot.readMessageEnd()
6028
    if result.success is not None:
6029
      return result.success
6030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
6031
 
6032
  def getAllFkItems(self, ):
6033
    self.send_getAllFkItems()
6034
    return self.recv_getAllFkItems()
6035
 
6036
  def send_getAllFkItems(self, ):
6037
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
6038
    args = getAllFkItems_args()
6039
    args.write(self._oprot)
6040
    self._oprot.writeMessageEnd()
6041
    self._oprot.trans.flush()
6042
 
6043
  def recv_getAllFkItems(self, ):
6044
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6045
    if mtype == TMessageType.EXCEPTION:
6046
      x = TApplicationException()
6047
      x.read(self._iprot)
6048
      self._iprot.readMessageEnd()
6049
      raise x
6050
    result = getAllFkItems_result()
6051
    result.read(self._iprot)
6052
    self._iprot.readMessageEnd()
6053
    if result.success is not None:
6054
      return result.success
6055
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
6056
 
10140 vikram.rag 6057
  def getFlipkartItemBySkyAtFlipkart(self, sku):
6058
    """
6059
    Parameters:
6060
     - sku
6061
    """
6062
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
6063
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 6064
 
10140 vikram.rag 6065
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
6066
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
6067
    args = getFlipkartItemBySkyAtFlipkart_args()
6068
    args.sku = sku
6069
    args.write(self._oprot)
6070
    self._oprot.writeMessageEnd()
6071
    self._oprot.trans.flush()
6072
 
6073
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
6074
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6075
    if mtype == TMessageType.EXCEPTION:
6076
      x = TApplicationException()
6077
      x.read(self._iprot)
6078
      self._iprot.readMessageEnd()
6079
      raise x
6080
    result = getFlipkartItemBySkyAtFlipkart_result()
6081
    result.read(self._iprot)
6082
    self._iprot.readMessageEnd()
6083
    if result.success is not None:
6084
      return result.success
6085
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
6086
 
11015 kshitij.so 6087
  def getMarketplaceHistory(self, source, offset, itemId):
6088
    """
6089
    Parameters:
6090
     - source
6091
     - offset
6092
     - itemId
6093
    """
6094
    self.send_getMarketplaceHistory(source, offset, itemId)
6095
    return self.recv_getMarketplaceHistory()
6096
 
6097
  def send_getMarketplaceHistory(self, source, offset, itemId):
6098
    self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)
6099
    args = getMarketplaceHistory_args()
6100
    args.source = source
6101
    args.offset = offset
6102
    args.itemId = itemId
6103
    args.write(self._oprot)
6104
    self._oprot.writeMessageEnd()
6105
    self._oprot.trans.flush()
6106
 
6107
  def recv_getMarketplaceHistory(self, ):
6108
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6109
    if mtype == TMessageType.EXCEPTION:
6110
      x = TApplicationException()
6111
      x.read(self._iprot)
6112
      self._iprot.readMessageEnd()
6113
      raise x
6114
    result = getMarketplaceHistory_result()
6115
    result.read(self._iprot)
6116
    self._iprot.readMessageEnd()
6117
    if result.success is not None:
6118
      return result.success
6119
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
6120
 
10909 vikram.rag 6121
  def getAllFbbListedItems(self, ):
6122
    self.send_getAllFbbListedItems()
6123
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 6124
 
10909 vikram.rag 6125
  def send_getAllFbbListedItems(self, ):
6126
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
6127
    args = getAllFbbListedItems_args()
6128
    args.write(self._oprot)
6129
    self._oprot.writeMessageEnd()
6130
    self._oprot.trans.flush()
6131
 
6132
  def recv_getAllFbbListedItems(self, ):
6133
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6134
    if mtype == TMessageType.EXCEPTION:
6135
      x = TApplicationException()
6136
      x.read(self._iprot)
6137
      self._iprot.readMessageEnd()
6138
      raise x
6139
    result = getAllFbbListedItems_result()
6140
    result.read(self._iprot)
6141
    self._iprot.readMessageEnd()
6142
    if result.success is not None:
6143
      return result.success
6144
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
6145
 
10924 vikram.rag 6146
  def getAllFbbPricingItems(self, ):
6147
    self.send_getAllFbbPricingItems()
6148
    return self.recv_getAllFbbPricingItems()
10909 vikram.rag 6149
 
10924 vikram.rag 6150
  def send_getAllFbbPricingItems(self, ):
6151
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
6152
    args = getAllFbbPricingItems_args()
6153
    args.write(self._oprot)
6154
    self._oprot.writeMessageEnd()
6155
    self._oprot.trans.flush()
6156
 
6157
  def recv_getAllFbbPricingItems(self, ):
6158
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6159
    if mtype == TMessageType.EXCEPTION:
6160
      x = TApplicationException()
6161
      x.read(self._iprot)
6162
      self._iprot.readMessageEnd()
6163
      raise x
6164
    result = getAllFbbPricingItems_result()
6165
    result.read(self._iprot)
6166
    self._iprot.readMessageEnd()
6167
    if result.success is not None:
6168
      return result.success
6169
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
6170
 
11015 kshitij.so 6171
  def getCountForMarketplaceHistory(self, source, itemId):
6172
    """
6173
    Parameters:
6174
     - source
6175
     - itemId
6176
    """
6177
    self.send_getCountForMarketplaceHistory(source, itemId)
6178
    return self.recv_getCountForMarketplaceHistory()
10924 vikram.rag 6179
 
11015 kshitij.so 6180
  def send_getCountForMarketplaceHistory(self, source, itemId):
6181
    self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)
6182
    args = getCountForMarketplaceHistory_args()
6183
    args.source = source
6184
    args.itemId = itemId
6185
    args.write(self._oprot)
6186
    self._oprot.writeMessageEnd()
6187
    self._oprot.trans.flush()
6188
 
6189
  def recv_getCountForMarketplaceHistory(self, ):
6190
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6191
    if mtype == TMessageType.EXCEPTION:
6192
      x = TApplicationException()
6193
      x.read(self._iprot)
6194
      self._iprot.readMessageEnd()
6195
      raise x
6196
    result = getCountForMarketplaceHistory_result()
6197
    result.read(self._iprot)
6198
    self._iprot.readMessageEnd()
6199
    if result.success is not None:
6200
      return result.success
6201
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");
6202
 
6203
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6204
    """
6205
    Parameters:
6206
     - source
6207
     - startDate
6208
     - endDate
6209
     - offset
6210
     - limit
6211
     - itemId
6212
    """
6213
    self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)
6214
    return self.recv_getMarketplaceHistoryByDate()
6215
 
6216
  def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6217
    self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)
6218
    args = getMarketplaceHistoryByDate_args()
6219
    args.source = source
6220
    args.startDate = startDate
6221
    args.endDate = endDate
6222
    args.offset = offset
6223
    args.limit = limit
6224
    args.itemId = itemId
6225
    args.write(self._oprot)
6226
    self._oprot.writeMessageEnd()
6227
    self._oprot.trans.flush()
6228
 
6229
  def recv_getMarketplaceHistoryByDate(self, ):
6230
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6231
    if mtype == TMessageType.EXCEPTION:
6232
      x = TApplicationException()
6233
      x.read(self._iprot)
6234
      self._iprot.readMessageEnd()
6235
      raise x
6236
    result = getMarketplaceHistoryByDate_result()
6237
    result.read(self._iprot)
6238
    self._iprot.readMessageEnd()
6239
    if result.success is not None:
6240
      return result.success
6241
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6242
 
11531 vikram.rag 6243
  def getPrivateDealDetails(self, item_id):
6244
    """
6245
    Parameters:
6246
     - item_id
6247
    """
6248
    self.send_getPrivateDealDetails(item_id)
6249
    return self.recv_getPrivateDealDetails()
11015 kshitij.so 6250
 
11531 vikram.rag 6251
  def send_getPrivateDealDetails(self, item_id):
6252
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
6253
    args = getPrivateDealDetails_args()
6254
    args.item_id = item_id
6255
    args.write(self._oprot)
6256
    self._oprot.writeMessageEnd()
6257
    self._oprot.trans.flush()
6258
 
6259
  def recv_getPrivateDealDetails(self, ):
6260
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6261
    if mtype == TMessageType.EXCEPTION:
6262
      x = TApplicationException()
6263
      x.read(self._iprot)
6264
      self._iprot.readMessageEnd()
6265
      raise x
6266
    result = getPrivateDealDetails_result()
6267
    result.read(self._iprot)
6268
    self._iprot.readMessageEnd()
6269
    if result.success is not None:
6270
      return result.success
6271
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
6272
 
6273
  def getPrivateDealItems(self, offset, limit):
6274
    """
6275
    Parameters:
6276
     - offset
6277
     - limit
6278
    """
6279
    self.send_getPrivateDealItems(offset, limit)
6280
    return self.recv_getPrivateDealItems()
6281
 
6282
  def send_getPrivateDealItems(self, offset, limit):
6283
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
6284
    args = getPrivateDealItems_args()
6285
    args.offset = offset
6286
    args.limit = limit
6287
    args.write(self._oprot)
6288
    self._oprot.writeMessageEnd()
6289
    self._oprot.trans.flush()
6290
 
6291
  def recv_getPrivateDealItems(self, ):
6292
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6293
    if mtype == TMessageType.EXCEPTION:
6294
      x = TApplicationException()
6295
      x.read(self._iprot)
6296
      self._iprot.readMessageEnd()
6297
      raise x
6298
    result = getPrivateDealItems_result()
6299
    result.read(self._iprot)
6300
    self._iprot.readMessageEnd()
6301
    if result.success is not None:
6302
      return result.success
6303
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
6304
 
11653 amit.gupta 6305
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
6306
    """
6307
    Parameters:
6308
     - itemIds
6309
     - daysDelta
6310
    """
6311
    self.send_getAllActivePrivateDeals(itemIds, daysDelta)
11592 amit.gupta 6312
    return self.recv_getAllActivePrivateDeals()
6313
 
11653 amit.gupta 6314
  def send_getAllActivePrivateDeals(self, itemIds, daysDelta):
11592 amit.gupta 6315
    self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)
6316
    args = getAllActivePrivateDeals_args()
11653 amit.gupta 6317
    args.itemIds = itemIds
6318
    args.daysDelta = daysDelta
11592 amit.gupta 6319
    args.write(self._oprot)
6320
    self._oprot.writeMessageEnd()
6321
    self._oprot.trans.flush()
6322
 
6323
  def recv_getAllActivePrivateDeals(self, ):
6324
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6325
    if mtype == TMessageType.EXCEPTION:
6326
      x = TApplicationException()
6327
      x.read(self._iprot)
6328
      self._iprot.readMessageEnd()
6329
      raise x
6330
    result = getAllActivePrivateDeals_result()
6331
    result.read(self._iprot)
6332
    self._iprot.readMessageEnd()
6333
    if result.success is not None:
6334
      return result.success
6335
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
6336
 
11531 vikram.rag 6337
  def addOrUpdatePrivateDeal(self, privateDeal):
6338
    """
6339
    Parameters:
6340
     - privateDeal
6341
    """
6342
    self.send_addOrUpdatePrivateDeal(privateDeal)
6343
    return self.recv_addOrUpdatePrivateDeal()
6344
 
6345
  def send_addOrUpdatePrivateDeal(self, privateDeal):
6346
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
6347
    args = addOrUpdatePrivateDeal_args()
6348
    args.privateDeal = privateDeal
6349
    args.write(self._oprot)
6350
    self._oprot.writeMessageEnd()
6351
    self._oprot.trans.flush()
6352
 
6353
  def recv_addOrUpdatePrivateDeal(self, ):
6354
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6355
    if mtype == TMessageType.EXCEPTION:
6356
      x = TApplicationException()
6357
      x.read(self._iprot)
6358
      self._iprot.readMessageEnd()
6359
      raise x
6360
    result = addOrUpdatePrivateDeal_result()
6361
    result.read(self._iprot)
6362
    self._iprot.readMessageEnd()
6363
    if result.success is not None:
6364
      return result.success
6365
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
6366
 
11635 vikram.rag 6367
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6368
    """
6369
    Parameters:
6370
     - beginIndex
6371
     - totalItems
6372
    """
6373
    self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)
6374
    return self.recv_getPrivateDealsCatalogIds()
11531 vikram.rag 6375
 
11635 vikram.rag 6376
  def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6377
    self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)
6378
    args = getPrivateDealsCatalogIds_args()
6379
    args.beginIndex = beginIndex
6380
    args.totalItems = totalItems
6381
    args.write(self._oprot)
6382
    self._oprot.writeMessageEnd()
6383
    self._oprot.trans.flush()
6384
 
6385
  def recv_getPrivateDealsCatalogIds(self, ):
6386
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6387
    if mtype == TMessageType.EXCEPTION:
6388
      x = TApplicationException()
6389
      x.read(self._iprot)
6390
      self._iprot.readMessageEnd()
6391
      raise x
6392
    result = getPrivateDealsCatalogIds_result()
6393
    result.read(self._iprot)
6394
    self._iprot.readMessageEnd()
6395
    if result.success is not None:
6396
      return result.success
6397
    if result.cex is not None:
6398
      raise result.cex
6399
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
6400
 
11645 amit.gupta 6401
  def getPrivateDealsCount(self, ):
6402
    self.send_getPrivateDealsCount()
6403
    return self.recv_getPrivateDealsCount()
11635 vikram.rag 6404
 
11645 amit.gupta 6405
  def send_getPrivateDealsCount(self, ):
6406
    self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)
6407
    args = getPrivateDealsCount_args()
6408
    args.write(self._oprot)
6409
    self._oprot.writeMessageEnd()
6410
    self._oprot.trans.flush()
6411
 
6412
  def recv_getPrivateDealsCount(self, ):
6413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6414
    if mtype == TMessageType.EXCEPTION:
6415
      x = TApplicationException()
6416
      x.read(self._iprot)
6417
      self._iprot.readMessageEnd()
6418
      raise x
6419
    result = getPrivateDealsCount_result()
6420
    result.read(self._iprot)
6421
    self._iprot.readMessageEnd()
6422
    if result.success is not None:
6423
      return result.success
6424
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
6425
 
11905 kshitij.so 6426
  def getAmazonOutSyncItems(self, item_id):
6427
    """
6428
    Parameters:
6429
     - item_id
6430
    """
6431
    self.send_getAmazonOutSyncItems(item_id)
6432
    return self.recv_getAmazonOutSyncItems()
11645 amit.gupta 6433
 
11905 kshitij.so 6434
  def send_getAmazonOutSyncItems(self, item_id):
6435
    self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)
6436
    args = getAmazonOutSyncItems_args()
6437
    args.item_id = item_id
6438
    args.write(self._oprot)
6439
    self._oprot.writeMessageEnd()
6440
    self._oprot.trans.flush()
6441
 
6442
  def recv_getAmazonOutSyncItems(self, ):
6443
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6444
    if mtype == TMessageType.EXCEPTION:
6445
      x = TApplicationException()
6446
      x.read(self._iprot)
6447
      self._iprot.readMessageEnd()
6448
      raise x
6449
    result = getAmazonOutSyncItems_result()
6450
    result.read(self._iprot)
6451
    self._iprot.readMessageEnd()
6452
    if result.success is not None:
6453
      return result.success
6454
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
6455
 
6456
  def getAllPrivateDealsComparison(self, ):
6457
    self.send_getAllPrivateDealsComparison()
6458
    return self.recv_getAllPrivateDealsComparison()
6459
 
6460
  def send_getAllPrivateDealsComparison(self, ):
6461
    self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)
6462
    args = getAllPrivateDealsComparison_args()
6463
    args.write(self._oprot)
6464
    self._oprot.writeMessageEnd()
6465
    self._oprot.trans.flush()
6466
 
6467
  def recv_getAllPrivateDealsComparison(self, ):
6468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6469
    if mtype == TMessageType.EXCEPTION:
6470
      x = TApplicationException()
6471
      x.read(self._iprot)
6472
      self._iprot.readMessageEnd()
6473
      raise x
6474
    result = getAllPrivateDealsComparison_result()
6475
    result.read(self._iprot)
6476
    self._iprot.readMessageEnd()
6477
    if result.success is not None:
6478
      return result.success
6479
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
6480
 
12133 kshitij.so 6481
  def getAllSnapdealMarketplaceItem(self, ):
6482
    self.send_getAllSnapdealMarketplaceItem()
6483
    return self.recv_getAllSnapdealMarketplaceItem()
11905 kshitij.so 6484
 
12133 kshitij.so 6485
  def send_getAllSnapdealMarketplaceItem(self, ):
6486
    self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)
6487
    args = getAllSnapdealMarketplaceItem_args()
6488
    args.write(self._oprot)
6489
    self._oprot.writeMessageEnd()
6490
    self._oprot.trans.flush()
6491
 
6492
  def recv_getAllSnapdealMarketplaceItem(self, ):
6493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6494
    if mtype == TMessageType.EXCEPTION:
6495
      x = TApplicationException()
6496
      x.read(self._iprot)
6497
      self._iprot.readMessageEnd()
6498
      raise x
6499
    result = getAllSnapdealMarketplaceItem_result()
6500
    result.read(self._iprot)
6501
    self._iprot.readMessageEnd()
6502
    if result.success is not None:
6503
      return result.success
6504
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
6505
 
6506
  def getAllFlipkartMarketplaceItem(self, ):
6507
    self.send_getAllFlipkartMarketplaceItem()
6508
    return self.recv_getAllFlipkartMarketplaceItem()
6509
 
6510
  def send_getAllFlipkartMarketplaceItem(self, ):
6511
    self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)
6512
    args = getAllFlipkartMarketplaceItem_args()
6513
    args.write(self._oprot)
6514
    self._oprot.writeMessageEnd()
6515
    self._oprot.trans.flush()
6516
 
6517
  def recv_getAllFlipkartMarketplaceItem(self, ):
6518
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6519
    if mtype == TMessageType.EXCEPTION:
6520
      x = TApplicationException()
6521
      x.read(self._iprot)
6522
      self._iprot.readMessageEnd()
6523
      raise x
6524
    result = getAllFlipkartMarketplaceItem_result()
6525
    result.read(self._iprot)
6526
    self._iprot.readMessageEnd()
6527
    if result.success is not None:
6528
      return result.success
6529
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
6530
 
12243 kshitij.so 6531
  def addCompetitorScraping(self, competitorPricingMap):
6532
    """
6533
    Parameters:
6534
     - competitorPricingMap
6535
    """
6536
    self.send_addCompetitorScraping(competitorPricingMap)
6537
    self.recv_addCompetitorScraping()
12133 kshitij.so 6538
 
12243 kshitij.so 6539
  def send_addCompetitorScraping(self, competitorPricingMap):
6540
    self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)
6541
    args = addCompetitorScraping_args()
6542
    args.competitorPricingMap = competitorPricingMap
6543
    args.write(self._oprot)
6544
    self._oprot.writeMessageEnd()
6545
    self._oprot.trans.flush()
6546
 
6547
  def recv_addCompetitorScraping(self, ):
6548
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6549
    if mtype == TMessageType.EXCEPTION:
6550
      x = TApplicationException()
6551
      x.read(self._iprot)
6552
      self._iprot.readMessageEnd()
6553
      raise x
6554
    result = addCompetitorScraping_result()
6555
    result.read(self._iprot)
6556
    self._iprot.readMessageEnd()
6557
    return
6558
 
6559
  def getPreviousCompetitorScraping(self, delta):
6560
    """
6561
    Parameters:
6562
     - delta
6563
    """
6564
    self.send_getPreviousCompetitorScraping(delta)
6565
    return self.recv_getPreviousCompetitorScraping()
6566
 
6567
  def send_getPreviousCompetitorScraping(self, delta):
6568
    self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)
6569
    args = getPreviousCompetitorScraping_args()
6570
    args.delta = delta
6571
    args.write(self._oprot)
6572
    self._oprot.writeMessageEnd()
6573
    self._oprot.trans.flush()
6574
 
6575
  def recv_getPreviousCompetitorScraping(self, ):
6576
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6577
    if mtype == TMessageType.EXCEPTION:
6578
      x = TApplicationException()
6579
      x.read(self._iprot)
6580
      self._iprot.readMessageEnd()
6581
      raise x
6582
    result = getPreviousCompetitorScraping_result()
6583
    result.read(self._iprot)
6584
    self._iprot.readMessageEnd()
6585
    if result.success is not None:
6586
      return result.success
6587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
6588
 
12256 kshitij.so 6589
  def getUploadResultById(self, uploadId):
6590
    """
6591
    Parameters:
6592
     - uploadId
6593
    """
6594
    self.send_getUploadResultById(uploadId)
6595
    return self.recv_getUploadResultById()
12243 kshitij.so 6596
 
12256 kshitij.so 6597
  def send_getUploadResultById(self, uploadId):
6598
    self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)
6599
    args = getUploadResultById_args()
6600
    args.uploadId = uploadId
6601
    args.write(self._oprot)
6602
    self._oprot.writeMessageEnd()
6603
    self._oprot.trans.flush()
6604
 
6605
  def recv_getUploadResultById(self, ):
6606
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6607
    if mtype == TMessageType.EXCEPTION:
6608
      x = TApplicationException()
6609
      x.read(self._iprot)
6610
      self._iprot.readMessageEnd()
6611
      raise x
6612
    result = getUploadResultById_result()
6613
    result.read(self._iprot)
6614
    self._iprot.readMessageEnd()
6615
    if result.success is not None:
6616
      return result.success
6617
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6618
 
12363 kshitij.so 6619
  def addAmazonPromotion(self, amazonPromotions):
6620
    """
6621
    Parameters:
6622
     - amazonPromotions
6623
    """
6624
    self.send_addAmazonPromotion(amazonPromotions)
6625
    return self.recv_addAmazonPromotion()
12256 kshitij.so 6626
 
12363 kshitij.so 6627
  def send_addAmazonPromotion(self, amazonPromotions):
6628
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
6629
    args = addAmazonPromotion_args()
6630
    args.amazonPromotions = amazonPromotions
6631
    args.write(self._oprot)
6632
    self._oprot.writeMessageEnd()
6633
    self._oprot.trans.flush()
6634
 
6635
  def recv_addAmazonPromotion(self, ):
6636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6637
    if mtype == TMessageType.EXCEPTION:
6638
      x = TApplicationException()
6639
      x.read(self._iprot)
6640
      self._iprot.readMessageEnd()
6641
      raise x
6642
    result = addAmazonPromotion_result()
6643
    result.read(self._iprot)
6644
    self._iprot.readMessageEnd()
6645
    if result.success is not None:
6646
      return result.success
12947 kshitij.so 6647
    if result.cex is not None:
6648
      raise result.cex
12363 kshitij.so 6649
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
6650
 
6651
  def getAmazonPromotion(self, startDate, endDate):
6652
    """
6653
    Parameters:
6654
     - startDate
6655
     - endDate
6656
    """
6657
    self.send_getAmazonPromotion(startDate, endDate)
6658
    return self.recv_getAmazonPromotion()
6659
 
6660
  def send_getAmazonPromotion(self, startDate, endDate):
6661
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
6662
    args = getAmazonPromotion_args()
6663
    args.startDate = startDate
6664
    args.endDate = endDate
6665
    args.write(self._oprot)
6666
    self._oprot.writeMessageEnd()
6667
    self._oprot.trans.flush()
6668
 
6669
  def recv_getAmazonPromotion(self, ):
6670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6671
    if mtype == TMessageType.EXCEPTION:
6672
      x = TApplicationException()
6673
      x.read(self._iprot)
6674
      self._iprot.readMessageEnd()
6675
      raise x
6676
    result = getAmazonPromotion_result()
6677
    result.read(self._iprot)
6678
    self._iprot.readMessageEnd()
6679
    if result.success is not None:
6680
      return result.success
6681
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
6682
 
6683
  def updateAmazonPromotion(self, amazonPromotions):
6684
    """
6685
    Parameters:
6686
     - amazonPromotions
6687
    """
6688
    self.send_updateAmazonPromotion(amazonPromotions)
6689
    return self.recv_updateAmazonPromotion()
6690
 
6691
  def send_updateAmazonPromotion(self, amazonPromotions):
6692
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
6693
    args = updateAmazonPromotion_args()
6694
    args.amazonPromotions = amazonPromotions
6695
    args.write(self._oprot)
6696
    self._oprot.writeMessageEnd()
6697
    self._oprot.trans.flush()
6698
 
6699
  def recv_updateAmazonPromotion(self, ):
6700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6701
    if mtype == TMessageType.EXCEPTION:
6702
      x = TApplicationException()
6703
      x.read(self._iprot)
6704
      self._iprot.readMessageEnd()
6705
      raise x
6706
    result = updateAmazonPromotion_result()
6707
    result.read(self._iprot)
6708
    self._iprot.readMessageEnd()
6709
    if result.success is not None:
6710
      return result.success
6711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
6712
 
12567 amit.gupta 6713
  def markPartiallyActive(self, itemId, categoryId):
6714
    """
6715
    Parameters:
6716
     - itemId
6717
     - categoryId
6718
    """
6719
    self.send_markPartiallyActive(itemId, categoryId)
6720
    return self.recv_markPartiallyActive()
12363 kshitij.so 6721
 
12567 amit.gupta 6722
  def send_markPartiallyActive(self, itemId, categoryId):
6723
    self._oprot.writeMessageBegin('markPartiallyActive', TMessageType.CALL, self._seqid)
6724
    args = markPartiallyActive_args()
6725
    args.itemId = itemId
6726
    args.categoryId = categoryId
6727
    args.write(self._oprot)
6728
    self._oprot.writeMessageEnd()
6729
    self._oprot.trans.flush()
6730
 
6731
  def recv_markPartiallyActive(self, ):
6732
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6733
    if mtype == TMessageType.EXCEPTION:
6734
      x = TApplicationException()
6735
      x.read(self._iprot)
6736
      self._iprot.readMessageEnd()
6737
      raise x
6738
    result = markPartiallyActive_result()
6739
    result.read(self._iprot)
6740
    self._iprot.readMessageEnd()
6741
    if result.success is not None:
6742
      return result.success
6743
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");
6744
 
6745
  def updateItemStateVat(self, itemId, statevat):
6746
    """
6747
    Parameters:
6748
     - itemId
6749
     - statevat
6750
    """
6751
    self.send_updateItemStateVat(itemId, statevat)
6752
    return self.recv_updateItemStateVat()
6753
 
6754
  def send_updateItemStateVat(self, itemId, statevat):
6755
    self._oprot.writeMessageBegin('updateItemStateVat', TMessageType.CALL, self._seqid)
6756
    args = updateItemStateVat_args()
6757
    args.itemId = itemId
6758
    args.statevat = statevat
6759
    args.write(self._oprot)
6760
    self._oprot.writeMessageEnd()
6761
    self._oprot.trans.flush()
6762
 
6763
  def recv_updateItemStateVat(self, ):
6764
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6765
    if mtype == TMessageType.EXCEPTION:
6766
      x = TApplicationException()
6767
      x.read(self._iprot)
6768
      self._iprot.readMessageEnd()
6769
      raise x
6770
    result = updateItemStateVat_result()
6771
    result.read(self._iprot)
6772
    self._iprot.readMessageEnd()
6773
    if result.success is not None:
6774
      return result.success
6775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6776
 
12620 amit.gupta 6777
  def getExAffiliateItemInfo(self, ):
6778
    self.send_getExAffiliateItemInfo()
6779
    return self.recv_getExAffiliateItemInfo()
12567 amit.gupta 6780
 
12620 amit.gupta 6781
  def send_getExAffiliateItemInfo(self, ):
6782
    self._oprot.writeMessageBegin('getExAffiliateItemInfo', TMessageType.CALL, self._seqid)
6783
    args = getExAffiliateItemInfo_args()
6784
    args.write(self._oprot)
6785
    self._oprot.writeMessageEnd()
6786
    self._oprot.trans.flush()
6787
 
6788
  def recv_getExAffiliateItemInfo(self, ):
6789
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6790
    if mtype == TMessageType.EXCEPTION:
6791
      x = TApplicationException()
6792
      x.read(self._iprot)
6793
      self._iprot.readMessageEnd()
6794
      raise x
6795
    result = getExAffiliateItemInfo_result()
6796
    result.read(self._iprot)
6797
    self._iprot.readMessageEnd()
6798
    if result.success is not None:
6799
      return result.success
6800
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
6801
 
12888 kshitij.so 6802
  def getAllItemstoListOnFbg(self, ):
6803
    self.send_getAllItemstoListOnFbg()
6804
    return self.recv_getAllItemstoListOnFbg()
12620 amit.gupta 6805
 
12888 kshitij.so 6806
  def send_getAllItemstoListOnFbg(self, ):
6807
    self._oprot.writeMessageBegin('getAllItemstoListOnFbg', TMessageType.CALL, self._seqid)
6808
    args = getAllItemstoListOnFbg_args()
6809
    args.write(self._oprot)
6810
    self._oprot.writeMessageEnd()
6811
    self._oprot.trans.flush()
6812
 
6813
  def recv_getAllItemstoListOnFbg(self, ):
6814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6815
    if mtype == TMessageType.EXCEPTION:
6816
      x = TApplicationException()
6817
      x.read(self._iprot)
6818
      self._iprot.readMessageEnd()
6819
      raise x
6820
    result = getAllItemstoListOnFbg_result()
6821
    result.read(self._iprot)
6822
    self._iprot.readMessageEnd()
6823
    if result.success is not None:
6824
      return result.success
6825
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
6826
 
12892 kshitij.so 6827
  def getAllFbgListedItems(self, ):
6828
    self.send_getAllFbgListedItems()
6829
    return self.recv_getAllFbgListedItems()
12888 kshitij.so 6830
 
12892 kshitij.so 6831
  def send_getAllFbgListedItems(self, ):
6832
    self._oprot.writeMessageBegin('getAllFbgListedItems', TMessageType.CALL, self._seqid)
6833
    args = getAllFbgListedItems_args()
6834
    args.write(self._oprot)
6835
    self._oprot.writeMessageEnd()
6836
    self._oprot.trans.flush()
6837
 
6838
  def recv_getAllFbgListedItems(self, ):
6839
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6840
    if mtype == TMessageType.EXCEPTION:
6841
      x = TApplicationException()
6842
      x.read(self._iprot)
6843
      self._iprot.readMessageEnd()
6844
      raise x
6845
    result = getAllFbgListedItems_result()
6846
    result.read(self._iprot)
6847
    self._iprot.readMessageEnd()
6848
    if result.success is not None:
6849
      return result.success
6850
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbgListedItems failed: unknown result");
6851
 
13136 amit.gupta 6852
  def checkServices(self, lines):
6853
    """
6854
    Parameters:
6855
     - lines
6856
    """
6857
    self.send_checkServices(lines)
6858
    return self.recv_checkServices()
12892 kshitij.so 6859
 
13136 amit.gupta 6860
  def send_checkServices(self, lines):
6861
    self._oprot.writeMessageBegin('checkServices', TMessageType.CALL, self._seqid)
6862
    args = checkServices_args()
6863
    args.lines = lines
6864
    args.write(self._oprot)
6865
    self._oprot.writeMessageEnd()
6866
    self._oprot.trans.flush()
6867
 
6868
  def recv_checkServices(self, ):
6869
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6870
    if mtype == TMessageType.EXCEPTION:
6871
      x = TApplicationException()
6872
      x.read(self._iprot)
6873
      self._iprot.readMessageEnd()
6874
      raise x
6875
    result = checkServices_result()
6876
    result.read(self._iprot)
6877
    self._iprot.readMessageEnd()
6878
    if result.success is not None:
6879
      return result.success
6880
    if result.cex is not None:
6881
      raise result.cex
6882
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkServices failed: unknown result");
6883
 
6884
 
5944 mandeep.dh 6885
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6886
  def __init__(self, handler):
6887
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6888
    self._processMap["addItem"] = Processor.process_addItem
6889
    self._processMap["updateItem"] = Processor.process_updateItem
6890
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 6891
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 6892
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
6893
    self._processMap["startItemOn"] = Processor.process_startItemOn
6894
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
6895
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
6896
    self._processMap["getItem"] = Processor.process_getItem
13493 amit.gupta 6897
    self._processMap["getItems"] = Processor.process_getItems
5944 mandeep.dh 6898
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
6899
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
6900
    self._processMap["getAllItems"] = Processor.process_getAllItems
6901
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
6902
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
12567 amit.gupta 6903
    self._processMap["getVatRates"] = Processor.process_getVatRates
5944 mandeep.dh 6904
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
6905
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
6906
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
6907
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
6908
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
6909
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
6910
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
6911
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
6912
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
6913
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
6914
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
6915
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
6916
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
6917
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
6918
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
6919
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
6920
    self._processMap["addCategory"] = Processor.process_addCategory
6921
    self._processMap["getCategory"] = Processor.process_getCategory
6922
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
6923
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
6924
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 6925
    self._processMap["addTag"] = Processor.process_addTag
6926
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
6927
    self._processMap["deleteTag"] = Processor.process_deleteTag
6928
    self._processMap["getAllTags"] = Processor.process_getAllTags
6929
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 6930
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 6931
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 6932
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 6933
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
6934
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
6935
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
6936
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 6937
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 6938
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 6939
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
6940
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 6941
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
6942
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
6943
    self._processMap["addCampaign"] = Processor.process_addCampaign
6944
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
6945
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
6946
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 6947
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 6948
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
6949
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
6950
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
6951
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
6952
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
6953
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
6954
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
6955
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
6956
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
6957
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
6958
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
6959
    self._processMap["getAllSources"] = Processor.process_getAllSources
6960
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
6961
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
6962
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
6963
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
6964
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
6965
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
6966
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
6967
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
6968
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
6969
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
6970
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
6971
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
6972
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
6973
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 6974
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
6975
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 6976
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 6977
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 6978
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
6979
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 6980
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 6981
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 6982
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
6983
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 6984
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
6985
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 6986
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 6987
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 6988
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 6989
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 6990
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
6991
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
6992
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 6993
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
6994
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
6995
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 6996
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
6997
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
6998
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 6999
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 7000
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 7001
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 7002
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
7003
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 7004
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
7005
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
7006
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 7007
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 7008
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 7009
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
7010
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 7011
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 7012
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
7013
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 7014
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 7015
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 7016
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
7017
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
7018
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
7019
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 7020
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 7021
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 7022
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
7023
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
7024
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
7025
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
7026
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 7027
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
7028
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 7029
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 7030
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
7031
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 7032
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 7033
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 7034
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 7035
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
7036
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
7037
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
7038
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
7039
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
7040
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
7041
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
7042
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 7043
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
11015 kshitij.so 7044
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
10909 vikram.rag 7045
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
10924 vikram.rag 7046
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
11015 kshitij.so 7047
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
7048
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
11531 vikram.rag 7049
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
7050
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
11592 amit.gupta 7051
    self._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDeals
11531 vikram.rag 7052
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
11635 vikram.rag 7053
    self._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIds
11645 amit.gupta 7054
    self._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCount
11905 kshitij.so 7055
    self._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItems
7056
    self._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparison
12133 kshitij.so 7057
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
7058
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
12243 kshitij.so 7059
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
7060
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
12256 kshitij.so 7061
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
12363 kshitij.so 7062
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
7063
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
7064
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
12567 amit.gupta 7065
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
7066
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
12620 amit.gupta 7067
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
12888 kshitij.so 7068
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
12892 kshitij.so 7069
    self._processMap["getAllFbgListedItems"] = Processor.process_getAllFbgListedItems
13136 amit.gupta 7070
    self._processMap["checkServices"] = Processor.process_checkServices
5944 mandeep.dh 7071
 
7072
  def process(self, iprot, oprot):
7073
    (name, type, seqid) = iprot.readMessageBegin()
7074
    if name not in self._processMap:
7075
      iprot.skip(TType.STRUCT)
7076
      iprot.readMessageEnd()
7077
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
7078
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
7079
      x.write(oprot)
7080
      oprot.writeMessageEnd()
7081
      oprot.trans.flush()
7082
      return
7083
    else:
7084
      self._processMap[name](self, seqid, iprot, oprot)
7085
    return True
7086
 
7087
  def process_addItem(self, seqid, iprot, oprot):
7088
    args = addItem_args()
7089
    args.read(iprot)
7090
    iprot.readMessageEnd()
7091
    result = addItem_result()
7092
    try:
7093
      result.success = self._handler.addItem(args.item)
7094
    except CatalogServiceException, cex:
7095
      result.cex = cex
7096
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
7097
    result.write(oprot)
7098
    oprot.writeMessageEnd()
7099
    oprot.trans.flush()
7100
 
7101
  def process_updateItem(self, seqid, iprot, oprot):
7102
    args = updateItem_args()
7103
    args.read(iprot)
7104
    iprot.readMessageEnd()
7105
    result = updateItem_result()
7106
    try:
7107
      result.success = self._handler.updateItem(args.item)
7108
    except CatalogServiceException, cex:
7109
      result.cex = cex
7110
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
7111
    result.write(oprot)
7112
    oprot.writeMessageEnd()
7113
    oprot.trans.flush()
7114
 
7115
  def process_isActive(self, seqid, iprot, oprot):
7116
    args = isActive_args()
7117
    args.read(iprot)
7118
    iprot.readMessageEnd()
7119
    result = isActive_result()
7120
    try:
7121
      result.success = self._handler.isActive(args.itemId)
7122
    except CatalogServiceException, isex:
7123
      result.isex = isex
7124
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
7125
    result.write(oprot)
7126
    oprot.writeMessageEnd()
7127
    oprot.trans.flush()
7128
 
7438 amit.gupta 7129
  def process_getItemsStatus(self, seqid, iprot, oprot):
7130
    args = getItemsStatus_args()
7131
    args.read(iprot)
7132
    iprot.readMessageEnd()
7133
    result = getItemsStatus_result()
7134
    try:
7135
      result.success = self._handler.getItemsStatus(args.itemIds)
7136
    except CatalogServiceException, isex:
7137
      result.isex = isex
7138
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
7139
    result.write(oprot)
7140
    oprot.writeMessageEnd()
7141
    oprot.trans.flush()
7142
 
5944 mandeep.dh 7143
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
7144
    args = getItemStatusDescription_args()
7145
    args.read(iprot)
7146
    iprot.readMessageEnd()
7147
    result = getItemStatusDescription_result()
7148
    try:
7149
      result.success = self._handler.getItemStatusDescription(args.itemId)
7150
    except CatalogServiceException, isex:
7151
      result.isex = isex
7152
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
7153
    result.write(oprot)
7154
    oprot.writeMessageEnd()
7155
    oprot.trans.flush()
7156
 
7157
  def process_startItemOn(self, seqid, iprot, oprot):
7158
    args = startItemOn_args()
7159
    args.read(iprot)
7160
    iprot.readMessageEnd()
7161
    result = startItemOn_result()
7162
    try:
7163
      self._handler.startItemOn(args.item_id, args.timestamp)
7164
    except CatalogServiceException, cex:
7165
      result.cex = cex
7166
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
7167
    result.write(oprot)
7168
    oprot.writeMessageEnd()
7169
    oprot.trans.flush()
7170
 
7171
  def process_retireItemOn(self, seqid, iprot, oprot):
7172
    args = retireItemOn_args()
7173
    args.read(iprot)
7174
    iprot.readMessageEnd()
7175
    result = retireItemOn_result()
7176
    try:
7177
      self._handler.retireItemOn(args.item_id, args.timestamp)
7178
    except CatalogServiceException, cex:
7179
      result.cex = cex
7180
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
7181
    result.write(oprot)
7182
    oprot.writeMessageEnd()
7183
    oprot.trans.flush()
7184
 
7185
  def process_changeItemStatus(self, seqid, iprot, oprot):
7186
    args = changeItemStatus_args()
7187
    args.read(iprot)
7188
    iprot.readMessageEnd()
7189
    result = changeItemStatus_result()
7190
    try:
7191
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
7192
    except CatalogServiceException, cex:
7193
      result.cex = cex
7194
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
7195
    result.write(oprot)
7196
    oprot.writeMessageEnd()
7197
    oprot.trans.flush()
7198
 
7199
  def process_getItem(self, seqid, iprot, oprot):
7200
    args = getItem_args()
7201
    args.read(iprot)
7202
    iprot.readMessageEnd()
7203
    result = getItem_result()
7204
    try:
7205
      result.success = self._handler.getItem(args.item_id)
7206
    except CatalogServiceException, cex:
7207
      result.cex = cex
7208
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
7209
    result.write(oprot)
7210
    oprot.writeMessageEnd()
7211
    oprot.trans.flush()
7212
 
13493 amit.gupta 7213
  def process_getItems(self, seqid, iprot, oprot):
7214
    args = getItems_args()
7215
    args.read(iprot)
7216
    iprot.readMessageEnd()
7217
    result = getItems_result()
7218
    try:
7219
      result.success = self._handler.getItems(args.item_ids)
7220
    except CatalogServiceException, cex:
7221
      result.cex = cex
7222
    oprot.writeMessageBegin("getItems", TMessageType.REPLY, seqid)
7223
    result.write(oprot)
7224
    oprot.writeMessageEnd()
7225
    oprot.trans.flush()
7226
 
5944 mandeep.dh 7227
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
7228
    args = getItemsByCatalogId_args()
7229
    args.read(iprot)
7230
    iprot.readMessageEnd()
7231
    result = getItemsByCatalogId_result()
7232
    try:
7233
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
7234
    except CatalogServiceException, cex:
7235
      result.cex = cex
7236
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
7237
    result.write(oprot)
7238
    oprot.writeMessageEnd()
7239
    oprot.trans.flush()
7240
 
7241
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
7242
    args = getValidItemsByCatalogId_args()
7243
    args.read(iprot)
7244
    iprot.readMessageEnd()
7245
    result = getValidItemsByCatalogId_result()
7246
    try:
7247
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
7248
    except CatalogServiceException, cex:
7249
      result.cex = cex
7250
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
7251
    result.write(oprot)
7252
    oprot.writeMessageEnd()
7253
    oprot.trans.flush()
7254
 
7255
  def process_getAllItems(self, seqid, iprot, oprot):
7256
    args = getAllItems_args()
7257
    args.read(iprot)
7258
    iprot.readMessageEnd()
7259
    result = getAllItems_result()
7260
    try:
7261
      result.success = self._handler.getAllItems(args.isActive)
7262
    except CatalogServiceException, cex:
7263
      result.cex = cex
7264
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
7265
    result.write(oprot)
7266
    oprot.writeMessageEnd()
7267
    oprot.trans.flush()
7268
 
7269
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
7270
    args = getAllItemsByStatus_args()
7271
    args.read(iprot)
7272
    iprot.readMessageEnd()
7273
    result = getAllItemsByStatus_result()
7274
    try:
7275
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
7276
    except CatalogServiceException, cex:
7277
      result.cex = cex
7278
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
7279
    result.write(oprot)
7280
    oprot.writeMessageEnd()
7281
    oprot.trans.flush()
7282
 
7283
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
7284
    args = markItemAsContentComplete_args()
7285
    args.read(iprot)
7286
    iprot.readMessageEnd()
7287
    result = markItemAsContentComplete_result()
7288
    try:
9253 rajveer 7289
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 7290
    except CatalogServiceException, cex:
7291
      result.cex = cex
7292
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
7293
    result.write(oprot)
7294
    oprot.writeMessageEnd()
7295
    oprot.trans.flush()
7296
 
12567 amit.gupta 7297
  def process_getVatRates(self, seqid, iprot, oprot):
7298
    args = getVatRates_args()
7299
    args.read(iprot)
7300
    iprot.readMessageEnd()
7301
    result = getVatRates_result()
7302
    try:
7303
      result.success = self._handler.getVatRates(args.itemId, args.categoryId)
7304
    except CatalogServiceException, cex:
7305
      result.cex = cex
7306
    oprot.writeMessageBegin("getVatRates", TMessageType.REPLY, seqid)
7307
    result.write(oprot)
7308
    oprot.writeMessageEnd()
7309
    oprot.trans.flush()
7310
 
5944 mandeep.dh 7311
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
7312
    args = getAllItemsInRange_args()
7313
    args.read(iprot)
7314
    iprot.readMessageEnd()
7315
    result = getAllItemsInRange_result()
7316
    try:
7317
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
7318
    except CatalogServiceException, cex:
7319
      result.cex = cex
7320
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
7321
    result.write(oprot)
7322
    oprot.writeMessageEnd()
7323
    oprot.trans.flush()
7324
 
7325
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
7326
    args = getAllItemsByStatusInRange_args()
7327
    args.read(iprot)
7328
    iprot.readMessageEnd()
7329
    result = getAllItemsByStatusInRange_result()
7330
    try:
7331
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
7332
    except CatalogServiceException, cex:
7333
      result.cex = cex
7334
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
7335
    result.write(oprot)
7336
    oprot.writeMessageEnd()
7337
    oprot.trans.flush()
7338
 
7339
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
7340
    args = getItemCountByStatus_args()
7341
    args.read(iprot)
7342
    iprot.readMessageEnd()
7343
    result = getItemCountByStatus_result()
7344
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
7345
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
7346
    result.write(oprot)
7347
    oprot.writeMessageEnd()
7348
    oprot.trans.flush()
7349
 
7350
  def process_getBestSellers(self, seqid, iprot, oprot):
7351
    args = getBestSellers_args()
7352
    args.read(iprot)
7353
    iprot.readMessageEnd()
7354
    result = getBestSellers_result()
7355
    try:
7356
      result.success = self._handler.getBestSellers()
7357
    except CatalogServiceException, isex:
7358
      result.isex = isex
7359
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
7360
    result.write(oprot)
7361
    oprot.writeMessageEnd()
7362
    oprot.trans.flush()
7363
 
7364
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
7365
    args = getBestSellersCatalogIds_args()
7366
    args.read(iprot)
7367
    iprot.readMessageEnd()
7368
    result = getBestSellersCatalogIds_result()
7369
    try:
7370
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7371
    except CatalogServiceException, cex:
7372
      result.cex = cex
7373
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
7374
    result.write(oprot)
7375
    oprot.writeMessageEnd()
7376
    oprot.trans.flush()
7377
 
7378
  def process_getBestSellersCount(self, seqid, iprot, oprot):
7379
    args = getBestSellersCount_args()
7380
    args.read(iprot)
7381
    iprot.readMessageEnd()
7382
    result = getBestSellersCount_result()
7383
    try:
7384
      result.success = self._handler.getBestSellersCount()
7385
    except CatalogServiceException, cex:
7386
      result.cex = cex
7387
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
7388
    result.write(oprot)
7389
    oprot.writeMessageEnd()
7390
    oprot.trans.flush()
7391
 
7392
  def process_getBestDeals(self, seqid, iprot, oprot):
7393
    args = getBestDeals_args()
7394
    args.read(iprot)
7395
    iprot.readMessageEnd()
7396
    result = getBestDeals_result()
7397
    try:
7398
      result.success = self._handler.getBestDeals()
7399
    except CatalogServiceException, isex:
7400
      result.isex = isex
7401
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
7402
    result.write(oprot)
7403
    oprot.writeMessageEnd()
7404
    oprot.trans.flush()
7405
 
7406
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
7407
    args = getBestDealsCatalogIds_args()
7408
    args.read(iprot)
7409
    iprot.readMessageEnd()
7410
    result = getBestDealsCatalogIds_result()
7411
    try:
7412
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7413
    except CatalogServiceException, cex:
7414
      result.cex = cex
7415
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
7416
    result.write(oprot)
7417
    oprot.writeMessageEnd()
7418
    oprot.trans.flush()
7419
 
7420
  def process_getBestDealsCount(self, seqid, iprot, oprot):
7421
    args = getBestDealsCount_args()
7422
    args.read(iprot)
7423
    iprot.readMessageEnd()
7424
    result = getBestDealsCount_result()
7425
    try:
7426
      result.success = self._handler.getBestDealsCount()
7427
    except CatalogServiceException, cex:
7428
      result.cex = cex
7429
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
7430
    result.write(oprot)
7431
    oprot.writeMessageEnd()
7432
    oprot.trans.flush()
7433
 
7434
  def process_getComingSoon(self, seqid, iprot, oprot):
7435
    args = getComingSoon_args()
7436
    args.read(iprot)
7437
    iprot.readMessageEnd()
7438
    result = getComingSoon_result()
7439
    try:
7440
      result.success = self._handler.getComingSoon()
7441
    except CatalogServiceException, isex:
7442
      result.isex = isex
7443
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
7444
    result.write(oprot)
7445
    oprot.writeMessageEnd()
7446
    oprot.trans.flush()
7447
 
7448
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
7449
    args = getComingSoonCatalogIds_args()
7450
    args.read(iprot)
7451
    iprot.readMessageEnd()
7452
    result = getComingSoonCatalogIds_result()
7453
    try:
7454
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7455
    except CatalogServiceException, cex:
7456
      result.cex = cex
7457
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
7458
    result.write(oprot)
7459
    oprot.writeMessageEnd()
7460
    oprot.trans.flush()
7461
 
7462
  def process_getComingSoonCount(self, seqid, iprot, oprot):
7463
    args = getComingSoonCount_args()
7464
    args.read(iprot)
7465
    iprot.readMessageEnd()
7466
    result = getComingSoonCount_result()
7467
    try:
7468
      result.success = self._handler.getComingSoonCount()
7469
    except CatalogServiceException, cex:
7470
      result.cex = cex
7471
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
7472
    result.write(oprot)
7473
    oprot.writeMessageEnd()
7474
    oprot.trans.flush()
7475
 
7476
  def process_getLatestArrivals(self, seqid, iprot, oprot):
7477
    args = getLatestArrivals_args()
7478
    args.read(iprot)
7479
    iprot.readMessageEnd()
7480
    result = getLatestArrivals_result()
7481
    try:
7482
      result.success = self._handler.getLatestArrivals()
7483
    except CatalogServiceException, isex:
7484
      result.isex = isex
7485
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
7486
    result.write(oprot)
7487
    oprot.writeMessageEnd()
7488
    oprot.trans.flush()
7489
 
7490
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
7491
    args = getLatestArrivalsCatalogIds_args()
7492
    args.read(iprot)
7493
    iprot.readMessageEnd()
7494
    result = getLatestArrivalsCatalogIds_result()
7495
    try:
7496
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
7497
    except CatalogServiceException, cex:
7498
      result.cex = cex
7499
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
7500
    result.write(oprot)
7501
    oprot.writeMessageEnd()
7502
    oprot.trans.flush()
7503
 
7504
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
7505
    args = getLatestArrivalsCount_args()
7506
    args.read(iprot)
7507
    iprot.readMessageEnd()
7508
    result = getLatestArrivalsCount_result()
7509
    try:
7510
      result.success = self._handler.getLatestArrivalsCount()
7511
    except CatalogServiceException, cex:
7512
      result.cex = cex
7513
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
7514
    result.write(oprot)
7515
    oprot.writeMessageEnd()
7516
    oprot.trans.flush()
7517
 
7518
  def process_generateNewEntityID(self, seqid, iprot, oprot):
7519
    args = generateNewEntityID_args()
7520
    args.read(iprot)
7521
    iprot.readMessageEnd()
7522
    result = generateNewEntityID_result()
7523
    result.success = self._handler.generateNewEntityID()
7524
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
7525
    result.write(oprot)
7526
    oprot.writeMessageEnd()
7527
    oprot.trans.flush()
7528
 
7529
  def process_addCategory(self, seqid, iprot, oprot):
7530
    args = addCategory_args()
7531
    args.read(iprot)
7532
    iprot.readMessageEnd()
7533
    result = addCategory_result()
7534
    result.success = self._handler.addCategory(args.category)
7535
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
7536
    result.write(oprot)
7537
    oprot.writeMessageEnd()
7538
    oprot.trans.flush()
7539
 
7540
  def process_getCategory(self, seqid, iprot, oprot):
7541
    args = getCategory_args()
7542
    args.read(iprot)
7543
    iprot.readMessageEnd()
7544
    result = getCategory_result()
7545
    result.success = self._handler.getCategory(args.id)
7546
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
7547
    result.write(oprot)
7548
    oprot.writeMessageEnd()
7549
    oprot.trans.flush()
7550
 
7551
  def process_getAllCategories(self, seqid, iprot, oprot):
7552
    args = getAllCategories_args()
7553
    args.read(iprot)
7554
    iprot.readMessageEnd()
7555
    result = getAllCategories_result()
7556
    result.success = self._handler.getAllCategories()
7557
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
7558
    result.write(oprot)
7559
    oprot.writeMessageEnd()
7560
    oprot.trans.flush()
7561
 
7562
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
7563
    args = getAllSimilarItems_args()
7564
    args.read(iprot)
7565
    iprot.readMessageEnd()
7566
    result = getAllSimilarItems_result()
7567
    result.success = self._handler.getAllSimilarItems(args.itemId)
7568
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
7569
    result.write(oprot)
7570
    oprot.writeMessageEnd()
7571
    oprot.trans.flush()
7572
 
7573
  def process_addSimilarItem(self, seqid, iprot, oprot):
7574
    args = addSimilarItem_args()
7575
    args.read(iprot)
7576
    iprot.readMessageEnd()
7577
    result = addSimilarItem_result()
7578
    try:
7579
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
7580
    except CatalogServiceException, cex:
7581
      result.cex = cex
7582
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
7583
    result.write(oprot)
7584
    oprot.writeMessageEnd()
7585
    oprot.trans.flush()
7586
 
6512 kshitij.so 7587
  def process_addTag(self, seqid, iprot, oprot):
7588
    args = addTag_args()
7589
    args.read(iprot)
7590
    iprot.readMessageEnd()
7591
    result = addTag_result()
7592
    result.success = self._handler.addTag(args.displayName, args.itemId)
7593
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
7594
    result.write(oprot)
7595
    oprot.writeMessageEnd()
7596
    oprot.trans.flush()
7597
 
7598
  def process_deleteEntityTag(self, seqid, iprot, oprot):
7599
    args = deleteEntityTag_args()
7600
    args.read(iprot)
7601
    iprot.readMessageEnd()
7602
    result = deleteEntityTag_result()
7603
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
7604
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
7605
    result.write(oprot)
7606
    oprot.writeMessageEnd()
7607
    oprot.trans.flush()
7608
 
7609
  def process_deleteTag(self, seqid, iprot, oprot):
7610
    args = deleteTag_args()
7611
    args.read(iprot)
7612
    iprot.readMessageEnd()
7613
    result = deleteTag_result()
7614
    result.success = self._handler.deleteTag(args.displayName)
7615
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
7616
    result.write(oprot)
7617
    oprot.writeMessageEnd()
7618
    oprot.trans.flush()
7619
 
7620
  def process_getAllTags(self, seqid, iprot, oprot):
7621
    args = getAllTags_args()
7622
    args.read(iprot)
7623
    iprot.readMessageEnd()
7624
    result = getAllTags_result()
7625
    result.success = self._handler.getAllTags()
7626
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
7627
    result.write(oprot)
7628
    oprot.writeMessageEnd()
7629
    oprot.trans.flush()
7630
 
7631
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
7632
    args = getAllEntitiesByTagName_args()
7633
    args.read(iprot)
7634
    iprot.readMessageEnd()
7635
    result = getAllEntitiesByTagName_result()
7636
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
7637
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
7638
    result.write(oprot)
7639
    oprot.writeMessageEnd()
7640
    oprot.trans.flush()
7641
 
6845 amit.gupta 7642
  def process_getAllEntityTags(self, seqid, iprot, oprot):
7643
    args = getAllEntityTags_args()
7644
    args.read(iprot)
7645
    iprot.readMessageEnd()
7646
    result = getAllEntityTags_result()
7647
    result.success = self._handler.getAllEntityTags()
7648
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
7649
    result.write(oprot)
7650
    oprot.writeMessageEnd()
7651
    oprot.trans.flush()
7652
 
6850 kshitij.so 7653
  def process_addBanner(self, seqid, iprot, oprot):
7654
    args = addBanner_args()
7655
    args.read(iprot)
7656
    iprot.readMessageEnd()
7657
    result = addBanner_result()
10097 kshitij.so 7658
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 7659
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
7660
    result.write(oprot)
7661
    oprot.writeMessageEnd()
7662
    oprot.trans.flush()
7663
 
8579 kshitij.so 7664
  def process_updateBanner(self, seqid, iprot, oprot):
7665
    args = updateBanner_args()
7666
    args.read(iprot)
7667
    iprot.readMessageEnd()
7668
    result = updateBanner_result()
7669
    result.success = self._handler.updateBanner(args.banner)
7670
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
7671
    result.write(oprot)
7672
    oprot.writeMessageEnd()
7673
    oprot.trans.flush()
7674
 
6850 kshitij.so 7675
  def process_getAllBanners(self, seqid, iprot, oprot):
7676
    args = getAllBanners_args()
7677
    args.read(iprot)
7678
    iprot.readMessageEnd()
7679
    result = getAllBanners_result()
7680
    result.success = self._handler.getAllBanners()
7681
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
7682
    result.write(oprot)
7683
    oprot.writeMessageEnd()
7684
    oprot.trans.flush()
7685
 
7686
  def process_deleteBanner(self, seqid, iprot, oprot):
7687
    args = deleteBanner_args()
7688
    args.read(iprot)
7689
    iprot.readMessageEnd()
7690
    result = deleteBanner_result()
9155 kshitij.so 7691
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 7692
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
7693
    result.write(oprot)
7694
    oprot.writeMessageEnd()
7695
    oprot.trans.flush()
7696
 
7697
  def process_getBannerDetails(self, seqid, iprot, oprot):
7698
    args = getBannerDetails_args()
7699
    args.read(iprot)
7700
    iprot.readMessageEnd()
7701
    result = getBannerDetails_result()
9155 kshitij.so 7702
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 7703
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
7704
    result.write(oprot)
7705
    oprot.writeMessageEnd()
7706
    oprot.trans.flush()
7707
 
7708
  def process_getActiveBanners(self, seqid, iprot, oprot):
7709
    args = getActiveBanners_args()
7710
    args.read(iprot)
7711
    iprot.readMessageEnd()
7712
    result = getActiveBanners_result()
7713
    result.success = self._handler.getActiveBanners()
7714
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
7715
    result.write(oprot)
7716
    oprot.writeMessageEnd()
7717
    oprot.trans.flush()
7718
 
6849 kshitij.so 7719
  def process_addBannerMap(self, seqid, iprot, oprot):
7720
    args = addBannerMap_args()
7721
    args.read(iprot)
7722
    iprot.readMessageEnd()
7723
    result = addBannerMap_result()
8579 kshitij.so 7724
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 7725
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
7726
    result.write(oprot)
7727
    oprot.writeMessageEnd()
7728
    oprot.trans.flush()
7729
 
8579 kshitij.so 7730
  def process_updateBannerMap(self, seqid, iprot, oprot):
7731
    args = updateBannerMap_args()
7732
    args.read(iprot)
7733
    iprot.readMessageEnd()
7734
    result = updateBannerMap_result()
7735
    result.success = self._handler.updateBannerMap(args.bannerMap)
7736
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
7737
    result.write(oprot)
7738
    oprot.writeMessageEnd()
7739
    oprot.trans.flush()
7740
 
6849 kshitij.so 7741
  def process_deleteBannerMap(self, seqid, iprot, oprot):
7742
    args = deleteBannerMap_args()
7743
    args.read(iprot)
7744
    iprot.readMessageEnd()
7745
    result = deleteBannerMap_result()
7746
    result.success = self._handler.deleteBannerMap(args.bannerName)
7747
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
7748
    result.write(oprot)
7749
    oprot.writeMessageEnd()
7750
    oprot.trans.flush()
7751
 
7752
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
7753
    args = getBannerMapDetails_args()
7754
    args.read(iprot)
7755
    iprot.readMessageEnd()
7756
    result = getBannerMapDetails_result()
9155 kshitij.so 7757
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 7758
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
7759
    result.write(oprot)
7760
    oprot.writeMessageEnd()
7761
    oprot.trans.flush()
7762
 
8579 kshitij.so 7763
  def process_addBannerUri(self, seqid, iprot, oprot):
7764
    args = addBannerUri_args()
7765
    args.read(iprot)
7766
    iprot.readMessageEnd()
7767
    result = addBannerUri_result()
7768
    self._handler.addBannerUri(args.bannerUriMappings)
7769
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
7770
    result.write(oprot)
7771
    oprot.writeMessageEnd()
7772
    oprot.trans.flush()
7773
 
7774
  def process_getUriMapping(self, seqid, iprot, oprot):
7775
    args = getUriMapping_args()
7776
    args.read(iprot)
7777
    iprot.readMessageEnd()
7778
    result = getUriMapping_result()
9155 kshitij.so 7779
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 7780
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
7781
    result.write(oprot)
7782
    oprot.writeMessageEnd()
7783
    oprot.trans.flush()
7784
 
7785
  def process_addCampaign(self, seqid, iprot, oprot):
7786
    args = addCampaign_args()
7787
    args.read(iprot)
7788
    iprot.readMessageEnd()
7789
    result = addCampaign_result()
7790
    self._handler.addCampaign(args.campaign)
7791
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
7792
    result.write(oprot)
7793
    oprot.writeMessageEnd()
7794
    oprot.trans.flush()
7795
 
7796
  def process_getCampaigns(self, seqid, iprot, oprot):
7797
    args = getCampaigns_args()
7798
    args.read(iprot)
7799
    iprot.readMessageEnd()
7800
    result = getCampaigns_result()
7801
    result.success = self._handler.getCampaigns(args.campaignName)
7802
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
7803
    result.write(oprot)
7804
    oprot.writeMessageEnd()
7805
    oprot.trans.flush()
7806
 
7807
  def process_deleteCampaign(self, seqid, iprot, oprot):
7808
    args = deleteCampaign_args()
7809
    args.read(iprot)
7810
    iprot.readMessageEnd()
7811
    result = deleteCampaign_result()
7812
    self._handler.deleteCampaign(args.campaignId)
7813
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
7814
    result.write(oprot)
7815
    oprot.writeMessageEnd()
7816
    oprot.trans.flush()
7817
 
7818
  def process_getAllCampaigns(self, seqid, iprot, oprot):
7819
    args = getAllCampaigns_args()
7820
    args.read(iprot)
7821
    iprot.readMessageEnd()
7822
    result = getAllCampaigns_result()
7823
    result.success = self._handler.getAllCampaigns()
7824
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
7825
    result.write(oprot)
7826
    oprot.writeMessageEnd()
7827
    oprot.trans.flush()
7828
 
9155 kshitij.so 7829
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
7830
    args = getActiveBannersForMobileSite_args()
7831
    args.read(iprot)
7832
    iprot.readMessageEnd()
7833
    result = getActiveBannersForMobileSite_result()
7834
    result.success = self._handler.getActiveBannersForMobileSite()
7835
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
7836
    result.write(oprot)
7837
    oprot.writeMessageEnd()
7838
    oprot.trans.flush()
7839
 
5944 mandeep.dh 7840
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
7841
    args = deleteSimilarItem_args()
7842
    args.read(iprot)
7843
    iprot.readMessageEnd()
7844
    result = deleteSimilarItem_result()
7845
    try:
7846
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
7847
    except CatalogServiceException, cex:
7848
      result.cex = cex
7849
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
7850
    result.write(oprot)
7851
    oprot.writeMessageEnd()
7852
    oprot.trans.flush()
7853
 
7854
  def process_checkSimilarItem(self, seqid, iprot, oprot):
7855
    args = checkSimilarItem_args()
7856
    args.read(iprot)
7857
    iprot.readMessageEnd()
7858
    result = checkSimilarItem_result()
7859
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
7860
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
7861
    result.write(oprot)
7862
    oprot.writeMessageEnd()
7863
    oprot.trans.flush()
7864
 
7865
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
7866
    args = validateRiskyStatus_args()
7867
    args.read(iprot)
7868
    iprot.readMessageEnd()
7869
    result = validateRiskyStatus_result()
7870
    self._handler.validateRiskyStatus(args.itemId)
7871
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
7872
    result.write(oprot)
7873
    oprot.writeMessageEnd()
7874
    oprot.trans.flush()
7875
 
7876
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
7877
    args = changeItemRiskyFlag_args()
7878
    args.read(iprot)
7879
    iprot.readMessageEnd()
7880
    result = changeItemRiskyFlag_result()
7881
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
7882
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
7883
    result.write(oprot)
7884
    oprot.writeMessageEnd()
7885
    oprot.trans.flush()
7886
 
7887
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
7888
    args = getItemsByRiskyFlag_args()
7889
    args.read(iprot)
7890
    iprot.readMessageEnd()
7891
    result = getItemsByRiskyFlag_result()
7892
    result.success = self._handler.getItemsByRiskyFlag()
7893
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
7894
    result.write(oprot)
7895
    oprot.writeMessageEnd()
7896
    oprot.trans.flush()
7897
 
7898
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
7899
    args = getItemsForMasterSheet_args()
7900
    args.read(iprot)
7901
    iprot.readMessageEnd()
7902
    result = getItemsForMasterSheet_result()
7903
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
7904
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
7905
    result.write(oprot)
7906
    oprot.writeMessageEnd()
7907
    oprot.trans.flush()
7908
 
7909
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
7910
    args = getSimilarItemsCatalogIds_args()
7911
    args.read(iprot)
7912
    iprot.readMessageEnd()
7913
    result = getSimilarItemsCatalogIds_result()
7914
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
7915
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
7916
    result.write(oprot)
7917
    oprot.writeMessageEnd()
7918
    oprot.trans.flush()
7919
 
7920
  def process_addProductNotification(self, seqid, iprot, oprot):
7921
    args = addProductNotification_args()
7922
    args.read(iprot)
7923
    iprot.readMessageEnd()
7924
    result = addProductNotification_result()
7925
    result.success = self._handler.addProductNotification(args.itemId, args.email)
7926
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
7927
    result.write(oprot)
7928
    oprot.writeMessageEnd()
7929
    oprot.trans.flush()
7930
 
7931
  def process_sendProductNotifications(self, seqid, iprot, oprot):
7932
    args = sendProductNotifications_args()
7933
    args.read(iprot)
7934
    iprot.readMessageEnd()
7935
    result = sendProductNotifications_result()
7936
    result.success = self._handler.sendProductNotifications()
7937
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
7938
    result.write(oprot)
7939
    oprot.writeMessageEnd()
7940
    oprot.trans.flush()
7941
 
7942
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
7943
    args = getAllBrandsByCategory_args()
7944
    args.read(iprot)
7945
    iprot.readMessageEnd()
7946
    result = getAllBrandsByCategory_result()
7947
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
7948
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
7949
    result.write(oprot)
7950
    oprot.writeMessageEnd()
7951
    oprot.trans.flush()
7952
 
7953
  def process_getAllBrands(self, seqid, iprot, oprot):
7954
    args = getAllBrands_args()
7955
    args.read(iprot)
7956
    iprot.readMessageEnd()
7957
    result = getAllBrands_result()
7958
    result.success = self._handler.getAllBrands()
7959
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
7960
    result.write(oprot)
7961
    oprot.writeMessageEnd()
7962
    oprot.trans.flush()
7963
 
7964
  def process_getAllSources(self, seqid, iprot, oprot):
7965
    args = getAllSources_args()
7966
    args.read(iprot)
7967
    iprot.readMessageEnd()
7968
    result = getAllSources_result()
7969
    result.success = self._handler.getAllSources()
7970
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
7971
    result.write(oprot)
7972
    oprot.writeMessageEnd()
7973
    oprot.trans.flush()
7974
 
7975
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
7976
    args = getItemPricingBySource_args()
7977
    args.read(iprot)
7978
    iprot.readMessageEnd()
7979
    result = getItemPricingBySource_result()
7980
    try:
7981
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
7982
    except CatalogServiceException, cex:
7983
      result.cex = cex
7984
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
7985
    result.write(oprot)
7986
    oprot.writeMessageEnd()
7987
    oprot.trans.flush()
7988
 
7989
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
7990
    args = addSourceItemPricing_args()
7991
    args.read(iprot)
7992
    iprot.readMessageEnd()
7993
    result = addSourceItemPricing_result()
7994
    try:
7995
      self._handler.addSourceItemPricing(args.sourceItemPricing)
7996
    except CatalogServiceException, cex:
7997
      result.cex = cex
7998
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
7999
    result.write(oprot)
8000
    oprot.writeMessageEnd()
8001
    oprot.trans.flush()
8002
 
8003
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
8004
    args = getAllSourcePricing_args()
8005
    args.read(iprot)
8006
    iprot.readMessageEnd()
8007
    result = getAllSourcePricing_result()
8008
    try:
8009
      result.success = self._handler.getAllSourcePricing(args.itemId)
8010
    except CatalogServiceException, cex:
8011
      result.cex = cex
8012
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
8013
    result.write(oprot)
8014
    oprot.writeMessageEnd()
8015
    oprot.trans.flush()
8016
 
8017
  def process_getItemForSource(self, seqid, iprot, oprot):
8018
    args = getItemForSource_args()
8019
    args.read(iprot)
8020
    iprot.readMessageEnd()
8021
    result = getItemForSource_result()
8022
    try:
8023
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
8024
    except CatalogServiceException, cex:
8025
      result.cex = cex
8026
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
8027
    result.write(oprot)
8028
    oprot.writeMessageEnd()
8029
    oprot.trans.flush()
8030
 
8031
  def process_searchItemsInRange(self, seqid, iprot, oprot):
8032
    args = searchItemsInRange_args()
8033
    args.read(iprot)
8034
    iprot.readMessageEnd()
8035
    result = searchItemsInRange_result()
8036
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
8037
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
8038
    result.write(oprot)
8039
    oprot.writeMessageEnd()
8040
    oprot.trans.flush()
8041
 
8042
  def process_getSearchResultCount(self, seqid, iprot, oprot):
8043
    args = getSearchResultCount_args()
8044
    args.read(iprot)
8045
    iprot.readMessageEnd()
8046
    result = getSearchResultCount_result()
8047
    result.success = self._handler.getSearchResultCount(args.searchTerms)
8048
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
8049
    result.write(oprot)
8050
    oprot.writeMessageEnd()
8051
    oprot.trans.flush()
8052
 
8053
  def process_getProductNotifications(self, seqid, iprot, oprot):
8054
    args = getProductNotifications_args()
8055
    args.read(iprot)
8056
    iprot.readMessageEnd()
8057
    result = getProductNotifications_result()
8058
    result.success = self._handler.getProductNotifications(args.startDateTime)
8059
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
8060
    result.write(oprot)
8061
    oprot.writeMessageEnd()
8062
    oprot.trans.flush()
8063
 
8064
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
8065
    args = getProductNotificationRequestCount_args()
8066
    args.read(iprot)
8067
    iprot.readMessageEnd()
8068
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 8069
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 8070
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
8071
    result.write(oprot)
8072
    oprot.writeMessageEnd()
8073
    oprot.trans.flush()
8074
 
8075
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
8076
    args = addAuthorizationLog_args()
8077
    args.read(iprot)
8078
    iprot.readMessageEnd()
8079
    result = addAuthorizationLog_result()
8080
    try:
8081
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
8082
    except CatalogServiceException, cex:
8083
      result.cex = cex
8084
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
8085
    result.write(oprot)
8086
    oprot.writeMessageEnd()
8087
    oprot.trans.flush()
8088
 
8089
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
8090
    args = addupdateVoucherForItem_args()
8091
    args.read(iprot)
8092
    iprot.readMessageEnd()
8093
    result = addupdateVoucherForItem_result()
8094
    try:
8095
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
8096
    except CatalogServiceException, cex:
8097
      result.cex = cex
8098
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
8099
    result.write(oprot)
8100
    oprot.writeMessageEnd()
8101
    oprot.trans.flush()
8102
 
8103
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
8104
    args = deleteVoucherForItem_args()
8105
    args.read(iprot)
8106
    iprot.readMessageEnd()
8107
    result = deleteVoucherForItem_result()
8108
    try:
8109
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
8110
    except CatalogServiceException, cex:
8111
      result.cex = cex
8112
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
8113
    result.write(oprot)
8114
    oprot.writeMessageEnd()
8115
    oprot.trans.flush()
8116
 
8117
  def process_getVoucherAmount(self, seqid, iprot, oprot):
8118
    args = getVoucherAmount_args()
8119
    args.read(iprot)
8120
    iprot.readMessageEnd()
8121
    result = getVoucherAmount_result()
8122
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
8123
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
8124
    result.write(oprot)
8125
    oprot.writeMessageEnd()
8126
    oprot.trans.flush()
8127
 
8128
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
8129
    args = getAllItemVouchers_args()
8130
    args.read(iprot)
8131
    iprot.readMessageEnd()
8132
    result = getAllItemVouchers_result()
8133
    result.success = self._handler.getAllItemVouchers(args.itemId)
8134
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
8135
    result.write(oprot)
8136
    oprot.writeMessageEnd()
8137
    oprot.trans.flush()
8138
 
8139
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
8140
    args = isValidCatalogItemId_args()
8141
    args.read(iprot)
8142
    iprot.readMessageEnd()
8143
    result = isValidCatalogItemId_result()
8144
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
8145
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
8146
    result.write(oprot)
8147
    oprot.writeMessageEnd()
8148
    oprot.trans.flush()
8149
 
6039 amit.gupta 8150
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
8151
    args = getVatPercentageForItem_args()
8152
    args.read(iprot)
8153
    iprot.readMessageEnd()
8154
    result = getVatPercentageForItem_result()
7340 amit.gupta 8155
    try:
8156
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
8157
    except CatalogServiceException, cex:
8158
      result.cex = cex
6039 amit.gupta 8159
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
8160
    result.write(oprot)
8161
    oprot.writeMessageEnd()
8162
    oprot.trans.flush()
5944 mandeep.dh 8163
 
6039 amit.gupta 8164
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
8165
    args = getVatAmountForItem_args()
8166
    args.read(iprot)
8167
    iprot.readMessageEnd()
8168
    result = getVatAmountForItem_result()
8169
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
8170
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
8171
    result.write(oprot)
8172
    oprot.writeMessageEnd()
8173
    oprot.trans.flush()
8174
 
6531 vikram.rag 8175
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
8176
    args = getAllIgnoredInventoryUpdateItemsList_args()
8177
    args.read(iprot)
8178
    iprot.readMessageEnd()
8179
    result = getAllIgnoredInventoryUpdateItemsList_result()
8180
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
8181
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
8182
    result.write(oprot)
8183
    oprot.writeMessageEnd()
8184
    oprot.trans.flush()
6039 amit.gupta 8185
 
6821 amar.kumar 8186
  def process_getAllAliveItems(self, seqid, iprot, oprot):
8187
    args = getAllAliveItems_args()
8188
    args.read(iprot)
8189
    iprot.readMessageEnd()
8190
    result = getAllAliveItems_result()
8191
    result.success = self._handler.getAllAliveItems()
8192
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
8193
    result.write(oprot)
8194
    oprot.writeMessageEnd()
8195
    oprot.trans.flush()
8196
 
6805 anupam.sin 8197
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
8198
    args = getInsuranceAmount_args()
8199
    args.read(iprot)
8200
    iprot.readMessageEnd()
8201
    result = getInsuranceAmount_result()
6921 anupam.sin 8202
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 8203
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
8204
    result.write(oprot)
8205
    oprot.writeMessageEnd()
8206
    oprot.trans.flush()
6531 vikram.rag 8207
 
6805 anupam.sin 8208
  def process_getInsurer(self, seqid, iprot, oprot):
8209
    args = getInsurer_args()
8210
    args.read(iprot)
8211
    iprot.readMessageEnd()
8212
    result = getInsurer_result()
8213
    result.success = self._handler.getInsurer(args.insurerId)
8214
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
8215
    result.write(oprot)
8216
    oprot.writeMessageEnd()
8217
    oprot.trans.flush()
8218
 
6838 vikram.rag 8219
  def process_getAllInsurers(self, seqid, iprot, oprot):
8220
    args = getAllInsurers_args()
8221
    args.read(iprot)
8222
    iprot.readMessageEnd()
8223
    result = getAllInsurers_result()
8224
    result.success = self._handler.getAllInsurers()
8225
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
8226
    result.write(oprot)
8227
    oprot.writeMessageEnd()
8228
    oprot.trans.flush()
6805 anupam.sin 8229
 
6962 rajveer 8230
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
8231
    args = updateInsuranceDeclaredAmount_args()
8232
    args.read(iprot)
8233
    iprot.readMessageEnd()
8234
    result = updateInsuranceDeclaredAmount_result()
8235
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
8236
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
8237
    result.write(oprot)
8238
    oprot.writeMessageEnd()
8239
    oprot.trans.flush()
6838 vikram.rag 8240
 
7190 amar.kumar 8241
  def process_getFreebieForItem(self, seqid, iprot, oprot):
8242
    args = getFreebieForItem_args()
8243
    args.read(iprot)
8244
    iprot.readMessageEnd()
8245
    result = getFreebieForItem_result()
8246
    result.success = self._handler.getFreebieForItem(args.itemId)
8247
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
8248
    result.write(oprot)
8249
    oprot.writeMessageEnd()
8250
    oprot.trans.flush()
6962 rajveer 8251
 
7190 amar.kumar 8252
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
8253
    args = addOrUpdateFreebieForItem_args()
8254
    args.read(iprot)
8255
    iprot.readMessageEnd()
8256
    result = addOrUpdateFreebieForItem_result()
8257
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
8258
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
8259
    result.write(oprot)
8260
    oprot.writeMessageEnd()
8261
    oprot.trans.flush()
8262
 
7272 amit.gupta 8263
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
8264
    args = addOrUpdateBrandInfo_args()
8265
    args.read(iprot)
8266
    iprot.readMessageEnd()
8267
    result = addOrUpdateBrandInfo_result()
8268
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
8269
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
8270
    result.write(oprot)
8271
    oprot.writeMessageEnd()
8272
    oprot.trans.flush()
8273
 
8274
  def process_getBrandInfo(self, seqid, iprot, oprot):
8275
    args = getBrandInfo_args()
8276
    args.read(iprot)
8277
    iprot.readMessageEnd()
8278
    result = getBrandInfo_result()
8279
    result.success = self._handler.getBrandInfo()
8280
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
8281
    result.write(oprot)
8282
    oprot.writeMessageEnd()
8283
    oprot.trans.flush()
8284
 
7256 rajveer 8285
  def process_getStorePricing(self, seqid, iprot, oprot):
8286
    args = getStorePricing_args()
8287
    args.read(iprot)
8288
    iprot.readMessageEnd()
8289
    result = getStorePricing_result()
8290
    result.success = self._handler.getStorePricing(args.itemId)
8291
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
8292
    result.write(oprot)
8293
    oprot.writeMessageEnd()
8294
    oprot.trans.flush()
7190 amar.kumar 8295
 
7306 rajveer 8296
  def process_getStorePricings(self, seqid, iprot, oprot):
8297
    args = getStorePricings_args()
8298
    args.read(iprot)
8299
    iprot.readMessageEnd()
8300
    result = getStorePricings_result()
8301
    result.success = self._handler.getStorePricings(args.itemIds)
8302
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
8303
    result.write(oprot)
8304
    oprot.writeMessageEnd()
8305
    oprot.trans.flush()
8306
 
7265 rajveer 8307
  def process_updateStorePricing(self, seqid, iprot, oprot):
8308
    args = updateStorePricing_args()
8309
    args.read(iprot)
8310
    iprot.readMessageEnd()
8311
    result = updateStorePricing_result()
7382 rajveer 8312
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 8313
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
8314
    result.write(oprot)
8315
    oprot.writeMessageEnd()
8316
    oprot.trans.flush()
7256 rajveer 8317
 
7281 kshitij.so 8318
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
8319
    args = getAllAmazonListedItems_args()
8320
    args.read(iprot)
8321
    iprot.readMessageEnd()
8322
    result = getAllAmazonListedItems_result()
8323
    result.success = self._handler.getAllAmazonListedItems()
8324
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
8325
    result.write(oprot)
8326
    oprot.writeMessageEnd()
8327
    oprot.trans.flush()
7265 rajveer 8328
 
8619 kshitij.so 8329
  def process_searchAmazonItems(self, seqid, iprot, oprot):
8330
    args = searchAmazonItems_args()
8331
    args.read(iprot)
8332
    iprot.readMessageEnd()
8333
    result = searchAmazonItems_result()
8334
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
8335
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
8336
    result.write(oprot)
8337
    oprot.writeMessageEnd()
8338
    oprot.trans.flush()
8339
 
8340
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
8341
    args = getAmazonSearchResultCount_args()
8342
    args.read(iprot)
8343
    iprot.readMessageEnd()
8344
    result = getAmazonSearchResultCount_result()
8345
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
8346
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
8347
    result.write(oprot)
8348
    oprot.writeMessageEnd()
8349
    oprot.trans.flush()
8350
 
8351
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
8352
    args = getCountForAmazonlistedItems_args()
8353
    args.read(iprot)
8354
    iprot.readMessageEnd()
8355
    result = getCountForAmazonlistedItems_result()
8356
    result.success = self._handler.getCountForAmazonlistedItems()
8357
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
8358
    result.write(oprot)
8359
    oprot.writeMessageEnd()
8360
    oprot.trans.flush()
8361
 
7281 kshitij.so 8362
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
8363
    args = getAmazonItemDetails_args()
8364
    args.read(iprot)
8365
    iprot.readMessageEnd()
8366
    result = getAmazonItemDetails_result()
8367
    result.success = self._handler.getAmazonItemDetails(args.itemId)
8368
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
8369
    result.write(oprot)
8370
    oprot.writeMessageEnd()
8371
    oprot.trans.flush()
8372
 
8373
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
8374
    args = updateAmazonItemDetails_args()
8375
    args.read(iprot)
8376
    iprot.readMessageEnd()
8377
    result = updateAmazonItemDetails_result()
8168 kshitij.so 8378
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 8379
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
8380
    result.write(oprot)
8381
    oprot.writeMessageEnd()
8382
    oprot.trans.flush()
8383
 
8384
  def process_addAmazonItem(self, seqid, iprot, oprot):
8385
    args = addAmazonItem_args()
8386
    args.read(iprot)
8387
    iprot.readMessageEnd()
8388
    result = addAmazonItem_result()
8389
    self._handler.addAmazonItem(args.amazonlisted)
8390
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
8391
    result.write(oprot)
8392
    oprot.writeMessageEnd()
8393
    oprot.trans.flush()
8394
 
7291 vikram.rag 8395
  def process_getAsinItems(self, seqid, iprot, oprot):
8396
    args = getAsinItems_args()
8397
    args.read(iprot)
8398
    iprot.readMessageEnd()
8399
    result = getAsinItems_result()
8400
    result.success = self._handler.getAsinItems()
8401
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
8402
    result.write(oprot)
8403
    oprot.writeMessageEnd()
8404
    oprot.trans.flush()
7281 kshitij.so 8405
 
7291 vikram.rag 8406
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
8407
    args = getAllFbaListedItems_args()
8408
    args.read(iprot)
8409
    iprot.readMessageEnd()
8410
    result = getAllFbaListedItems_result()
8411
    result.success = self._handler.getAllFbaListedItems()
8412
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
8413
    result.write(oprot)
8414
    oprot.writeMessageEnd()
8415
    oprot.trans.flush()
8416
 
8417
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
8418
    args = getAllNonFbaListedItems_args()
8419
    args.read(iprot)
8420
    iprot.readMessageEnd()
8421
    result = getAllNonFbaListedItems_result()
8422
    result.success = self._handler.getAllNonFbaListedItems()
8423
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
8424
    result.write(oprot)
8425
    oprot.writeMessageEnd()
8426
    oprot.trans.flush()
8427
 
7460 kshitij.so 8428
  def process_updateItemInventory(self, seqid, iprot, oprot):
8429
    args = updateItemInventory_args()
8430
    args.read(iprot)
8431
    iprot.readMessageEnd()
8432
    result = updateItemInventory_result()
8433
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
8434
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
8435
    result.write(oprot)
8436
    oprot.writeMessageEnd()
8437
    oprot.trans.flush()
7291 vikram.rag 8438
 
7770 kshitij.so 8439
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
8440
    args = updateTimestampForAmazonFeeds_args()
8441
    args.read(iprot)
8442
    iprot.readMessageEnd()
8443
    result = updateTimestampForAmazonFeeds_result()
8444
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
8445
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
8446
    result.write(oprot)
8447
    oprot.writeMessageEnd()
8448
    oprot.trans.flush()
7460 kshitij.so 8449
 
7897 amar.kumar 8450
  def process_getAllParentCategories(self, seqid, iprot, oprot):
8451
    args = getAllParentCategories_args()
8452
    args.read(iprot)
8453
    iprot.readMessageEnd()
8454
    result = getAllParentCategories_result()
8455
    result.success = self._handler.getAllParentCategories()
8456
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
8457
    result.write(oprot)
8458
    oprot.writeMessageEnd()
8459
    oprot.trans.flush()
7770 kshitij.so 8460
 
7977 kshitij.so 8461
  def process_addPageViewEvent(self, seqid, iprot, oprot):
8462
    args = addPageViewEvent_args()
8463
    args.read(iprot)
8464
    iprot.readMessageEnd()
8465
    result = addPageViewEvent_result()
8466
    self._handler.addPageViewEvent(args.pageViewEvents)
8467
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
8468
    result.write(oprot)
8469
    oprot.writeMessageEnd()
8470
    oprot.trans.flush()
7897 amar.kumar 8471
 
7977 kshitij.so 8472
  def process_addCartEvent(self, seqid, iprot, oprot):
8473
    args = addCartEvent_args()
8474
    args.read(iprot)
8475
    iprot.readMessageEnd()
8476
    result = addCartEvent_result()
8477
    self._handler.addCartEvent(args.cartEvents)
8478
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
8479
    result.write(oprot)
8480
    oprot.writeMessageEnd()
8481
    oprot.trans.flush()
8482
 
8182 amar.kumar 8483
  def process_addEbayItem(self, seqid, iprot, oprot):
8484
    args = addEbayItem_args()
8485
    args.read(iprot)
8486
    iprot.readMessageEnd()
8487
    result = addEbayItem_result()
8488
    self._handler.addEbayItem(args.ebayItem)
8489
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
8490
    result.write(oprot)
8491
    oprot.writeMessageEnd()
8492
    oprot.trans.flush()
8493
 
8494
  def process_getEbayItem(self, seqid, iprot, oprot):
8495
    args = getEbayItem_args()
8496
    args.read(iprot)
8497
    iprot.readMessageEnd()
8498
    result = getEbayItem_result()
8499
    result.success = self._handler.getEbayItem(args.listingId)
8500
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
8501
    result.write(oprot)
8502
    oprot.writeMessageEnd()
8503
    oprot.trans.flush()
8504
 
8505
  def process_updateEbayItem(self, seqid, iprot, oprot):
8506
    args = updateEbayItem_args()
8507
    args.read(iprot)
8508
    iprot.readMessageEnd()
8509
    result = updateEbayItem_result()
8510
    self._handler.updateEbayItem(args.ebayItem)
8511
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
8512
    result.write(oprot)
8513
    oprot.writeMessageEnd()
8514
    oprot.trans.flush()
8515
 
8139 kshitij.so 8516
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
8517
    args = getAmazonListedItems_args()
8518
    args.read(iprot)
8519
    iprot.readMessageEnd()
8520
    result = getAmazonListedItems_result()
8521
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
8522
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
8523
    result.write(oprot)
8524
    oprot.writeMessageEnd()
8525
    oprot.trans.flush()
7977 kshitij.so 8526
 
8168 kshitij.so 8527
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
8528
    args = updateAmazonAttributesInBulk_args()
8529
    args.read(iprot)
8530
    iprot.readMessageEnd()
8531
    result = updateAmazonAttributesInBulk_result()
8532
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
8533
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
8534
    result.write(oprot)
8535
    oprot.writeMessageEnd()
8536
    oprot.trans.flush()
8139 kshitij.so 8537
 
8379 vikram.rag 8538
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
8539
    args = getAllItemstoListOnFba_args()
8540
    args.read(iprot)
8541
    iprot.readMessageEnd()
8542
    result = getAllItemstoListOnFba_result()
8543
    result.success = self._handler.getAllItemstoListOnFba()
8544
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
8545
    result.write(oprot)
8546
    oprot.writeMessageEnd()
8547
    oprot.trans.flush()
8168 kshitij.so 8548
 
8379 vikram.rag 8549
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
8550
    args = getAllItemstoListOnNonFba_args()
8551
    args.read(iprot)
8552
    iprot.readMessageEnd()
8553
    result = getAllItemstoListOnNonFba_result()
8554
    result.success = self._handler.getAllItemstoListOnNonFba()
8555
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
8556
    result.write(oprot)
8557
    oprot.writeMessageEnd()
8558
    oprot.trans.flush()
8559
 
8619 kshitij.so 8560
  def process_updateAsin(self, seqid, iprot, oprot):
8561
    args = updateAsin_args()
8562
    args.read(iprot)
8563
    iprot.readMessageEnd()
8564
    result = updateAsin_result()
8565
    self._handler.updateAsin(args.item)
8566
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
8567
    result.write(oprot)
8568
    oprot.writeMessageEnd()
8569
    oprot.trans.flush()
8616 vikram.rag 8570
 
8739 vikram.rag 8571
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
8572
    args = addOrUpdateSnapdealItem_args()
8573
    args.read(iprot)
8574
    iprot.readMessageEnd()
8575
    result = addOrUpdateSnapdealItem_result()
8576
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
8577
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
8578
    result.write(oprot)
8579
    oprot.writeMessageEnd()
8580
    oprot.trans.flush()
8619 kshitij.so 8581
 
8739 vikram.rag 8582
  def process_getSnapdealItem(self, seqid, iprot, oprot):
8583
    args = getSnapdealItem_args()
8584
    args.read(iprot)
8585
    iprot.readMessageEnd()
8586
    result = getSnapdealItem_result()
8587
    result.success = self._handler.getSnapdealItem(args.item_id)
8588
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
8589
    result.write(oprot)
8590
    oprot.writeMessageEnd()
8591
    oprot.trans.flush()
8592
 
9242 kshitij.so 8593
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
8594
    args = getSnapdealItemDetails_args()
8595
    args.read(iprot)
8596
    iprot.readMessageEnd()
8597
    result = getSnapdealItemDetails_result()
8598
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
8599
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
8600
    result.write(oprot)
8601
    oprot.writeMessageEnd()
8602
    oprot.trans.flush()
8603
 
8739 vikram.rag 8604
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
8605
    args = getAllSnapdealItems_args()
8606
    args.read(iprot)
8607
    iprot.readMessageEnd()
8608
    result = getAllSnapdealItems_result()
8609
    result.success = self._handler.getAllSnapdealItems()
8610
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
8611
    result.write(oprot)
8612
    oprot.writeMessageEnd()
8613
    oprot.trans.flush()
8614
 
9242 kshitij.so 8615
  def process_getSnapdealItems(self, seqid, iprot, oprot):
8616
    args = getSnapdealItems_args()
8617
    args.read(iprot)
8618
    iprot.readMessageEnd()
8619
    result = getSnapdealItems_result()
8620
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
8621
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
8622
    result.write(oprot)
8623
    oprot.writeMessageEnd()
8624
    oprot.trans.flush()
8739 vikram.rag 8625
 
9242 kshitij.so 8626
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
8627
    args = searchSnapdealItems_args()
8628
    args.read(iprot)
8629
    iprot.readMessageEnd()
8630
    result = searchSnapdealItems_result()
8631
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
8632
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
8633
    result.write(oprot)
8634
    oprot.writeMessageEnd()
8635
    oprot.trans.flush()
8636
 
8637
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
8638
    args = getCountForSnapdealItems_args()
8639
    args.read(iprot)
8640
    iprot.readMessageEnd()
8641
    result = getCountForSnapdealItems_result()
8642
    result.success = self._handler.getCountForSnapdealItems()
8643
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
8644
    result.write(oprot)
8645
    oprot.writeMessageEnd()
8646
    oprot.trans.flush()
8647
 
8648
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
8649
    args = getSnapdealSearchResultCount_args()
8650
    args.read(iprot)
8651
    iprot.readMessageEnd()
8652
    result = getSnapdealSearchResultCount_result()
8653
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
8654
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
8655
    result.write(oprot)
8656
    oprot.writeMessageEnd()
8657
    oprot.trans.flush()
8658
 
9299 kshitij.so 8659
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
8660
    args = getPrefferedInsurerForItem_args()
8661
    args.read(iprot)
8662
    iprot.readMessageEnd()
8663
    result = getPrefferedInsurerForItem_result()
8664
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
8665
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
8666
    result.write(oprot)
8667
    oprot.writeMessageEnd()
8668
    oprot.trans.flush()
9242 kshitij.so 8669
 
9456 vikram.rag 8670
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
8671
    args = getSnapdealItembySkuAtSnapdeal_args()
8672
    args.read(iprot)
8673
    iprot.readMessageEnd()
8674
    result = getSnapdealItembySkuAtSnapdeal_result()
8675
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
8676
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
8677
    result.write(oprot)
8678
    oprot.writeMessageEnd()
8679
    oprot.trans.flush()
9299 kshitij.so 8680
 
9621 manish.sha 8681
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
8682
    args = getProductFeedSubmit_args()
8683
    args.read(iprot)
8684
    iprot.readMessageEnd()
8685
    result = getProductFeedSubmit_result()
8686
    try:
8687
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
8688
    except CatalogServiceException, cex:
8689
      result.cex = cex
8690
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
8691
    result.write(oprot)
8692
    oprot.writeMessageEnd()
8693
    oprot.trans.flush()
9456 vikram.rag 8694
 
9621 manish.sha 8695
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
8696
    args = addProductFeedSubmit_args()
8697
    args.read(iprot)
8698
    iprot.readMessageEnd()
8699
    result = addProductFeedSubmit_result()
8700
    try:
8701
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
8702
    except CatalogServiceException, cex:
8703
      result.cex = cex
8704
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
8705
    result.write(oprot)
8706
    oprot.writeMessageEnd()
8707
    oprot.trans.flush()
8708
 
8709
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
8710
    args = updateProductFeedSubmit_args()
8711
    args.read(iprot)
8712
    iprot.readMessageEnd()
8713
    result = updateProductFeedSubmit_result()
8714
    try:
8715
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
8716
    except CatalogServiceException, cex:
8717
      result.cex = cex
8718
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
8719
    result.write(oprot)
8720
    oprot.writeMessageEnd()
8721
    oprot.trans.flush()
8722
 
8723
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
8724
    args = deleteProductFeedSubmit_args()
8725
    args.read(iprot)
8726
    iprot.readMessageEnd()
8727
    result = deleteProductFeedSubmit_result()
8728
    try:
8729
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
8730
    except CatalogServiceException, cex:
8731
      result.cex = cex
8732
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
8733
    result.write(oprot)
8734
    oprot.writeMessageEnd()
8735
    oprot.trans.flush()
8736
 
8737
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
8738
    args = getAllProductFeedSubmit_args()
8739
    args.read(iprot)
8740
    iprot.readMessageEnd()
8741
    result = getAllProductFeedSubmit_result()
8742
    try:
8743
      result.success = self._handler.getAllProductFeedSubmit()
8744
    except CatalogServiceException, cex:
8745
      result.cex = cex
8746
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
8747
    result.write(oprot)
8748
    oprot.writeMessageEnd()
8749
    oprot.trans.flush()
8750
 
9724 kshitij.so 8751
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
8752
    args = getMarketplacedetailsForItem_args()
8753
    args.read(iprot)
8754
    iprot.readMessageEnd()
8755
    result = getMarketplacedetailsForItem_result()
8756
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
8757
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
8758
    result.write(oprot)
8759
    oprot.writeMessageEnd()
8760
    oprot.trans.flush()
9621 manish.sha 8761
 
9724 kshitij.so 8762
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
8763
    args = updateMarketplaceAttributesForItem_args()
8764
    args.read(iprot)
8765
    iprot.readMessageEnd()
8766
    result = updateMarketplaceAttributesForItem_result()
8767
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
8768
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
8769
    result.write(oprot)
8770
    oprot.writeMessageEnd()
8771
    oprot.trans.flush()
8772
 
9779 kshitij.so 8773
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
8774
    args = getCostingForMarketplace_args()
8775
    args.read(iprot)
8776
    iprot.readMessageEnd()
8777
    result = getCostingForMarketplace_result()
8778
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
8779
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
8780
    result.write(oprot)
8781
    oprot.writeMessageEnd()
8782
    oprot.trans.flush()
8783
 
9776 vikram.rag 8784
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
8785
    args = getMarketPlaceItemsForPriceUpdate_args()
8786
    args.read(iprot)
8787
    iprot.readMessageEnd()
8788
    result = getMarketPlaceItemsForPriceUpdate_result()
8789
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
8790
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
8791
    result.write(oprot)
8792
    oprot.writeMessageEnd()
8793
    oprot.trans.flush()
9724 kshitij.so 8794
 
9776 vikram.rag 8795
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
8796
    args = updateMarketPlacePriceUpdateStatus_args()
8797
    args.read(iprot)
8798
    iprot.readMessageEnd()
8799
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 8800
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 8801
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
8802
    result.write(oprot)
8803
    oprot.writeMessageEnd()
8804
    oprot.trans.flush()
8805
 
9861 rajveer 8806
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
8807
    args = updateItemHoldInventory_args()
8808
    args.read(iprot)
8809
    iprot.readMessageEnd()
8810
    result = updateItemHoldInventory_result()
8811
    self._handler.updateItemHoldInventory(args.itemHoldMap)
8812
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
8813
    result.write(oprot)
8814
    oprot.writeMessageEnd()
8815
    oprot.trans.flush()
9776 vikram.rag 8816
 
9895 vikram.rag 8817
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
8818
    args = updateNlcAtMarketplaces_args()
8819
    args.read(iprot)
8820
    iprot.readMessageEnd()
8821
    result = updateNlcAtMarketplaces_result()
8822
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
8823
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
8824
    result.write(oprot)
8825
    oprot.writeMessageEnd()
8826
    oprot.trans.flush()
9861 rajveer 8827
 
9945 vikram.rag 8828
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
8829
    args = getAllFlipkartItems_args()
8830
    args.read(iprot)
8831
    iprot.readMessageEnd()
8832
    result = getAllFlipkartItems_result()
8833
    result.success = self._handler.getAllFlipkartItems()
8834
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
8835
    result.write(oprot)
8836
    oprot.writeMessageEnd()
8837
    oprot.trans.flush()
9895 vikram.rag 8838
 
10097 kshitij.so 8839
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
8840
    args = addOrUpdateFlipkartItem_args()
8841
    args.read(iprot)
8842
    iprot.readMessageEnd()
8843
    result = addOrUpdateFlipkartItem_result()
8844
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
8845
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
8846
    result.write(oprot)
8847
    oprot.writeMessageEnd()
8848
    oprot.trans.flush()
9945 vikram.rag 8849
 
10097 kshitij.so 8850
  def process_getFlipkartItem(self, seqid, iprot, oprot):
8851
    args = getFlipkartItem_args()
8852
    args.read(iprot)
8853
    iprot.readMessageEnd()
8854
    result = getFlipkartItem_result()
8855
    result.success = self._handler.getFlipkartItem(args.item_id)
8856
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
8857
    result.write(oprot)
8858
    oprot.writeMessageEnd()
8859
    oprot.trans.flush()
8860
 
8861
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
8862
    args = getFlipkartItemDetails_args()
8863
    args.read(iprot)
8864
    iprot.readMessageEnd()
8865
    result = getFlipkartItemDetails_result()
8866
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
8867
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
8868
    result.write(oprot)
8869
    oprot.writeMessageEnd()
8870
    oprot.trans.flush()
8871
 
8872
  def process_getFlipkartItems(self, seqid, iprot, oprot):
8873
    args = getFlipkartItems_args()
8874
    args.read(iprot)
8875
    iprot.readMessageEnd()
8876
    result = getFlipkartItems_result()
8877
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
8878
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
8879
    result.write(oprot)
8880
    oprot.writeMessageEnd()
8881
    oprot.trans.flush()
8882
 
8883
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
8884
    args = searchFlipkartItems_args()
8885
    args.read(iprot)
8886
    iprot.readMessageEnd()
8887
    result = searchFlipkartItems_result()
8888
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
8889
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
8890
    result.write(oprot)
8891
    oprot.writeMessageEnd()
8892
    oprot.trans.flush()
8893
 
8894
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
8895
    args = getCountForFlipkartItems_args()
8896
    args.read(iprot)
8897
    iprot.readMessageEnd()
8898
    result = getCountForFlipkartItems_result()
8899
    result.success = self._handler.getCountForFlipkartItems()
8900
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
8901
    result.write(oprot)
8902
    oprot.writeMessageEnd()
8903
    oprot.trans.flush()
8904
 
8905
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
8906
    args = getFlipkartSearchResultCount_args()
8907
    args.read(iprot)
8908
    iprot.readMessageEnd()
8909
    result = getFlipkartSearchResultCount_result()
8910
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
8911
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
8912
    result.write(oprot)
8913
    oprot.writeMessageEnd()
8914
    oprot.trans.flush()
8915
 
8916
  def process_getAllFkItems(self, seqid, iprot, oprot):
8917
    args = getAllFkItems_args()
8918
    args.read(iprot)
8919
    iprot.readMessageEnd()
8920
    result = getAllFkItems_result()
8921
    result.success = self._handler.getAllFkItems()
8922
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
8923
    result.write(oprot)
8924
    oprot.writeMessageEnd()
8925
    oprot.trans.flush()
8926
 
10140 vikram.rag 8927
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
8928
    args = getFlipkartItemBySkyAtFlipkart_args()
8929
    args.read(iprot)
8930
    iprot.readMessageEnd()
8931
    result = getFlipkartItemBySkyAtFlipkart_result()
8932
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
8933
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
8934
    result.write(oprot)
8935
    oprot.writeMessageEnd()
8936
    oprot.trans.flush()
10097 kshitij.so 8937
 
11015 kshitij.so 8938
  def process_getMarketplaceHistory(self, seqid, iprot, oprot):
8939
    args = getMarketplaceHistory_args()
8940
    args.read(iprot)
8941
    iprot.readMessageEnd()
8942
    result = getMarketplaceHistory_result()
8943
    result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)
8944
    oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)
8945
    result.write(oprot)
8946
    oprot.writeMessageEnd()
8947
    oprot.trans.flush()
8948
 
10909 vikram.rag 8949
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
8950
    args = getAllFbbListedItems_args()
8951
    args.read(iprot)
8952
    iprot.readMessageEnd()
8953
    result = getAllFbbListedItems_result()
8954
    result.success = self._handler.getAllFbbListedItems()
8955
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
8956
    result.write(oprot)
8957
    oprot.writeMessageEnd()
8958
    oprot.trans.flush()
10140 vikram.rag 8959
 
10924 vikram.rag 8960
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
8961
    args = getAllFbbPricingItems_args()
8962
    args.read(iprot)
8963
    iprot.readMessageEnd()
8964
    result = getAllFbbPricingItems_result()
8965
    result.success = self._handler.getAllFbbPricingItems()
8966
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
8967
    result.write(oprot)
8968
    oprot.writeMessageEnd()
8969
    oprot.trans.flush()
10909 vikram.rag 8970
 
11015 kshitij.so 8971
  def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):
8972
    args = getCountForMarketplaceHistory_args()
8973
    args.read(iprot)
8974
    iprot.readMessageEnd()
8975
    result = getCountForMarketplaceHistory_result()
8976
    result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)
8977
    oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)
8978
    result.write(oprot)
8979
    oprot.writeMessageEnd()
8980
    oprot.trans.flush()
10924 vikram.rag 8981
 
11015 kshitij.so 8982
  def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):
8983
    args = getMarketplaceHistoryByDate_args()
8984
    args.read(iprot)
8985
    iprot.readMessageEnd()
8986
    result = getMarketplaceHistoryByDate_result()
8987
    result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)
8988
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8989
    result.write(oprot)
8990
    oprot.writeMessageEnd()
8991
    oprot.trans.flush()
8992
 
11531 vikram.rag 8993
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
8994
    args = getPrivateDealDetails_args()
8995
    args.read(iprot)
8996
    iprot.readMessageEnd()
8997
    result = getPrivateDealDetails_result()
8998
    result.success = self._handler.getPrivateDealDetails(args.item_id)
8999
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
9000
    result.write(oprot)
9001
    oprot.writeMessageEnd()
9002
    oprot.trans.flush()
11015 kshitij.so 9003
 
11531 vikram.rag 9004
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
9005
    args = getPrivateDealItems_args()
9006
    args.read(iprot)
9007
    iprot.readMessageEnd()
9008
    result = getPrivateDealItems_result()
9009
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
9010
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
9011
    result.write(oprot)
9012
    oprot.writeMessageEnd()
9013
    oprot.trans.flush()
9014
 
11592 amit.gupta 9015
  def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):
9016
    args = getAllActivePrivateDeals_args()
9017
    args.read(iprot)
9018
    iprot.readMessageEnd()
9019
    result = getAllActivePrivateDeals_result()
11653 amit.gupta 9020
    result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)
11592 amit.gupta 9021
    oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)
9022
    result.write(oprot)
9023
    oprot.writeMessageEnd()
9024
    oprot.trans.flush()
9025
 
11531 vikram.rag 9026
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
9027
    args = addOrUpdatePrivateDeal_args()
9028
    args.read(iprot)
9029
    iprot.readMessageEnd()
9030
    result = addOrUpdatePrivateDeal_result()
9031
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
9032
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
9033
    result.write(oprot)
9034
    oprot.writeMessageEnd()
9035
    oprot.trans.flush()
9036
 
11635 vikram.rag 9037
  def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):
9038
    args = getPrivateDealsCatalogIds_args()
9039
    args.read(iprot)
9040
    iprot.readMessageEnd()
9041
    result = getPrivateDealsCatalogIds_result()
9042
    try:
9043
      result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)
9044
    except CatalogServiceException, cex:
9045
      result.cex = cex
9046
    oprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)
9047
    result.write(oprot)
9048
    oprot.writeMessageEnd()
9049
    oprot.trans.flush()
11531 vikram.rag 9050
 
11645 amit.gupta 9051
  def process_getPrivateDealsCount(self, seqid, iprot, oprot):
9052
    args = getPrivateDealsCount_args()
9053
    args.read(iprot)
9054
    iprot.readMessageEnd()
9055
    result = getPrivateDealsCount_result()
9056
    result.success = self._handler.getPrivateDealsCount()
9057
    oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)
9058
    result.write(oprot)
9059
    oprot.writeMessageEnd()
9060
    oprot.trans.flush()
11635 vikram.rag 9061
 
11905 kshitij.so 9062
  def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):
9063
    args = getAmazonOutSyncItems_args()
9064
    args.read(iprot)
9065
    iprot.readMessageEnd()
9066
    result = getAmazonOutSyncItems_result()
9067
    result.success = self._handler.getAmazonOutSyncItems(args.item_id)
9068
    oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)
9069
    result.write(oprot)
9070
    oprot.writeMessageEnd()
9071
    oprot.trans.flush()
11645 amit.gupta 9072
 
11905 kshitij.so 9073
  def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):
9074
    args = getAllPrivateDealsComparison_args()
9075
    args.read(iprot)
9076
    iprot.readMessageEnd()
9077
    result = getAllPrivateDealsComparison_result()
9078
    result.success = self._handler.getAllPrivateDealsComparison()
9079
    oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)
9080
    result.write(oprot)
9081
    oprot.writeMessageEnd()
9082
    oprot.trans.flush()
9083
 
12133 kshitij.so 9084
  def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):
9085
    args = getAllSnapdealMarketplaceItem_args()
9086
    args.read(iprot)
9087
    iprot.readMessageEnd()
9088
    result = getAllSnapdealMarketplaceItem_result()
9089
    result.success = self._handler.getAllSnapdealMarketplaceItem()
9090
    oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)
9091
    result.write(oprot)
9092
    oprot.writeMessageEnd()
9093
    oprot.trans.flush()
11905 kshitij.so 9094
 
12133 kshitij.so 9095
  def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):
9096
    args = getAllFlipkartMarketplaceItem_args()
9097
    args.read(iprot)
9098
    iprot.readMessageEnd()
9099
    result = getAllFlipkartMarketplaceItem_result()
9100
    result.success = self._handler.getAllFlipkartMarketplaceItem()
9101
    oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)
9102
    result.write(oprot)
9103
    oprot.writeMessageEnd()
9104
    oprot.trans.flush()
9105
 
12243 kshitij.so 9106
  def process_addCompetitorScraping(self, seqid, iprot, oprot):
9107
    args = addCompetitorScraping_args()
9108
    args.read(iprot)
9109
    iprot.readMessageEnd()
9110
    result = addCompetitorScraping_result()
9111
    self._handler.addCompetitorScraping(args.competitorPricingMap)
9112
    oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)
9113
    result.write(oprot)
9114
    oprot.writeMessageEnd()
9115
    oprot.trans.flush()
12133 kshitij.so 9116
 
12243 kshitij.so 9117
  def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):
9118
    args = getPreviousCompetitorScraping_args()
9119
    args.read(iprot)
9120
    iprot.readMessageEnd()
9121
    result = getPreviousCompetitorScraping_result()
9122
    result.success = self._handler.getPreviousCompetitorScraping(args.delta)
9123
    oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)
9124
    result.write(oprot)
9125
    oprot.writeMessageEnd()
9126
    oprot.trans.flush()
9127
 
12256 kshitij.so 9128
  def process_getUploadResultById(self, seqid, iprot, oprot):
9129
    args = getUploadResultById_args()
9130
    args.read(iprot)
9131
    iprot.readMessageEnd()
9132
    result = getUploadResultById_result()
9133
    result.success = self._handler.getUploadResultById(args.uploadId)
9134
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
9135
    result.write(oprot)
9136
    oprot.writeMessageEnd()
9137
    oprot.trans.flush()
12243 kshitij.so 9138
 
12363 kshitij.so 9139
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
9140
    args = addAmazonPromotion_args()
9141
    args.read(iprot)
9142
    iprot.readMessageEnd()
9143
    result = addAmazonPromotion_result()
12947 kshitij.so 9144
    try:
9145
      result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
9146
    except CatalogServiceException, cex:
9147
      result.cex = cex
12363 kshitij.so 9148
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
9149
    result.write(oprot)
9150
    oprot.writeMessageEnd()
9151
    oprot.trans.flush()
12256 kshitij.so 9152
 
12363 kshitij.so 9153
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
9154
    args = getAmazonPromotion_args()
9155
    args.read(iprot)
9156
    iprot.readMessageEnd()
9157
    result = getAmazonPromotion_result()
9158
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
9159
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
9160
    result.write(oprot)
9161
    oprot.writeMessageEnd()
9162
    oprot.trans.flush()
9163
 
9164
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
9165
    args = updateAmazonPromotion_args()
9166
    args.read(iprot)
9167
    iprot.readMessageEnd()
9168
    result = updateAmazonPromotion_result()
9169
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
9170
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
9171
    result.write(oprot)
9172
    oprot.writeMessageEnd()
9173
    oprot.trans.flush()
9174
 
12567 amit.gupta 9175
  def process_markPartiallyActive(self, seqid, iprot, oprot):
9176
    args = markPartiallyActive_args()
9177
    args.read(iprot)
9178
    iprot.readMessageEnd()
9179
    result = markPartiallyActive_result()
9180
    result.success = self._handler.markPartiallyActive(args.itemId, args.categoryId)
9181
    oprot.writeMessageBegin("markPartiallyActive", TMessageType.REPLY, seqid)
9182
    result.write(oprot)
9183
    oprot.writeMessageEnd()
9184
    oprot.trans.flush()
12363 kshitij.so 9185
 
12567 amit.gupta 9186
  def process_updateItemStateVat(self, seqid, iprot, oprot):
9187
    args = updateItemStateVat_args()
9188
    args.read(iprot)
9189
    iprot.readMessageEnd()
9190
    result = updateItemStateVat_result()
9191
    result.success = self._handler.updateItemStateVat(args.itemId, args.statevat)
9192
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9193
    result.write(oprot)
9194
    oprot.writeMessageEnd()
9195
    oprot.trans.flush()
9196
 
12620 amit.gupta 9197
  def process_getExAffiliateItemInfo(self, seqid, iprot, oprot):
9198
    args = getExAffiliateItemInfo_args()
9199
    args.read(iprot)
9200
    iprot.readMessageEnd()
9201
    result = getExAffiliateItemInfo_result()
9202
    result.success = self._handler.getExAffiliateItemInfo()
9203
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
9204
    result.write(oprot)
9205
    oprot.writeMessageEnd()
9206
    oprot.trans.flush()
12567 amit.gupta 9207
 
12888 kshitij.so 9208
  def process_getAllItemstoListOnFbg(self, seqid, iprot, oprot):
9209
    args = getAllItemstoListOnFbg_args()
9210
    args.read(iprot)
9211
    iprot.readMessageEnd()
9212
    result = getAllItemstoListOnFbg_result()
9213
    result.success = self._handler.getAllItemstoListOnFbg()
9214
    oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)
9215
    result.write(oprot)
9216
    oprot.writeMessageEnd()
9217
    oprot.trans.flush()
12620 amit.gupta 9218
 
12892 kshitij.so 9219
  def process_getAllFbgListedItems(self, seqid, iprot, oprot):
9220
    args = getAllFbgListedItems_args()
9221
    args.read(iprot)
9222
    iprot.readMessageEnd()
9223
    result = getAllFbgListedItems_result()
9224
    result.success = self._handler.getAllFbgListedItems()
9225
    oprot.writeMessageBegin("getAllFbgListedItems", TMessageType.REPLY, seqid)
9226
    result.write(oprot)
9227
    oprot.writeMessageEnd()
9228
    oprot.trans.flush()
12888 kshitij.so 9229
 
13136 amit.gupta 9230
  def process_checkServices(self, seqid, iprot, oprot):
9231
    args = checkServices_args()
9232
    args.read(iprot)
9233
    iprot.readMessageEnd()
9234
    result = checkServices_result()
9235
    try:
9236
      result.success = self._handler.checkServices(args.lines)
9237
    except CatalogServiceException, cex:
9238
      result.cex = cex
9239
    oprot.writeMessageBegin("checkServices", TMessageType.REPLY, seqid)
9240
    result.write(oprot)
9241
    oprot.writeMessageEnd()
9242
    oprot.trans.flush()
12892 kshitij.so 9243
 
13136 amit.gupta 9244
 
5944 mandeep.dh 9245
# HELPER FUNCTIONS AND STRUCTURES
9246
 
9247
class addItem_args:
9248
  """
9249
  Attributes:
9250
   - item
9251
  """
9252
 
9253
  thrift_spec = (
9254
    None, # 0
9255
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9256
  )
9257
 
9258
  def __init__(self, item=None,):
9259
    self.item = item
9260
 
9261
  def read(self, iprot):
9262
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9263
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9264
      return
9265
    iprot.readStructBegin()
9266
    while True:
9267
      (fname, ftype, fid) = iprot.readFieldBegin()
9268
      if ftype == TType.STOP:
9269
        break
9270
      if fid == 1:
9271
        if ftype == TType.STRUCT:
9272
          self.item = Item()
9273
          self.item.read(iprot)
9274
        else:
9275
          iprot.skip(ftype)
9276
      else:
9277
        iprot.skip(ftype)
9278
      iprot.readFieldEnd()
9279
    iprot.readStructEnd()
9280
 
9281
  def write(self, oprot):
9282
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9283
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9284
      return
9285
    oprot.writeStructBegin('addItem_args')
9286
    if self.item is not None:
9287
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9288
      self.item.write(oprot)
9289
      oprot.writeFieldEnd()
9290
    oprot.writeFieldStop()
9291
    oprot.writeStructEnd()
9292
 
9293
  def validate(self):
9294
    return
9295
 
9296
 
9297
  def __repr__(self):
9298
    L = ['%s=%r' % (key, value)
9299
      for key, value in self.__dict__.iteritems()]
9300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9301
 
9302
  def __eq__(self, other):
9303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9304
 
9305
  def __ne__(self, other):
9306
    return not (self == other)
9307
 
9308
class addItem_result:
9309
  """
9310
  Attributes:
9311
   - success
9312
   - cex
9313
  """
9314
 
9315
  thrift_spec = (
9316
    (0, TType.I64, 'success', None, None, ), # 0
9317
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9318
  )
9319
 
9320
  def __init__(self, success=None, cex=None,):
9321
    self.success = success
9322
    self.cex = cex
9323
 
9324
  def read(self, iprot):
9325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9327
      return
9328
    iprot.readStructBegin()
9329
    while True:
9330
      (fname, ftype, fid) = iprot.readFieldBegin()
9331
      if ftype == TType.STOP:
9332
        break
9333
      if fid == 0:
9334
        if ftype == TType.I64:
9335
          self.success = iprot.readI64();
9336
        else:
9337
          iprot.skip(ftype)
9338
      elif fid == 1:
9339
        if ftype == TType.STRUCT:
9340
          self.cex = CatalogServiceException()
9341
          self.cex.read(iprot)
9342
        else:
9343
          iprot.skip(ftype)
9344
      else:
9345
        iprot.skip(ftype)
9346
      iprot.readFieldEnd()
9347
    iprot.readStructEnd()
9348
 
9349
  def write(self, oprot):
9350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9352
      return
9353
    oprot.writeStructBegin('addItem_result')
9354
    if self.success is not None:
9355
      oprot.writeFieldBegin('success', TType.I64, 0)
9356
      oprot.writeI64(self.success)
9357
      oprot.writeFieldEnd()
9358
    if self.cex is not None:
9359
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9360
      self.cex.write(oprot)
9361
      oprot.writeFieldEnd()
9362
    oprot.writeFieldStop()
9363
    oprot.writeStructEnd()
9364
 
9365
  def validate(self):
9366
    return
9367
 
9368
 
9369
  def __repr__(self):
9370
    L = ['%s=%r' % (key, value)
9371
      for key, value in self.__dict__.iteritems()]
9372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9373
 
9374
  def __eq__(self, other):
9375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9376
 
9377
  def __ne__(self, other):
9378
    return not (self == other)
9379
 
9380
class updateItem_args:
9381
  """
9382
  Attributes:
9383
   - item
9384
  """
9385
 
9386
  thrift_spec = (
9387
    None, # 0
9388
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9389
  )
9390
 
9391
  def __init__(self, item=None,):
9392
    self.item = item
9393
 
9394
  def read(self, iprot):
9395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9397
      return
9398
    iprot.readStructBegin()
9399
    while True:
9400
      (fname, ftype, fid) = iprot.readFieldBegin()
9401
      if ftype == TType.STOP:
9402
        break
9403
      if fid == 1:
9404
        if ftype == TType.STRUCT:
9405
          self.item = Item()
9406
          self.item.read(iprot)
9407
        else:
9408
          iprot.skip(ftype)
9409
      else:
9410
        iprot.skip(ftype)
9411
      iprot.readFieldEnd()
9412
    iprot.readStructEnd()
9413
 
9414
  def write(self, oprot):
9415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9417
      return
9418
    oprot.writeStructBegin('updateItem_args')
9419
    if self.item is not None:
9420
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9421
      self.item.write(oprot)
9422
      oprot.writeFieldEnd()
9423
    oprot.writeFieldStop()
9424
    oprot.writeStructEnd()
9425
 
9426
  def validate(self):
9427
    return
9428
 
9429
 
9430
  def __repr__(self):
9431
    L = ['%s=%r' % (key, value)
9432
      for key, value in self.__dict__.iteritems()]
9433
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9434
 
9435
  def __eq__(self, other):
9436
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9437
 
9438
  def __ne__(self, other):
9439
    return not (self == other)
9440
 
9441
class updateItem_result:
9442
  """
9443
  Attributes:
9444
   - success
9445
   - cex
9446
  """
9447
 
9448
  thrift_spec = (
9449
    (0, TType.I64, 'success', None, None, ), # 0
9450
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9451
  )
9452
 
9453
  def __init__(self, success=None, cex=None,):
9454
    self.success = success
9455
    self.cex = cex
9456
 
9457
  def read(self, iprot):
9458
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9459
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9460
      return
9461
    iprot.readStructBegin()
9462
    while True:
9463
      (fname, ftype, fid) = iprot.readFieldBegin()
9464
      if ftype == TType.STOP:
9465
        break
9466
      if fid == 0:
9467
        if ftype == TType.I64:
9468
          self.success = iprot.readI64();
9469
        else:
9470
          iprot.skip(ftype)
9471
      elif fid == 1:
9472
        if ftype == TType.STRUCT:
9473
          self.cex = CatalogServiceException()
9474
          self.cex.read(iprot)
9475
        else:
9476
          iprot.skip(ftype)
9477
      else:
9478
        iprot.skip(ftype)
9479
      iprot.readFieldEnd()
9480
    iprot.readStructEnd()
9481
 
9482
  def write(self, oprot):
9483
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9484
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9485
      return
9486
    oprot.writeStructBegin('updateItem_result')
9487
    if self.success is not None:
9488
      oprot.writeFieldBegin('success', TType.I64, 0)
9489
      oprot.writeI64(self.success)
9490
      oprot.writeFieldEnd()
9491
    if self.cex is not None:
9492
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9493
      self.cex.write(oprot)
9494
      oprot.writeFieldEnd()
9495
    oprot.writeFieldStop()
9496
    oprot.writeStructEnd()
9497
 
9498
  def validate(self):
9499
    return
9500
 
9501
 
9502
  def __repr__(self):
9503
    L = ['%s=%r' % (key, value)
9504
      for key, value in self.__dict__.iteritems()]
9505
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9506
 
9507
  def __eq__(self, other):
9508
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9509
 
9510
  def __ne__(self, other):
9511
    return not (self == other)
9512
 
9513
class isActive_args:
9514
  """
9515
  Attributes:
9516
   - itemId
9517
  """
9518
 
9519
  thrift_spec = (
9520
    None, # 0
9521
    (1, TType.I64, 'itemId', None, None, ), # 1
9522
  )
9523
 
9524
  def __init__(self, itemId=None,):
9525
    self.itemId = itemId
9526
 
9527
  def read(self, iprot):
9528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9530
      return
9531
    iprot.readStructBegin()
9532
    while True:
9533
      (fname, ftype, fid) = iprot.readFieldBegin()
9534
      if ftype == TType.STOP:
9535
        break
9536
      if fid == 1:
9537
        if ftype == TType.I64:
9538
          self.itemId = iprot.readI64();
9539
        else:
9540
          iprot.skip(ftype)
9541
      else:
9542
        iprot.skip(ftype)
9543
      iprot.readFieldEnd()
9544
    iprot.readStructEnd()
9545
 
9546
  def write(self, oprot):
9547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9549
      return
9550
    oprot.writeStructBegin('isActive_args')
9551
    if self.itemId is not None:
9552
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9553
      oprot.writeI64(self.itemId)
9554
      oprot.writeFieldEnd()
9555
    oprot.writeFieldStop()
9556
    oprot.writeStructEnd()
9557
 
9558
  def validate(self):
9559
    return
9560
 
9561
 
9562
  def __repr__(self):
9563
    L = ['%s=%r' % (key, value)
9564
      for key, value in self.__dict__.iteritems()]
9565
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9566
 
9567
  def __eq__(self, other):
9568
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9569
 
9570
  def __ne__(self, other):
9571
    return not (self == other)
9572
 
9573
class isActive_result:
9574
  """
9575
  Attributes:
9576
   - success
9577
   - isex
9578
  """
9579
 
9580
  thrift_spec = (
9581
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
9582
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9583
  )
9584
 
9585
  def __init__(self, success=None, isex=None,):
9586
    self.success = success
9587
    self.isex = isex
9588
 
9589
  def read(self, iprot):
9590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9592
      return
9593
    iprot.readStructBegin()
9594
    while True:
9595
      (fname, ftype, fid) = iprot.readFieldBegin()
9596
      if ftype == TType.STOP:
9597
        break
9598
      if fid == 0:
9599
        if ftype == TType.STRUCT:
9600
          self.success = ItemShippingInfo()
9601
          self.success.read(iprot)
9602
        else:
9603
          iprot.skip(ftype)
9604
      elif fid == 1:
9605
        if ftype == TType.STRUCT:
9606
          self.isex = CatalogServiceException()
9607
          self.isex.read(iprot)
9608
        else:
9609
          iprot.skip(ftype)
9610
      else:
9611
        iprot.skip(ftype)
9612
      iprot.readFieldEnd()
9613
    iprot.readStructEnd()
9614
 
9615
  def write(self, oprot):
9616
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9617
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9618
      return
9619
    oprot.writeStructBegin('isActive_result')
9620
    if self.success is not None:
9621
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9622
      self.success.write(oprot)
9623
      oprot.writeFieldEnd()
9624
    if self.isex is not None:
9625
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9626
      self.isex.write(oprot)
9627
      oprot.writeFieldEnd()
9628
    oprot.writeFieldStop()
9629
    oprot.writeStructEnd()
9630
 
9631
  def validate(self):
9632
    return
9633
 
9634
 
9635
  def __repr__(self):
9636
    L = ['%s=%r' % (key, value)
9637
      for key, value in self.__dict__.iteritems()]
9638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9639
 
9640
  def __eq__(self, other):
9641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9642
 
9643
  def __ne__(self, other):
9644
    return not (self == other)
9645
 
7438 amit.gupta 9646
class getItemsStatus_args:
9647
  """
9648
  Attributes:
9649
   - itemIds
9650
  """
9651
 
9652
  thrift_spec = (
9653
    None, # 0
9654
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
9655
  )
9656
 
9657
  def __init__(self, itemIds=None,):
9658
    self.itemIds = itemIds
9659
 
9660
  def read(self, iprot):
9661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9663
      return
9664
    iprot.readStructBegin()
9665
    while True:
9666
      (fname, ftype, fid) = iprot.readFieldBegin()
9667
      if ftype == TType.STOP:
9668
        break
9669
      if fid == 1:
9670
        if ftype == TType.LIST:
9671
          self.itemIds = []
8590 kshitij.so 9672
          (_etype33, _size30) = iprot.readListBegin()
9673
          for _i34 in xrange(_size30):
9674
            _elem35 = iprot.readI64();
9675
            self.itemIds.append(_elem35)
7438 amit.gupta 9676
          iprot.readListEnd()
9677
        else:
9678
          iprot.skip(ftype)
9679
      else:
9680
        iprot.skip(ftype)
9681
      iprot.readFieldEnd()
9682
    iprot.readStructEnd()
9683
 
9684
  def write(self, oprot):
9685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9687
      return
9688
    oprot.writeStructBegin('getItemsStatus_args')
9689
    if self.itemIds is not None:
9690
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
9691
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 9692
      for iter36 in self.itemIds:
9693
        oprot.writeI64(iter36)
7438 amit.gupta 9694
      oprot.writeListEnd()
9695
      oprot.writeFieldEnd()
9696
    oprot.writeFieldStop()
9697
    oprot.writeStructEnd()
9698
 
9699
  def validate(self):
9700
    return
9701
 
9702
 
9703
  def __repr__(self):
9704
    L = ['%s=%r' % (key, value)
9705
      for key, value in self.__dict__.iteritems()]
9706
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9707
 
9708
  def __eq__(self, other):
9709
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9710
 
9711
  def __ne__(self, other):
9712
    return not (self == other)
9713
 
9714
class getItemsStatus_result:
9715
  """
9716
  Attributes:
9717
   - success
9718
   - isex
9719
  """
9720
 
9721
  thrift_spec = (
9722
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
9723
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9724
  )
9725
 
9726
  def __init__(self, success=None, isex=None,):
9727
    self.success = success
9728
    self.isex = isex
9729
 
9730
  def read(self, iprot):
9731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9733
      return
9734
    iprot.readStructBegin()
9735
    while True:
9736
      (fname, ftype, fid) = iprot.readFieldBegin()
9737
      if ftype == TType.STOP:
9738
        break
9739
      if fid == 0:
9740
        if ftype == TType.MAP:
9741
          self.success = {}
8590 kshitij.so 9742
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
9743
          for _i41 in xrange(_size37):
9744
            _key42 = iprot.readI64();
9745
            _val43 = iprot.readBool();
9746
            self.success[_key42] = _val43
7438 amit.gupta 9747
          iprot.readMapEnd()
9748
        else:
9749
          iprot.skip(ftype)
9750
      elif fid == 1:
9751
        if ftype == TType.STRUCT:
9752
          self.isex = CatalogServiceException()
9753
          self.isex.read(iprot)
9754
        else:
9755
          iprot.skip(ftype)
9756
      else:
9757
        iprot.skip(ftype)
9758
      iprot.readFieldEnd()
9759
    iprot.readStructEnd()
9760
 
9761
  def write(self, oprot):
9762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9764
      return
9765
    oprot.writeStructBegin('getItemsStatus_result')
9766
    if self.success is not None:
9767
      oprot.writeFieldBegin('success', TType.MAP, 0)
9768
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 9769
      for kiter44,viter45 in self.success.items():
9770
        oprot.writeI64(kiter44)
9771
        oprot.writeBool(viter45)
7438 amit.gupta 9772
      oprot.writeMapEnd()
9773
      oprot.writeFieldEnd()
9774
    if self.isex is not None:
9775
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9776
      self.isex.write(oprot)
9777
      oprot.writeFieldEnd()
9778
    oprot.writeFieldStop()
9779
    oprot.writeStructEnd()
9780
 
9781
  def validate(self):
9782
    return
9783
 
9784
 
9785
  def __repr__(self):
9786
    L = ['%s=%r' % (key, value)
9787
      for key, value in self.__dict__.iteritems()]
9788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9789
 
9790
  def __eq__(self, other):
9791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9792
 
9793
  def __ne__(self, other):
9794
    return not (self == other)
9795
 
5944 mandeep.dh 9796
class getItemStatusDescription_args:
9797
  """
9798
  Attributes:
9799
   - itemId
9800
  """
9801
 
9802
  thrift_spec = (
9803
    None, # 0
9804
    (1, TType.I64, 'itemId', None, None, ), # 1
9805
  )
9806
 
9807
  def __init__(self, itemId=None,):
9808
    self.itemId = itemId
9809
 
9810
  def read(self, iprot):
9811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9813
      return
9814
    iprot.readStructBegin()
9815
    while True:
9816
      (fname, ftype, fid) = iprot.readFieldBegin()
9817
      if ftype == TType.STOP:
9818
        break
9819
      if fid == 1:
9820
        if ftype == TType.I64:
9821
          self.itemId = iprot.readI64();
9822
        else:
9823
          iprot.skip(ftype)
9824
      else:
9825
        iprot.skip(ftype)
9826
      iprot.readFieldEnd()
9827
    iprot.readStructEnd()
9828
 
9829
  def write(self, oprot):
9830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9832
      return
9833
    oprot.writeStructBegin('getItemStatusDescription_args')
9834
    if self.itemId is not None:
9835
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9836
      oprot.writeI64(self.itemId)
9837
      oprot.writeFieldEnd()
9838
    oprot.writeFieldStop()
9839
    oprot.writeStructEnd()
9840
 
9841
  def validate(self):
9842
    return
9843
 
9844
 
9845
  def __repr__(self):
9846
    L = ['%s=%r' % (key, value)
9847
      for key, value in self.__dict__.iteritems()]
9848
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9849
 
9850
  def __eq__(self, other):
9851
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9852
 
9853
  def __ne__(self, other):
9854
    return not (self == other)
9855
 
9856
class getItemStatusDescription_result:
9857
  """
9858
  Attributes:
9859
   - success
9860
   - isex
9861
  """
9862
 
9863
  thrift_spec = (
9864
    (0, TType.STRING, 'success', None, None, ), # 0
9865
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9866
  )
9867
 
9868
  def __init__(self, success=None, isex=None,):
9869
    self.success = success
9870
    self.isex = isex
9871
 
9872
  def read(self, iprot):
9873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9875
      return
9876
    iprot.readStructBegin()
9877
    while True:
9878
      (fname, ftype, fid) = iprot.readFieldBegin()
9879
      if ftype == TType.STOP:
9880
        break
9881
      if fid == 0:
9882
        if ftype == TType.STRING:
9883
          self.success = iprot.readString();
9884
        else:
9885
          iprot.skip(ftype)
9886
      elif fid == 1:
9887
        if ftype == TType.STRUCT:
9888
          self.isex = CatalogServiceException()
9889
          self.isex.read(iprot)
9890
        else:
9891
          iprot.skip(ftype)
9892
      else:
9893
        iprot.skip(ftype)
9894
      iprot.readFieldEnd()
9895
    iprot.readStructEnd()
9896
 
9897
  def write(self, oprot):
9898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9900
      return
9901
    oprot.writeStructBegin('getItemStatusDescription_result')
9902
    if self.success is not None:
9903
      oprot.writeFieldBegin('success', TType.STRING, 0)
9904
      oprot.writeString(self.success)
9905
      oprot.writeFieldEnd()
9906
    if self.isex is not None:
9907
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9908
      self.isex.write(oprot)
9909
      oprot.writeFieldEnd()
9910
    oprot.writeFieldStop()
9911
    oprot.writeStructEnd()
9912
 
9913
  def validate(self):
9914
    return
9915
 
9916
 
9917
  def __repr__(self):
9918
    L = ['%s=%r' % (key, value)
9919
      for key, value in self.__dict__.iteritems()]
9920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9921
 
9922
  def __eq__(self, other):
9923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9924
 
9925
  def __ne__(self, other):
9926
    return not (self == other)
9927
 
9928
class startItemOn_args:
9929
  """
9930
  Attributes:
9931
   - item_id
9932
   - timestamp
9933
  """
9934
 
9935
  thrift_spec = (
9936
    None, # 0
9937
    (1, TType.I64, 'item_id', None, None, ), # 1
9938
    (2, TType.I64, 'timestamp', None, None, ), # 2
9939
  )
9940
 
9941
  def __init__(self, item_id=None, timestamp=None,):
9942
    self.item_id = item_id
9943
    self.timestamp = timestamp
9944
 
9945
  def read(self, iprot):
9946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9948
      return
9949
    iprot.readStructBegin()
9950
    while True:
9951
      (fname, ftype, fid) = iprot.readFieldBegin()
9952
      if ftype == TType.STOP:
9953
        break
9954
      if fid == 1:
9955
        if ftype == TType.I64:
9956
          self.item_id = iprot.readI64();
9957
        else:
9958
          iprot.skip(ftype)
9959
      elif fid == 2:
9960
        if ftype == TType.I64:
9961
          self.timestamp = iprot.readI64();
9962
        else:
9963
          iprot.skip(ftype)
9964
      else:
9965
        iprot.skip(ftype)
9966
      iprot.readFieldEnd()
9967
    iprot.readStructEnd()
9968
 
9969
  def write(self, oprot):
9970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9972
      return
9973
    oprot.writeStructBegin('startItemOn_args')
9974
    if self.item_id is not None:
9975
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9976
      oprot.writeI64(self.item_id)
9977
      oprot.writeFieldEnd()
9978
    if self.timestamp is not None:
9979
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9980
      oprot.writeI64(self.timestamp)
9981
      oprot.writeFieldEnd()
9982
    oprot.writeFieldStop()
9983
    oprot.writeStructEnd()
9984
 
9985
  def validate(self):
9986
    return
9987
 
9988
 
9989
  def __repr__(self):
9990
    L = ['%s=%r' % (key, value)
9991
      for key, value in self.__dict__.iteritems()]
9992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9993
 
9994
  def __eq__(self, other):
9995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9996
 
9997
  def __ne__(self, other):
9998
    return not (self == other)
9999
 
10000
class startItemOn_result:
10001
  """
10002
  Attributes:
10003
   - cex
10004
  """
10005
 
10006
  thrift_spec = (
10007
    None, # 0
10008
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10009
  )
10010
 
10011
  def __init__(self, cex=None,):
10012
    self.cex = cex
10013
 
10014
  def read(self, iprot):
10015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10017
      return
10018
    iprot.readStructBegin()
10019
    while True:
10020
      (fname, ftype, fid) = iprot.readFieldBegin()
10021
      if ftype == TType.STOP:
10022
        break
10023
      if fid == 1:
10024
        if ftype == TType.STRUCT:
10025
          self.cex = CatalogServiceException()
10026
          self.cex.read(iprot)
10027
        else:
10028
          iprot.skip(ftype)
10029
      else:
10030
        iprot.skip(ftype)
10031
      iprot.readFieldEnd()
10032
    iprot.readStructEnd()
10033
 
10034
  def write(self, oprot):
10035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10037
      return
10038
    oprot.writeStructBegin('startItemOn_result')
10039
    if self.cex is not None:
10040
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10041
      self.cex.write(oprot)
10042
      oprot.writeFieldEnd()
10043
    oprot.writeFieldStop()
10044
    oprot.writeStructEnd()
10045
 
10046
  def validate(self):
10047
    return
10048
 
10049
 
10050
  def __repr__(self):
10051
    L = ['%s=%r' % (key, value)
10052
      for key, value in self.__dict__.iteritems()]
10053
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10054
 
10055
  def __eq__(self, other):
10056
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10057
 
10058
  def __ne__(self, other):
10059
    return not (self == other)
10060
 
10061
class retireItemOn_args:
10062
  """
10063
  Attributes:
10064
   - item_id
10065
   - timestamp
10066
  """
10067
 
10068
  thrift_spec = (
10069
    None, # 0
10070
    (1, TType.I64, 'item_id', None, None, ), # 1
10071
    (2, TType.I64, 'timestamp', None, None, ), # 2
10072
  )
10073
 
10074
  def __init__(self, item_id=None, timestamp=None,):
10075
    self.item_id = item_id
10076
    self.timestamp = timestamp
10077
 
10078
  def read(self, iprot):
10079
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10080
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10081
      return
10082
    iprot.readStructBegin()
10083
    while True:
10084
      (fname, ftype, fid) = iprot.readFieldBegin()
10085
      if ftype == TType.STOP:
10086
        break
10087
      if fid == 1:
10088
        if ftype == TType.I64:
10089
          self.item_id = iprot.readI64();
10090
        else:
10091
          iprot.skip(ftype)
10092
      elif fid == 2:
10093
        if ftype == TType.I64:
10094
          self.timestamp = iprot.readI64();
10095
        else:
10096
          iprot.skip(ftype)
10097
      else:
10098
        iprot.skip(ftype)
10099
      iprot.readFieldEnd()
10100
    iprot.readStructEnd()
10101
 
10102
  def write(self, oprot):
10103
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10104
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10105
      return
10106
    oprot.writeStructBegin('retireItemOn_args')
10107
    if self.item_id is not None:
10108
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10109
      oprot.writeI64(self.item_id)
10110
      oprot.writeFieldEnd()
10111
    if self.timestamp is not None:
10112
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10113
      oprot.writeI64(self.timestamp)
10114
      oprot.writeFieldEnd()
10115
    oprot.writeFieldStop()
10116
    oprot.writeStructEnd()
10117
 
10118
  def validate(self):
10119
    return
10120
 
10121
 
10122
  def __repr__(self):
10123
    L = ['%s=%r' % (key, value)
10124
      for key, value in self.__dict__.iteritems()]
10125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10126
 
10127
  def __eq__(self, other):
10128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10129
 
10130
  def __ne__(self, other):
10131
    return not (self == other)
10132
 
10133
class retireItemOn_result:
10134
  """
10135
  Attributes:
10136
   - cex
10137
  """
10138
 
10139
  thrift_spec = (
10140
    None, # 0
10141
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10142
  )
10143
 
10144
  def __init__(self, cex=None,):
10145
    self.cex = cex
10146
 
10147
  def read(self, iprot):
10148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10150
      return
10151
    iprot.readStructBegin()
10152
    while True:
10153
      (fname, ftype, fid) = iprot.readFieldBegin()
10154
      if ftype == TType.STOP:
10155
        break
10156
      if fid == 1:
10157
        if ftype == TType.STRUCT:
10158
          self.cex = CatalogServiceException()
10159
          self.cex.read(iprot)
10160
        else:
10161
          iprot.skip(ftype)
10162
      else:
10163
        iprot.skip(ftype)
10164
      iprot.readFieldEnd()
10165
    iprot.readStructEnd()
10166
 
10167
  def write(self, oprot):
10168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10170
      return
10171
    oprot.writeStructBegin('retireItemOn_result')
10172
    if self.cex is not None:
10173
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10174
      self.cex.write(oprot)
10175
      oprot.writeFieldEnd()
10176
    oprot.writeFieldStop()
10177
    oprot.writeStructEnd()
10178
 
10179
  def validate(self):
10180
    return
10181
 
10182
 
10183
  def __repr__(self):
10184
    L = ['%s=%r' % (key, value)
10185
      for key, value in self.__dict__.iteritems()]
10186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10187
 
10188
  def __eq__(self, other):
10189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10190
 
10191
  def __ne__(self, other):
10192
    return not (self == other)
10193
 
10194
class changeItemStatus_args:
10195
  """
10196
  Attributes:
10197
   - item_id
10198
   - timestamp
10199
   - newstatus
10200
  """
10201
 
10202
  thrift_spec = (
10203
    None, # 0
10204
    (1, TType.I64, 'item_id', None, None, ), # 1
10205
    (2, TType.I64, 'timestamp', None, None, ), # 2
10206
    (3, TType.I32, 'newstatus', None, None, ), # 3
10207
  )
10208
 
10209
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
10210
    self.item_id = item_id
10211
    self.timestamp = timestamp
10212
    self.newstatus = newstatus
10213
 
10214
  def read(self, iprot):
10215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10217
      return
10218
    iprot.readStructBegin()
10219
    while True:
10220
      (fname, ftype, fid) = iprot.readFieldBegin()
10221
      if ftype == TType.STOP:
10222
        break
10223
      if fid == 1:
10224
        if ftype == TType.I64:
10225
          self.item_id = iprot.readI64();
10226
        else:
10227
          iprot.skip(ftype)
10228
      elif fid == 2:
10229
        if ftype == TType.I64:
10230
          self.timestamp = iprot.readI64();
10231
        else:
10232
          iprot.skip(ftype)
10233
      elif fid == 3:
10234
        if ftype == TType.I32:
10235
          self.newstatus = iprot.readI32();
10236
        else:
10237
          iprot.skip(ftype)
10238
      else:
10239
        iprot.skip(ftype)
10240
      iprot.readFieldEnd()
10241
    iprot.readStructEnd()
10242
 
10243
  def write(self, oprot):
10244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10246
      return
10247
    oprot.writeStructBegin('changeItemStatus_args')
10248
    if self.item_id is not None:
10249
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10250
      oprot.writeI64(self.item_id)
10251
      oprot.writeFieldEnd()
10252
    if self.timestamp is not None:
10253
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10254
      oprot.writeI64(self.timestamp)
10255
      oprot.writeFieldEnd()
10256
    if self.newstatus is not None:
10257
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
10258
      oprot.writeI32(self.newstatus)
10259
      oprot.writeFieldEnd()
10260
    oprot.writeFieldStop()
10261
    oprot.writeStructEnd()
10262
 
10263
  def validate(self):
10264
    return
10265
 
10266
 
10267
  def __repr__(self):
10268
    L = ['%s=%r' % (key, value)
10269
      for key, value in self.__dict__.iteritems()]
10270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10271
 
10272
  def __eq__(self, other):
10273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10274
 
10275
  def __ne__(self, other):
10276
    return not (self == other)
10277
 
10278
class changeItemStatus_result:
10279
  """
10280
  Attributes:
10281
   - cex
10282
  """
10283
 
10284
  thrift_spec = (
10285
    None, # 0
10286
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10287
  )
10288
 
10289
  def __init__(self, cex=None,):
10290
    self.cex = cex
10291
 
10292
  def read(self, iprot):
10293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10295
      return
10296
    iprot.readStructBegin()
10297
    while True:
10298
      (fname, ftype, fid) = iprot.readFieldBegin()
10299
      if ftype == TType.STOP:
10300
        break
10301
      if fid == 1:
10302
        if ftype == TType.STRUCT:
10303
          self.cex = CatalogServiceException()
10304
          self.cex.read(iprot)
10305
        else:
10306
          iprot.skip(ftype)
10307
      else:
10308
        iprot.skip(ftype)
10309
      iprot.readFieldEnd()
10310
    iprot.readStructEnd()
10311
 
10312
  def write(self, oprot):
10313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10315
      return
10316
    oprot.writeStructBegin('changeItemStatus_result')
10317
    if self.cex is not None:
10318
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10319
      self.cex.write(oprot)
10320
      oprot.writeFieldEnd()
10321
    oprot.writeFieldStop()
10322
    oprot.writeStructEnd()
10323
 
10324
  def validate(self):
10325
    return
10326
 
10327
 
10328
  def __repr__(self):
10329
    L = ['%s=%r' % (key, value)
10330
      for key, value in self.__dict__.iteritems()]
10331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10332
 
10333
  def __eq__(self, other):
10334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10335
 
10336
  def __ne__(self, other):
10337
    return not (self == other)
10338
 
10339
class getItem_args:
10340
  """
10341
  Attributes:
10342
   - item_id
10343
  """
10344
 
10345
  thrift_spec = (
10346
    None, # 0
10347
    (1, TType.I64, 'item_id', None, None, ), # 1
10348
  )
10349
 
10350
  def __init__(self, item_id=None,):
10351
    self.item_id = item_id
10352
 
10353
  def read(self, iprot):
10354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10356
      return
10357
    iprot.readStructBegin()
10358
    while True:
10359
      (fname, ftype, fid) = iprot.readFieldBegin()
10360
      if ftype == TType.STOP:
10361
        break
10362
      if fid == 1:
10363
        if ftype == TType.I64:
10364
          self.item_id = iprot.readI64();
10365
        else:
10366
          iprot.skip(ftype)
10367
      else:
10368
        iprot.skip(ftype)
10369
      iprot.readFieldEnd()
10370
    iprot.readStructEnd()
10371
 
10372
  def write(self, oprot):
10373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10375
      return
10376
    oprot.writeStructBegin('getItem_args')
10377
    if self.item_id is not None:
10378
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10379
      oprot.writeI64(self.item_id)
10380
      oprot.writeFieldEnd()
10381
    oprot.writeFieldStop()
10382
    oprot.writeStructEnd()
10383
 
10384
  def validate(self):
10385
    return
10386
 
10387
 
10388
  def __repr__(self):
10389
    L = ['%s=%r' % (key, value)
10390
      for key, value in self.__dict__.iteritems()]
10391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10392
 
10393
  def __eq__(self, other):
10394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10395
 
10396
  def __ne__(self, other):
10397
    return not (self == other)
10398
 
10399
class getItem_result:
10400
  """
10401
  Attributes:
10402
   - success
10403
   - cex
10404
  """
10405
 
10406
  thrift_spec = (
10407
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10408
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10409
  )
10410
 
10411
  def __init__(self, success=None, cex=None,):
10412
    self.success = success
10413
    self.cex = cex
10414
 
10415
  def read(self, iprot):
10416
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10417
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10418
      return
10419
    iprot.readStructBegin()
10420
    while True:
10421
      (fname, ftype, fid) = iprot.readFieldBegin()
10422
      if ftype == TType.STOP:
10423
        break
10424
      if fid == 0:
10425
        if ftype == TType.STRUCT:
10426
          self.success = Item()
10427
          self.success.read(iprot)
10428
        else:
10429
          iprot.skip(ftype)
10430
      elif fid == 1:
10431
        if ftype == TType.STRUCT:
10432
          self.cex = CatalogServiceException()
10433
          self.cex.read(iprot)
10434
        else:
10435
          iprot.skip(ftype)
10436
      else:
10437
        iprot.skip(ftype)
10438
      iprot.readFieldEnd()
10439
    iprot.readStructEnd()
10440
 
10441
  def write(self, oprot):
10442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10444
      return
10445
    oprot.writeStructBegin('getItem_result')
10446
    if self.success is not None:
10447
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10448
      self.success.write(oprot)
10449
      oprot.writeFieldEnd()
10450
    if self.cex is not None:
10451
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10452
      self.cex.write(oprot)
10453
      oprot.writeFieldEnd()
10454
    oprot.writeFieldStop()
10455
    oprot.writeStructEnd()
10456
 
10457
  def validate(self):
10458
    return
10459
 
10460
 
10461
  def __repr__(self):
10462
    L = ['%s=%r' % (key, value)
10463
      for key, value in self.__dict__.iteritems()]
10464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10465
 
10466
  def __eq__(self, other):
10467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10468
 
10469
  def __ne__(self, other):
10470
    return not (self == other)
10471
 
13493 amit.gupta 10472
class getItems_args:
10473
  """
10474
  Attributes:
10475
   - item_ids
10476
  """
10477
 
10478
  thrift_spec = (
10479
    None, # 0
10480
    (1, TType.LIST, 'item_ids', (TType.I64,None), None, ), # 1
10481
  )
10482
 
10483
  def __init__(self, item_ids=None,):
10484
    self.item_ids = item_ids
10485
 
10486
  def read(self, iprot):
10487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10489
      return
10490
    iprot.readStructBegin()
10491
    while True:
10492
      (fname, ftype, fid) = iprot.readFieldBegin()
10493
      if ftype == TType.STOP:
10494
        break
10495
      if fid == 1:
10496
        if ftype == TType.LIST:
10497
          self.item_ids = []
10498
          (_etype49, _size46) = iprot.readListBegin()
10499
          for _i50 in xrange(_size46):
10500
            _elem51 = iprot.readI64();
10501
            self.item_ids.append(_elem51)
10502
          iprot.readListEnd()
10503
        else:
10504
          iprot.skip(ftype)
10505
      else:
10506
        iprot.skip(ftype)
10507
      iprot.readFieldEnd()
10508
    iprot.readStructEnd()
10509
 
10510
  def write(self, oprot):
10511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10513
      return
10514
    oprot.writeStructBegin('getItems_args')
10515
    if self.item_ids is not None:
10516
      oprot.writeFieldBegin('item_ids', TType.LIST, 1)
10517
      oprot.writeListBegin(TType.I64, len(self.item_ids))
10518
      for iter52 in self.item_ids:
10519
        oprot.writeI64(iter52)
10520
      oprot.writeListEnd()
10521
      oprot.writeFieldEnd()
10522
    oprot.writeFieldStop()
10523
    oprot.writeStructEnd()
10524
 
10525
  def validate(self):
10526
    return
10527
 
10528
 
10529
  def __repr__(self):
10530
    L = ['%s=%r' % (key, value)
10531
      for key, value in self.__dict__.iteritems()]
10532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10533
 
10534
  def __eq__(self, other):
10535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10536
 
10537
  def __ne__(self, other):
10538
    return not (self == other)
10539
 
10540
class getItems_result:
10541
  """
10542
  Attributes:
10543
   - success
10544
   - cex
10545
  """
10546
 
10547
  thrift_spec = (
10548
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10549
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10550
  )
10551
 
10552
  def __init__(self, success=None, cex=None,):
10553
    self.success = success
10554
    self.cex = cex
10555
 
10556
  def read(self, iprot):
10557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10559
      return
10560
    iprot.readStructBegin()
10561
    while True:
10562
      (fname, ftype, fid) = iprot.readFieldBegin()
10563
      if ftype == TType.STOP:
10564
        break
10565
      if fid == 0:
10566
        if ftype == TType.MAP:
10567
          self.success = {}
10568
          (_ktype54, _vtype55, _size53 ) = iprot.readMapBegin() 
10569
          for _i57 in xrange(_size53):
10570
            _key58 = iprot.readI64();
10571
            _val59 = Item()
10572
            _val59.read(iprot)
10573
            self.success[_key58] = _val59
10574
          iprot.readMapEnd()
10575
        else:
10576
          iprot.skip(ftype)
10577
      elif fid == 1:
10578
        if ftype == TType.STRUCT:
10579
          self.cex = CatalogServiceException()
10580
          self.cex.read(iprot)
10581
        else:
10582
          iprot.skip(ftype)
10583
      else:
10584
        iprot.skip(ftype)
10585
      iprot.readFieldEnd()
10586
    iprot.readStructEnd()
10587
 
10588
  def write(self, oprot):
10589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10591
      return
10592
    oprot.writeStructBegin('getItems_result')
10593
    if self.success is not None:
10594
      oprot.writeFieldBegin('success', TType.MAP, 0)
10595
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
10596
      for kiter60,viter61 in self.success.items():
10597
        oprot.writeI64(kiter60)
10598
        viter61.write(oprot)
10599
      oprot.writeMapEnd()
10600
      oprot.writeFieldEnd()
10601
    if self.cex is not None:
10602
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10603
      self.cex.write(oprot)
10604
      oprot.writeFieldEnd()
10605
    oprot.writeFieldStop()
10606
    oprot.writeStructEnd()
10607
 
10608
  def validate(self):
10609
    return
10610
 
10611
 
10612
  def __repr__(self):
10613
    L = ['%s=%r' % (key, value)
10614
      for key, value in self.__dict__.iteritems()]
10615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10616
 
10617
  def __eq__(self, other):
10618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10619
 
10620
  def __ne__(self, other):
10621
    return not (self == other)
10622
 
5944 mandeep.dh 10623
class getItemsByCatalogId_args:
10624
  """
10625
  Attributes:
10626
   - catalog_item_id
10627
  """
10628
 
10629
  thrift_spec = (
10630
    None, # 0
10631
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10632
  )
10633
 
10634
  def __init__(self, catalog_item_id=None,):
10635
    self.catalog_item_id = catalog_item_id
10636
 
10637
  def read(self, iprot):
10638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10640
      return
10641
    iprot.readStructBegin()
10642
    while True:
10643
      (fname, ftype, fid) = iprot.readFieldBegin()
10644
      if ftype == TType.STOP:
10645
        break
10646
      if fid == 1:
10647
        if ftype == TType.I64:
10648
          self.catalog_item_id = iprot.readI64();
10649
        else:
10650
          iprot.skip(ftype)
10651
      else:
10652
        iprot.skip(ftype)
10653
      iprot.readFieldEnd()
10654
    iprot.readStructEnd()
10655
 
10656
  def write(self, oprot):
10657
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10658
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10659
      return
10660
    oprot.writeStructBegin('getItemsByCatalogId_args')
10661
    if self.catalog_item_id is not None:
10662
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10663
      oprot.writeI64(self.catalog_item_id)
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 getItemsByCatalogId_result:
10684
  """
10685
  Attributes:
10686
   - success
10687
   - cex
10688
  """
10689
 
10690
  thrift_spec = (
10691
    (0, TType.LIST, 'success', (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.LIST:
10710
          self.success = []
13493 amit.gupta 10711
          (_etype65, _size62) = iprot.readListBegin()
10712
          for _i66 in xrange(_size62):
10713
            _elem67 = Item()
10714
            _elem67.read(iprot)
10715
            self.success.append(_elem67)
5944 mandeep.dh 10716
          iprot.readListEnd()
10717
        else:
10718
          iprot.skip(ftype)
10719
      elif fid == 1:
10720
        if ftype == TType.STRUCT:
10721
          self.cex = CatalogServiceException()
10722
          self.cex.read(iprot)
10723
        else:
10724
          iprot.skip(ftype)
10725
      else:
10726
        iprot.skip(ftype)
10727
      iprot.readFieldEnd()
10728
    iprot.readStructEnd()
10729
 
10730
  def write(self, oprot):
10731
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10732
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10733
      return
10734
    oprot.writeStructBegin('getItemsByCatalogId_result')
10735
    if self.success is not None:
10736
      oprot.writeFieldBegin('success', TType.LIST, 0)
10737
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 10738
      for iter68 in self.success:
10739
        iter68.write(oprot)
5944 mandeep.dh 10740
      oprot.writeListEnd()
10741
      oprot.writeFieldEnd()
10742
    if self.cex is not None:
10743
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10744
      self.cex.write(oprot)
10745
      oprot.writeFieldEnd()
10746
    oprot.writeFieldStop()
10747
    oprot.writeStructEnd()
10748
 
10749
  def validate(self):
10750
    return
10751
 
10752
 
10753
  def __repr__(self):
10754
    L = ['%s=%r' % (key, value)
10755
      for key, value in self.__dict__.iteritems()]
10756
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10757
 
10758
  def __eq__(self, other):
10759
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10760
 
10761
  def __ne__(self, other):
10762
    return not (self == other)
10763
 
10764
class getValidItemsByCatalogId_args:
10765
  """
10766
  Attributes:
10767
   - catalog_item_id
10768
  """
10769
 
10770
  thrift_spec = (
10771
    None, # 0
10772
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10773
  )
10774
 
10775
  def __init__(self, catalog_item_id=None,):
10776
    self.catalog_item_id = catalog_item_id
10777
 
10778
  def read(self, iprot):
10779
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10780
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10781
      return
10782
    iprot.readStructBegin()
10783
    while True:
10784
      (fname, ftype, fid) = iprot.readFieldBegin()
10785
      if ftype == TType.STOP:
10786
        break
10787
      if fid == 1:
10788
        if ftype == TType.I64:
10789
          self.catalog_item_id = iprot.readI64();
10790
        else:
10791
          iprot.skip(ftype)
10792
      else:
10793
        iprot.skip(ftype)
10794
      iprot.readFieldEnd()
10795
    iprot.readStructEnd()
10796
 
10797
  def write(self, oprot):
10798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10800
      return
10801
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
10802
    if self.catalog_item_id is not None:
10803
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10804
      oprot.writeI64(self.catalog_item_id)
10805
      oprot.writeFieldEnd()
10806
    oprot.writeFieldStop()
10807
    oprot.writeStructEnd()
10808
 
10809
  def validate(self):
10810
    return
10811
 
10812
 
10813
  def __repr__(self):
10814
    L = ['%s=%r' % (key, value)
10815
      for key, value in self.__dict__.iteritems()]
10816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10817
 
10818
  def __eq__(self, other):
10819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10820
 
10821
  def __ne__(self, other):
10822
    return not (self == other)
10823
 
10824
class getValidItemsByCatalogId_result:
10825
  """
10826
  Attributes:
10827
   - success
10828
   - cex
10829
  """
10830
 
10831
  thrift_spec = (
10832
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10833
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10834
  )
10835
 
10836
  def __init__(self, success=None, cex=None,):
10837
    self.success = success
10838
    self.cex = cex
10839
 
10840
  def read(self, iprot):
10841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10843
      return
10844
    iprot.readStructBegin()
10845
    while True:
10846
      (fname, ftype, fid) = iprot.readFieldBegin()
10847
      if ftype == TType.STOP:
10848
        break
10849
      if fid == 0:
10850
        if ftype == TType.LIST:
10851
          self.success = []
13493 amit.gupta 10852
          (_etype72, _size69) = iprot.readListBegin()
10853
          for _i73 in xrange(_size69):
10854
            _elem74 = Item()
10855
            _elem74.read(iprot)
10856
            self.success.append(_elem74)
5944 mandeep.dh 10857
          iprot.readListEnd()
10858
        else:
10859
          iprot.skip(ftype)
10860
      elif fid == 1:
10861
        if ftype == TType.STRUCT:
10862
          self.cex = CatalogServiceException()
10863
          self.cex.read(iprot)
10864
        else:
10865
          iprot.skip(ftype)
10866
      else:
10867
        iprot.skip(ftype)
10868
      iprot.readFieldEnd()
10869
    iprot.readStructEnd()
10870
 
10871
  def write(self, oprot):
10872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10874
      return
10875
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
10876
    if self.success is not None:
10877
      oprot.writeFieldBegin('success', TType.LIST, 0)
10878
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 10879
      for iter75 in self.success:
10880
        iter75.write(oprot)
5944 mandeep.dh 10881
      oprot.writeListEnd()
10882
      oprot.writeFieldEnd()
10883
    if self.cex is not None:
10884
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10885
      self.cex.write(oprot)
10886
      oprot.writeFieldEnd()
10887
    oprot.writeFieldStop()
10888
    oprot.writeStructEnd()
10889
 
10890
  def validate(self):
10891
    return
10892
 
10893
 
10894
  def __repr__(self):
10895
    L = ['%s=%r' % (key, value)
10896
      for key, value in self.__dict__.iteritems()]
10897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10898
 
10899
  def __eq__(self, other):
10900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10901
 
10902
  def __ne__(self, other):
10903
    return not (self == other)
10904
 
10905
class getAllItems_args:
10906
  """
10907
  Attributes:
10908
   - isActive
10909
  """
10910
 
10911
  thrift_spec = (
10912
    None, # 0
10913
    (1, TType.BOOL, 'isActive', None, None, ), # 1
10914
  )
10915
 
10916
  def __init__(self, isActive=None,):
10917
    self.isActive = isActive
10918
 
10919
  def read(self, iprot):
10920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10922
      return
10923
    iprot.readStructBegin()
10924
    while True:
10925
      (fname, ftype, fid) = iprot.readFieldBegin()
10926
      if ftype == TType.STOP:
10927
        break
10928
      if fid == 1:
10929
        if ftype == TType.BOOL:
10930
          self.isActive = iprot.readBool();
10931
        else:
10932
          iprot.skip(ftype)
10933
      else:
10934
        iprot.skip(ftype)
10935
      iprot.readFieldEnd()
10936
    iprot.readStructEnd()
10937
 
10938
  def write(self, oprot):
10939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10941
      return
10942
    oprot.writeStructBegin('getAllItems_args')
10943
    if self.isActive is not None:
10944
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
10945
      oprot.writeBool(self.isActive)
10946
      oprot.writeFieldEnd()
10947
    oprot.writeFieldStop()
10948
    oprot.writeStructEnd()
10949
 
10950
  def validate(self):
10951
    return
10952
 
10953
 
10954
  def __repr__(self):
10955
    L = ['%s=%r' % (key, value)
10956
      for key, value in self.__dict__.iteritems()]
10957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10958
 
10959
  def __eq__(self, other):
10960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10961
 
10962
  def __ne__(self, other):
10963
    return not (self == other)
10964
 
10965
class getAllItems_result:
10966
  """
10967
  Attributes:
10968
   - success
10969
   - cex
10970
  """
10971
 
10972
  thrift_spec = (
10973
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10974
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10975
  )
10976
 
10977
  def __init__(self, success=None, cex=None,):
10978
    self.success = success
10979
    self.cex = cex
10980
 
10981
  def read(self, iprot):
10982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10984
      return
10985
    iprot.readStructBegin()
10986
    while True:
10987
      (fname, ftype, fid) = iprot.readFieldBegin()
10988
      if ftype == TType.STOP:
10989
        break
10990
      if fid == 0:
10991
        if ftype == TType.LIST:
10992
          self.success = []
13493 amit.gupta 10993
          (_etype79, _size76) = iprot.readListBegin()
10994
          for _i80 in xrange(_size76):
10995
            _elem81 = Item()
10996
            _elem81.read(iprot)
10997
            self.success.append(_elem81)
5944 mandeep.dh 10998
          iprot.readListEnd()
10999
        else:
11000
          iprot.skip(ftype)
11001
      elif fid == 1:
11002
        if ftype == TType.STRUCT:
11003
          self.cex = CatalogServiceException()
11004
          self.cex.read(iprot)
11005
        else:
11006
          iprot.skip(ftype)
11007
      else:
11008
        iprot.skip(ftype)
11009
      iprot.readFieldEnd()
11010
    iprot.readStructEnd()
11011
 
11012
  def write(self, oprot):
11013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11015
      return
11016
    oprot.writeStructBegin('getAllItems_result')
11017
    if self.success is not None:
11018
      oprot.writeFieldBegin('success', TType.LIST, 0)
11019
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11020
      for iter82 in self.success:
11021
        iter82.write(oprot)
5944 mandeep.dh 11022
      oprot.writeListEnd()
11023
      oprot.writeFieldEnd()
11024
    if self.cex is not None:
11025
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11026
      self.cex.write(oprot)
11027
      oprot.writeFieldEnd()
11028
    oprot.writeFieldStop()
11029
    oprot.writeStructEnd()
11030
 
11031
  def validate(self):
11032
    return
11033
 
11034
 
11035
  def __repr__(self):
11036
    L = ['%s=%r' % (key, value)
11037
      for key, value in self.__dict__.iteritems()]
11038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11039
 
11040
  def __eq__(self, other):
11041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11042
 
11043
  def __ne__(self, other):
11044
    return not (self == other)
11045
 
11046
class getAllItemsByStatus_args:
11047
  """
11048
  Attributes:
11049
   - itemStatus
11050
  """
11051
 
11052
  thrift_spec = (
11053
    None, # 0
11054
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11055
  )
11056
 
11057
  def __init__(self, itemStatus=None,):
11058
    self.itemStatus = itemStatus
11059
 
11060
  def read(self, iprot):
11061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11063
      return
11064
    iprot.readStructBegin()
11065
    while True:
11066
      (fname, ftype, fid) = iprot.readFieldBegin()
11067
      if ftype == TType.STOP:
11068
        break
11069
      if fid == 1:
11070
        if ftype == TType.I32:
11071
          self.itemStatus = iprot.readI32();
11072
        else:
11073
          iprot.skip(ftype)
11074
      else:
11075
        iprot.skip(ftype)
11076
      iprot.readFieldEnd()
11077
    iprot.readStructEnd()
11078
 
11079
  def write(self, oprot):
11080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11082
      return
11083
    oprot.writeStructBegin('getAllItemsByStatus_args')
11084
    if self.itemStatus is not None:
11085
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11086
      oprot.writeI32(self.itemStatus)
11087
      oprot.writeFieldEnd()
11088
    oprot.writeFieldStop()
11089
    oprot.writeStructEnd()
11090
 
11091
  def validate(self):
11092
    return
11093
 
11094
 
11095
  def __repr__(self):
11096
    L = ['%s=%r' % (key, value)
11097
      for key, value in self.__dict__.iteritems()]
11098
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11099
 
11100
  def __eq__(self, other):
11101
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11102
 
11103
  def __ne__(self, other):
11104
    return not (self == other)
11105
 
11106
class getAllItemsByStatus_result:
11107
  """
11108
  Attributes:
11109
   - success
11110
   - cex
11111
  """
11112
 
11113
  thrift_spec = (
11114
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11115
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11116
  )
11117
 
11118
  def __init__(self, success=None, cex=None,):
11119
    self.success = success
11120
    self.cex = cex
11121
 
11122
  def read(self, iprot):
11123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11125
      return
11126
    iprot.readStructBegin()
11127
    while True:
11128
      (fname, ftype, fid) = iprot.readFieldBegin()
11129
      if ftype == TType.STOP:
11130
        break
11131
      if fid == 0:
11132
        if ftype == TType.LIST:
11133
          self.success = []
13493 amit.gupta 11134
          (_etype86, _size83) = iprot.readListBegin()
11135
          for _i87 in xrange(_size83):
11136
            _elem88 = Item()
11137
            _elem88.read(iprot)
11138
            self.success.append(_elem88)
5944 mandeep.dh 11139
          iprot.readListEnd()
11140
        else:
11141
          iprot.skip(ftype)
11142
      elif fid == 1:
11143
        if ftype == TType.STRUCT:
11144
          self.cex = CatalogServiceException()
11145
          self.cex.read(iprot)
11146
        else:
11147
          iprot.skip(ftype)
11148
      else:
11149
        iprot.skip(ftype)
11150
      iprot.readFieldEnd()
11151
    iprot.readStructEnd()
11152
 
11153
  def write(self, oprot):
11154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11156
      return
11157
    oprot.writeStructBegin('getAllItemsByStatus_result')
11158
    if self.success is not None:
11159
      oprot.writeFieldBegin('success', TType.LIST, 0)
11160
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11161
      for iter89 in self.success:
11162
        iter89.write(oprot)
5944 mandeep.dh 11163
      oprot.writeListEnd()
11164
      oprot.writeFieldEnd()
11165
    if self.cex is not None:
11166
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11167
      self.cex.write(oprot)
11168
      oprot.writeFieldEnd()
11169
    oprot.writeFieldStop()
11170
    oprot.writeStructEnd()
11171
 
11172
  def validate(self):
11173
    return
11174
 
11175
 
11176
  def __repr__(self):
11177
    L = ['%s=%r' % (key, value)
11178
      for key, value in self.__dict__.iteritems()]
11179
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11180
 
11181
  def __eq__(self, other):
11182
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11183
 
11184
  def __ne__(self, other):
11185
    return not (self == other)
11186
 
11187
class markItemAsContentComplete_args:
11188
  """
11189
  Attributes:
11190
   - entityId
11191
   - category
11192
   - brand
11193
   - modelName
11194
   - modelNumber
9253 rajveer 11195
   - isAndroid
5944 mandeep.dh 11196
  """
11197
 
11198
  thrift_spec = (
11199
    None, # 0
11200
    (1, TType.I64, 'entityId', None, None, ), # 1
11201
    (2, TType.I64, 'category', None, None, ), # 2
11202
    (3, TType.STRING, 'brand', None, None, ), # 3
11203
    (4, TType.STRING, 'modelName', None, None, ), # 4
11204
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 11205
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 11206
  )
11207
 
9253 rajveer 11208
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 11209
    self.entityId = entityId
11210
    self.category = category
11211
    self.brand = brand
11212
    self.modelName = modelName
11213
    self.modelNumber = modelNumber
9253 rajveer 11214
    self.isAndroid = isAndroid
5944 mandeep.dh 11215
 
11216
  def read(self, iprot):
11217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11219
      return
11220
    iprot.readStructBegin()
11221
    while True:
11222
      (fname, ftype, fid) = iprot.readFieldBegin()
11223
      if ftype == TType.STOP:
11224
        break
11225
      if fid == 1:
11226
        if ftype == TType.I64:
11227
          self.entityId = iprot.readI64();
11228
        else:
11229
          iprot.skip(ftype)
11230
      elif fid == 2:
11231
        if ftype == TType.I64:
11232
          self.category = iprot.readI64();
11233
        else:
11234
          iprot.skip(ftype)
11235
      elif fid == 3:
11236
        if ftype == TType.STRING:
11237
          self.brand = iprot.readString();
11238
        else:
11239
          iprot.skip(ftype)
11240
      elif fid == 4:
11241
        if ftype == TType.STRING:
11242
          self.modelName = iprot.readString();
11243
        else:
11244
          iprot.skip(ftype)
11245
      elif fid == 5:
11246
        if ftype == TType.STRING:
11247
          self.modelNumber = iprot.readString();
11248
        else:
11249
          iprot.skip(ftype)
9253 rajveer 11250
      elif fid == 6:
11251
        if ftype == TType.BOOL:
11252
          self.isAndroid = iprot.readBool();
11253
        else:
11254
          iprot.skip(ftype)
5944 mandeep.dh 11255
      else:
11256
        iprot.skip(ftype)
11257
      iprot.readFieldEnd()
11258
    iprot.readStructEnd()
11259
 
11260
  def write(self, oprot):
11261
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11262
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11263
      return
11264
    oprot.writeStructBegin('markItemAsContentComplete_args')
11265
    if self.entityId is not None:
11266
      oprot.writeFieldBegin('entityId', TType.I64, 1)
11267
      oprot.writeI64(self.entityId)
11268
      oprot.writeFieldEnd()
11269
    if self.category is not None:
11270
      oprot.writeFieldBegin('category', TType.I64, 2)
11271
      oprot.writeI64(self.category)
11272
      oprot.writeFieldEnd()
11273
    if self.brand is not None:
11274
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11275
      oprot.writeString(self.brand)
11276
      oprot.writeFieldEnd()
11277
    if self.modelName is not None:
11278
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
11279
      oprot.writeString(self.modelName)
11280
      oprot.writeFieldEnd()
11281
    if self.modelNumber is not None:
11282
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
11283
      oprot.writeString(self.modelNumber)
11284
      oprot.writeFieldEnd()
9253 rajveer 11285
    if self.isAndroid is not None:
11286
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
11287
      oprot.writeBool(self.isAndroid)
11288
      oprot.writeFieldEnd()
5944 mandeep.dh 11289
    oprot.writeFieldStop()
11290
    oprot.writeStructEnd()
11291
 
11292
  def validate(self):
11293
    return
11294
 
11295
 
11296
  def __repr__(self):
11297
    L = ['%s=%r' % (key, value)
11298
      for key, value in self.__dict__.iteritems()]
11299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11300
 
11301
  def __eq__(self, other):
11302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11303
 
11304
  def __ne__(self, other):
11305
    return not (self == other)
11306
 
11307
class markItemAsContentComplete_result:
11308
  """
11309
  Attributes:
11310
   - success
11311
   - cex
11312
  """
11313
 
11314
  thrift_spec = (
11315
    (0, TType.BOOL, 'success', None, None, ), # 0
11316
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11317
  )
11318
 
11319
  def __init__(self, success=None, cex=None,):
11320
    self.success = success
11321
    self.cex = cex
11322
 
11323
  def read(self, iprot):
11324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11326
      return
11327
    iprot.readStructBegin()
11328
    while True:
11329
      (fname, ftype, fid) = iprot.readFieldBegin()
11330
      if ftype == TType.STOP:
11331
        break
11332
      if fid == 0:
11333
        if ftype == TType.BOOL:
11334
          self.success = iprot.readBool();
11335
        else:
11336
          iprot.skip(ftype)
11337
      elif fid == 1:
11338
        if ftype == TType.STRUCT:
11339
          self.cex = CatalogServiceException()
11340
          self.cex.read(iprot)
11341
        else:
11342
          iprot.skip(ftype)
11343
      else:
11344
        iprot.skip(ftype)
11345
      iprot.readFieldEnd()
11346
    iprot.readStructEnd()
11347
 
11348
  def write(self, oprot):
11349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11351
      return
11352
    oprot.writeStructBegin('markItemAsContentComplete_result')
11353
    if self.success is not None:
11354
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11355
      oprot.writeBool(self.success)
11356
      oprot.writeFieldEnd()
11357
    if self.cex is not None:
11358
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11359
      self.cex.write(oprot)
11360
      oprot.writeFieldEnd()
11361
    oprot.writeFieldStop()
11362
    oprot.writeStructEnd()
11363
 
11364
  def validate(self):
11365
    return
11366
 
11367
 
11368
  def __repr__(self):
11369
    L = ['%s=%r' % (key, value)
11370
      for key, value in self.__dict__.iteritems()]
11371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11372
 
11373
  def __eq__(self, other):
11374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11375
 
11376
  def __ne__(self, other):
11377
    return not (self == other)
11378
 
12567 amit.gupta 11379
class getVatRates_args:
11380
  """
11381
  Attributes:
11382
   - itemId
11383
   - categoryId
11384
  """
11385
 
11386
  thrift_spec = (
11387
    None, # 0
11388
    (1, TType.I64, 'itemId', None, None, ), # 1
11389
    (2, TType.I64, 'categoryId', None, None, ), # 2
11390
  )
11391
 
11392
  def __init__(self, itemId=None, categoryId=None,):
11393
    self.itemId = itemId
11394
    self.categoryId = categoryId
11395
 
11396
  def read(self, iprot):
11397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11399
      return
11400
    iprot.readStructBegin()
11401
    while True:
11402
      (fname, ftype, fid) = iprot.readFieldBegin()
11403
      if ftype == TType.STOP:
11404
        break
11405
      if fid == 1:
11406
        if ftype == TType.I64:
11407
          self.itemId = iprot.readI64();
11408
        else:
11409
          iprot.skip(ftype)
11410
      elif fid == 2:
11411
        if ftype == TType.I64:
11412
          self.categoryId = iprot.readI64();
11413
        else:
11414
          iprot.skip(ftype)
11415
      else:
11416
        iprot.skip(ftype)
11417
      iprot.readFieldEnd()
11418
    iprot.readStructEnd()
11419
 
11420
  def write(self, oprot):
11421
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11422
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11423
      return
11424
    oprot.writeStructBegin('getVatRates_args')
11425
    if self.itemId is not None:
11426
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11427
      oprot.writeI64(self.itemId)
11428
      oprot.writeFieldEnd()
11429
    if self.categoryId is not None:
11430
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
11431
      oprot.writeI64(self.categoryId)
11432
      oprot.writeFieldEnd()
11433
    oprot.writeFieldStop()
11434
    oprot.writeStructEnd()
11435
 
11436
  def validate(self):
11437
    return
11438
 
11439
 
11440
  def __repr__(self):
11441
    L = ['%s=%r' % (key, value)
11442
      for key, value in self.__dict__.iteritems()]
11443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11444
 
11445
  def __eq__(self, other):
11446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11447
 
11448
  def __ne__(self, other):
11449
    return not (self == other)
11450
 
11451
class getVatRates_result:
11452
  """
11453
  Attributes:
11454
   - success
11455
   - cex
11456
  """
11457
 
11458
  thrift_spec = (
11459
    (0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,None), None, ), # 0
11460
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11461
  )
11462
 
11463
  def __init__(self, success=None, cex=None,):
11464
    self.success = success
11465
    self.cex = cex
11466
 
11467
  def read(self, iprot):
11468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11470
      return
11471
    iprot.readStructBegin()
11472
    while True:
11473
      (fname, ftype, fid) = iprot.readFieldBegin()
11474
      if ftype == TType.STOP:
11475
        break
11476
      if fid == 0:
11477
        if ftype == TType.MAP:
11478
          self.success = {}
13493 amit.gupta 11479
          (_ktype91, _vtype92, _size90 ) = iprot.readMapBegin() 
11480
          for _i94 in xrange(_size90):
11481
            _key95 = iprot.readI64();
11482
            _val96 = iprot.readDouble();
11483
            self.success[_key95] = _val96
12567 amit.gupta 11484
          iprot.readMapEnd()
11485
        else:
11486
          iprot.skip(ftype)
11487
      elif fid == 1:
11488
        if ftype == TType.STRUCT:
11489
          self.cex = CatalogServiceException()
11490
          self.cex.read(iprot)
11491
        else:
11492
          iprot.skip(ftype)
11493
      else:
11494
        iprot.skip(ftype)
11495
      iprot.readFieldEnd()
11496
    iprot.readStructEnd()
11497
 
11498
  def write(self, oprot):
11499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11501
      return
11502
    oprot.writeStructBegin('getVatRates_result')
11503
    if self.success is not None:
11504
      oprot.writeFieldBegin('success', TType.MAP, 0)
11505
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
13493 amit.gupta 11506
      for kiter97,viter98 in self.success.items():
11507
        oprot.writeI64(kiter97)
11508
        oprot.writeDouble(viter98)
12567 amit.gupta 11509
      oprot.writeMapEnd()
11510
      oprot.writeFieldEnd()
11511
    if self.cex is not None:
11512
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11513
      self.cex.write(oprot)
11514
      oprot.writeFieldEnd()
11515
    oprot.writeFieldStop()
11516
    oprot.writeStructEnd()
11517
 
11518
  def validate(self):
11519
    return
11520
 
11521
 
11522
  def __repr__(self):
11523
    L = ['%s=%r' % (key, value)
11524
      for key, value in self.__dict__.iteritems()]
11525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11526
 
11527
  def __eq__(self, other):
11528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11529
 
11530
  def __ne__(self, other):
11531
    return not (self == other)
11532
 
5944 mandeep.dh 11533
class getAllItemsInRange_args:
11534
  """
11535
  Attributes:
11536
   - offset
11537
   - limit
11538
  """
11539
 
11540
  thrift_spec = (
11541
    None, # 0
11542
    (1, TType.I64, 'offset', None, None, ), # 1
11543
    (2, TType.I64, 'limit', None, None, ), # 2
11544
  )
11545
 
11546
  def __init__(self, offset=None, limit=None,):
11547
    self.offset = offset
11548
    self.limit = limit
11549
 
11550
  def read(self, iprot):
11551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11553
      return
11554
    iprot.readStructBegin()
11555
    while True:
11556
      (fname, ftype, fid) = iprot.readFieldBegin()
11557
      if ftype == TType.STOP:
11558
        break
11559
      if fid == 1:
11560
        if ftype == TType.I64:
11561
          self.offset = iprot.readI64();
11562
        else:
11563
          iprot.skip(ftype)
11564
      elif fid == 2:
11565
        if ftype == TType.I64:
11566
          self.limit = iprot.readI64();
11567
        else:
11568
          iprot.skip(ftype)
11569
      else:
11570
        iprot.skip(ftype)
11571
      iprot.readFieldEnd()
11572
    iprot.readStructEnd()
11573
 
11574
  def write(self, oprot):
11575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11577
      return
11578
    oprot.writeStructBegin('getAllItemsInRange_args')
11579
    if self.offset is not None:
11580
      oprot.writeFieldBegin('offset', TType.I64, 1)
11581
      oprot.writeI64(self.offset)
11582
      oprot.writeFieldEnd()
11583
    if self.limit is not None:
11584
      oprot.writeFieldBegin('limit', TType.I64, 2)
11585
      oprot.writeI64(self.limit)
11586
      oprot.writeFieldEnd()
11587
    oprot.writeFieldStop()
11588
    oprot.writeStructEnd()
11589
 
11590
  def validate(self):
11591
    return
11592
 
11593
 
11594
  def __repr__(self):
11595
    L = ['%s=%r' % (key, value)
11596
      for key, value in self.__dict__.iteritems()]
11597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11598
 
11599
  def __eq__(self, other):
11600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11601
 
11602
  def __ne__(self, other):
11603
    return not (self == other)
11604
 
11605
class getAllItemsInRange_result:
11606
  """
11607
  Attributes:
11608
   - success
11609
   - cex
11610
  """
11611
 
11612
  thrift_spec = (
11613
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11614
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11615
  )
11616
 
11617
  def __init__(self, success=None, cex=None,):
11618
    self.success = success
11619
    self.cex = cex
11620
 
11621
  def read(self, iprot):
11622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11624
      return
11625
    iprot.readStructBegin()
11626
    while True:
11627
      (fname, ftype, fid) = iprot.readFieldBegin()
11628
      if ftype == TType.STOP:
11629
        break
11630
      if fid == 0:
11631
        if ftype == TType.LIST:
11632
          self.success = []
13493 amit.gupta 11633
          (_etype102, _size99) = iprot.readListBegin()
11634
          for _i103 in xrange(_size99):
11635
            _elem104 = Item()
11636
            _elem104.read(iprot)
11637
            self.success.append(_elem104)
5944 mandeep.dh 11638
          iprot.readListEnd()
11639
        else:
11640
          iprot.skip(ftype)
11641
      elif fid == 1:
11642
        if ftype == TType.STRUCT:
11643
          self.cex = CatalogServiceException()
11644
          self.cex.read(iprot)
11645
        else:
11646
          iprot.skip(ftype)
11647
      else:
11648
        iprot.skip(ftype)
11649
      iprot.readFieldEnd()
11650
    iprot.readStructEnd()
11651
 
11652
  def write(self, oprot):
11653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11655
      return
11656
    oprot.writeStructBegin('getAllItemsInRange_result')
11657
    if self.success is not None:
11658
      oprot.writeFieldBegin('success', TType.LIST, 0)
11659
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11660
      for iter105 in self.success:
11661
        iter105.write(oprot)
5944 mandeep.dh 11662
      oprot.writeListEnd()
11663
      oprot.writeFieldEnd()
11664
    if self.cex is not None:
11665
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11666
      self.cex.write(oprot)
11667
      oprot.writeFieldEnd()
11668
    oprot.writeFieldStop()
11669
    oprot.writeStructEnd()
11670
 
11671
  def validate(self):
11672
    return
11673
 
11674
 
11675
  def __repr__(self):
11676
    L = ['%s=%r' % (key, value)
11677
      for key, value in self.__dict__.iteritems()]
11678
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11679
 
11680
  def __eq__(self, other):
11681
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11682
 
11683
  def __ne__(self, other):
11684
    return not (self == other)
11685
 
11686
class getAllItemsByStatusInRange_args:
11687
  """
11688
  Attributes:
11689
   - itemStatus
11690
   - offset
11691
   - limit
11692
  """
11693
 
11694
  thrift_spec = (
11695
    None, # 0
11696
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11697
    (2, TType.I64, 'offset', None, None, ), # 2
11698
    (3, TType.I64, 'limit', None, None, ), # 3
11699
  )
11700
 
11701
  def __init__(self, itemStatus=None, offset=None, limit=None,):
11702
    self.itemStatus = itemStatus
11703
    self.offset = offset
11704
    self.limit = limit
11705
 
11706
  def read(self, iprot):
11707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11709
      return
11710
    iprot.readStructBegin()
11711
    while True:
11712
      (fname, ftype, fid) = iprot.readFieldBegin()
11713
      if ftype == TType.STOP:
11714
        break
11715
      if fid == 1:
11716
        if ftype == TType.I32:
11717
          self.itemStatus = iprot.readI32();
11718
        else:
11719
          iprot.skip(ftype)
11720
      elif fid == 2:
11721
        if ftype == TType.I64:
11722
          self.offset = iprot.readI64();
11723
        else:
11724
          iprot.skip(ftype)
11725
      elif fid == 3:
11726
        if ftype == TType.I64:
11727
          self.limit = iprot.readI64();
11728
        else:
11729
          iprot.skip(ftype)
11730
      else:
11731
        iprot.skip(ftype)
11732
      iprot.readFieldEnd()
11733
    iprot.readStructEnd()
11734
 
11735
  def write(self, oprot):
11736
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11737
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11738
      return
11739
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
11740
    if self.itemStatus is not None:
11741
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11742
      oprot.writeI32(self.itemStatus)
11743
      oprot.writeFieldEnd()
11744
    if self.offset is not None:
11745
      oprot.writeFieldBegin('offset', TType.I64, 2)
11746
      oprot.writeI64(self.offset)
11747
      oprot.writeFieldEnd()
11748
    if self.limit is not None:
11749
      oprot.writeFieldBegin('limit', TType.I64, 3)
11750
      oprot.writeI64(self.limit)
11751
      oprot.writeFieldEnd()
11752
    oprot.writeFieldStop()
11753
    oprot.writeStructEnd()
11754
 
11755
  def validate(self):
11756
    return
11757
 
11758
 
11759
  def __repr__(self):
11760
    L = ['%s=%r' % (key, value)
11761
      for key, value in self.__dict__.iteritems()]
11762
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11763
 
11764
  def __eq__(self, other):
11765
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11766
 
11767
  def __ne__(self, other):
11768
    return not (self == other)
11769
 
11770
class getAllItemsByStatusInRange_result:
11771
  """
11772
  Attributes:
11773
   - success
11774
   - cex
11775
  """
11776
 
11777
  thrift_spec = (
11778
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11779
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11780
  )
11781
 
11782
  def __init__(self, success=None, cex=None,):
11783
    self.success = success
11784
    self.cex = cex
11785
 
11786
  def read(self, iprot):
11787
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11788
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11789
      return
11790
    iprot.readStructBegin()
11791
    while True:
11792
      (fname, ftype, fid) = iprot.readFieldBegin()
11793
      if ftype == TType.STOP:
11794
        break
11795
      if fid == 0:
11796
        if ftype == TType.LIST:
11797
          self.success = []
13493 amit.gupta 11798
          (_etype109, _size106) = iprot.readListBegin()
11799
          for _i110 in xrange(_size106):
11800
            _elem111 = Item()
11801
            _elem111.read(iprot)
11802
            self.success.append(_elem111)
5944 mandeep.dh 11803
          iprot.readListEnd()
11804
        else:
11805
          iprot.skip(ftype)
11806
      elif fid == 1:
11807
        if ftype == TType.STRUCT:
11808
          self.cex = CatalogServiceException()
11809
          self.cex.read(iprot)
11810
        else:
11811
          iprot.skip(ftype)
11812
      else:
11813
        iprot.skip(ftype)
11814
      iprot.readFieldEnd()
11815
    iprot.readStructEnd()
11816
 
11817
  def write(self, oprot):
11818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11820
      return
11821
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
11822
    if self.success is not None:
11823
      oprot.writeFieldBegin('success', TType.LIST, 0)
11824
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 11825
      for iter112 in self.success:
11826
        iter112.write(oprot)
5944 mandeep.dh 11827
      oprot.writeListEnd()
11828
      oprot.writeFieldEnd()
11829
    if self.cex is not None:
11830
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11831
      self.cex.write(oprot)
11832
      oprot.writeFieldEnd()
11833
    oprot.writeFieldStop()
11834
    oprot.writeStructEnd()
11835
 
11836
  def validate(self):
11837
    return
11838
 
11839
 
11840
  def __repr__(self):
11841
    L = ['%s=%r' % (key, value)
11842
      for key, value in self.__dict__.iteritems()]
11843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11844
 
11845
  def __eq__(self, other):
11846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11847
 
11848
  def __ne__(self, other):
11849
    return not (self == other)
11850
 
11851
class getItemCountByStatus_args:
11852
  """
11853
  Attributes:
11854
   - useStatus
11855
   - itemStatus
11856
  """
11857
 
11858
  thrift_spec = (
11859
    None, # 0
11860
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
11861
    (2, TType.I32, 'itemStatus', None, None, ), # 2
11862
  )
11863
 
11864
  def __init__(self, useStatus=None, itemStatus=None,):
11865
    self.useStatus = useStatus
11866
    self.itemStatus = itemStatus
11867
 
11868
  def read(self, iprot):
11869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11871
      return
11872
    iprot.readStructBegin()
11873
    while True:
11874
      (fname, ftype, fid) = iprot.readFieldBegin()
11875
      if ftype == TType.STOP:
11876
        break
11877
      if fid == 1:
11878
        if ftype == TType.BOOL:
11879
          self.useStatus = iprot.readBool();
11880
        else:
11881
          iprot.skip(ftype)
11882
      elif fid == 2:
11883
        if ftype == TType.I32:
11884
          self.itemStatus = iprot.readI32();
11885
        else:
11886
          iprot.skip(ftype)
11887
      else:
11888
        iprot.skip(ftype)
11889
      iprot.readFieldEnd()
11890
    iprot.readStructEnd()
11891
 
11892
  def write(self, oprot):
11893
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11894
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11895
      return
11896
    oprot.writeStructBegin('getItemCountByStatus_args')
11897
    if self.useStatus is not None:
11898
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
11899
      oprot.writeBool(self.useStatus)
11900
      oprot.writeFieldEnd()
11901
    if self.itemStatus is not None:
11902
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
11903
      oprot.writeI32(self.itemStatus)
11904
      oprot.writeFieldEnd()
11905
    oprot.writeFieldStop()
11906
    oprot.writeStructEnd()
11907
 
11908
  def validate(self):
11909
    return
11910
 
11911
 
11912
  def __repr__(self):
11913
    L = ['%s=%r' % (key, value)
11914
      for key, value in self.__dict__.iteritems()]
11915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11916
 
11917
  def __eq__(self, other):
11918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11919
 
11920
  def __ne__(self, other):
11921
    return not (self == other)
11922
 
11923
class getItemCountByStatus_result:
11924
  """
11925
  Attributes:
11926
   - success
11927
  """
11928
 
11929
  thrift_spec = (
11930
    (0, TType.I32, 'success', None, None, ), # 0
11931
  )
11932
 
11933
  def __init__(self, success=None,):
11934
    self.success = success
11935
 
11936
  def read(self, iprot):
11937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11939
      return
11940
    iprot.readStructBegin()
11941
    while True:
11942
      (fname, ftype, fid) = iprot.readFieldBegin()
11943
      if ftype == TType.STOP:
11944
        break
11945
      if fid == 0:
11946
        if ftype == TType.I32:
11947
          self.success = iprot.readI32();
11948
        else:
11949
          iprot.skip(ftype)
11950
      else:
11951
        iprot.skip(ftype)
11952
      iprot.readFieldEnd()
11953
    iprot.readStructEnd()
11954
 
11955
  def write(self, oprot):
11956
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11957
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11958
      return
11959
    oprot.writeStructBegin('getItemCountByStatus_result')
11960
    if self.success is not None:
11961
      oprot.writeFieldBegin('success', TType.I32, 0)
11962
      oprot.writeI32(self.success)
11963
      oprot.writeFieldEnd()
11964
    oprot.writeFieldStop()
11965
    oprot.writeStructEnd()
11966
 
11967
  def validate(self):
11968
    return
11969
 
11970
 
11971
  def __repr__(self):
11972
    L = ['%s=%r' % (key, value)
11973
      for key, value in self.__dict__.iteritems()]
11974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11975
 
11976
  def __eq__(self, other):
11977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11978
 
11979
  def __ne__(self, other):
11980
    return not (self == other)
11981
 
11982
class getBestSellers_args:
11983
 
11984
  thrift_spec = (
11985
  )
11986
 
11987
  def read(self, iprot):
11988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11990
      return
11991
    iprot.readStructBegin()
11992
    while True:
11993
      (fname, ftype, fid) = iprot.readFieldBegin()
11994
      if ftype == TType.STOP:
11995
        break
11996
      else:
11997
        iprot.skip(ftype)
11998
      iprot.readFieldEnd()
11999
    iprot.readStructEnd()
12000
 
12001
  def write(self, oprot):
12002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12004
      return
12005
    oprot.writeStructBegin('getBestSellers_args')
12006
    oprot.writeFieldStop()
12007
    oprot.writeStructEnd()
12008
 
12009
  def validate(self):
12010
    return
12011
 
12012
 
12013
  def __repr__(self):
12014
    L = ['%s=%r' % (key, value)
12015
      for key, value in self.__dict__.iteritems()]
12016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12017
 
12018
  def __eq__(self, other):
12019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12020
 
12021
  def __ne__(self, other):
12022
    return not (self == other)
12023
 
12024
class getBestSellers_result:
12025
  """
12026
  Attributes:
12027
   - success
12028
   - isex
12029
  """
12030
 
12031
  thrift_spec = (
12032
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12033
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12034
  )
12035
 
12036
  def __init__(self, success=None, isex=None,):
12037
    self.success = success
12038
    self.isex = isex
12039
 
12040
  def read(self, iprot):
12041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12043
      return
12044
    iprot.readStructBegin()
12045
    while True:
12046
      (fname, ftype, fid) = iprot.readFieldBegin()
12047
      if ftype == TType.STOP:
12048
        break
12049
      if fid == 0:
12050
        if ftype == TType.LIST:
12051
          self.success = []
13493 amit.gupta 12052
          (_etype116, _size113) = iprot.readListBegin()
12053
          for _i117 in xrange(_size113):
12054
            _elem118 = Item()
12055
            _elem118.read(iprot)
12056
            self.success.append(_elem118)
5944 mandeep.dh 12057
          iprot.readListEnd()
12058
        else:
12059
          iprot.skip(ftype)
12060
      elif fid == 1:
12061
        if ftype == TType.STRUCT:
12062
          self.isex = CatalogServiceException()
12063
          self.isex.read(iprot)
12064
        else:
12065
          iprot.skip(ftype)
12066
      else:
12067
        iprot.skip(ftype)
12068
      iprot.readFieldEnd()
12069
    iprot.readStructEnd()
12070
 
12071
  def write(self, oprot):
12072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12074
      return
12075
    oprot.writeStructBegin('getBestSellers_result')
12076
    if self.success is not None:
12077
      oprot.writeFieldBegin('success', TType.LIST, 0)
12078
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 12079
      for iter119 in self.success:
12080
        iter119.write(oprot)
5944 mandeep.dh 12081
      oprot.writeListEnd()
12082
      oprot.writeFieldEnd()
12083
    if self.isex is not None:
12084
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12085
      self.isex.write(oprot)
12086
      oprot.writeFieldEnd()
12087
    oprot.writeFieldStop()
12088
    oprot.writeStructEnd()
12089
 
12090
  def validate(self):
12091
    return
12092
 
12093
 
12094
  def __repr__(self):
12095
    L = ['%s=%r' % (key, value)
12096
      for key, value in self.__dict__.iteritems()]
12097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12098
 
12099
  def __eq__(self, other):
12100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12101
 
12102
  def __ne__(self, other):
12103
    return not (self == other)
12104
 
12105
class getBestSellersCatalogIds_args:
12106
  """
12107
  Attributes:
12108
   - beginIndex
12109
   - totalItems
12110
   - brand
12111
   - category
12112
  """
12113
 
12114
  thrift_spec = (
12115
    None, # 0
12116
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12117
    (2, TType.I64, 'totalItems', None, None, ), # 2
12118
    (3, TType.STRING, 'brand', None, None, ), # 3
12119
    (4, TType.I64, 'category', None, None, ), # 4
12120
  )
12121
 
12122
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12123
    self.beginIndex = beginIndex
12124
    self.totalItems = totalItems
12125
    self.brand = brand
12126
    self.category = category
12127
 
12128
  def read(self, iprot):
12129
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12130
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12131
      return
12132
    iprot.readStructBegin()
12133
    while True:
12134
      (fname, ftype, fid) = iprot.readFieldBegin()
12135
      if ftype == TType.STOP:
12136
        break
12137
      if fid == 1:
12138
        if ftype == TType.I64:
12139
          self.beginIndex = iprot.readI64();
12140
        else:
12141
          iprot.skip(ftype)
12142
      elif fid == 2:
12143
        if ftype == TType.I64:
12144
          self.totalItems = iprot.readI64();
12145
        else:
12146
          iprot.skip(ftype)
12147
      elif fid == 3:
12148
        if ftype == TType.STRING:
12149
          self.brand = iprot.readString();
12150
        else:
12151
          iprot.skip(ftype)
12152
      elif fid == 4:
12153
        if ftype == TType.I64:
12154
          self.category = iprot.readI64();
12155
        else:
12156
          iprot.skip(ftype)
12157
      else:
12158
        iprot.skip(ftype)
12159
      iprot.readFieldEnd()
12160
    iprot.readStructEnd()
12161
 
12162
  def write(self, oprot):
12163
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12164
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12165
      return
12166
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
12167
    if self.beginIndex is not None:
12168
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12169
      oprot.writeI64(self.beginIndex)
12170
      oprot.writeFieldEnd()
12171
    if self.totalItems is not None:
12172
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12173
      oprot.writeI64(self.totalItems)
12174
      oprot.writeFieldEnd()
12175
    if self.brand is not None:
12176
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12177
      oprot.writeString(self.brand)
12178
      oprot.writeFieldEnd()
12179
    if self.category is not None:
12180
      oprot.writeFieldBegin('category', TType.I64, 4)
12181
      oprot.writeI64(self.category)
12182
      oprot.writeFieldEnd()
12183
    oprot.writeFieldStop()
12184
    oprot.writeStructEnd()
12185
 
12186
  def validate(self):
12187
    return
12188
 
12189
 
12190
  def __repr__(self):
12191
    L = ['%s=%r' % (key, value)
12192
      for key, value in self.__dict__.iteritems()]
12193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12194
 
12195
  def __eq__(self, other):
12196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12197
 
12198
  def __ne__(self, other):
12199
    return not (self == other)
12200
 
12201
class getBestSellersCatalogIds_result:
12202
  """
12203
  Attributes:
12204
   - success
12205
   - cex
12206
  """
12207
 
12208
  thrift_spec = (
12209
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12210
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12211
  )
12212
 
12213
  def __init__(self, success=None, cex=None,):
12214
    self.success = success
12215
    self.cex = cex
12216
 
12217
  def read(self, iprot):
12218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12220
      return
12221
    iprot.readStructBegin()
12222
    while True:
12223
      (fname, ftype, fid) = iprot.readFieldBegin()
12224
      if ftype == TType.STOP:
12225
        break
12226
      if fid == 0:
12227
        if ftype == TType.LIST:
12228
          self.success = []
13493 amit.gupta 12229
          (_etype123, _size120) = iprot.readListBegin()
12230
          for _i124 in xrange(_size120):
12231
            _elem125 = iprot.readI64();
12232
            self.success.append(_elem125)
5944 mandeep.dh 12233
          iprot.readListEnd()
12234
        else:
12235
          iprot.skip(ftype)
12236
      elif fid == 1:
12237
        if ftype == TType.STRUCT:
12238
          self.cex = CatalogServiceException()
12239
          self.cex.read(iprot)
12240
        else:
12241
          iprot.skip(ftype)
12242
      else:
12243
        iprot.skip(ftype)
12244
      iprot.readFieldEnd()
12245
    iprot.readStructEnd()
12246
 
12247
  def write(self, oprot):
12248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12250
      return
12251
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
12252
    if self.success is not None:
12253
      oprot.writeFieldBegin('success', TType.LIST, 0)
12254
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 12255
      for iter126 in self.success:
12256
        oprot.writeI64(iter126)
5944 mandeep.dh 12257
      oprot.writeListEnd()
12258
      oprot.writeFieldEnd()
12259
    if self.cex is not None:
12260
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12261
      self.cex.write(oprot)
12262
      oprot.writeFieldEnd()
12263
    oprot.writeFieldStop()
12264
    oprot.writeStructEnd()
12265
 
12266
  def validate(self):
12267
    return
12268
 
12269
 
12270
  def __repr__(self):
12271
    L = ['%s=%r' % (key, value)
12272
      for key, value in self.__dict__.iteritems()]
12273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12274
 
12275
  def __eq__(self, other):
12276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12277
 
12278
  def __ne__(self, other):
12279
    return not (self == other)
12280
 
12281
class getBestSellersCount_args:
12282
 
12283
  thrift_spec = (
12284
  )
12285
 
12286
  def read(self, iprot):
12287
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12288
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12289
      return
12290
    iprot.readStructBegin()
12291
    while True:
12292
      (fname, ftype, fid) = iprot.readFieldBegin()
12293
      if ftype == TType.STOP:
12294
        break
12295
      else:
12296
        iprot.skip(ftype)
12297
      iprot.readFieldEnd()
12298
    iprot.readStructEnd()
12299
 
12300
  def write(self, oprot):
12301
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12302
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12303
      return
12304
    oprot.writeStructBegin('getBestSellersCount_args')
12305
    oprot.writeFieldStop()
12306
    oprot.writeStructEnd()
12307
 
12308
  def validate(self):
12309
    return
12310
 
12311
 
12312
  def __repr__(self):
12313
    L = ['%s=%r' % (key, value)
12314
      for key, value in self.__dict__.iteritems()]
12315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12316
 
12317
  def __eq__(self, other):
12318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12319
 
12320
  def __ne__(self, other):
12321
    return not (self == other)
12322
 
12323
class getBestSellersCount_result:
12324
  """
12325
  Attributes:
12326
   - success
12327
   - cex
12328
  """
12329
 
12330
  thrift_spec = (
12331
    (0, TType.I64, 'success', None, None, ), # 0
12332
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12333
  )
12334
 
12335
  def __init__(self, success=None, cex=None,):
12336
    self.success = success
12337
    self.cex = cex
12338
 
12339
  def read(self, iprot):
12340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12342
      return
12343
    iprot.readStructBegin()
12344
    while True:
12345
      (fname, ftype, fid) = iprot.readFieldBegin()
12346
      if ftype == TType.STOP:
12347
        break
12348
      if fid == 0:
12349
        if ftype == TType.I64:
12350
          self.success = iprot.readI64();
12351
        else:
12352
          iprot.skip(ftype)
12353
      elif fid == 1:
12354
        if ftype == TType.STRUCT:
12355
          self.cex = CatalogServiceException()
12356
          self.cex.read(iprot)
12357
        else:
12358
          iprot.skip(ftype)
12359
      else:
12360
        iprot.skip(ftype)
12361
      iprot.readFieldEnd()
12362
    iprot.readStructEnd()
12363
 
12364
  def write(self, oprot):
12365
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12366
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12367
      return
12368
    oprot.writeStructBegin('getBestSellersCount_result')
12369
    if self.success is not None:
12370
      oprot.writeFieldBegin('success', TType.I64, 0)
12371
      oprot.writeI64(self.success)
12372
      oprot.writeFieldEnd()
12373
    if self.cex is not None:
12374
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12375
      self.cex.write(oprot)
12376
      oprot.writeFieldEnd()
12377
    oprot.writeFieldStop()
12378
    oprot.writeStructEnd()
12379
 
12380
  def validate(self):
12381
    return
12382
 
12383
 
12384
  def __repr__(self):
12385
    L = ['%s=%r' % (key, value)
12386
      for key, value in self.__dict__.iteritems()]
12387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12388
 
12389
  def __eq__(self, other):
12390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12391
 
12392
  def __ne__(self, other):
12393
    return not (self == other)
12394
 
12395
class getBestDeals_args:
12396
 
12397
  thrift_spec = (
12398
  )
12399
 
12400
  def read(self, iprot):
12401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12403
      return
12404
    iprot.readStructBegin()
12405
    while True:
12406
      (fname, ftype, fid) = iprot.readFieldBegin()
12407
      if ftype == TType.STOP:
12408
        break
12409
      else:
12410
        iprot.skip(ftype)
12411
      iprot.readFieldEnd()
12412
    iprot.readStructEnd()
12413
 
12414
  def write(self, oprot):
12415
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12416
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12417
      return
12418
    oprot.writeStructBegin('getBestDeals_args')
12419
    oprot.writeFieldStop()
12420
    oprot.writeStructEnd()
12421
 
12422
  def validate(self):
12423
    return
12424
 
12425
 
12426
  def __repr__(self):
12427
    L = ['%s=%r' % (key, value)
12428
      for key, value in self.__dict__.iteritems()]
12429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12430
 
12431
  def __eq__(self, other):
12432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12433
 
12434
  def __ne__(self, other):
12435
    return not (self == other)
12436
 
12437
class getBestDeals_result:
12438
  """
12439
  Attributes:
12440
   - success
12441
   - isex
12442
  """
12443
 
12444
  thrift_spec = (
12445
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12446
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12447
  )
12448
 
12449
  def __init__(self, success=None, isex=None,):
12450
    self.success = success
12451
    self.isex = isex
12452
 
12453
  def read(self, iprot):
12454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12456
      return
12457
    iprot.readStructBegin()
12458
    while True:
12459
      (fname, ftype, fid) = iprot.readFieldBegin()
12460
      if ftype == TType.STOP:
12461
        break
12462
      if fid == 0:
12463
        if ftype == TType.LIST:
12464
          self.success = []
13493 amit.gupta 12465
          (_etype130, _size127) = iprot.readListBegin()
12466
          for _i131 in xrange(_size127):
12467
            _elem132 = Item()
12468
            _elem132.read(iprot)
12469
            self.success.append(_elem132)
5944 mandeep.dh 12470
          iprot.readListEnd()
12471
        else:
12472
          iprot.skip(ftype)
12473
      elif fid == 1:
12474
        if ftype == TType.STRUCT:
12475
          self.isex = CatalogServiceException()
12476
          self.isex.read(iprot)
12477
        else:
12478
          iprot.skip(ftype)
12479
      else:
12480
        iprot.skip(ftype)
12481
      iprot.readFieldEnd()
12482
    iprot.readStructEnd()
12483
 
12484
  def write(self, oprot):
12485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12487
      return
12488
    oprot.writeStructBegin('getBestDeals_result')
12489
    if self.success is not None:
12490
      oprot.writeFieldBegin('success', TType.LIST, 0)
12491
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 12492
      for iter133 in self.success:
12493
        iter133.write(oprot)
5944 mandeep.dh 12494
      oprot.writeListEnd()
12495
      oprot.writeFieldEnd()
12496
    if self.isex is not None:
12497
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12498
      self.isex.write(oprot)
12499
      oprot.writeFieldEnd()
12500
    oprot.writeFieldStop()
12501
    oprot.writeStructEnd()
12502
 
12503
  def validate(self):
12504
    return
12505
 
12506
 
12507
  def __repr__(self):
12508
    L = ['%s=%r' % (key, value)
12509
      for key, value in self.__dict__.iteritems()]
12510
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12511
 
12512
  def __eq__(self, other):
12513
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12514
 
12515
  def __ne__(self, other):
12516
    return not (self == other)
12517
 
12518
class getBestDealsCatalogIds_args:
12519
  """
12520
  Attributes:
12521
   - beginIndex
12522
   - totalItems
12523
   - brand
12524
   - category
12525
  """
12526
 
12527
  thrift_spec = (
12528
    None, # 0
12529
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12530
    (2, TType.I64, 'totalItems', None, None, ), # 2
12531
    (3, TType.STRING, 'brand', None, None, ), # 3
12532
    (4, TType.I64, 'category', None, None, ), # 4
12533
  )
12534
 
12535
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12536
    self.beginIndex = beginIndex
12537
    self.totalItems = totalItems
12538
    self.brand = brand
12539
    self.category = category
12540
 
12541
  def read(self, iprot):
12542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12544
      return
12545
    iprot.readStructBegin()
12546
    while True:
12547
      (fname, ftype, fid) = iprot.readFieldBegin()
12548
      if ftype == TType.STOP:
12549
        break
12550
      if fid == 1:
12551
        if ftype == TType.I64:
12552
          self.beginIndex = iprot.readI64();
12553
        else:
12554
          iprot.skip(ftype)
12555
      elif fid == 2:
12556
        if ftype == TType.I64:
12557
          self.totalItems = iprot.readI64();
12558
        else:
12559
          iprot.skip(ftype)
12560
      elif fid == 3:
12561
        if ftype == TType.STRING:
12562
          self.brand = iprot.readString();
12563
        else:
12564
          iprot.skip(ftype)
12565
      elif fid == 4:
12566
        if ftype == TType.I64:
12567
          self.category = iprot.readI64();
12568
        else:
12569
          iprot.skip(ftype)
12570
      else:
12571
        iprot.skip(ftype)
12572
      iprot.readFieldEnd()
12573
    iprot.readStructEnd()
12574
 
12575
  def write(self, oprot):
12576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12578
      return
12579
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
12580
    if self.beginIndex is not None:
12581
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12582
      oprot.writeI64(self.beginIndex)
12583
      oprot.writeFieldEnd()
12584
    if self.totalItems is not None:
12585
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12586
      oprot.writeI64(self.totalItems)
12587
      oprot.writeFieldEnd()
12588
    if self.brand is not None:
12589
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12590
      oprot.writeString(self.brand)
12591
      oprot.writeFieldEnd()
12592
    if self.category is not None:
12593
      oprot.writeFieldBegin('category', TType.I64, 4)
12594
      oprot.writeI64(self.category)
12595
      oprot.writeFieldEnd()
12596
    oprot.writeFieldStop()
12597
    oprot.writeStructEnd()
12598
 
12599
  def validate(self):
12600
    return
12601
 
12602
 
12603
  def __repr__(self):
12604
    L = ['%s=%r' % (key, value)
12605
      for key, value in self.__dict__.iteritems()]
12606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12607
 
12608
  def __eq__(self, other):
12609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12610
 
12611
  def __ne__(self, other):
12612
    return not (self == other)
12613
 
12614
class getBestDealsCatalogIds_result:
12615
  """
12616
  Attributes:
12617
   - success
12618
   - cex
12619
  """
12620
 
12621
  thrift_spec = (
12622
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12623
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12624
  )
12625
 
12626
  def __init__(self, success=None, cex=None,):
12627
    self.success = success
12628
    self.cex = cex
12629
 
12630
  def read(self, iprot):
12631
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12632
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12633
      return
12634
    iprot.readStructBegin()
12635
    while True:
12636
      (fname, ftype, fid) = iprot.readFieldBegin()
12637
      if ftype == TType.STOP:
12638
        break
12639
      if fid == 0:
12640
        if ftype == TType.LIST:
12641
          self.success = []
13493 amit.gupta 12642
          (_etype137, _size134) = iprot.readListBegin()
12643
          for _i138 in xrange(_size134):
12644
            _elem139 = iprot.readI64();
12645
            self.success.append(_elem139)
5944 mandeep.dh 12646
          iprot.readListEnd()
12647
        else:
12648
          iprot.skip(ftype)
12649
      elif fid == 1:
12650
        if ftype == TType.STRUCT:
12651
          self.cex = CatalogServiceException()
12652
          self.cex.read(iprot)
12653
        else:
12654
          iprot.skip(ftype)
12655
      else:
12656
        iprot.skip(ftype)
12657
      iprot.readFieldEnd()
12658
    iprot.readStructEnd()
12659
 
12660
  def write(self, oprot):
12661
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12662
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12663
      return
12664
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
12665
    if self.success is not None:
12666
      oprot.writeFieldBegin('success', TType.LIST, 0)
12667
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 12668
      for iter140 in self.success:
12669
        oprot.writeI64(iter140)
5944 mandeep.dh 12670
      oprot.writeListEnd()
12671
      oprot.writeFieldEnd()
12672
    if self.cex is not None:
12673
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12674
      self.cex.write(oprot)
12675
      oprot.writeFieldEnd()
12676
    oprot.writeFieldStop()
12677
    oprot.writeStructEnd()
12678
 
12679
  def validate(self):
12680
    return
12681
 
12682
 
12683
  def __repr__(self):
12684
    L = ['%s=%r' % (key, value)
12685
      for key, value in self.__dict__.iteritems()]
12686
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12687
 
12688
  def __eq__(self, other):
12689
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12690
 
12691
  def __ne__(self, other):
12692
    return not (self == other)
12693
 
12694
class getBestDealsCount_args:
12695
 
12696
  thrift_spec = (
12697
  )
12698
 
12699
  def read(self, iprot):
12700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12702
      return
12703
    iprot.readStructBegin()
12704
    while True:
12705
      (fname, ftype, fid) = iprot.readFieldBegin()
12706
      if ftype == TType.STOP:
12707
        break
12708
      else:
12709
        iprot.skip(ftype)
12710
      iprot.readFieldEnd()
12711
    iprot.readStructEnd()
12712
 
12713
  def write(self, oprot):
12714
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12715
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12716
      return
12717
    oprot.writeStructBegin('getBestDealsCount_args')
12718
    oprot.writeFieldStop()
12719
    oprot.writeStructEnd()
12720
 
12721
  def validate(self):
12722
    return
12723
 
12724
 
12725
  def __repr__(self):
12726
    L = ['%s=%r' % (key, value)
12727
      for key, value in self.__dict__.iteritems()]
12728
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12729
 
12730
  def __eq__(self, other):
12731
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12732
 
12733
  def __ne__(self, other):
12734
    return not (self == other)
12735
 
12736
class getBestDealsCount_result:
12737
  """
12738
  Attributes:
12739
   - success
12740
   - cex
12741
  """
12742
 
12743
  thrift_spec = (
12744
    (0, TType.I64, 'success', None, None, ), # 0
12745
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12746
  )
12747
 
12748
  def __init__(self, success=None, cex=None,):
12749
    self.success = success
12750
    self.cex = cex
12751
 
12752
  def read(self, iprot):
12753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12755
      return
12756
    iprot.readStructBegin()
12757
    while True:
12758
      (fname, ftype, fid) = iprot.readFieldBegin()
12759
      if ftype == TType.STOP:
12760
        break
12761
      if fid == 0:
12762
        if ftype == TType.I64:
12763
          self.success = iprot.readI64();
12764
        else:
12765
          iprot.skip(ftype)
12766
      elif fid == 1:
12767
        if ftype == TType.STRUCT:
12768
          self.cex = CatalogServiceException()
12769
          self.cex.read(iprot)
12770
        else:
12771
          iprot.skip(ftype)
12772
      else:
12773
        iprot.skip(ftype)
12774
      iprot.readFieldEnd()
12775
    iprot.readStructEnd()
12776
 
12777
  def write(self, oprot):
12778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12780
      return
12781
    oprot.writeStructBegin('getBestDealsCount_result')
12782
    if self.success is not None:
12783
      oprot.writeFieldBegin('success', TType.I64, 0)
12784
      oprot.writeI64(self.success)
12785
      oprot.writeFieldEnd()
12786
    if self.cex is not None:
12787
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12788
      self.cex.write(oprot)
12789
      oprot.writeFieldEnd()
12790
    oprot.writeFieldStop()
12791
    oprot.writeStructEnd()
12792
 
12793
  def validate(self):
12794
    return
12795
 
12796
 
12797
  def __repr__(self):
12798
    L = ['%s=%r' % (key, value)
12799
      for key, value in self.__dict__.iteritems()]
12800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12801
 
12802
  def __eq__(self, other):
12803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12804
 
12805
  def __ne__(self, other):
12806
    return not (self == other)
12807
 
12808
class getComingSoon_args:
12809
 
12810
  thrift_spec = (
12811
  )
12812
 
12813
  def read(self, iprot):
12814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12816
      return
12817
    iprot.readStructBegin()
12818
    while True:
12819
      (fname, ftype, fid) = iprot.readFieldBegin()
12820
      if ftype == TType.STOP:
12821
        break
12822
      else:
12823
        iprot.skip(ftype)
12824
      iprot.readFieldEnd()
12825
    iprot.readStructEnd()
12826
 
12827
  def write(self, oprot):
12828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12830
      return
12831
    oprot.writeStructBegin('getComingSoon_args')
12832
    oprot.writeFieldStop()
12833
    oprot.writeStructEnd()
12834
 
12835
  def validate(self):
12836
    return
12837
 
12838
 
12839
  def __repr__(self):
12840
    L = ['%s=%r' % (key, value)
12841
      for key, value in self.__dict__.iteritems()]
12842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12843
 
12844
  def __eq__(self, other):
12845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12846
 
12847
  def __ne__(self, other):
12848
    return not (self == other)
12849
 
12850
class getComingSoon_result:
12851
  """
12852
  Attributes:
12853
   - success
12854
   - isex
12855
  """
12856
 
12857
  thrift_spec = (
12858
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12859
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12860
  )
12861
 
12862
  def __init__(self, success=None, isex=None,):
12863
    self.success = success
12864
    self.isex = isex
12865
 
12866
  def read(self, iprot):
12867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12869
      return
12870
    iprot.readStructBegin()
12871
    while True:
12872
      (fname, ftype, fid) = iprot.readFieldBegin()
12873
      if ftype == TType.STOP:
12874
        break
12875
      if fid == 0:
12876
        if ftype == TType.LIST:
12877
          self.success = []
13493 amit.gupta 12878
          (_etype144, _size141) = iprot.readListBegin()
12879
          for _i145 in xrange(_size141):
12880
            _elem146 = Item()
12881
            _elem146.read(iprot)
12882
            self.success.append(_elem146)
5944 mandeep.dh 12883
          iprot.readListEnd()
12884
        else:
12885
          iprot.skip(ftype)
12886
      elif fid == 1:
12887
        if ftype == TType.STRUCT:
12888
          self.isex = CatalogServiceException()
12889
          self.isex.read(iprot)
12890
        else:
12891
          iprot.skip(ftype)
12892
      else:
12893
        iprot.skip(ftype)
12894
      iprot.readFieldEnd()
12895
    iprot.readStructEnd()
12896
 
12897
  def write(self, oprot):
12898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12900
      return
12901
    oprot.writeStructBegin('getComingSoon_result')
12902
    if self.success is not None:
12903
      oprot.writeFieldBegin('success', TType.LIST, 0)
12904
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 12905
      for iter147 in self.success:
12906
        iter147.write(oprot)
5944 mandeep.dh 12907
      oprot.writeListEnd()
12908
      oprot.writeFieldEnd()
12909
    if self.isex is not None:
12910
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12911
      self.isex.write(oprot)
12912
      oprot.writeFieldEnd()
12913
    oprot.writeFieldStop()
12914
    oprot.writeStructEnd()
12915
 
12916
  def validate(self):
12917
    return
12918
 
12919
 
12920
  def __repr__(self):
12921
    L = ['%s=%r' % (key, value)
12922
      for key, value in self.__dict__.iteritems()]
12923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12924
 
12925
  def __eq__(self, other):
12926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12927
 
12928
  def __ne__(self, other):
12929
    return not (self == other)
12930
 
12931
class getComingSoonCatalogIds_args:
12932
  """
12933
  Attributes:
12934
   - beginIndex
12935
   - totalItems
12936
   - brand
12937
   - category
12938
  """
12939
 
12940
  thrift_spec = (
12941
    None, # 0
12942
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12943
    (2, TType.I64, 'totalItems', None, None, ), # 2
12944
    (3, TType.STRING, 'brand', None, None, ), # 3
12945
    (4, TType.I64, 'category', None, None, ), # 4
12946
  )
12947
 
12948
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12949
    self.beginIndex = beginIndex
12950
    self.totalItems = totalItems
12951
    self.brand = brand
12952
    self.category = category
12953
 
12954
  def read(self, iprot):
12955
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12956
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12957
      return
12958
    iprot.readStructBegin()
12959
    while True:
12960
      (fname, ftype, fid) = iprot.readFieldBegin()
12961
      if ftype == TType.STOP:
12962
        break
12963
      if fid == 1:
12964
        if ftype == TType.I64:
12965
          self.beginIndex = iprot.readI64();
12966
        else:
12967
          iprot.skip(ftype)
12968
      elif fid == 2:
12969
        if ftype == TType.I64:
12970
          self.totalItems = iprot.readI64();
12971
        else:
12972
          iprot.skip(ftype)
12973
      elif fid == 3:
12974
        if ftype == TType.STRING:
12975
          self.brand = iprot.readString();
12976
        else:
12977
          iprot.skip(ftype)
12978
      elif fid == 4:
12979
        if ftype == TType.I64:
12980
          self.category = iprot.readI64();
12981
        else:
12982
          iprot.skip(ftype)
12983
      else:
12984
        iprot.skip(ftype)
12985
      iprot.readFieldEnd()
12986
    iprot.readStructEnd()
12987
 
12988
  def write(self, oprot):
12989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12991
      return
12992
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
12993
    if self.beginIndex is not None:
12994
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12995
      oprot.writeI64(self.beginIndex)
12996
      oprot.writeFieldEnd()
12997
    if self.totalItems is not None:
12998
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12999
      oprot.writeI64(self.totalItems)
13000
      oprot.writeFieldEnd()
13001
    if self.brand is not None:
13002
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13003
      oprot.writeString(self.brand)
13004
      oprot.writeFieldEnd()
13005
    if self.category is not None:
13006
      oprot.writeFieldBegin('category', TType.I64, 4)
13007
      oprot.writeI64(self.category)
13008
      oprot.writeFieldEnd()
13009
    oprot.writeFieldStop()
13010
    oprot.writeStructEnd()
13011
 
13012
  def validate(self):
13013
    return
13014
 
13015
 
13016
  def __repr__(self):
13017
    L = ['%s=%r' % (key, value)
13018
      for key, value in self.__dict__.iteritems()]
13019
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13020
 
13021
  def __eq__(self, other):
13022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13023
 
13024
  def __ne__(self, other):
13025
    return not (self == other)
13026
 
13027
class getComingSoonCatalogIds_result:
13028
  """
13029
  Attributes:
13030
   - success
13031
   - cex
13032
  """
13033
 
13034
  thrift_spec = (
13035
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13036
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13037
  )
13038
 
13039
  def __init__(self, success=None, cex=None,):
13040
    self.success = success
13041
    self.cex = cex
13042
 
13043
  def read(self, iprot):
13044
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13045
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13046
      return
13047
    iprot.readStructBegin()
13048
    while True:
13049
      (fname, ftype, fid) = iprot.readFieldBegin()
13050
      if ftype == TType.STOP:
13051
        break
13052
      if fid == 0:
13053
        if ftype == TType.LIST:
13054
          self.success = []
13493 amit.gupta 13055
          (_etype151, _size148) = iprot.readListBegin()
13056
          for _i152 in xrange(_size148):
13057
            _elem153 = iprot.readI64();
13058
            self.success.append(_elem153)
5944 mandeep.dh 13059
          iprot.readListEnd()
13060
        else:
13061
          iprot.skip(ftype)
13062
      elif fid == 1:
13063
        if ftype == TType.STRUCT:
13064
          self.cex = CatalogServiceException()
13065
          self.cex.read(iprot)
13066
        else:
13067
          iprot.skip(ftype)
13068
      else:
13069
        iprot.skip(ftype)
13070
      iprot.readFieldEnd()
13071
    iprot.readStructEnd()
13072
 
13073
  def write(self, oprot):
13074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13076
      return
13077
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
13078
    if self.success is not None:
13079
      oprot.writeFieldBegin('success', TType.LIST, 0)
13080
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 13081
      for iter154 in self.success:
13082
        oprot.writeI64(iter154)
5944 mandeep.dh 13083
      oprot.writeListEnd()
13084
      oprot.writeFieldEnd()
13085
    if self.cex is not None:
13086
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13087
      self.cex.write(oprot)
13088
      oprot.writeFieldEnd()
13089
    oprot.writeFieldStop()
13090
    oprot.writeStructEnd()
13091
 
13092
  def validate(self):
13093
    return
13094
 
13095
 
13096
  def __repr__(self):
13097
    L = ['%s=%r' % (key, value)
13098
      for key, value in self.__dict__.iteritems()]
13099
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13100
 
13101
  def __eq__(self, other):
13102
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13103
 
13104
  def __ne__(self, other):
13105
    return not (self == other)
13106
 
13107
class getComingSoonCount_args:
13108
 
13109
  thrift_spec = (
13110
  )
13111
 
13112
  def read(self, iprot):
13113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13115
      return
13116
    iprot.readStructBegin()
13117
    while True:
13118
      (fname, ftype, fid) = iprot.readFieldBegin()
13119
      if ftype == TType.STOP:
13120
        break
13121
      else:
13122
        iprot.skip(ftype)
13123
      iprot.readFieldEnd()
13124
    iprot.readStructEnd()
13125
 
13126
  def write(self, oprot):
13127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13129
      return
13130
    oprot.writeStructBegin('getComingSoonCount_args')
13131
    oprot.writeFieldStop()
13132
    oprot.writeStructEnd()
13133
 
13134
  def validate(self):
13135
    return
13136
 
13137
 
13138
  def __repr__(self):
13139
    L = ['%s=%r' % (key, value)
13140
      for key, value in self.__dict__.iteritems()]
13141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13142
 
13143
  def __eq__(self, other):
13144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13145
 
13146
  def __ne__(self, other):
13147
    return not (self == other)
13148
 
13149
class getComingSoonCount_result:
13150
  """
13151
  Attributes:
13152
   - success
13153
   - cex
13154
  """
13155
 
13156
  thrift_spec = (
13157
    (0, TType.I64, 'success', None, None, ), # 0
13158
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13159
  )
13160
 
13161
  def __init__(self, success=None, cex=None,):
13162
    self.success = success
13163
    self.cex = cex
13164
 
13165
  def read(self, iprot):
13166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13168
      return
13169
    iprot.readStructBegin()
13170
    while True:
13171
      (fname, ftype, fid) = iprot.readFieldBegin()
13172
      if ftype == TType.STOP:
13173
        break
13174
      if fid == 0:
13175
        if ftype == TType.I64:
13176
          self.success = iprot.readI64();
13177
        else:
13178
          iprot.skip(ftype)
13179
      elif fid == 1:
13180
        if ftype == TType.STRUCT:
13181
          self.cex = CatalogServiceException()
13182
          self.cex.read(iprot)
13183
        else:
13184
          iprot.skip(ftype)
13185
      else:
13186
        iprot.skip(ftype)
13187
      iprot.readFieldEnd()
13188
    iprot.readStructEnd()
13189
 
13190
  def write(self, oprot):
13191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13193
      return
13194
    oprot.writeStructBegin('getComingSoonCount_result')
13195
    if self.success is not None:
13196
      oprot.writeFieldBegin('success', TType.I64, 0)
13197
      oprot.writeI64(self.success)
13198
      oprot.writeFieldEnd()
13199
    if self.cex is not None:
13200
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13201
      self.cex.write(oprot)
13202
      oprot.writeFieldEnd()
13203
    oprot.writeFieldStop()
13204
    oprot.writeStructEnd()
13205
 
13206
  def validate(self):
13207
    return
13208
 
13209
 
13210
  def __repr__(self):
13211
    L = ['%s=%r' % (key, value)
13212
      for key, value in self.__dict__.iteritems()]
13213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13214
 
13215
  def __eq__(self, other):
13216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13217
 
13218
  def __ne__(self, other):
13219
    return not (self == other)
13220
 
13221
class getLatestArrivals_args:
13222
 
13223
  thrift_spec = (
13224
  )
13225
 
13226
  def read(self, iprot):
13227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13229
      return
13230
    iprot.readStructBegin()
13231
    while True:
13232
      (fname, ftype, fid) = iprot.readFieldBegin()
13233
      if ftype == TType.STOP:
13234
        break
13235
      else:
13236
        iprot.skip(ftype)
13237
      iprot.readFieldEnd()
13238
    iprot.readStructEnd()
13239
 
13240
  def write(self, oprot):
13241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13243
      return
13244
    oprot.writeStructBegin('getLatestArrivals_args')
13245
    oprot.writeFieldStop()
13246
    oprot.writeStructEnd()
13247
 
13248
  def validate(self):
13249
    return
13250
 
13251
 
13252
  def __repr__(self):
13253
    L = ['%s=%r' % (key, value)
13254
      for key, value in self.__dict__.iteritems()]
13255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13256
 
13257
  def __eq__(self, other):
13258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13259
 
13260
  def __ne__(self, other):
13261
    return not (self == other)
13262
 
13263
class getLatestArrivals_result:
13264
  """
13265
  Attributes:
13266
   - success
13267
   - isex
13268
  """
13269
 
13270
  thrift_spec = (
13271
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13272
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13273
  )
13274
 
13275
  def __init__(self, success=None, isex=None,):
13276
    self.success = success
13277
    self.isex = isex
13278
 
13279
  def read(self, iprot):
13280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13282
      return
13283
    iprot.readStructBegin()
13284
    while True:
13285
      (fname, ftype, fid) = iprot.readFieldBegin()
13286
      if ftype == TType.STOP:
13287
        break
13288
      if fid == 0:
13289
        if ftype == TType.LIST:
13290
          self.success = []
13493 amit.gupta 13291
          (_etype158, _size155) = iprot.readListBegin()
13292
          for _i159 in xrange(_size155):
13293
            _elem160 = Item()
13294
            _elem160.read(iprot)
13295
            self.success.append(_elem160)
5944 mandeep.dh 13296
          iprot.readListEnd()
13297
        else:
13298
          iprot.skip(ftype)
13299
      elif fid == 1:
13300
        if ftype == TType.STRUCT:
13301
          self.isex = CatalogServiceException()
13302
          self.isex.read(iprot)
13303
        else:
13304
          iprot.skip(ftype)
13305
      else:
13306
        iprot.skip(ftype)
13307
      iprot.readFieldEnd()
13308
    iprot.readStructEnd()
13309
 
13310
  def write(self, oprot):
13311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13313
      return
13314
    oprot.writeStructBegin('getLatestArrivals_result')
13315
    if self.success is not None:
13316
      oprot.writeFieldBegin('success', TType.LIST, 0)
13317
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 13318
      for iter161 in self.success:
13319
        iter161.write(oprot)
5944 mandeep.dh 13320
      oprot.writeListEnd()
13321
      oprot.writeFieldEnd()
13322
    if self.isex is not None:
13323
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
13324
      self.isex.write(oprot)
13325
      oprot.writeFieldEnd()
13326
    oprot.writeFieldStop()
13327
    oprot.writeStructEnd()
13328
 
13329
  def validate(self):
13330
    return
13331
 
13332
 
13333
  def __repr__(self):
13334
    L = ['%s=%r' % (key, value)
13335
      for key, value in self.__dict__.iteritems()]
13336
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13337
 
13338
  def __eq__(self, other):
13339
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13340
 
13341
  def __ne__(self, other):
13342
    return not (self == other)
13343
 
13344
class getLatestArrivalsCatalogIds_args:
13345
  """
13346
  Attributes:
13347
   - beginIndex
13348
   - totalItems
13349
   - brand
13350
   - categories
13351
  """
13352
 
13353
  thrift_spec = (
13354
    None, # 0
13355
    (1, TType.I64, 'beginIndex', None, None, ), # 1
13356
    (2, TType.I64, 'totalItems', None, None, ), # 2
13357
    (3, TType.STRING, 'brand', None, None, ), # 3
13358
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
13359
  )
13360
 
13361
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
13362
    self.beginIndex = beginIndex
13363
    self.totalItems = totalItems
13364
    self.brand = brand
13365
    self.categories = categories
13366
 
13367
  def read(self, iprot):
13368
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13369
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13370
      return
13371
    iprot.readStructBegin()
13372
    while True:
13373
      (fname, ftype, fid) = iprot.readFieldBegin()
13374
      if ftype == TType.STOP:
13375
        break
13376
      if fid == 1:
13377
        if ftype == TType.I64:
13378
          self.beginIndex = iprot.readI64();
13379
        else:
13380
          iprot.skip(ftype)
13381
      elif fid == 2:
13382
        if ftype == TType.I64:
13383
          self.totalItems = iprot.readI64();
13384
        else:
13385
          iprot.skip(ftype)
13386
      elif fid == 3:
13387
        if ftype == TType.STRING:
13388
          self.brand = iprot.readString();
13389
        else:
13390
          iprot.skip(ftype)
13391
      elif fid == 4:
13392
        if ftype == TType.LIST:
13393
          self.categories = []
13493 amit.gupta 13394
          (_etype165, _size162) = iprot.readListBegin()
13395
          for _i166 in xrange(_size162):
13396
            _elem167 = iprot.readI64();
13397
            self.categories.append(_elem167)
5944 mandeep.dh 13398
          iprot.readListEnd()
13399
        else:
13400
          iprot.skip(ftype)
13401
      else:
13402
        iprot.skip(ftype)
13403
      iprot.readFieldEnd()
13404
    iprot.readStructEnd()
13405
 
13406
  def write(self, oprot):
13407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13409
      return
13410
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
13411
    if self.beginIndex is not None:
13412
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
13413
      oprot.writeI64(self.beginIndex)
13414
      oprot.writeFieldEnd()
13415
    if self.totalItems is not None:
13416
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
13417
      oprot.writeI64(self.totalItems)
13418
      oprot.writeFieldEnd()
13419
    if self.brand is not None:
13420
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13421
      oprot.writeString(self.brand)
13422
      oprot.writeFieldEnd()
13423
    if self.categories is not None:
13424
      oprot.writeFieldBegin('categories', TType.LIST, 4)
13425
      oprot.writeListBegin(TType.I64, len(self.categories))
13493 amit.gupta 13426
      for iter168 in self.categories:
13427
        oprot.writeI64(iter168)
5944 mandeep.dh 13428
      oprot.writeListEnd()
13429
      oprot.writeFieldEnd()
13430
    oprot.writeFieldStop()
13431
    oprot.writeStructEnd()
13432
 
13433
  def validate(self):
13434
    return
13435
 
13436
 
13437
  def __repr__(self):
13438
    L = ['%s=%r' % (key, value)
13439
      for key, value in self.__dict__.iteritems()]
13440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13441
 
13442
  def __eq__(self, other):
13443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13444
 
13445
  def __ne__(self, other):
13446
    return not (self == other)
13447
 
13448
class getLatestArrivalsCatalogIds_result:
13449
  """
13450
  Attributes:
13451
   - success
13452
   - cex
13453
  """
13454
 
13455
  thrift_spec = (
13456
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13457
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13458
  )
13459
 
13460
  def __init__(self, success=None, cex=None,):
13461
    self.success = success
13462
    self.cex = cex
13463
 
13464
  def read(self, iprot):
13465
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13466
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13467
      return
13468
    iprot.readStructBegin()
13469
    while True:
13470
      (fname, ftype, fid) = iprot.readFieldBegin()
13471
      if ftype == TType.STOP:
13472
        break
13473
      if fid == 0:
13474
        if ftype == TType.LIST:
13475
          self.success = []
13493 amit.gupta 13476
          (_etype172, _size169) = iprot.readListBegin()
13477
          for _i173 in xrange(_size169):
13478
            _elem174 = iprot.readI64();
13479
            self.success.append(_elem174)
5944 mandeep.dh 13480
          iprot.readListEnd()
13481
        else:
13482
          iprot.skip(ftype)
13483
      elif fid == 1:
13484
        if ftype == TType.STRUCT:
13485
          self.cex = CatalogServiceException()
13486
          self.cex.read(iprot)
13487
        else:
13488
          iprot.skip(ftype)
13489
      else:
13490
        iprot.skip(ftype)
13491
      iprot.readFieldEnd()
13492
    iprot.readStructEnd()
13493
 
13494
  def write(self, oprot):
13495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13497
      return
13498
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
13499
    if self.success is not None:
13500
      oprot.writeFieldBegin('success', TType.LIST, 0)
13501
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 13502
      for iter175 in self.success:
13503
        oprot.writeI64(iter175)
5944 mandeep.dh 13504
      oprot.writeListEnd()
13505
      oprot.writeFieldEnd()
13506
    if self.cex is not None:
13507
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13508
      self.cex.write(oprot)
13509
      oprot.writeFieldEnd()
13510
    oprot.writeFieldStop()
13511
    oprot.writeStructEnd()
13512
 
13513
  def validate(self):
13514
    return
13515
 
13516
 
13517
  def __repr__(self):
13518
    L = ['%s=%r' % (key, value)
13519
      for key, value in self.__dict__.iteritems()]
13520
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13521
 
13522
  def __eq__(self, other):
13523
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13524
 
13525
  def __ne__(self, other):
13526
    return not (self == other)
13527
 
13528
class getLatestArrivalsCount_args:
13529
 
13530
  thrift_spec = (
13531
  )
13532
 
13533
  def read(self, iprot):
13534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13536
      return
13537
    iprot.readStructBegin()
13538
    while True:
13539
      (fname, ftype, fid) = iprot.readFieldBegin()
13540
      if ftype == TType.STOP:
13541
        break
13542
      else:
13543
        iprot.skip(ftype)
13544
      iprot.readFieldEnd()
13545
    iprot.readStructEnd()
13546
 
13547
  def write(self, oprot):
13548
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13549
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13550
      return
13551
    oprot.writeStructBegin('getLatestArrivalsCount_args')
13552
    oprot.writeFieldStop()
13553
    oprot.writeStructEnd()
13554
 
13555
  def validate(self):
13556
    return
13557
 
13558
 
13559
  def __repr__(self):
13560
    L = ['%s=%r' % (key, value)
13561
      for key, value in self.__dict__.iteritems()]
13562
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13563
 
13564
  def __eq__(self, other):
13565
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13566
 
13567
  def __ne__(self, other):
13568
    return not (self == other)
13569
 
13570
class getLatestArrivalsCount_result:
13571
  """
13572
  Attributes:
13573
   - success
13574
   - cex
13575
  """
13576
 
13577
  thrift_spec = (
13578
    (0, TType.I64, 'success', None, None, ), # 0
13579
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13580
  )
13581
 
13582
  def __init__(self, success=None, cex=None,):
13583
    self.success = success
13584
    self.cex = cex
13585
 
13586
  def read(self, iprot):
13587
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13588
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13589
      return
13590
    iprot.readStructBegin()
13591
    while True:
13592
      (fname, ftype, fid) = iprot.readFieldBegin()
13593
      if ftype == TType.STOP:
13594
        break
13595
      if fid == 0:
13596
        if ftype == TType.I64:
13597
          self.success = iprot.readI64();
13598
        else:
13599
          iprot.skip(ftype)
13600
      elif fid == 1:
13601
        if ftype == TType.STRUCT:
13602
          self.cex = CatalogServiceException()
13603
          self.cex.read(iprot)
13604
        else:
13605
          iprot.skip(ftype)
13606
      else:
13607
        iprot.skip(ftype)
13608
      iprot.readFieldEnd()
13609
    iprot.readStructEnd()
13610
 
13611
  def write(self, oprot):
13612
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13613
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13614
      return
13615
    oprot.writeStructBegin('getLatestArrivalsCount_result')
13616
    if self.success is not None:
13617
      oprot.writeFieldBegin('success', TType.I64, 0)
13618
      oprot.writeI64(self.success)
13619
      oprot.writeFieldEnd()
13620
    if self.cex is not None:
13621
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13622
      self.cex.write(oprot)
13623
      oprot.writeFieldEnd()
13624
    oprot.writeFieldStop()
13625
    oprot.writeStructEnd()
13626
 
13627
  def validate(self):
13628
    return
13629
 
13630
 
13631
  def __repr__(self):
13632
    L = ['%s=%r' % (key, value)
13633
      for key, value in self.__dict__.iteritems()]
13634
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13635
 
13636
  def __eq__(self, other):
13637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13638
 
13639
  def __ne__(self, other):
13640
    return not (self == other)
13641
 
13642
class generateNewEntityID_args:
13643
 
13644
  thrift_spec = (
13645
  )
13646
 
13647
  def read(self, iprot):
13648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13650
      return
13651
    iprot.readStructBegin()
13652
    while True:
13653
      (fname, ftype, fid) = iprot.readFieldBegin()
13654
      if ftype == TType.STOP:
13655
        break
13656
      else:
13657
        iprot.skip(ftype)
13658
      iprot.readFieldEnd()
13659
    iprot.readStructEnd()
13660
 
13661
  def write(self, oprot):
13662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13664
      return
13665
    oprot.writeStructBegin('generateNewEntityID_args')
13666
    oprot.writeFieldStop()
13667
    oprot.writeStructEnd()
13668
 
13669
  def validate(self):
13670
    return
13671
 
13672
 
13673
  def __repr__(self):
13674
    L = ['%s=%r' % (key, value)
13675
      for key, value in self.__dict__.iteritems()]
13676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13677
 
13678
  def __eq__(self, other):
13679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13680
 
13681
  def __ne__(self, other):
13682
    return not (self == other)
13683
 
13684
class generateNewEntityID_result:
13685
  """
13686
  Attributes:
13687
   - success
13688
  """
13689
 
13690
  thrift_spec = (
13691
    (0, TType.I64, 'success', None, None, ), # 0
13692
  )
13693
 
13694
  def __init__(self, success=None,):
13695
    self.success = success
13696
 
13697
  def read(self, iprot):
13698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13700
      return
13701
    iprot.readStructBegin()
13702
    while True:
13703
      (fname, ftype, fid) = iprot.readFieldBegin()
13704
      if ftype == TType.STOP:
13705
        break
13706
      if fid == 0:
13707
        if ftype == TType.I64:
13708
          self.success = iprot.readI64();
13709
        else:
13710
          iprot.skip(ftype)
13711
      else:
13712
        iprot.skip(ftype)
13713
      iprot.readFieldEnd()
13714
    iprot.readStructEnd()
13715
 
13716
  def write(self, oprot):
13717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13719
      return
13720
    oprot.writeStructBegin('generateNewEntityID_result')
13721
    if self.success is not None:
13722
      oprot.writeFieldBegin('success', TType.I64, 0)
13723
      oprot.writeI64(self.success)
13724
      oprot.writeFieldEnd()
13725
    oprot.writeFieldStop()
13726
    oprot.writeStructEnd()
13727
 
13728
  def validate(self):
13729
    return
13730
 
13731
 
13732
  def __repr__(self):
13733
    L = ['%s=%r' % (key, value)
13734
      for key, value in self.__dict__.iteritems()]
13735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13736
 
13737
  def __eq__(self, other):
13738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13739
 
13740
  def __ne__(self, other):
13741
    return not (self == other)
13742
 
13743
class addCategory_args:
13744
  """
13745
  Attributes:
13746
   - category
13747
  """
13748
 
13749
  thrift_spec = (
13750
    None, # 0
13751
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
13752
  )
13753
 
13754
  def __init__(self, category=None,):
13755
    self.category = category
13756
 
13757
  def read(self, iprot):
13758
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13759
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13760
      return
13761
    iprot.readStructBegin()
13762
    while True:
13763
      (fname, ftype, fid) = iprot.readFieldBegin()
13764
      if ftype == TType.STOP:
13765
        break
13766
      if fid == 1:
13767
        if ftype == TType.STRUCT:
13768
          self.category = Category()
13769
          self.category.read(iprot)
13770
        else:
13771
          iprot.skip(ftype)
13772
      else:
13773
        iprot.skip(ftype)
13774
      iprot.readFieldEnd()
13775
    iprot.readStructEnd()
13776
 
13777
  def write(self, oprot):
13778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13780
      return
13781
    oprot.writeStructBegin('addCategory_args')
13782
    if self.category is not None:
13783
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
13784
      self.category.write(oprot)
13785
      oprot.writeFieldEnd()
13786
    oprot.writeFieldStop()
13787
    oprot.writeStructEnd()
13788
 
13789
  def validate(self):
13790
    return
13791
 
13792
 
13793
  def __repr__(self):
13794
    L = ['%s=%r' % (key, value)
13795
      for key, value in self.__dict__.iteritems()]
13796
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13797
 
13798
  def __eq__(self, other):
13799
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13800
 
13801
  def __ne__(self, other):
13802
    return not (self == other)
13803
 
13804
class addCategory_result:
13805
  """
13806
  Attributes:
13807
   - success
13808
  """
13809
 
13810
  thrift_spec = (
13811
    (0, TType.BOOL, 'success', None, None, ), # 0
13812
  )
13813
 
13814
  def __init__(self, success=None,):
13815
    self.success = success
13816
 
13817
  def read(self, iprot):
13818
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13819
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13820
      return
13821
    iprot.readStructBegin()
13822
    while True:
13823
      (fname, ftype, fid) = iprot.readFieldBegin()
13824
      if ftype == TType.STOP:
13825
        break
13826
      if fid == 0:
13827
        if ftype == TType.BOOL:
13828
          self.success = iprot.readBool();
13829
        else:
13830
          iprot.skip(ftype)
13831
      else:
13832
        iprot.skip(ftype)
13833
      iprot.readFieldEnd()
13834
    iprot.readStructEnd()
13835
 
13836
  def write(self, oprot):
13837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13839
      return
13840
    oprot.writeStructBegin('addCategory_result')
13841
    if self.success is not None:
13842
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13843
      oprot.writeBool(self.success)
13844
      oprot.writeFieldEnd()
13845
    oprot.writeFieldStop()
13846
    oprot.writeStructEnd()
13847
 
13848
  def validate(self):
13849
    return
13850
 
13851
 
13852
  def __repr__(self):
13853
    L = ['%s=%r' % (key, value)
13854
      for key, value in self.__dict__.iteritems()]
13855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13856
 
13857
  def __eq__(self, other):
13858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13859
 
13860
  def __ne__(self, other):
13861
    return not (self == other)
13862
 
13863
class getCategory_args:
13864
  """
13865
  Attributes:
13866
   - id
13867
  """
13868
 
13869
  thrift_spec = (
13870
    None, # 0
13871
    (1, TType.I64, 'id', None, None, ), # 1
13872
  )
13873
 
13874
  def __init__(self, id=None,):
13875
    self.id = id
13876
 
13877
  def read(self, iprot):
13878
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13879
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13880
      return
13881
    iprot.readStructBegin()
13882
    while True:
13883
      (fname, ftype, fid) = iprot.readFieldBegin()
13884
      if ftype == TType.STOP:
13885
        break
13886
      if fid == 1:
13887
        if ftype == TType.I64:
13888
          self.id = iprot.readI64();
13889
        else:
13890
          iprot.skip(ftype)
13891
      else:
13892
        iprot.skip(ftype)
13893
      iprot.readFieldEnd()
13894
    iprot.readStructEnd()
13895
 
13896
  def write(self, oprot):
13897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13899
      return
13900
    oprot.writeStructBegin('getCategory_args')
13901
    if self.id is not None:
13902
      oprot.writeFieldBegin('id', TType.I64, 1)
13903
      oprot.writeI64(self.id)
13904
      oprot.writeFieldEnd()
13905
    oprot.writeFieldStop()
13906
    oprot.writeStructEnd()
13907
 
13908
  def validate(self):
13909
    return
13910
 
13911
 
13912
  def __repr__(self):
13913
    L = ['%s=%r' % (key, value)
13914
      for key, value in self.__dict__.iteritems()]
13915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13916
 
13917
  def __eq__(self, other):
13918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13919
 
13920
  def __ne__(self, other):
13921
    return not (self == other)
13922
 
13923
class getCategory_result:
13924
  """
13925
  Attributes:
13926
   - success
13927
  """
13928
 
13929
  thrift_spec = (
13930
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
13931
  )
13932
 
13933
  def __init__(self, success=None,):
13934
    self.success = success
13935
 
13936
  def read(self, iprot):
13937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13939
      return
13940
    iprot.readStructBegin()
13941
    while True:
13942
      (fname, ftype, fid) = iprot.readFieldBegin()
13943
      if ftype == TType.STOP:
13944
        break
13945
      if fid == 0:
13946
        if ftype == TType.STRUCT:
13947
          self.success = Category()
13948
          self.success.read(iprot)
13949
        else:
13950
          iprot.skip(ftype)
13951
      else:
13952
        iprot.skip(ftype)
13953
      iprot.readFieldEnd()
13954
    iprot.readStructEnd()
13955
 
13956
  def write(self, oprot):
13957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13959
      return
13960
    oprot.writeStructBegin('getCategory_result')
13961
    if self.success is not None:
13962
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13963
      self.success.write(oprot)
13964
      oprot.writeFieldEnd()
13965
    oprot.writeFieldStop()
13966
    oprot.writeStructEnd()
13967
 
13968
  def validate(self):
13969
    return
13970
 
13971
 
13972
  def __repr__(self):
13973
    L = ['%s=%r' % (key, value)
13974
      for key, value in self.__dict__.iteritems()]
13975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13976
 
13977
  def __eq__(self, other):
13978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13979
 
13980
  def __ne__(self, other):
13981
    return not (self == other)
13982
 
13983
class getAllCategories_args:
13984
 
13985
  thrift_spec = (
13986
  )
13987
 
13988
  def read(self, iprot):
13989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13991
      return
13992
    iprot.readStructBegin()
13993
    while True:
13994
      (fname, ftype, fid) = iprot.readFieldBegin()
13995
      if ftype == TType.STOP:
13996
        break
13997
      else:
13998
        iprot.skip(ftype)
13999
      iprot.readFieldEnd()
14000
    iprot.readStructEnd()
14001
 
14002
  def write(self, oprot):
14003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14005
      return
14006
    oprot.writeStructBegin('getAllCategories_args')
14007
    oprot.writeFieldStop()
14008
    oprot.writeStructEnd()
14009
 
14010
  def validate(self):
14011
    return
14012
 
14013
 
14014
  def __repr__(self):
14015
    L = ['%s=%r' % (key, value)
14016
      for key, value in self.__dict__.iteritems()]
14017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14018
 
14019
  def __eq__(self, other):
14020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14021
 
14022
  def __ne__(self, other):
14023
    return not (self == other)
14024
 
14025
class getAllCategories_result:
14026
  """
14027
  Attributes:
14028
   - success
14029
  """
14030
 
14031
  thrift_spec = (
14032
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
14033
  )
14034
 
14035
  def __init__(self, success=None,):
14036
    self.success = success
14037
 
14038
  def read(self, iprot):
14039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14041
      return
14042
    iprot.readStructBegin()
14043
    while True:
14044
      (fname, ftype, fid) = iprot.readFieldBegin()
14045
      if ftype == TType.STOP:
14046
        break
14047
      if fid == 0:
14048
        if ftype == TType.LIST:
14049
          self.success = []
13493 amit.gupta 14050
          (_etype179, _size176) = iprot.readListBegin()
14051
          for _i180 in xrange(_size176):
14052
            _elem181 = Category()
14053
            _elem181.read(iprot)
14054
            self.success.append(_elem181)
5944 mandeep.dh 14055
          iprot.readListEnd()
14056
        else:
14057
          iprot.skip(ftype)
14058
      else:
14059
        iprot.skip(ftype)
14060
      iprot.readFieldEnd()
14061
    iprot.readStructEnd()
14062
 
14063
  def write(self, oprot):
14064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14066
      return
14067
    oprot.writeStructBegin('getAllCategories_result')
14068
    if self.success is not None:
14069
      oprot.writeFieldBegin('success', TType.LIST, 0)
14070
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 14071
      for iter182 in self.success:
14072
        iter182.write(oprot)
5944 mandeep.dh 14073
      oprot.writeListEnd()
14074
      oprot.writeFieldEnd()
14075
    oprot.writeFieldStop()
14076
    oprot.writeStructEnd()
14077
 
14078
  def validate(self):
14079
    return
14080
 
14081
 
14082
  def __repr__(self):
14083
    L = ['%s=%r' % (key, value)
14084
      for key, value in self.__dict__.iteritems()]
14085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14086
 
14087
  def __eq__(self, other):
14088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14089
 
14090
  def __ne__(self, other):
14091
    return not (self == other)
14092
 
14093
class getAllSimilarItems_args:
14094
  """
14095
  Attributes:
14096
   - itemId
14097
  """
14098
 
14099
  thrift_spec = (
14100
    None, # 0
14101
    (1, TType.I64, 'itemId', None, None, ), # 1
14102
  )
14103
 
14104
  def __init__(self, itemId=None,):
14105
    self.itemId = itemId
14106
 
14107
  def read(self, iprot):
14108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14110
      return
14111
    iprot.readStructBegin()
14112
    while True:
14113
      (fname, ftype, fid) = iprot.readFieldBegin()
14114
      if ftype == TType.STOP:
14115
        break
14116
      if fid == 1:
14117
        if ftype == TType.I64:
14118
          self.itemId = iprot.readI64();
14119
        else:
14120
          iprot.skip(ftype)
14121
      else:
14122
        iprot.skip(ftype)
14123
      iprot.readFieldEnd()
14124
    iprot.readStructEnd()
14125
 
14126
  def write(self, oprot):
14127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14129
      return
14130
    oprot.writeStructBegin('getAllSimilarItems_args')
14131
    if self.itemId is not None:
14132
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14133
      oprot.writeI64(self.itemId)
14134
      oprot.writeFieldEnd()
14135
    oprot.writeFieldStop()
14136
    oprot.writeStructEnd()
14137
 
14138
  def validate(self):
14139
    return
14140
 
14141
 
14142
  def __repr__(self):
14143
    L = ['%s=%r' % (key, value)
14144
      for key, value in self.__dict__.iteritems()]
14145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14146
 
14147
  def __eq__(self, other):
14148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14149
 
14150
  def __ne__(self, other):
14151
    return not (self == other)
14152
 
14153
class getAllSimilarItems_result:
14154
  """
14155
  Attributes:
14156
   - success
14157
  """
14158
 
14159
  thrift_spec = (
14160
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
14161
  )
14162
 
14163
  def __init__(self, success=None,):
14164
    self.success = success
14165
 
14166
  def read(self, iprot):
14167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14169
      return
14170
    iprot.readStructBegin()
14171
    while True:
14172
      (fname, ftype, fid) = iprot.readFieldBegin()
14173
      if ftype == TType.STOP:
14174
        break
14175
      if fid == 0:
14176
        if ftype == TType.LIST:
14177
          self.success = []
13493 amit.gupta 14178
          (_etype186, _size183) = iprot.readListBegin()
14179
          for _i187 in xrange(_size183):
14180
            _elem188 = Item()
14181
            _elem188.read(iprot)
14182
            self.success.append(_elem188)
5944 mandeep.dh 14183
          iprot.readListEnd()
14184
        else:
14185
          iprot.skip(ftype)
14186
      else:
14187
        iprot.skip(ftype)
14188
      iprot.readFieldEnd()
14189
    iprot.readStructEnd()
14190
 
14191
  def write(self, oprot):
14192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14194
      return
14195
    oprot.writeStructBegin('getAllSimilarItems_result')
14196
    if self.success is not None:
14197
      oprot.writeFieldBegin('success', TType.LIST, 0)
14198
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 14199
      for iter189 in self.success:
14200
        iter189.write(oprot)
5944 mandeep.dh 14201
      oprot.writeListEnd()
14202
      oprot.writeFieldEnd()
14203
    oprot.writeFieldStop()
14204
    oprot.writeStructEnd()
14205
 
14206
  def validate(self):
14207
    return
14208
 
14209
 
14210
  def __repr__(self):
14211
    L = ['%s=%r' % (key, value)
14212
      for key, value in self.__dict__.iteritems()]
14213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14214
 
14215
  def __eq__(self, other):
14216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14217
 
14218
  def __ne__(self, other):
14219
    return not (self == other)
14220
 
14221
class addSimilarItem_args:
14222
  """
14223
  Attributes:
14224
   - itemId
14225
   - catalogItemId
14226
  """
14227
 
14228
  thrift_spec = (
14229
    None, # 0
14230
    (1, TType.I64, 'itemId', None, None, ), # 1
14231
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
14232
  )
14233
 
14234
  def __init__(self, itemId=None, catalogItemId=None,):
14235
    self.itemId = itemId
14236
    self.catalogItemId = catalogItemId
14237
 
14238
  def read(self, iprot):
14239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14241
      return
14242
    iprot.readStructBegin()
14243
    while True:
14244
      (fname, ftype, fid) = iprot.readFieldBegin()
14245
      if ftype == TType.STOP:
14246
        break
14247
      if fid == 1:
14248
        if ftype == TType.I64:
14249
          self.itemId = iprot.readI64();
14250
        else:
14251
          iprot.skip(ftype)
14252
      elif fid == 2:
14253
        if ftype == TType.I64:
14254
          self.catalogItemId = iprot.readI64();
14255
        else:
14256
          iprot.skip(ftype)
14257
      else:
14258
        iprot.skip(ftype)
14259
      iprot.readFieldEnd()
14260
    iprot.readStructEnd()
14261
 
14262
  def write(self, oprot):
14263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14265
      return
14266
    oprot.writeStructBegin('addSimilarItem_args')
14267
    if self.itemId is not None:
14268
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14269
      oprot.writeI64(self.itemId)
14270
      oprot.writeFieldEnd()
14271
    if self.catalogItemId is not None:
14272
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
14273
      oprot.writeI64(self.catalogItemId)
14274
      oprot.writeFieldEnd()
14275
    oprot.writeFieldStop()
14276
    oprot.writeStructEnd()
14277
 
14278
  def validate(self):
14279
    return
14280
 
14281
 
14282
  def __repr__(self):
14283
    L = ['%s=%r' % (key, value)
14284
      for key, value in self.__dict__.iteritems()]
14285
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14286
 
14287
  def __eq__(self, other):
14288
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14289
 
14290
  def __ne__(self, other):
14291
    return not (self == other)
14292
 
14293
class addSimilarItem_result:
14294
  """
14295
  Attributes:
14296
   - success
14297
   - cex
14298
  """
14299
 
14300
  thrift_spec = (
14301
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
14302
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14303
  )
14304
 
14305
  def __init__(self, success=None, cex=None,):
14306
    self.success = success
14307
    self.cex = cex
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.STRUCT:
14320
          self.success = Item()
14321
          self.success.read(iprot)
14322
        else:
14323
          iprot.skip(ftype)
14324
      elif fid == 1:
14325
        if ftype == TType.STRUCT:
14326
          self.cex = CatalogServiceException()
14327
          self.cex.read(iprot)
14328
        else:
14329
          iprot.skip(ftype)
14330
      else:
14331
        iprot.skip(ftype)
14332
      iprot.readFieldEnd()
14333
    iprot.readStructEnd()
14334
 
14335
  def write(self, oprot):
14336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14338
      return
14339
    oprot.writeStructBegin('addSimilarItem_result')
14340
    if self.success is not None:
14341
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14342
      self.success.write(oprot)
14343
      oprot.writeFieldEnd()
14344
    if self.cex is not None:
14345
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14346
      self.cex.write(oprot)
14347
      oprot.writeFieldEnd()
14348
    oprot.writeFieldStop()
14349
    oprot.writeStructEnd()
14350
 
14351
  def validate(self):
14352
    return
14353
 
14354
 
14355
  def __repr__(self):
14356
    L = ['%s=%r' % (key, value)
14357
      for key, value in self.__dict__.iteritems()]
14358
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14359
 
14360
  def __eq__(self, other):
14361
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14362
 
14363
  def __ne__(self, other):
14364
    return not (self == other)
14365
 
6512 kshitij.so 14366
class addTag_args:
14367
  """
14368
  Attributes:
14369
   - displayName
14370
   - itemId
14371
  """
14372
 
14373
  thrift_spec = (
14374
    None, # 0
14375
    (1, TType.STRING, 'displayName', None, None, ), # 1
14376
    (2, TType.I64, 'itemId', None, None, ), # 2
14377
  )
14378
 
14379
  def __init__(self, displayName=None, itemId=None,):
14380
    self.displayName = displayName
14381
    self.itemId = itemId
14382
 
14383
  def read(self, iprot):
14384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14386
      return
14387
    iprot.readStructBegin()
14388
    while True:
14389
      (fname, ftype, fid) = iprot.readFieldBegin()
14390
      if ftype == TType.STOP:
14391
        break
14392
      if fid == 1:
14393
        if ftype == TType.STRING:
14394
          self.displayName = iprot.readString();
14395
        else:
14396
          iprot.skip(ftype)
14397
      elif fid == 2:
14398
        if ftype == TType.I64:
14399
          self.itemId = iprot.readI64();
14400
        else:
14401
          iprot.skip(ftype)
14402
      else:
14403
        iprot.skip(ftype)
14404
      iprot.readFieldEnd()
14405
    iprot.readStructEnd()
14406
 
14407
  def write(self, oprot):
14408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14410
      return
14411
    oprot.writeStructBegin('addTag_args')
14412
    if self.displayName is not None:
14413
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14414
      oprot.writeString(self.displayName)
14415
      oprot.writeFieldEnd()
14416
    if self.itemId is not None:
14417
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14418
      oprot.writeI64(self.itemId)
14419
      oprot.writeFieldEnd()
14420
    oprot.writeFieldStop()
14421
    oprot.writeStructEnd()
14422
 
14423
  def validate(self):
14424
    return
14425
 
14426
 
14427
  def __repr__(self):
14428
    L = ['%s=%r' % (key, value)
14429
      for key, value in self.__dict__.iteritems()]
14430
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14431
 
14432
  def __eq__(self, other):
14433
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14434
 
14435
  def __ne__(self, other):
14436
    return not (self == other)
14437
 
14438
class addTag_result:
14439
  """
14440
  Attributes:
14441
   - success
14442
  """
14443
 
14444
  thrift_spec = (
14445
    (0, TType.BOOL, 'success', None, None, ), # 0
14446
  )
14447
 
14448
  def __init__(self, success=None,):
14449
    self.success = success
14450
 
14451
  def read(self, iprot):
14452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14454
      return
14455
    iprot.readStructBegin()
14456
    while True:
14457
      (fname, ftype, fid) = iprot.readFieldBegin()
14458
      if ftype == TType.STOP:
14459
        break
14460
      if fid == 0:
14461
        if ftype == TType.BOOL:
14462
          self.success = iprot.readBool();
14463
        else:
14464
          iprot.skip(ftype)
14465
      else:
14466
        iprot.skip(ftype)
14467
      iprot.readFieldEnd()
14468
    iprot.readStructEnd()
14469
 
14470
  def write(self, oprot):
14471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14473
      return
14474
    oprot.writeStructBegin('addTag_result')
14475
    if self.success is not None:
14476
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14477
      oprot.writeBool(self.success)
14478
      oprot.writeFieldEnd()
14479
    oprot.writeFieldStop()
14480
    oprot.writeStructEnd()
14481
 
14482
  def validate(self):
14483
    return
14484
 
14485
 
14486
  def __repr__(self):
14487
    L = ['%s=%r' % (key, value)
14488
      for key, value in self.__dict__.iteritems()]
14489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14490
 
14491
  def __eq__(self, other):
14492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14493
 
14494
  def __ne__(self, other):
14495
    return not (self == other)
14496
 
14497
class deleteEntityTag_args:
14498
  """
14499
  Attributes:
14500
   - displayName
14501
   - itemId
14502
  """
14503
 
14504
  thrift_spec = (
14505
    None, # 0
14506
    (1, TType.STRING, 'displayName', None, None, ), # 1
14507
    (2, TType.I64, 'itemId', None, None, ), # 2
14508
  )
14509
 
14510
  def __init__(self, displayName=None, itemId=None,):
14511
    self.displayName = displayName
14512
    self.itemId = itemId
14513
 
14514
  def read(self, iprot):
14515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14517
      return
14518
    iprot.readStructBegin()
14519
    while True:
14520
      (fname, ftype, fid) = iprot.readFieldBegin()
14521
      if ftype == TType.STOP:
14522
        break
14523
      if fid == 1:
14524
        if ftype == TType.STRING:
14525
          self.displayName = iprot.readString();
14526
        else:
14527
          iprot.skip(ftype)
14528
      elif fid == 2:
14529
        if ftype == TType.I64:
14530
          self.itemId = iprot.readI64();
14531
        else:
14532
          iprot.skip(ftype)
14533
      else:
14534
        iprot.skip(ftype)
14535
      iprot.readFieldEnd()
14536
    iprot.readStructEnd()
14537
 
14538
  def write(self, oprot):
14539
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14540
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14541
      return
14542
    oprot.writeStructBegin('deleteEntityTag_args')
14543
    if self.displayName is not None:
14544
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14545
      oprot.writeString(self.displayName)
14546
      oprot.writeFieldEnd()
14547
    if self.itemId is not None:
14548
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14549
      oprot.writeI64(self.itemId)
14550
      oprot.writeFieldEnd()
14551
    oprot.writeFieldStop()
14552
    oprot.writeStructEnd()
14553
 
14554
  def validate(self):
14555
    return
14556
 
14557
 
14558
  def __repr__(self):
14559
    L = ['%s=%r' % (key, value)
14560
      for key, value in self.__dict__.iteritems()]
14561
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14562
 
14563
  def __eq__(self, other):
14564
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14565
 
14566
  def __ne__(self, other):
14567
    return not (self == other)
14568
 
14569
class deleteEntityTag_result:
14570
  """
14571
  Attributes:
14572
   - success
14573
  """
14574
 
14575
  thrift_spec = (
14576
    (0, TType.BOOL, 'success', None, None, ), # 0
14577
  )
14578
 
14579
  def __init__(self, success=None,):
14580
    self.success = success
14581
 
14582
  def read(self, iprot):
14583
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14584
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14585
      return
14586
    iprot.readStructBegin()
14587
    while True:
14588
      (fname, ftype, fid) = iprot.readFieldBegin()
14589
      if ftype == TType.STOP:
14590
        break
14591
      if fid == 0:
14592
        if ftype == TType.BOOL:
14593
          self.success = iprot.readBool();
14594
        else:
14595
          iprot.skip(ftype)
14596
      else:
14597
        iprot.skip(ftype)
14598
      iprot.readFieldEnd()
14599
    iprot.readStructEnd()
14600
 
14601
  def write(self, oprot):
14602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14604
      return
14605
    oprot.writeStructBegin('deleteEntityTag_result')
14606
    if self.success is not None:
14607
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14608
      oprot.writeBool(self.success)
14609
      oprot.writeFieldEnd()
14610
    oprot.writeFieldStop()
14611
    oprot.writeStructEnd()
14612
 
14613
  def validate(self):
14614
    return
14615
 
14616
 
14617
  def __repr__(self):
14618
    L = ['%s=%r' % (key, value)
14619
      for key, value in self.__dict__.iteritems()]
14620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14621
 
14622
  def __eq__(self, other):
14623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14624
 
14625
  def __ne__(self, other):
14626
    return not (self == other)
14627
 
14628
class deleteTag_args:
14629
  """
14630
  Attributes:
14631
   - displayName
14632
  """
14633
 
14634
  thrift_spec = (
14635
    None, # 0
14636
    (1, TType.STRING, 'displayName', None, None, ), # 1
14637
  )
14638
 
14639
  def __init__(self, displayName=None,):
14640
    self.displayName = displayName
14641
 
14642
  def read(self, iprot):
14643
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14644
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14645
      return
14646
    iprot.readStructBegin()
14647
    while True:
14648
      (fname, ftype, fid) = iprot.readFieldBegin()
14649
      if ftype == TType.STOP:
14650
        break
14651
      if fid == 1:
14652
        if ftype == TType.STRING:
14653
          self.displayName = iprot.readString();
14654
        else:
14655
          iprot.skip(ftype)
14656
      else:
14657
        iprot.skip(ftype)
14658
      iprot.readFieldEnd()
14659
    iprot.readStructEnd()
14660
 
14661
  def write(self, oprot):
14662
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14663
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14664
      return
14665
    oprot.writeStructBegin('deleteTag_args')
14666
    if self.displayName is not None:
14667
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14668
      oprot.writeString(self.displayName)
14669
      oprot.writeFieldEnd()
14670
    oprot.writeFieldStop()
14671
    oprot.writeStructEnd()
14672
 
14673
  def validate(self):
14674
    return
14675
 
14676
 
14677
  def __repr__(self):
14678
    L = ['%s=%r' % (key, value)
14679
      for key, value in self.__dict__.iteritems()]
14680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14681
 
14682
  def __eq__(self, other):
14683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14684
 
14685
  def __ne__(self, other):
14686
    return not (self == other)
14687
 
14688
class deleteTag_result:
14689
  """
14690
  Attributes:
14691
   - success
14692
  """
14693
 
14694
  thrift_spec = (
14695
    (0, TType.BOOL, 'success', None, None, ), # 0
14696
  )
14697
 
14698
  def __init__(self, success=None,):
14699
    self.success = success
14700
 
14701
  def read(self, iprot):
14702
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14703
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14704
      return
14705
    iprot.readStructBegin()
14706
    while True:
14707
      (fname, ftype, fid) = iprot.readFieldBegin()
14708
      if ftype == TType.STOP:
14709
        break
14710
      if fid == 0:
14711
        if ftype == TType.BOOL:
14712
          self.success = iprot.readBool();
14713
        else:
14714
          iprot.skip(ftype)
14715
      else:
14716
        iprot.skip(ftype)
14717
      iprot.readFieldEnd()
14718
    iprot.readStructEnd()
14719
 
14720
  def write(self, oprot):
14721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14723
      return
14724
    oprot.writeStructBegin('deleteTag_result')
14725
    if self.success is not None:
14726
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14727
      oprot.writeBool(self.success)
14728
      oprot.writeFieldEnd()
14729
    oprot.writeFieldStop()
14730
    oprot.writeStructEnd()
14731
 
14732
  def validate(self):
14733
    return
14734
 
14735
 
14736
  def __repr__(self):
14737
    L = ['%s=%r' % (key, value)
14738
      for key, value in self.__dict__.iteritems()]
14739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14740
 
14741
  def __eq__(self, other):
14742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14743
 
14744
  def __ne__(self, other):
14745
    return not (self == other)
14746
 
14747
class getAllTags_args:
14748
 
14749
  thrift_spec = (
14750
  )
14751
 
14752
  def read(self, iprot):
14753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14755
      return
14756
    iprot.readStructBegin()
14757
    while True:
14758
      (fname, ftype, fid) = iprot.readFieldBegin()
14759
      if ftype == TType.STOP:
14760
        break
14761
      else:
14762
        iprot.skip(ftype)
14763
      iprot.readFieldEnd()
14764
    iprot.readStructEnd()
14765
 
14766
  def write(self, oprot):
14767
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14768
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14769
      return
14770
    oprot.writeStructBegin('getAllTags_args')
14771
    oprot.writeFieldStop()
14772
    oprot.writeStructEnd()
14773
 
14774
  def validate(self):
14775
    return
14776
 
14777
 
14778
  def __repr__(self):
14779
    L = ['%s=%r' % (key, value)
14780
      for key, value in self.__dict__.iteritems()]
14781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14782
 
14783
  def __eq__(self, other):
14784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14785
 
14786
  def __ne__(self, other):
14787
    return not (self == other)
14788
 
14789
class getAllTags_result:
14790
  """
14791
  Attributes:
14792
   - success
14793
  """
14794
 
14795
  thrift_spec = (
14796
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14797
  )
14798
 
14799
  def __init__(self, success=None,):
14800
    self.success = success
14801
 
14802
  def read(self, iprot):
14803
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14804
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14805
      return
14806
    iprot.readStructBegin()
14807
    while True:
14808
      (fname, ftype, fid) = iprot.readFieldBegin()
14809
      if ftype == TType.STOP:
14810
        break
14811
      if fid == 0:
14812
        if ftype == TType.LIST:
14813
          self.success = []
13493 amit.gupta 14814
          (_etype193, _size190) = iprot.readListBegin()
14815
          for _i194 in xrange(_size190):
14816
            _elem195 = iprot.readString();
14817
            self.success.append(_elem195)
6512 kshitij.so 14818
          iprot.readListEnd()
14819
        else:
14820
          iprot.skip(ftype)
14821
      else:
14822
        iprot.skip(ftype)
14823
      iprot.readFieldEnd()
14824
    iprot.readStructEnd()
14825
 
14826
  def write(self, oprot):
14827
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14828
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14829
      return
14830
    oprot.writeStructBegin('getAllTags_result')
14831
    if self.success is not None:
14832
      oprot.writeFieldBegin('success', TType.LIST, 0)
14833
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 14834
      for iter196 in self.success:
14835
        oprot.writeString(iter196)
6512 kshitij.so 14836
      oprot.writeListEnd()
14837
      oprot.writeFieldEnd()
14838
    oprot.writeFieldStop()
14839
    oprot.writeStructEnd()
14840
 
14841
  def validate(self):
14842
    return
14843
 
14844
 
14845
  def __repr__(self):
14846
    L = ['%s=%r' % (key, value)
14847
      for key, value in self.__dict__.iteritems()]
14848
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14849
 
14850
  def __eq__(self, other):
14851
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14852
 
14853
  def __ne__(self, other):
14854
    return not (self == other)
14855
 
14856
class getAllEntitiesByTagName_args:
14857
  """
14858
  Attributes:
14859
   - displayName
14860
  """
14861
 
14862
  thrift_spec = (
14863
    None, # 0
14864
    (1, TType.STRING, 'displayName', None, None, ), # 1
14865
  )
14866
 
14867
  def __init__(self, displayName=None,):
14868
    self.displayName = displayName
14869
 
14870
  def read(self, iprot):
14871
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14872
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14873
      return
14874
    iprot.readStructBegin()
14875
    while True:
14876
      (fname, ftype, fid) = iprot.readFieldBegin()
14877
      if ftype == TType.STOP:
14878
        break
14879
      if fid == 1:
14880
        if ftype == TType.STRING:
14881
          self.displayName = iprot.readString();
14882
        else:
14883
          iprot.skip(ftype)
14884
      else:
14885
        iprot.skip(ftype)
14886
      iprot.readFieldEnd()
14887
    iprot.readStructEnd()
14888
 
14889
  def write(self, oprot):
14890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14892
      return
14893
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
14894
    if self.displayName is not None:
14895
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14896
      oprot.writeString(self.displayName)
14897
      oprot.writeFieldEnd()
14898
    oprot.writeFieldStop()
14899
    oprot.writeStructEnd()
14900
 
14901
  def validate(self):
14902
    return
14903
 
14904
 
14905
  def __repr__(self):
14906
    L = ['%s=%r' % (key, value)
14907
      for key, value in self.__dict__.iteritems()]
14908
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14909
 
14910
  def __eq__(self, other):
14911
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14912
 
14913
  def __ne__(self, other):
14914
    return not (self == other)
14915
 
14916
class getAllEntitiesByTagName_result:
14917
  """
14918
  Attributes:
14919
   - success
14920
  """
14921
 
14922
  thrift_spec = (
14923
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
14924
  )
14925
 
14926
  def __init__(self, success=None,):
14927
    self.success = success
14928
 
14929
  def read(self, iprot):
14930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14932
      return
14933
    iprot.readStructBegin()
14934
    while True:
14935
      (fname, ftype, fid) = iprot.readFieldBegin()
14936
      if ftype == TType.STOP:
14937
        break
14938
      if fid == 0:
14939
        if ftype == TType.LIST:
14940
          self.success = []
13493 amit.gupta 14941
          (_etype200, _size197) = iprot.readListBegin()
14942
          for _i201 in xrange(_size197):
14943
            _elem202 = iprot.readI64();
14944
            self.success.append(_elem202)
6512 kshitij.so 14945
          iprot.readListEnd()
14946
        else:
14947
          iprot.skip(ftype)
14948
      else:
14949
        iprot.skip(ftype)
14950
      iprot.readFieldEnd()
14951
    iprot.readStructEnd()
14952
 
14953
  def write(self, oprot):
14954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14956
      return
14957
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
14958
    if self.success is not None:
14959
      oprot.writeFieldBegin('success', TType.LIST, 0)
14960
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 14961
      for iter203 in self.success:
14962
        oprot.writeI64(iter203)
6512 kshitij.so 14963
      oprot.writeListEnd()
14964
      oprot.writeFieldEnd()
14965
    oprot.writeFieldStop()
14966
    oprot.writeStructEnd()
14967
 
14968
  def validate(self):
14969
    return
14970
 
14971
 
14972
  def __repr__(self):
14973
    L = ['%s=%r' % (key, value)
14974
      for key, value in self.__dict__.iteritems()]
14975
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14976
 
14977
  def __eq__(self, other):
14978
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14979
 
14980
  def __ne__(self, other):
14981
    return not (self == other)
14982
 
6845 amit.gupta 14983
class getAllEntityTags_args:
14984
 
14985
  thrift_spec = (
14986
  )
14987
 
14988
  def read(self, iprot):
14989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14991
      return
14992
    iprot.readStructBegin()
14993
    while True:
14994
      (fname, ftype, fid) = iprot.readFieldBegin()
14995
      if ftype == TType.STOP:
14996
        break
14997
      else:
14998
        iprot.skip(ftype)
14999
      iprot.readFieldEnd()
15000
    iprot.readStructEnd()
15001
 
15002
  def write(self, oprot):
15003
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15004
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15005
      return
15006
    oprot.writeStructBegin('getAllEntityTags_args')
15007
    oprot.writeFieldStop()
15008
    oprot.writeStructEnd()
15009
 
15010
  def validate(self):
15011
    return
15012
 
15013
 
15014
  def __repr__(self):
15015
    L = ['%s=%r' % (key, value)
15016
      for key, value in self.__dict__.iteritems()]
15017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15018
 
15019
  def __eq__(self, other):
15020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15021
 
15022
  def __ne__(self, other):
15023
    return not (self == other)
15024
 
15025
class getAllEntityTags_result:
15026
  """
15027
  Attributes:
15028
   - success
15029
  """
15030
 
15031
  thrift_spec = (
15032
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
15033
  )
15034
 
15035
  def __init__(self, success=None,):
15036
    self.success = success
15037
 
15038
  def read(self, iprot):
15039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15041
      return
15042
    iprot.readStructBegin()
15043
    while True:
15044
      (fname, ftype, fid) = iprot.readFieldBegin()
15045
      if ftype == TType.STOP:
15046
        break
15047
      if fid == 0:
15048
        if ftype == TType.MAP:
15049
          self.success = {}
13493 amit.gupta 15050
          (_ktype205, _vtype206, _size204 ) = iprot.readMapBegin() 
15051
          for _i208 in xrange(_size204):
15052
            _key209 = iprot.readI64();
15053
            _val210 = []
15054
            (_etype214, _size211) = iprot.readListBegin()
15055
            for _i215 in xrange(_size211):
15056
              _elem216 = iprot.readString();
15057
              _val210.append(_elem216)
6845 amit.gupta 15058
            iprot.readListEnd()
13493 amit.gupta 15059
            self.success[_key209] = _val210
6845 amit.gupta 15060
          iprot.readMapEnd()
15061
        else:
15062
          iprot.skip(ftype)
15063
      else:
15064
        iprot.skip(ftype)
15065
      iprot.readFieldEnd()
15066
    iprot.readStructEnd()
15067
 
15068
  def write(self, oprot):
15069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15071
      return
15072
    oprot.writeStructBegin('getAllEntityTags_result')
15073
    if self.success is not None:
15074
      oprot.writeFieldBegin('success', TType.MAP, 0)
15075
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
13493 amit.gupta 15076
      for kiter217,viter218 in self.success.items():
15077
        oprot.writeI64(kiter217)
15078
        oprot.writeListBegin(TType.STRING, len(viter218))
15079
        for iter219 in viter218:
15080
          oprot.writeString(iter219)
6845 amit.gupta 15081
        oprot.writeListEnd()
15082
      oprot.writeMapEnd()
15083
      oprot.writeFieldEnd()
15084
    oprot.writeFieldStop()
15085
    oprot.writeStructEnd()
15086
 
15087
  def validate(self):
15088
    return
15089
 
15090
 
15091
  def __repr__(self):
15092
    L = ['%s=%r' % (key, value)
15093
      for key, value in self.__dict__.iteritems()]
15094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15095
 
15096
  def __eq__(self, other):
15097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15098
 
15099
  def __ne__(self, other):
15100
    return not (self == other)
15101
 
6850 kshitij.so 15102
class addBanner_args:
15103
  """
15104
  Attributes:
8590 kshitij.so 15105
   - bannerCongregate
6850 kshitij.so 15106
  """
15107
 
15108
  thrift_spec = (
15109
    None, # 0
8590 kshitij.so 15110
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 15111
  )
15112
 
8590 kshitij.so 15113
  def __init__(self, bannerCongregate=None,):
15114
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 15115
 
15116
  def read(self, iprot):
15117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15119
      return
15120
    iprot.readStructBegin()
15121
    while True:
15122
      (fname, ftype, fid) = iprot.readFieldBegin()
15123
      if ftype == TType.STOP:
15124
        break
15125
      if fid == 1:
8579 kshitij.so 15126
        if ftype == TType.STRUCT:
8590 kshitij.so 15127
          self.bannerCongregate = BannerCongregate()
15128
          self.bannerCongregate.read(iprot)
6850 kshitij.so 15129
        else:
15130
          iprot.skip(ftype)
8579 kshitij.so 15131
      else:
15132
        iprot.skip(ftype)
15133
      iprot.readFieldEnd()
15134
    iprot.readStructEnd()
15135
 
15136
  def write(self, oprot):
15137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15139
      return
15140
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 15141
    if self.bannerCongregate is not None:
15142
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
15143
      self.bannerCongregate.write(oprot)
8579 kshitij.so 15144
      oprot.writeFieldEnd()
15145
    oprot.writeFieldStop()
15146
    oprot.writeStructEnd()
15147
 
15148
  def validate(self):
15149
    return
15150
 
15151
 
15152
  def __repr__(self):
15153
    L = ['%s=%r' % (key, value)
15154
      for key, value in self.__dict__.iteritems()]
15155
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15156
 
15157
  def __eq__(self, other):
15158
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15159
 
15160
  def __ne__(self, other):
15161
    return not (self == other)
15162
 
15163
class addBanner_result:
10097 kshitij.so 15164
  """
15165
  Attributes:
15166
   - success
15167
  """
8579 kshitij.so 15168
 
15169
  thrift_spec = (
10097 kshitij.so 15170
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 15171
  )
15172
 
10097 kshitij.so 15173
  def __init__(self, success=None,):
15174
    self.success = success
15175
 
8579 kshitij.so 15176
  def read(self, iprot):
15177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15179
      return
15180
    iprot.readStructBegin()
15181
    while True:
15182
      (fname, ftype, fid) = iprot.readFieldBegin()
15183
      if ftype == TType.STOP:
15184
        break
10097 kshitij.so 15185
      if fid == 0:
15186
        if ftype == TType.BOOL:
15187
          self.success = iprot.readBool();
15188
        else:
15189
          iprot.skip(ftype)
8579 kshitij.so 15190
      else:
15191
        iprot.skip(ftype)
15192
      iprot.readFieldEnd()
15193
    iprot.readStructEnd()
15194
 
15195
  def write(self, oprot):
15196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15198
      return
15199
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 15200
    if self.success is not None:
15201
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15202
      oprot.writeBool(self.success)
15203
      oprot.writeFieldEnd()
8579 kshitij.so 15204
    oprot.writeFieldStop()
15205
    oprot.writeStructEnd()
15206
 
15207
  def validate(self):
15208
    return
15209
 
15210
 
15211
  def __repr__(self):
15212
    L = ['%s=%r' % (key, value)
15213
      for key, value in self.__dict__.iteritems()]
15214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15215
 
15216
  def __eq__(self, other):
15217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15218
 
15219
  def __ne__(self, other):
15220
    return not (self == other)
15221
 
15222
class updateBanner_args:
15223
  """
15224
  Attributes:
15225
   - banner
15226
  """
15227
 
15228
  thrift_spec = (
15229
    None, # 0
15230
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
15231
  )
15232
 
15233
  def __init__(self, banner=None,):
15234
    self.banner = banner
15235
 
15236
  def read(self, iprot):
15237
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15238
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15239
      return
15240
    iprot.readStructBegin()
15241
    while True:
15242
      (fname, ftype, fid) = iprot.readFieldBegin()
15243
      if ftype == TType.STOP:
15244
        break
15245
      if fid == 1:
15246
        if ftype == TType.STRUCT:
15247
          self.banner = Banner()
15248
          self.banner.read(iprot)
6850 kshitij.so 15249
        else:
15250
          iprot.skip(ftype)
15251
      else:
15252
        iprot.skip(ftype)
15253
      iprot.readFieldEnd()
15254
    iprot.readStructEnd()
15255
 
15256
  def write(self, oprot):
15257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15259
      return
8579 kshitij.so 15260
    oprot.writeStructBegin('updateBanner_args')
15261
    if self.banner is not None:
15262
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
15263
      self.banner.write(oprot)
6850 kshitij.so 15264
      oprot.writeFieldEnd()
15265
    oprot.writeFieldStop()
15266
    oprot.writeStructEnd()
15267
 
15268
  def validate(self):
15269
    return
15270
 
15271
 
15272
  def __repr__(self):
15273
    L = ['%s=%r' % (key, value)
15274
      for key, value in self.__dict__.iteritems()]
15275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15276
 
15277
  def __eq__(self, other):
15278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15279
 
15280
  def __ne__(self, other):
15281
    return not (self == other)
15282
 
8579 kshitij.so 15283
class updateBanner_result:
6850 kshitij.so 15284
  """
15285
  Attributes:
15286
   - success
15287
  """
15288
 
15289
  thrift_spec = (
15290
    (0, TType.BOOL, 'success', None, None, ), # 0
15291
  )
15292
 
15293
  def __init__(self, success=None,):
15294
    self.success = success
15295
 
15296
  def read(self, iprot):
15297
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15298
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15299
      return
15300
    iprot.readStructBegin()
15301
    while True:
15302
      (fname, ftype, fid) = iprot.readFieldBegin()
15303
      if ftype == TType.STOP:
15304
        break
15305
      if fid == 0:
15306
        if ftype == TType.BOOL:
15307
          self.success = iprot.readBool();
15308
        else:
15309
          iprot.skip(ftype)
15310
      else:
15311
        iprot.skip(ftype)
15312
      iprot.readFieldEnd()
15313
    iprot.readStructEnd()
15314
 
15315
  def write(self, oprot):
15316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15318
      return
8579 kshitij.so 15319
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 15320
    if self.success is not None:
15321
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15322
      oprot.writeBool(self.success)
15323
      oprot.writeFieldEnd()
15324
    oprot.writeFieldStop()
15325
    oprot.writeStructEnd()
15326
 
15327
  def validate(self):
15328
    return
15329
 
15330
 
15331
  def __repr__(self):
15332
    L = ['%s=%r' % (key, value)
15333
      for key, value in self.__dict__.iteritems()]
15334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15335
 
15336
  def __eq__(self, other):
15337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15338
 
15339
  def __ne__(self, other):
15340
    return not (self == other)
15341
 
15342
class getAllBanners_args:
15343
 
15344
  thrift_spec = (
15345
  )
15346
 
15347
  def read(self, iprot):
15348
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15349
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15350
      return
15351
    iprot.readStructBegin()
15352
    while True:
15353
      (fname, ftype, fid) = iprot.readFieldBegin()
15354
      if ftype == TType.STOP:
15355
        break
15356
      else:
15357
        iprot.skip(ftype)
15358
      iprot.readFieldEnd()
15359
    iprot.readStructEnd()
15360
 
15361
  def write(self, oprot):
15362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15364
      return
15365
    oprot.writeStructBegin('getAllBanners_args')
15366
    oprot.writeFieldStop()
15367
    oprot.writeStructEnd()
15368
 
15369
  def validate(self):
15370
    return
15371
 
15372
 
15373
  def __repr__(self):
15374
    L = ['%s=%r' % (key, value)
15375
      for key, value in self.__dict__.iteritems()]
15376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15377
 
15378
  def __eq__(self, other):
15379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15380
 
15381
  def __ne__(self, other):
15382
    return not (self == other)
15383
 
15384
class getAllBanners_result:
15385
  """
15386
  Attributes:
15387
   - success
15388
  """
15389
 
15390
  thrift_spec = (
8579 kshitij.so 15391
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 15392
  )
15393
 
15394
  def __init__(self, success=None,):
15395
    self.success = success
15396
 
15397
  def read(self, iprot):
15398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15400
      return
15401
    iprot.readStructBegin()
15402
    while True:
15403
      (fname, ftype, fid) = iprot.readFieldBegin()
15404
      if ftype == TType.STOP:
15405
        break
15406
      if fid == 0:
15407
        if ftype == TType.LIST:
15408
          self.success = []
13493 amit.gupta 15409
          (_etype223, _size220) = iprot.readListBegin()
15410
          for _i224 in xrange(_size220):
15411
            _elem225 = Banner()
15412
            _elem225.read(iprot)
15413
            self.success.append(_elem225)
6850 kshitij.so 15414
          iprot.readListEnd()
15415
        else:
15416
          iprot.skip(ftype)
15417
      else:
15418
        iprot.skip(ftype)
15419
      iprot.readFieldEnd()
15420
    iprot.readStructEnd()
15421
 
15422
  def write(self, oprot):
15423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15425
      return
15426
    oprot.writeStructBegin('getAllBanners_result')
15427
    if self.success is not None:
15428
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 15429
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 15430
      for iter226 in self.success:
15431
        iter226.write(oprot)
6850 kshitij.so 15432
      oprot.writeListEnd()
15433
      oprot.writeFieldEnd()
15434
    oprot.writeFieldStop()
15435
    oprot.writeStructEnd()
15436
 
15437
  def validate(self):
15438
    return
15439
 
15440
 
15441
  def __repr__(self):
15442
    L = ['%s=%r' % (key, value)
15443
      for key, value in self.__dict__.iteritems()]
15444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15445
 
15446
  def __eq__(self, other):
15447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15448
 
15449
  def __ne__(self, other):
15450
    return not (self == other)
15451
 
15452
class deleteBanner_args:
15453
  """
15454
  Attributes:
15455
   - bannerName
9155 kshitij.so 15456
   - bannerType
6850 kshitij.so 15457
  """
15458
 
15459
  thrift_spec = (
15460
    None, # 0
15461
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15462
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15463
  )
15464
 
9155 kshitij.so 15465
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15466
    self.bannerName = bannerName
9155 kshitij.so 15467
    self.bannerType = bannerType
6850 kshitij.so 15468
 
15469
  def read(self, iprot):
15470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15472
      return
15473
    iprot.readStructBegin()
15474
    while True:
15475
      (fname, ftype, fid) = iprot.readFieldBegin()
15476
      if ftype == TType.STOP:
15477
        break
15478
      if fid == 1:
15479
        if ftype == TType.STRING:
15480
          self.bannerName = iprot.readString();
15481
        else:
15482
          iprot.skip(ftype)
9155 kshitij.so 15483
      elif fid == 2:
15484
        if ftype == TType.I32:
15485
          self.bannerType = iprot.readI32();
15486
        else:
15487
          iprot.skip(ftype)
6850 kshitij.so 15488
      else:
15489
        iprot.skip(ftype)
15490
      iprot.readFieldEnd()
15491
    iprot.readStructEnd()
15492
 
15493
  def write(self, oprot):
15494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15496
      return
15497
    oprot.writeStructBegin('deleteBanner_args')
15498
    if self.bannerName is not None:
15499
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15500
      oprot.writeString(self.bannerName)
15501
      oprot.writeFieldEnd()
9155 kshitij.so 15502
    if self.bannerType is not None:
15503
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15504
      oprot.writeI32(self.bannerType)
15505
      oprot.writeFieldEnd()
6850 kshitij.so 15506
    oprot.writeFieldStop()
15507
    oprot.writeStructEnd()
15508
 
15509
  def validate(self):
15510
    return
15511
 
15512
 
15513
  def __repr__(self):
15514
    L = ['%s=%r' % (key, value)
15515
      for key, value in self.__dict__.iteritems()]
15516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15517
 
15518
  def __eq__(self, other):
15519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15520
 
15521
  def __ne__(self, other):
15522
    return not (self == other)
15523
 
15524
class deleteBanner_result:
15525
  """
15526
  Attributes:
15527
   - success
15528
  """
15529
 
15530
  thrift_spec = (
15531
    (0, TType.BOOL, 'success', None, None, ), # 0
15532
  )
15533
 
15534
  def __init__(self, success=None,):
15535
    self.success = success
15536
 
15537
  def read(self, iprot):
15538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15540
      return
15541
    iprot.readStructBegin()
15542
    while True:
15543
      (fname, ftype, fid) = iprot.readFieldBegin()
15544
      if ftype == TType.STOP:
15545
        break
15546
      if fid == 0:
15547
        if ftype == TType.BOOL:
15548
          self.success = iprot.readBool();
15549
        else:
15550
          iprot.skip(ftype)
15551
      else:
15552
        iprot.skip(ftype)
15553
      iprot.readFieldEnd()
15554
    iprot.readStructEnd()
15555
 
15556
  def write(self, oprot):
15557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15559
      return
15560
    oprot.writeStructBegin('deleteBanner_result')
15561
    if self.success is not None:
15562
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15563
      oprot.writeBool(self.success)
15564
      oprot.writeFieldEnd()
15565
    oprot.writeFieldStop()
15566
    oprot.writeStructEnd()
15567
 
15568
  def validate(self):
15569
    return
15570
 
15571
 
15572
  def __repr__(self):
15573
    L = ['%s=%r' % (key, value)
15574
      for key, value in self.__dict__.iteritems()]
15575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15576
 
15577
  def __eq__(self, other):
15578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15579
 
15580
  def __ne__(self, other):
15581
    return not (self == other)
15582
 
15583
class getBannerDetails_args:
15584
  """
15585
  Attributes:
15586
   - bannerName
9155 kshitij.so 15587
   - bannerType
6850 kshitij.so 15588
  """
15589
 
15590
  thrift_spec = (
15591
    None, # 0
15592
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15593
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15594
  )
15595
 
9155 kshitij.so 15596
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15597
    self.bannerName = bannerName
9155 kshitij.so 15598
    self.bannerType = bannerType
6850 kshitij.so 15599
 
15600
  def read(self, iprot):
15601
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15602
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15603
      return
15604
    iprot.readStructBegin()
15605
    while True:
15606
      (fname, ftype, fid) = iprot.readFieldBegin()
15607
      if ftype == TType.STOP:
15608
        break
15609
      if fid == 1:
15610
        if ftype == TType.STRING:
15611
          self.bannerName = iprot.readString();
15612
        else:
15613
          iprot.skip(ftype)
9155 kshitij.so 15614
      elif fid == 2:
15615
        if ftype == TType.I32:
15616
          self.bannerType = iprot.readI32();
15617
        else:
15618
          iprot.skip(ftype)
6850 kshitij.so 15619
      else:
15620
        iprot.skip(ftype)
15621
      iprot.readFieldEnd()
15622
    iprot.readStructEnd()
15623
 
15624
  def write(self, oprot):
15625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15627
      return
15628
    oprot.writeStructBegin('getBannerDetails_args')
15629
    if self.bannerName is not None:
15630
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15631
      oprot.writeString(self.bannerName)
15632
      oprot.writeFieldEnd()
9155 kshitij.so 15633
    if self.bannerType is not None:
15634
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15635
      oprot.writeI32(self.bannerType)
15636
      oprot.writeFieldEnd()
6850 kshitij.so 15637
    oprot.writeFieldStop()
15638
    oprot.writeStructEnd()
15639
 
15640
  def validate(self):
15641
    return
15642
 
15643
 
15644
  def __repr__(self):
15645
    L = ['%s=%r' % (key, value)
15646
      for key, value in self.__dict__.iteritems()]
15647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15648
 
15649
  def __eq__(self, other):
15650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15651
 
15652
  def __ne__(self, other):
15653
    return not (self == other)
15654
 
15655
class getBannerDetails_result:
15656
  """
15657
  Attributes:
15658
   - success
15659
  """
15660
 
15661
  thrift_spec = (
15662
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
15663
  )
15664
 
15665
  def __init__(self, success=None,):
15666
    self.success = success
15667
 
15668
  def read(self, iprot):
15669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15671
      return
15672
    iprot.readStructBegin()
15673
    while True:
15674
      (fname, ftype, fid) = iprot.readFieldBegin()
15675
      if ftype == TType.STOP:
15676
        break
15677
      if fid == 0:
15678
        if ftype == TType.STRUCT:
15679
          self.success = Banner()
15680
          self.success.read(iprot)
15681
        else:
15682
          iprot.skip(ftype)
15683
      else:
15684
        iprot.skip(ftype)
15685
      iprot.readFieldEnd()
15686
    iprot.readStructEnd()
15687
 
15688
  def write(self, oprot):
15689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15691
      return
15692
    oprot.writeStructBegin('getBannerDetails_result')
15693
    if self.success is not None:
15694
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15695
      self.success.write(oprot)
15696
      oprot.writeFieldEnd()
15697
    oprot.writeFieldStop()
15698
    oprot.writeStructEnd()
15699
 
15700
  def validate(self):
15701
    return
15702
 
15703
 
15704
  def __repr__(self):
15705
    L = ['%s=%r' % (key, value)
15706
      for key, value in self.__dict__.iteritems()]
15707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15708
 
15709
  def __eq__(self, other):
15710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15711
 
15712
  def __ne__(self, other):
15713
    return not (self == other)
15714
 
15715
class getActiveBanners_args:
15716
 
15717
  thrift_spec = (
15718
  )
15719
 
15720
  def read(self, iprot):
15721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15723
      return
15724
    iprot.readStructBegin()
15725
    while True:
15726
      (fname, ftype, fid) = iprot.readFieldBegin()
15727
      if ftype == TType.STOP:
15728
        break
15729
      else:
15730
        iprot.skip(ftype)
15731
      iprot.readFieldEnd()
15732
    iprot.readStructEnd()
15733
 
15734
  def write(self, oprot):
15735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15737
      return
15738
    oprot.writeStructBegin('getActiveBanners_args')
15739
    oprot.writeFieldStop()
15740
    oprot.writeStructEnd()
15741
 
15742
  def validate(self):
15743
    return
15744
 
15745
 
15746
  def __repr__(self):
15747
    L = ['%s=%r' % (key, value)
15748
      for key, value in self.__dict__.iteritems()]
15749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15750
 
15751
  def __eq__(self, other):
15752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15753
 
15754
  def __ne__(self, other):
15755
    return not (self == other)
15756
 
15757
class getActiveBanners_result:
15758
  """
15759
  Attributes:
15760
   - success
15761
  """
15762
 
15763
  thrift_spec = (
8579 kshitij.so 15764
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 15765
  )
15766
 
15767
  def __init__(self, success=None,):
15768
    self.success = success
15769
 
15770
  def read(self, iprot):
15771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15773
      return
15774
    iprot.readStructBegin()
15775
    while True:
15776
      (fname, ftype, fid) = iprot.readFieldBegin()
15777
      if ftype == TType.STOP:
15778
        break
15779
      if fid == 0:
8579 kshitij.so 15780
        if ftype == TType.MAP:
15781
          self.success = {}
13493 amit.gupta 15782
          (_ktype228, _vtype229, _size227 ) = iprot.readMapBegin() 
15783
          for _i231 in xrange(_size227):
15784
            _key232 = iprot.readString();
15785
            _val233 = []
15786
            (_etype237, _size234) = iprot.readListBegin()
15787
            for _i238 in xrange(_size234):
15788
              _elem239 = Banner()
15789
              _elem239.read(iprot)
15790
              _val233.append(_elem239)
8579 kshitij.so 15791
            iprot.readListEnd()
13493 amit.gupta 15792
            self.success[_key232] = _val233
8579 kshitij.so 15793
          iprot.readMapEnd()
6850 kshitij.so 15794
        else:
15795
          iprot.skip(ftype)
15796
      else:
15797
        iprot.skip(ftype)
15798
      iprot.readFieldEnd()
15799
    iprot.readStructEnd()
15800
 
15801
  def write(self, oprot):
15802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15804
      return
15805
    oprot.writeStructBegin('getActiveBanners_result')
15806
    if self.success is not None:
8579 kshitij.so 15807
      oprot.writeFieldBegin('success', TType.MAP, 0)
15808
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
13493 amit.gupta 15809
      for kiter240,viter241 in self.success.items():
15810
        oprot.writeString(kiter240)
15811
        oprot.writeListBegin(TType.STRUCT, len(viter241))
15812
        for iter242 in viter241:
15813
          iter242.write(oprot)
8579 kshitij.so 15814
        oprot.writeListEnd()
15815
      oprot.writeMapEnd()
6850 kshitij.so 15816
      oprot.writeFieldEnd()
15817
    oprot.writeFieldStop()
15818
    oprot.writeStructEnd()
15819
 
15820
  def validate(self):
15821
    return
15822
 
15823
 
15824
  def __repr__(self):
15825
    L = ['%s=%r' % (key, value)
15826
      for key, value in self.__dict__.iteritems()]
15827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15828
 
15829
  def __eq__(self, other):
15830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15831
 
15832
  def __ne__(self, other):
15833
    return not (self == other)
15834
 
6849 kshitij.so 15835
class addBannerMap_args:
15836
  """
15837
  Attributes:
8579 kshitij.so 15838
   - bannerMaps
6849 kshitij.so 15839
  """
15840
 
15841
  thrift_spec = (
15842
    None, # 0
8579 kshitij.so 15843
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 15844
  )
15845
 
8579 kshitij.so 15846
  def __init__(self, bannerMaps=None,):
15847
    self.bannerMaps = bannerMaps
6849 kshitij.so 15848
 
15849
  def read(self, iprot):
15850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15852
      return
15853
    iprot.readStructBegin()
15854
    while True:
15855
      (fname, ftype, fid) = iprot.readFieldBegin()
15856
      if ftype == TType.STOP:
15857
        break
15858
      if fid == 1:
8579 kshitij.so 15859
        if ftype == TType.LIST:
15860
          self.bannerMaps = []
13493 amit.gupta 15861
          (_etype246, _size243) = iprot.readListBegin()
15862
          for _i247 in xrange(_size243):
15863
            _elem248 = BannerMap()
15864
            _elem248.read(iprot)
15865
            self.bannerMaps.append(_elem248)
8579 kshitij.so 15866
          iprot.readListEnd()
6849 kshitij.so 15867
        else:
15868
          iprot.skip(ftype)
8579 kshitij.so 15869
      else:
15870
        iprot.skip(ftype)
15871
      iprot.readFieldEnd()
15872
    iprot.readStructEnd()
15873
 
15874
  def write(self, oprot):
15875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15877
      return
15878
    oprot.writeStructBegin('addBannerMap_args')
15879
    if self.bannerMaps is not None:
15880
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
15881
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
13493 amit.gupta 15882
      for iter249 in self.bannerMaps:
15883
        iter249.write(oprot)
8579 kshitij.so 15884
      oprot.writeListEnd()
15885
      oprot.writeFieldEnd()
15886
    oprot.writeFieldStop()
15887
    oprot.writeStructEnd()
15888
 
15889
  def validate(self):
15890
    return
15891
 
15892
 
15893
  def __repr__(self):
15894
    L = ['%s=%r' % (key, value)
15895
      for key, value in self.__dict__.iteritems()]
15896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15897
 
15898
  def __eq__(self, other):
15899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15900
 
15901
  def __ne__(self, other):
15902
    return not (self == other)
15903
 
15904
class addBannerMap_result:
15905
  """
15906
  Attributes:
15907
   - success
15908
  """
15909
 
15910
  thrift_spec = (
15911
    (0, TType.BOOL, 'success', None, None, ), # 0
15912
  )
15913
 
15914
  def __init__(self, success=None,):
15915
    self.success = success
15916
 
15917
  def read(self, iprot):
15918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15920
      return
15921
    iprot.readStructBegin()
15922
    while True:
15923
      (fname, ftype, fid) = iprot.readFieldBegin()
15924
      if ftype == TType.STOP:
15925
        break
15926
      if fid == 0:
15927
        if ftype == TType.BOOL:
15928
          self.success = iprot.readBool();
6849 kshitij.so 15929
        else:
15930
          iprot.skip(ftype)
8579 kshitij.so 15931
      else:
15932
        iprot.skip(ftype)
15933
      iprot.readFieldEnd()
15934
    iprot.readStructEnd()
15935
 
15936
  def write(self, oprot):
15937
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15938
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15939
      return
15940
    oprot.writeStructBegin('addBannerMap_result')
15941
    if self.success is not None:
15942
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15943
      oprot.writeBool(self.success)
15944
      oprot.writeFieldEnd()
15945
    oprot.writeFieldStop()
15946
    oprot.writeStructEnd()
15947
 
15948
  def validate(self):
15949
    return
15950
 
15951
 
15952
  def __repr__(self):
15953
    L = ['%s=%r' % (key, value)
15954
      for key, value in self.__dict__.iteritems()]
15955
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15956
 
15957
  def __eq__(self, other):
15958
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15959
 
15960
  def __ne__(self, other):
15961
    return not (self == other)
15962
 
15963
class updateBannerMap_args:
15964
  """
15965
  Attributes:
15966
   - bannerMap
15967
  """
15968
 
15969
  thrift_spec = (
15970
    None, # 0
15971
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
15972
  )
15973
 
15974
  def __init__(self, bannerMap=None,):
15975
    self.bannerMap = bannerMap
15976
 
15977
  def read(self, iprot):
15978
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15979
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15980
      return
15981
    iprot.readStructBegin()
15982
    while True:
15983
      (fname, ftype, fid) = iprot.readFieldBegin()
15984
      if ftype == TType.STOP:
15985
        break
15986
      if fid == 1:
15987
        if ftype == TType.STRUCT:
15988
          self.bannerMap = BannerMap()
15989
          self.bannerMap.read(iprot)
6849 kshitij.so 15990
        else:
15991
          iprot.skip(ftype)
15992
      else:
15993
        iprot.skip(ftype)
15994
      iprot.readFieldEnd()
15995
    iprot.readStructEnd()
15996
 
15997
  def write(self, oprot):
15998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16000
      return
8579 kshitij.so 16001
    oprot.writeStructBegin('updateBannerMap_args')
16002
    if self.bannerMap is not None:
16003
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
16004
      self.bannerMap.write(oprot)
6849 kshitij.so 16005
      oprot.writeFieldEnd()
16006
    oprot.writeFieldStop()
16007
    oprot.writeStructEnd()
16008
 
16009
  def validate(self):
16010
    return
16011
 
16012
 
16013
  def __repr__(self):
16014
    L = ['%s=%r' % (key, value)
16015
      for key, value in self.__dict__.iteritems()]
16016
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16017
 
16018
  def __eq__(self, other):
16019
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16020
 
16021
  def __ne__(self, other):
16022
    return not (self == other)
16023
 
8579 kshitij.so 16024
class updateBannerMap_result:
6849 kshitij.so 16025
  """
16026
  Attributes:
16027
   - success
16028
  """
16029
 
16030
  thrift_spec = (
16031
    (0, TType.BOOL, 'success', None, None, ), # 0
16032
  )
16033
 
16034
  def __init__(self, success=None,):
16035
    self.success = success
16036
 
16037
  def read(self, iprot):
16038
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16039
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16040
      return
16041
    iprot.readStructBegin()
16042
    while True:
16043
      (fname, ftype, fid) = iprot.readFieldBegin()
16044
      if ftype == TType.STOP:
16045
        break
16046
      if fid == 0:
16047
        if ftype == TType.BOOL:
16048
          self.success = iprot.readBool();
16049
        else:
16050
          iprot.skip(ftype)
16051
      else:
16052
        iprot.skip(ftype)
16053
      iprot.readFieldEnd()
16054
    iprot.readStructEnd()
16055
 
16056
  def write(self, oprot):
16057
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16058
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16059
      return
8579 kshitij.so 16060
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 16061
    if self.success is not None:
16062
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16063
      oprot.writeBool(self.success)
16064
      oprot.writeFieldEnd()
16065
    oprot.writeFieldStop()
16066
    oprot.writeStructEnd()
16067
 
16068
  def validate(self):
16069
    return
16070
 
16071
 
16072
  def __repr__(self):
16073
    L = ['%s=%r' % (key, value)
16074
      for key, value in self.__dict__.iteritems()]
16075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16076
 
16077
  def __eq__(self, other):
16078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16079
 
16080
  def __ne__(self, other):
16081
    return not (self == other)
16082
 
16083
class deleteBannerMap_args:
16084
  """
16085
  Attributes:
16086
   - bannerName
16087
  """
16088
 
16089
  thrift_spec = (
16090
    None, # 0
16091
    (1, TType.STRING, 'bannerName', None, None, ), # 1
16092
  )
16093
 
16094
  def __init__(self, bannerName=None,):
16095
    self.bannerName = bannerName
16096
 
16097
  def read(self, iprot):
16098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16100
      return
16101
    iprot.readStructBegin()
16102
    while True:
16103
      (fname, ftype, fid) = iprot.readFieldBegin()
16104
      if ftype == TType.STOP:
16105
        break
16106
      if fid == 1:
16107
        if ftype == TType.STRING:
16108
          self.bannerName = iprot.readString();
16109
        else:
16110
          iprot.skip(ftype)
16111
      else:
16112
        iprot.skip(ftype)
16113
      iprot.readFieldEnd()
16114
    iprot.readStructEnd()
16115
 
16116
  def write(self, oprot):
16117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16119
      return
16120
    oprot.writeStructBegin('deleteBannerMap_args')
16121
    if self.bannerName is not None:
16122
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16123
      oprot.writeString(self.bannerName)
16124
      oprot.writeFieldEnd()
16125
    oprot.writeFieldStop()
16126
    oprot.writeStructEnd()
16127
 
16128
  def validate(self):
16129
    return
16130
 
16131
 
16132
  def __repr__(self):
16133
    L = ['%s=%r' % (key, value)
16134
      for key, value in self.__dict__.iteritems()]
16135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16136
 
16137
  def __eq__(self, other):
16138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16139
 
16140
  def __ne__(self, other):
16141
    return not (self == other)
16142
 
16143
class deleteBannerMap_result:
16144
  """
16145
  Attributes:
16146
   - success
16147
  """
16148
 
16149
  thrift_spec = (
16150
    (0, TType.BOOL, 'success', None, None, ), # 0
16151
  )
16152
 
16153
  def __init__(self, success=None,):
16154
    self.success = success
16155
 
16156
  def read(self, iprot):
16157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16159
      return
16160
    iprot.readStructBegin()
16161
    while True:
16162
      (fname, ftype, fid) = iprot.readFieldBegin()
16163
      if ftype == TType.STOP:
16164
        break
16165
      if fid == 0:
16166
        if ftype == TType.BOOL:
16167
          self.success = iprot.readBool();
16168
        else:
16169
          iprot.skip(ftype)
16170
      else:
16171
        iprot.skip(ftype)
16172
      iprot.readFieldEnd()
16173
    iprot.readStructEnd()
16174
 
16175
  def write(self, oprot):
16176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16178
      return
16179
    oprot.writeStructBegin('deleteBannerMap_result')
16180
    if self.success is not None:
16181
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16182
      oprot.writeBool(self.success)
16183
      oprot.writeFieldEnd()
16184
    oprot.writeFieldStop()
16185
    oprot.writeStructEnd()
16186
 
16187
  def validate(self):
16188
    return
16189
 
16190
 
16191
  def __repr__(self):
16192
    L = ['%s=%r' % (key, value)
16193
      for key, value in self.__dict__.iteritems()]
16194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16195
 
16196
  def __eq__(self, other):
16197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16198
 
16199
  def __ne__(self, other):
16200
    return not (self == other)
16201
 
16202
class getBannerMapDetails_args:
16203
  """
16204
  Attributes:
16205
   - bannerName
9155 kshitij.so 16206
   - bannerType
6849 kshitij.so 16207
  """
16208
 
16209
  thrift_spec = (
16210
    None, # 0
16211
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16212
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 16213
  )
16214
 
9155 kshitij.so 16215
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 16216
    self.bannerName = bannerName
9155 kshitij.so 16217
    self.bannerType = bannerType
6849 kshitij.so 16218
 
16219
  def read(self, iprot):
16220
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16221
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16222
      return
16223
    iprot.readStructBegin()
16224
    while True:
16225
      (fname, ftype, fid) = iprot.readFieldBegin()
16226
      if ftype == TType.STOP:
16227
        break
16228
      if fid == 1:
16229
        if ftype == TType.STRING:
16230
          self.bannerName = iprot.readString();
16231
        else:
16232
          iprot.skip(ftype)
9155 kshitij.so 16233
      elif fid == 2:
16234
        if ftype == TType.I32:
16235
          self.bannerType = iprot.readI32();
16236
        else:
16237
          iprot.skip(ftype)
6849 kshitij.so 16238
      else:
16239
        iprot.skip(ftype)
16240
      iprot.readFieldEnd()
16241
    iprot.readStructEnd()
16242
 
16243
  def write(self, oprot):
16244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16246
      return
16247
    oprot.writeStructBegin('getBannerMapDetails_args')
16248
    if self.bannerName is not None:
16249
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16250
      oprot.writeString(self.bannerName)
16251
      oprot.writeFieldEnd()
9155 kshitij.so 16252
    if self.bannerType is not None:
16253
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16254
      oprot.writeI32(self.bannerType)
16255
      oprot.writeFieldEnd()
6849 kshitij.so 16256
    oprot.writeFieldStop()
16257
    oprot.writeStructEnd()
16258
 
16259
  def validate(self):
16260
    return
16261
 
16262
 
16263
  def __repr__(self):
16264
    L = ['%s=%r' % (key, value)
16265
      for key, value in self.__dict__.iteritems()]
16266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16267
 
16268
  def __eq__(self, other):
16269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16270
 
16271
  def __ne__(self, other):
16272
    return not (self == other)
16273
 
16274
class getBannerMapDetails_result:
16275
  """
16276
  Attributes:
16277
   - success
16278
  """
16279
 
16280
  thrift_spec = (
16281
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
16282
  )
16283
 
16284
  def __init__(self, success=None,):
16285
    self.success = success
16286
 
16287
  def read(self, iprot):
16288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16290
      return
16291
    iprot.readStructBegin()
16292
    while True:
16293
      (fname, ftype, fid) = iprot.readFieldBegin()
16294
      if ftype == TType.STOP:
16295
        break
16296
      if fid == 0:
16297
        if ftype == TType.LIST:
16298
          self.success = []
13493 amit.gupta 16299
          (_etype253, _size250) = iprot.readListBegin()
16300
          for _i254 in xrange(_size250):
16301
            _elem255 = BannerMap()
16302
            _elem255.read(iprot)
16303
            self.success.append(_elem255)
6849 kshitij.so 16304
          iprot.readListEnd()
16305
        else:
16306
          iprot.skip(ftype)
16307
      else:
16308
        iprot.skip(ftype)
16309
      iprot.readFieldEnd()
16310
    iprot.readStructEnd()
16311
 
16312
  def write(self, oprot):
16313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16315
      return
16316
    oprot.writeStructBegin('getBannerMapDetails_result')
16317
    if self.success is not None:
16318
      oprot.writeFieldBegin('success', TType.LIST, 0)
16319
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 16320
      for iter256 in self.success:
16321
        iter256.write(oprot)
6849 kshitij.so 16322
      oprot.writeListEnd()
16323
      oprot.writeFieldEnd()
16324
    oprot.writeFieldStop()
16325
    oprot.writeStructEnd()
16326
 
16327
  def validate(self):
16328
    return
16329
 
16330
 
16331
  def __repr__(self):
16332
    L = ['%s=%r' % (key, value)
16333
      for key, value in self.__dict__.iteritems()]
16334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16335
 
16336
  def __eq__(self, other):
16337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16338
 
16339
  def __ne__(self, other):
16340
    return not (self == other)
16341
 
8579 kshitij.so 16342
class addBannerUri_args:
16343
  """
16344
  Attributes:
16345
   - bannerUriMappings
16346
  """
16347
 
16348
  thrift_spec = (
16349
    None, # 0
16350
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
16351
  )
16352
 
16353
  def __init__(self, bannerUriMappings=None,):
16354
    self.bannerUriMappings = bannerUriMappings
16355
 
16356
  def read(self, iprot):
16357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16359
      return
16360
    iprot.readStructBegin()
16361
    while True:
16362
      (fname, ftype, fid) = iprot.readFieldBegin()
16363
      if ftype == TType.STOP:
16364
        break
16365
      if fid == 1:
16366
        if ftype == TType.LIST:
16367
          self.bannerUriMappings = []
13493 amit.gupta 16368
          (_etype260, _size257) = iprot.readListBegin()
16369
          for _i261 in xrange(_size257):
16370
            _elem262 = BannerUriMapping()
16371
            _elem262.read(iprot)
16372
            self.bannerUriMappings.append(_elem262)
8579 kshitij.so 16373
          iprot.readListEnd()
16374
        else:
16375
          iprot.skip(ftype)
16376
      else:
16377
        iprot.skip(ftype)
16378
      iprot.readFieldEnd()
16379
    iprot.readStructEnd()
16380
 
16381
  def write(self, oprot):
16382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16384
      return
16385
    oprot.writeStructBegin('addBannerUri_args')
16386
    if self.bannerUriMappings is not None:
16387
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
16388
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
13493 amit.gupta 16389
      for iter263 in self.bannerUriMappings:
16390
        iter263.write(oprot)
8579 kshitij.so 16391
      oprot.writeListEnd()
16392
      oprot.writeFieldEnd()
16393
    oprot.writeFieldStop()
16394
    oprot.writeStructEnd()
16395
 
16396
  def validate(self):
16397
    return
16398
 
16399
 
16400
  def __repr__(self):
16401
    L = ['%s=%r' % (key, value)
16402
      for key, value in self.__dict__.iteritems()]
16403
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16404
 
16405
  def __eq__(self, other):
16406
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16407
 
16408
  def __ne__(self, other):
16409
    return not (self == other)
16410
 
16411
class addBannerUri_result:
16412
 
16413
  thrift_spec = (
16414
  )
16415
 
16416
  def read(self, iprot):
16417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16419
      return
16420
    iprot.readStructBegin()
16421
    while True:
16422
      (fname, ftype, fid) = iprot.readFieldBegin()
16423
      if ftype == TType.STOP:
16424
        break
16425
      else:
16426
        iprot.skip(ftype)
16427
      iprot.readFieldEnd()
16428
    iprot.readStructEnd()
16429
 
16430
  def write(self, oprot):
16431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16433
      return
16434
    oprot.writeStructBegin('addBannerUri_result')
16435
    oprot.writeFieldStop()
16436
    oprot.writeStructEnd()
16437
 
16438
  def validate(self):
16439
    return
16440
 
16441
 
16442
  def __repr__(self):
16443
    L = ['%s=%r' % (key, value)
16444
      for key, value in self.__dict__.iteritems()]
16445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16446
 
16447
  def __eq__(self, other):
16448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16449
 
16450
  def __ne__(self, other):
16451
    return not (self == other)
16452
 
16453
class getUriMapping_args:
16454
  """
16455
  Attributes:
16456
   - bannerName
9155 kshitij.so 16457
   - bannerType
8579 kshitij.so 16458
  """
16459
 
16460
  thrift_spec = (
16461
    None, # 0
16462
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16463
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 16464
  )
16465
 
9155 kshitij.so 16466
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 16467
    self.bannerName = bannerName
9155 kshitij.so 16468
    self.bannerType = bannerType
8579 kshitij.so 16469
 
16470
  def read(self, iprot):
16471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16473
      return
16474
    iprot.readStructBegin()
16475
    while True:
16476
      (fname, ftype, fid) = iprot.readFieldBegin()
16477
      if ftype == TType.STOP:
16478
        break
16479
      if fid == 1:
16480
        if ftype == TType.STRING:
16481
          self.bannerName = iprot.readString();
16482
        else:
16483
          iprot.skip(ftype)
9155 kshitij.so 16484
      elif fid == 2:
16485
        if ftype == TType.I32:
16486
          self.bannerType = iprot.readI32();
16487
        else:
16488
          iprot.skip(ftype)
8579 kshitij.so 16489
      else:
16490
        iprot.skip(ftype)
16491
      iprot.readFieldEnd()
16492
    iprot.readStructEnd()
16493
 
16494
  def write(self, oprot):
16495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16497
      return
16498
    oprot.writeStructBegin('getUriMapping_args')
16499
    if self.bannerName is not None:
16500
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16501
      oprot.writeString(self.bannerName)
16502
      oprot.writeFieldEnd()
9155 kshitij.so 16503
    if self.bannerType is not None:
16504
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16505
      oprot.writeI32(self.bannerType)
16506
      oprot.writeFieldEnd()
8579 kshitij.so 16507
    oprot.writeFieldStop()
16508
    oprot.writeStructEnd()
16509
 
16510
  def validate(self):
16511
    return
16512
 
16513
 
16514
  def __repr__(self):
16515
    L = ['%s=%r' % (key, value)
16516
      for key, value in self.__dict__.iteritems()]
16517
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16518
 
16519
  def __eq__(self, other):
16520
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16521
 
16522
  def __ne__(self, other):
16523
    return not (self == other)
16524
 
16525
class getUriMapping_result:
16526
  """
16527
  Attributes:
16528
   - success
16529
  """
16530
 
16531
  thrift_spec = (
16532
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
16533
  )
16534
 
16535
  def __init__(self, success=None,):
16536
    self.success = success
16537
 
16538
  def read(self, iprot):
16539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16541
      return
16542
    iprot.readStructBegin()
16543
    while True:
16544
      (fname, ftype, fid) = iprot.readFieldBegin()
16545
      if ftype == TType.STOP:
16546
        break
16547
      if fid == 0:
16548
        if ftype == TType.LIST:
16549
          self.success = []
13493 amit.gupta 16550
          (_etype267, _size264) = iprot.readListBegin()
16551
          for _i268 in xrange(_size264):
16552
            _elem269 = BannerUriMapping()
16553
            _elem269.read(iprot)
16554
            self.success.append(_elem269)
8579 kshitij.so 16555
          iprot.readListEnd()
16556
        else:
16557
          iprot.skip(ftype)
16558
      else:
16559
        iprot.skip(ftype)
16560
      iprot.readFieldEnd()
16561
    iprot.readStructEnd()
16562
 
16563
  def write(self, oprot):
16564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16566
      return
16567
    oprot.writeStructBegin('getUriMapping_result')
16568
    if self.success is not None:
16569
      oprot.writeFieldBegin('success', TType.LIST, 0)
16570
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 16571
      for iter270 in self.success:
16572
        iter270.write(oprot)
8579 kshitij.so 16573
      oprot.writeListEnd()
16574
      oprot.writeFieldEnd()
16575
    oprot.writeFieldStop()
16576
    oprot.writeStructEnd()
16577
 
16578
  def validate(self):
16579
    return
16580
 
16581
 
16582
  def __repr__(self):
16583
    L = ['%s=%r' % (key, value)
16584
      for key, value in self.__dict__.iteritems()]
16585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16586
 
16587
  def __eq__(self, other):
16588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16589
 
16590
  def __ne__(self, other):
16591
    return not (self == other)
16592
 
16593
class addCampaign_args:
16594
  """
16595
  Attributes:
16596
   - campaign
16597
  """
16598
 
16599
  thrift_spec = (
16600
    None, # 0
16601
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
16602
  )
16603
 
16604
  def __init__(self, campaign=None,):
16605
    self.campaign = campaign
16606
 
16607
  def read(self, iprot):
16608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16610
      return
16611
    iprot.readStructBegin()
16612
    while True:
16613
      (fname, ftype, fid) = iprot.readFieldBegin()
16614
      if ftype == TType.STOP:
16615
        break
16616
      if fid == 1:
16617
        if ftype == TType.STRUCT:
16618
          self.campaign = Campaign()
16619
          self.campaign.read(iprot)
16620
        else:
16621
          iprot.skip(ftype)
16622
      else:
16623
        iprot.skip(ftype)
16624
      iprot.readFieldEnd()
16625
    iprot.readStructEnd()
16626
 
16627
  def write(self, oprot):
16628
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16629
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16630
      return
16631
    oprot.writeStructBegin('addCampaign_args')
16632
    if self.campaign is not None:
16633
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
16634
      self.campaign.write(oprot)
16635
      oprot.writeFieldEnd()
16636
    oprot.writeFieldStop()
16637
    oprot.writeStructEnd()
16638
 
16639
  def validate(self):
16640
    return
16641
 
16642
 
16643
  def __repr__(self):
16644
    L = ['%s=%r' % (key, value)
16645
      for key, value in self.__dict__.iteritems()]
16646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16647
 
16648
  def __eq__(self, other):
16649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16650
 
16651
  def __ne__(self, other):
16652
    return not (self == other)
16653
 
16654
class addCampaign_result:
16655
 
16656
  thrift_spec = (
16657
  )
16658
 
16659
  def read(self, iprot):
16660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16662
      return
16663
    iprot.readStructBegin()
16664
    while True:
16665
      (fname, ftype, fid) = iprot.readFieldBegin()
16666
      if ftype == TType.STOP:
16667
        break
16668
      else:
16669
        iprot.skip(ftype)
16670
      iprot.readFieldEnd()
16671
    iprot.readStructEnd()
16672
 
16673
  def write(self, oprot):
16674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16676
      return
16677
    oprot.writeStructBegin('addCampaign_result')
16678
    oprot.writeFieldStop()
16679
    oprot.writeStructEnd()
16680
 
16681
  def validate(self):
16682
    return
16683
 
16684
 
16685
  def __repr__(self):
16686
    L = ['%s=%r' % (key, value)
16687
      for key, value in self.__dict__.iteritems()]
16688
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16689
 
16690
  def __eq__(self, other):
16691
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16692
 
16693
  def __ne__(self, other):
16694
    return not (self == other)
16695
 
16696
class getCampaigns_args:
16697
  """
16698
  Attributes:
16699
   - campaignName
16700
  """
16701
 
16702
  thrift_spec = (
16703
    None, # 0
16704
    (1, TType.STRING, 'campaignName', None, None, ), # 1
16705
  )
16706
 
16707
  def __init__(self, campaignName=None,):
16708
    self.campaignName = campaignName
16709
 
16710
  def read(self, iprot):
16711
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16712
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16713
      return
16714
    iprot.readStructBegin()
16715
    while True:
16716
      (fname, ftype, fid) = iprot.readFieldBegin()
16717
      if ftype == TType.STOP:
16718
        break
16719
      if fid == 1:
16720
        if ftype == TType.STRING:
16721
          self.campaignName = iprot.readString();
16722
        else:
16723
          iprot.skip(ftype)
16724
      else:
16725
        iprot.skip(ftype)
16726
      iprot.readFieldEnd()
16727
    iprot.readStructEnd()
16728
 
16729
  def write(self, oprot):
16730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16732
      return
16733
    oprot.writeStructBegin('getCampaigns_args')
16734
    if self.campaignName is not None:
16735
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
16736
      oprot.writeString(self.campaignName)
16737
      oprot.writeFieldEnd()
16738
    oprot.writeFieldStop()
16739
    oprot.writeStructEnd()
16740
 
16741
  def validate(self):
16742
    return
16743
 
16744
 
16745
  def __repr__(self):
16746
    L = ['%s=%r' % (key, value)
16747
      for key, value in self.__dict__.iteritems()]
16748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16749
 
16750
  def __eq__(self, other):
16751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16752
 
16753
  def __ne__(self, other):
16754
    return not (self == other)
16755
 
16756
class getCampaigns_result:
16757
  """
16758
  Attributes:
16759
   - success
16760
  """
16761
 
16762
  thrift_spec = (
16763
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
16764
  )
16765
 
16766
  def __init__(self, success=None,):
16767
    self.success = success
16768
 
16769
  def read(self, iprot):
16770
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16771
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16772
      return
16773
    iprot.readStructBegin()
16774
    while True:
16775
      (fname, ftype, fid) = iprot.readFieldBegin()
16776
      if ftype == TType.STOP:
16777
        break
16778
      if fid == 0:
16779
        if ftype == TType.LIST:
16780
          self.success = []
13493 amit.gupta 16781
          (_etype274, _size271) = iprot.readListBegin()
16782
          for _i275 in xrange(_size271):
16783
            _elem276 = Campaign()
16784
            _elem276.read(iprot)
16785
            self.success.append(_elem276)
8579 kshitij.so 16786
          iprot.readListEnd()
16787
        else:
16788
          iprot.skip(ftype)
16789
      else:
16790
        iprot.skip(ftype)
16791
      iprot.readFieldEnd()
16792
    iprot.readStructEnd()
16793
 
16794
  def write(self, oprot):
16795
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16796
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16797
      return
16798
    oprot.writeStructBegin('getCampaigns_result')
16799
    if self.success is not None:
16800
      oprot.writeFieldBegin('success', TType.LIST, 0)
16801
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 16802
      for iter277 in self.success:
16803
        iter277.write(oprot)
8579 kshitij.so 16804
      oprot.writeListEnd()
16805
      oprot.writeFieldEnd()
16806
    oprot.writeFieldStop()
16807
    oprot.writeStructEnd()
16808
 
16809
  def validate(self):
16810
    return
16811
 
16812
 
16813
  def __repr__(self):
16814
    L = ['%s=%r' % (key, value)
16815
      for key, value in self.__dict__.iteritems()]
16816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16817
 
16818
  def __eq__(self, other):
16819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16820
 
16821
  def __ne__(self, other):
16822
    return not (self == other)
16823
 
16824
class deleteCampaign_args:
16825
  """
16826
  Attributes:
16827
   - campaignId
16828
  """
16829
 
16830
  thrift_spec = (
16831
    None, # 0
16832
    (1, TType.I64, 'campaignId', None, None, ), # 1
16833
  )
16834
 
16835
  def __init__(self, campaignId=None,):
16836
    self.campaignId = campaignId
16837
 
16838
  def read(self, iprot):
16839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16841
      return
16842
    iprot.readStructBegin()
16843
    while True:
16844
      (fname, ftype, fid) = iprot.readFieldBegin()
16845
      if ftype == TType.STOP:
16846
        break
16847
      if fid == 1:
16848
        if ftype == TType.I64:
16849
          self.campaignId = iprot.readI64();
16850
        else:
16851
          iprot.skip(ftype)
16852
      else:
16853
        iprot.skip(ftype)
16854
      iprot.readFieldEnd()
16855
    iprot.readStructEnd()
16856
 
16857
  def write(self, oprot):
16858
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16859
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16860
      return
16861
    oprot.writeStructBegin('deleteCampaign_args')
16862
    if self.campaignId is not None:
16863
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
16864
      oprot.writeI64(self.campaignId)
16865
      oprot.writeFieldEnd()
16866
    oprot.writeFieldStop()
16867
    oprot.writeStructEnd()
16868
 
16869
  def validate(self):
16870
    return
16871
 
16872
 
16873
  def __repr__(self):
16874
    L = ['%s=%r' % (key, value)
16875
      for key, value in self.__dict__.iteritems()]
16876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16877
 
16878
  def __eq__(self, other):
16879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16880
 
16881
  def __ne__(self, other):
16882
    return not (self == other)
16883
 
16884
class deleteCampaign_result:
16885
 
16886
  thrift_spec = (
16887
  )
16888
 
16889
  def read(self, iprot):
16890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16892
      return
16893
    iprot.readStructBegin()
16894
    while True:
16895
      (fname, ftype, fid) = iprot.readFieldBegin()
16896
      if ftype == TType.STOP:
16897
        break
16898
      else:
16899
        iprot.skip(ftype)
16900
      iprot.readFieldEnd()
16901
    iprot.readStructEnd()
16902
 
16903
  def write(self, oprot):
16904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16906
      return
16907
    oprot.writeStructBegin('deleteCampaign_result')
16908
    oprot.writeFieldStop()
16909
    oprot.writeStructEnd()
16910
 
16911
  def validate(self):
16912
    return
16913
 
16914
 
16915
  def __repr__(self):
16916
    L = ['%s=%r' % (key, value)
16917
      for key, value in self.__dict__.iteritems()]
16918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16919
 
16920
  def __eq__(self, other):
16921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16922
 
16923
  def __ne__(self, other):
16924
    return not (self == other)
16925
 
16926
class getAllCampaigns_args:
16927
 
16928
  thrift_spec = (
16929
  )
16930
 
16931
  def read(self, iprot):
16932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16934
      return
16935
    iprot.readStructBegin()
16936
    while True:
16937
      (fname, ftype, fid) = iprot.readFieldBegin()
16938
      if ftype == TType.STOP:
16939
        break
16940
      else:
16941
        iprot.skip(ftype)
16942
      iprot.readFieldEnd()
16943
    iprot.readStructEnd()
16944
 
16945
  def write(self, oprot):
16946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16948
      return
16949
    oprot.writeStructBegin('getAllCampaigns_args')
16950
    oprot.writeFieldStop()
16951
    oprot.writeStructEnd()
16952
 
16953
  def validate(self):
16954
    return
16955
 
16956
 
16957
  def __repr__(self):
16958
    L = ['%s=%r' % (key, value)
16959
      for key, value in self.__dict__.iteritems()]
16960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16961
 
16962
  def __eq__(self, other):
16963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16964
 
16965
  def __ne__(self, other):
16966
    return not (self == other)
16967
 
16968
class getAllCampaigns_result:
16969
  """
16970
  Attributes:
16971
   - success
16972
  """
16973
 
16974
  thrift_spec = (
16975
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16976
  )
16977
 
16978
  def __init__(self, success=None,):
16979
    self.success = success
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 == 0:
16991
        if ftype == TType.LIST:
16992
          self.success = []
13493 amit.gupta 16993
          (_etype281, _size278) = iprot.readListBegin()
16994
          for _i282 in xrange(_size278):
16995
            _elem283 = iprot.readString();
16996
            self.success.append(_elem283)
8579 kshitij.so 16997
          iprot.readListEnd()
16998
        else:
16999
          iprot.skip(ftype)
17000
      else:
17001
        iprot.skip(ftype)
17002
      iprot.readFieldEnd()
17003
    iprot.readStructEnd()
17004
 
17005
  def write(self, oprot):
17006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17008
      return
17009
    oprot.writeStructBegin('getAllCampaigns_result')
17010
    if self.success is not None:
17011
      oprot.writeFieldBegin('success', TType.LIST, 0)
17012
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 17013
      for iter284 in self.success:
17014
        oprot.writeString(iter284)
8579 kshitij.so 17015
      oprot.writeListEnd()
17016
      oprot.writeFieldEnd()
17017
    oprot.writeFieldStop()
17018
    oprot.writeStructEnd()
17019
 
17020
  def validate(self):
17021
    return
17022
 
17023
 
17024
  def __repr__(self):
17025
    L = ['%s=%r' % (key, value)
17026
      for key, value in self.__dict__.iteritems()]
17027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17028
 
17029
  def __eq__(self, other):
17030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17031
 
17032
  def __ne__(self, other):
17033
    return not (self == other)
17034
 
9155 kshitij.so 17035
class getActiveBannersForMobileSite_args:
17036
 
17037
  thrift_spec = (
17038
  )
17039
 
17040
  def read(self, iprot):
17041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17043
      return
17044
    iprot.readStructBegin()
17045
    while True:
17046
      (fname, ftype, fid) = iprot.readFieldBegin()
17047
      if ftype == TType.STOP:
17048
        break
17049
      else:
17050
        iprot.skip(ftype)
17051
      iprot.readFieldEnd()
17052
    iprot.readStructEnd()
17053
 
17054
  def write(self, oprot):
17055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17057
      return
17058
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
17059
    oprot.writeFieldStop()
17060
    oprot.writeStructEnd()
17061
 
17062
  def validate(self):
17063
    return
17064
 
17065
 
17066
  def __repr__(self):
17067
    L = ['%s=%r' % (key, value)
17068
      for key, value in self.__dict__.iteritems()]
17069
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17070
 
17071
  def __eq__(self, other):
17072
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17073
 
17074
  def __ne__(self, other):
17075
    return not (self == other)
17076
 
17077
class getActiveBannersForMobileSite_result:
17078
  """
17079
  Attributes:
17080
   - success
17081
  """
17082
 
17083
  thrift_spec = (
17084
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
17085
  )
17086
 
17087
  def __init__(self, success=None,):
17088
    self.success = success
17089
 
17090
  def read(self, iprot):
17091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17093
      return
17094
    iprot.readStructBegin()
17095
    while True:
17096
      (fname, ftype, fid) = iprot.readFieldBegin()
17097
      if ftype == TType.STOP:
17098
        break
17099
      if fid == 0:
17100
        if ftype == TType.MAP:
17101
          self.success = {}
13493 amit.gupta 17102
          (_ktype286, _vtype287, _size285 ) = iprot.readMapBegin() 
17103
          for _i289 in xrange(_size285):
17104
            _key290 = iprot.readString();
17105
            _val291 = []
17106
            (_etype295, _size292) = iprot.readListBegin()
17107
            for _i296 in xrange(_size292):
17108
              _elem297 = Banner()
17109
              _elem297.read(iprot)
17110
              _val291.append(_elem297)
9155 kshitij.so 17111
            iprot.readListEnd()
13493 amit.gupta 17112
            self.success[_key290] = _val291
9155 kshitij.so 17113
          iprot.readMapEnd()
17114
        else:
17115
          iprot.skip(ftype)
17116
      else:
17117
        iprot.skip(ftype)
17118
      iprot.readFieldEnd()
17119
    iprot.readStructEnd()
17120
 
17121
  def write(self, oprot):
17122
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17124
      return
17125
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
17126
    if self.success is not None:
17127
      oprot.writeFieldBegin('success', TType.MAP, 0)
17128
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
13493 amit.gupta 17129
      for kiter298,viter299 in self.success.items():
17130
        oprot.writeString(kiter298)
17131
        oprot.writeListBegin(TType.STRUCT, len(viter299))
17132
        for iter300 in viter299:
17133
          iter300.write(oprot)
9155 kshitij.so 17134
        oprot.writeListEnd()
17135
      oprot.writeMapEnd()
17136
      oprot.writeFieldEnd()
17137
    oprot.writeFieldStop()
17138
    oprot.writeStructEnd()
17139
 
17140
  def validate(self):
17141
    return
17142
 
17143
 
17144
  def __repr__(self):
17145
    L = ['%s=%r' % (key, value)
17146
      for key, value in self.__dict__.iteritems()]
17147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17148
 
17149
  def __eq__(self, other):
17150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17151
 
17152
  def __ne__(self, other):
17153
    return not (self == other)
17154
 
5944 mandeep.dh 17155
class deleteSimilarItem_args:
17156
  """
17157
  Attributes:
17158
   - itemId
17159
   - catalogItemId
17160
  """
17161
 
17162
  thrift_spec = (
17163
    None, # 0
17164
    (1, TType.I64, 'itemId', None, None, ), # 1
17165
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
17166
  )
17167
 
17168
  def __init__(self, itemId=None, catalogItemId=None,):
17169
    self.itemId = itemId
17170
    self.catalogItemId = catalogItemId
17171
 
17172
  def read(self, iprot):
17173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17175
      return
17176
    iprot.readStructBegin()
17177
    while True:
17178
      (fname, ftype, fid) = iprot.readFieldBegin()
17179
      if ftype == TType.STOP:
17180
        break
17181
      if fid == 1:
17182
        if ftype == TType.I64:
17183
          self.itemId = iprot.readI64();
17184
        else:
17185
          iprot.skip(ftype)
17186
      elif fid == 2:
17187
        if ftype == TType.I64:
17188
          self.catalogItemId = iprot.readI64();
17189
        else:
17190
          iprot.skip(ftype)
17191
      else:
17192
        iprot.skip(ftype)
17193
      iprot.readFieldEnd()
17194
    iprot.readStructEnd()
17195
 
17196
  def write(self, oprot):
17197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17199
      return
17200
    oprot.writeStructBegin('deleteSimilarItem_args')
17201
    if self.itemId is not None:
17202
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17203
      oprot.writeI64(self.itemId)
17204
      oprot.writeFieldEnd()
17205
    if self.catalogItemId is not None:
17206
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
17207
      oprot.writeI64(self.catalogItemId)
17208
      oprot.writeFieldEnd()
17209
    oprot.writeFieldStop()
17210
    oprot.writeStructEnd()
17211
 
17212
  def validate(self):
17213
    return
17214
 
17215
 
17216
  def __repr__(self):
17217
    L = ['%s=%r' % (key, value)
17218
      for key, value in self.__dict__.iteritems()]
17219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17220
 
17221
  def __eq__(self, other):
17222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17223
 
17224
  def __ne__(self, other):
17225
    return not (self == other)
17226
 
17227
class deleteSimilarItem_result:
17228
  """
17229
  Attributes:
17230
   - success
17231
   - cex
17232
  """
17233
 
17234
  thrift_spec = (
17235
    (0, TType.BOOL, 'success', None, None, ), # 0
17236
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17237
  )
17238
 
17239
  def __init__(self, success=None, cex=None,):
17240
    self.success = success
17241
    self.cex = cex
17242
 
17243
  def read(self, iprot):
17244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17246
      return
17247
    iprot.readStructBegin()
17248
    while True:
17249
      (fname, ftype, fid) = iprot.readFieldBegin()
17250
      if ftype == TType.STOP:
17251
        break
17252
      if fid == 0:
17253
        if ftype == TType.BOOL:
17254
          self.success = iprot.readBool();
17255
        else:
17256
          iprot.skip(ftype)
17257
      elif fid == 1:
17258
        if ftype == TType.STRUCT:
17259
          self.cex = CatalogServiceException()
17260
          self.cex.read(iprot)
17261
        else:
17262
          iprot.skip(ftype)
17263
      else:
17264
        iprot.skip(ftype)
17265
      iprot.readFieldEnd()
17266
    iprot.readStructEnd()
17267
 
17268
  def write(self, oprot):
17269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17271
      return
17272
    oprot.writeStructBegin('deleteSimilarItem_result')
17273
    if self.success is not None:
17274
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17275
      oprot.writeBool(self.success)
17276
      oprot.writeFieldEnd()
17277
    if self.cex is not None:
17278
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17279
      self.cex.write(oprot)
17280
      oprot.writeFieldEnd()
17281
    oprot.writeFieldStop()
17282
    oprot.writeStructEnd()
17283
 
17284
  def validate(self):
17285
    return
17286
 
17287
 
17288
  def __repr__(self):
17289
    L = ['%s=%r' % (key, value)
17290
      for key, value in self.__dict__.iteritems()]
17291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17292
 
17293
  def __eq__(self, other):
17294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17295
 
17296
  def __ne__(self, other):
17297
    return not (self == other)
17298
 
17299
class checkSimilarItem_args:
17300
  """
17301
  Attributes:
17302
   - brand
17303
   - modelNumber
17304
   - modelName
17305
   - color
17306
  """
17307
 
17308
  thrift_spec = (
17309
    None, # 0
17310
    (1, TType.STRING, 'brand', None, None, ), # 1
17311
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
17312
    (3, TType.STRING, 'modelName', None, None, ), # 3
17313
    (4, TType.STRING, 'color', None, None, ), # 4
17314
  )
17315
 
17316
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
17317
    self.brand = brand
17318
    self.modelNumber = modelNumber
17319
    self.modelName = modelName
17320
    self.color = color
17321
 
17322
  def read(self, iprot):
17323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17325
      return
17326
    iprot.readStructBegin()
17327
    while True:
17328
      (fname, ftype, fid) = iprot.readFieldBegin()
17329
      if ftype == TType.STOP:
17330
        break
17331
      if fid == 1:
17332
        if ftype == TType.STRING:
17333
          self.brand = iprot.readString();
17334
        else:
17335
          iprot.skip(ftype)
17336
      elif fid == 2:
17337
        if ftype == TType.STRING:
17338
          self.modelNumber = iprot.readString();
17339
        else:
17340
          iprot.skip(ftype)
17341
      elif fid == 3:
17342
        if ftype == TType.STRING:
17343
          self.modelName = iprot.readString();
17344
        else:
17345
          iprot.skip(ftype)
17346
      elif fid == 4:
17347
        if ftype == TType.STRING:
17348
          self.color = iprot.readString();
17349
        else:
17350
          iprot.skip(ftype)
17351
      else:
17352
        iprot.skip(ftype)
17353
      iprot.readFieldEnd()
17354
    iprot.readStructEnd()
17355
 
17356
  def write(self, oprot):
17357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17359
      return
17360
    oprot.writeStructBegin('checkSimilarItem_args')
17361
    if self.brand is not None:
17362
      oprot.writeFieldBegin('brand', TType.STRING, 1)
17363
      oprot.writeString(self.brand)
17364
      oprot.writeFieldEnd()
17365
    if self.modelNumber is not None:
17366
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
17367
      oprot.writeString(self.modelNumber)
17368
      oprot.writeFieldEnd()
17369
    if self.modelName is not None:
17370
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
17371
      oprot.writeString(self.modelName)
17372
      oprot.writeFieldEnd()
17373
    if self.color is not None:
17374
      oprot.writeFieldBegin('color', TType.STRING, 4)
17375
      oprot.writeString(self.color)
17376
      oprot.writeFieldEnd()
17377
    oprot.writeFieldStop()
17378
    oprot.writeStructEnd()
17379
 
17380
  def validate(self):
17381
    return
17382
 
17383
 
17384
  def __repr__(self):
17385
    L = ['%s=%r' % (key, value)
17386
      for key, value in self.__dict__.iteritems()]
17387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17388
 
17389
  def __eq__(self, other):
17390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17391
 
17392
  def __ne__(self, other):
17393
    return not (self == other)
17394
 
17395
class checkSimilarItem_result:
17396
  """
17397
  Attributes:
17398
   - success
17399
  """
17400
 
17401
  thrift_spec = (
17402
    (0, TType.I64, 'success', None, None, ), # 0
17403
  )
17404
 
17405
  def __init__(self, success=None,):
17406
    self.success = success
17407
 
17408
  def read(self, iprot):
17409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17411
      return
17412
    iprot.readStructBegin()
17413
    while True:
17414
      (fname, ftype, fid) = iprot.readFieldBegin()
17415
      if ftype == TType.STOP:
17416
        break
17417
      if fid == 0:
17418
        if ftype == TType.I64:
17419
          self.success = iprot.readI64();
17420
        else:
17421
          iprot.skip(ftype)
17422
      else:
17423
        iprot.skip(ftype)
17424
      iprot.readFieldEnd()
17425
    iprot.readStructEnd()
17426
 
17427
  def write(self, oprot):
17428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17430
      return
17431
    oprot.writeStructBegin('checkSimilarItem_result')
17432
    if self.success is not None:
17433
      oprot.writeFieldBegin('success', TType.I64, 0)
17434
      oprot.writeI64(self.success)
17435
      oprot.writeFieldEnd()
17436
    oprot.writeFieldStop()
17437
    oprot.writeStructEnd()
17438
 
17439
  def validate(self):
17440
    return
17441
 
17442
 
17443
  def __repr__(self):
17444
    L = ['%s=%r' % (key, value)
17445
      for key, value in self.__dict__.iteritems()]
17446
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17447
 
17448
  def __eq__(self, other):
17449
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17450
 
17451
  def __ne__(self, other):
17452
    return not (self == other)
17453
 
17454
class validateRiskyStatus_args:
17455
  """
17456
  Attributes:
17457
   - itemId
17458
  """
17459
 
17460
  thrift_spec = (
17461
    None, # 0
17462
    (1, TType.I64, 'itemId', None, None, ), # 1
17463
  )
17464
 
17465
  def __init__(self, itemId=None,):
17466
    self.itemId = itemId
17467
 
17468
  def read(self, iprot):
17469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17471
      return
17472
    iprot.readStructBegin()
17473
    while True:
17474
      (fname, ftype, fid) = iprot.readFieldBegin()
17475
      if ftype == TType.STOP:
17476
        break
17477
      if fid == 1:
17478
        if ftype == TType.I64:
17479
          self.itemId = iprot.readI64();
17480
        else:
17481
          iprot.skip(ftype)
17482
      else:
17483
        iprot.skip(ftype)
17484
      iprot.readFieldEnd()
17485
    iprot.readStructEnd()
17486
 
17487
  def write(self, oprot):
17488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17490
      return
17491
    oprot.writeStructBegin('validateRiskyStatus_args')
17492
    if self.itemId is not None:
17493
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17494
      oprot.writeI64(self.itemId)
17495
      oprot.writeFieldEnd()
17496
    oprot.writeFieldStop()
17497
    oprot.writeStructEnd()
17498
 
17499
  def validate(self):
17500
    return
17501
 
17502
 
17503
  def __repr__(self):
17504
    L = ['%s=%r' % (key, value)
17505
      for key, value in self.__dict__.iteritems()]
17506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17507
 
17508
  def __eq__(self, other):
17509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17510
 
17511
  def __ne__(self, other):
17512
    return not (self == other)
17513
 
17514
class validateRiskyStatus_result:
17515
 
17516
  thrift_spec = (
17517
  )
17518
 
17519
  def read(self, iprot):
17520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17522
      return
17523
    iprot.readStructBegin()
17524
    while True:
17525
      (fname, ftype, fid) = iprot.readFieldBegin()
17526
      if ftype == TType.STOP:
17527
        break
17528
      else:
17529
        iprot.skip(ftype)
17530
      iprot.readFieldEnd()
17531
    iprot.readStructEnd()
17532
 
17533
  def write(self, oprot):
17534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17536
      return
17537
    oprot.writeStructBegin('validateRiskyStatus_result')
17538
    oprot.writeFieldStop()
17539
    oprot.writeStructEnd()
17540
 
17541
  def validate(self):
17542
    return
17543
 
17544
 
17545
  def __repr__(self):
17546
    L = ['%s=%r' % (key, value)
17547
      for key, value in self.__dict__.iteritems()]
17548
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17549
 
17550
  def __eq__(self, other):
17551
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17552
 
17553
  def __ne__(self, other):
17554
    return not (self == other)
17555
 
17556
class changeItemRiskyFlag_args:
17557
  """
17558
  Attributes:
17559
   - itemId
17560
   - risky
17561
  """
17562
 
17563
  thrift_spec = (
17564
    None, # 0
17565
    (1, TType.I64, 'itemId', None, None, ), # 1
17566
    (2, TType.BOOL, 'risky', None, None, ), # 2
17567
  )
17568
 
17569
  def __init__(self, itemId=None, risky=None,):
17570
    self.itemId = itemId
17571
    self.risky = risky
17572
 
17573
  def read(self, iprot):
17574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17576
      return
17577
    iprot.readStructBegin()
17578
    while True:
17579
      (fname, ftype, fid) = iprot.readFieldBegin()
17580
      if ftype == TType.STOP:
17581
        break
17582
      if fid == 1:
17583
        if ftype == TType.I64:
17584
          self.itemId = iprot.readI64();
17585
        else:
17586
          iprot.skip(ftype)
17587
      elif fid == 2:
17588
        if ftype == TType.BOOL:
17589
          self.risky = iprot.readBool();
17590
        else:
17591
          iprot.skip(ftype)
17592
      else:
17593
        iprot.skip(ftype)
17594
      iprot.readFieldEnd()
17595
    iprot.readStructEnd()
17596
 
17597
  def write(self, oprot):
17598
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17599
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17600
      return
17601
    oprot.writeStructBegin('changeItemRiskyFlag_args')
17602
    if self.itemId is not None:
17603
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17604
      oprot.writeI64(self.itemId)
17605
      oprot.writeFieldEnd()
17606
    if self.risky is not None:
17607
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
17608
      oprot.writeBool(self.risky)
17609
      oprot.writeFieldEnd()
17610
    oprot.writeFieldStop()
17611
    oprot.writeStructEnd()
17612
 
17613
  def validate(self):
17614
    return
17615
 
17616
 
17617
  def __repr__(self):
17618
    L = ['%s=%r' % (key, value)
17619
      for key, value in self.__dict__.iteritems()]
17620
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17621
 
17622
  def __eq__(self, other):
17623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17624
 
17625
  def __ne__(self, other):
17626
    return not (self == other)
17627
 
17628
class changeItemRiskyFlag_result:
17629
 
17630
  thrift_spec = (
17631
  )
17632
 
17633
  def read(self, iprot):
17634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17636
      return
17637
    iprot.readStructBegin()
17638
    while True:
17639
      (fname, ftype, fid) = iprot.readFieldBegin()
17640
      if ftype == TType.STOP:
17641
        break
17642
      else:
17643
        iprot.skip(ftype)
17644
      iprot.readFieldEnd()
17645
    iprot.readStructEnd()
17646
 
17647
  def write(self, oprot):
17648
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17649
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17650
      return
17651
    oprot.writeStructBegin('changeItemRiskyFlag_result')
17652
    oprot.writeFieldStop()
17653
    oprot.writeStructEnd()
17654
 
17655
  def validate(self):
17656
    return
17657
 
17658
 
17659
  def __repr__(self):
17660
    L = ['%s=%r' % (key, value)
17661
      for key, value in self.__dict__.iteritems()]
17662
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17663
 
17664
  def __eq__(self, other):
17665
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17666
 
17667
  def __ne__(self, other):
17668
    return not (self == other)
17669
 
17670
class getItemsByRiskyFlag_args:
17671
 
17672
  thrift_spec = (
17673
  )
17674
 
17675
  def read(self, iprot):
17676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17678
      return
17679
    iprot.readStructBegin()
17680
    while True:
17681
      (fname, ftype, fid) = iprot.readFieldBegin()
17682
      if ftype == TType.STOP:
17683
        break
17684
      else:
17685
        iprot.skip(ftype)
17686
      iprot.readFieldEnd()
17687
    iprot.readStructEnd()
17688
 
17689
  def write(self, oprot):
17690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17692
      return
17693
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
17694
    oprot.writeFieldStop()
17695
    oprot.writeStructEnd()
17696
 
17697
  def validate(self):
17698
    return
17699
 
17700
 
17701
  def __repr__(self):
17702
    L = ['%s=%r' % (key, value)
17703
      for key, value in self.__dict__.iteritems()]
17704
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17705
 
17706
  def __eq__(self, other):
17707
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17708
 
17709
  def __ne__(self, other):
17710
    return not (self == other)
17711
 
17712
class getItemsByRiskyFlag_result:
17713
  """
17714
  Attributes:
17715
   - success
17716
  """
17717
 
17718
  thrift_spec = (
17719
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17720
  )
17721
 
17722
  def __init__(self, success=None,):
17723
    self.success = success
17724
 
17725
  def read(self, iprot):
17726
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17727
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17728
      return
17729
    iprot.readStructBegin()
17730
    while True:
17731
      (fname, ftype, fid) = iprot.readFieldBegin()
17732
      if ftype == TType.STOP:
17733
        break
17734
      if fid == 0:
17735
        if ftype == TType.LIST:
17736
          self.success = []
13493 amit.gupta 17737
          (_etype304, _size301) = iprot.readListBegin()
17738
          for _i305 in xrange(_size301):
17739
            _elem306 = Item()
17740
            _elem306.read(iprot)
17741
            self.success.append(_elem306)
5944 mandeep.dh 17742
          iprot.readListEnd()
17743
        else:
17744
          iprot.skip(ftype)
17745
      else:
17746
        iprot.skip(ftype)
17747
      iprot.readFieldEnd()
17748
    iprot.readStructEnd()
17749
 
17750
  def write(self, oprot):
17751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17753
      return
17754
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
17755
    if self.success is not None:
17756
      oprot.writeFieldBegin('success', TType.LIST, 0)
17757
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 17758
      for iter307 in self.success:
17759
        iter307.write(oprot)
5944 mandeep.dh 17760
      oprot.writeListEnd()
17761
      oprot.writeFieldEnd()
17762
    oprot.writeFieldStop()
17763
    oprot.writeStructEnd()
17764
 
17765
  def validate(self):
17766
    return
17767
 
17768
 
17769
  def __repr__(self):
17770
    L = ['%s=%r' % (key, value)
17771
      for key, value in self.__dict__.iteritems()]
17772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17773
 
17774
  def __eq__(self, other):
17775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17776
 
17777
  def __ne__(self, other):
17778
    return not (self == other)
17779
 
17780
class getItemsForMasterSheet_args:
17781
  """
17782
  Attributes:
17783
   - category
17784
   - brand
17785
  """
17786
 
17787
  thrift_spec = (
17788
    None, # 0
17789
    (1, TType.STRING, 'category', None, None, ), # 1
17790
    (2, TType.STRING, 'brand', None, None, ), # 2
17791
  )
17792
 
17793
  def __init__(self, category=None, brand=None,):
17794
    self.category = category
17795
    self.brand = brand
17796
 
17797
  def read(self, iprot):
17798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17800
      return
17801
    iprot.readStructBegin()
17802
    while True:
17803
      (fname, ftype, fid) = iprot.readFieldBegin()
17804
      if ftype == TType.STOP:
17805
        break
17806
      if fid == 1:
17807
        if ftype == TType.STRING:
17808
          self.category = iprot.readString();
17809
        else:
17810
          iprot.skip(ftype)
17811
      elif fid == 2:
17812
        if ftype == TType.STRING:
17813
          self.brand = iprot.readString();
17814
        else:
17815
          iprot.skip(ftype)
17816
      else:
17817
        iprot.skip(ftype)
17818
      iprot.readFieldEnd()
17819
    iprot.readStructEnd()
17820
 
17821
  def write(self, oprot):
17822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17824
      return
17825
    oprot.writeStructBegin('getItemsForMasterSheet_args')
17826
    if self.category is not None:
17827
      oprot.writeFieldBegin('category', TType.STRING, 1)
17828
      oprot.writeString(self.category)
17829
      oprot.writeFieldEnd()
17830
    if self.brand is not None:
17831
      oprot.writeFieldBegin('brand', TType.STRING, 2)
17832
      oprot.writeString(self.brand)
17833
      oprot.writeFieldEnd()
17834
    oprot.writeFieldStop()
17835
    oprot.writeStructEnd()
17836
 
17837
  def validate(self):
17838
    return
17839
 
17840
 
17841
  def __repr__(self):
17842
    L = ['%s=%r' % (key, value)
17843
      for key, value in self.__dict__.iteritems()]
17844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17845
 
17846
  def __eq__(self, other):
17847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17848
 
17849
  def __ne__(self, other):
17850
    return not (self == other)
17851
 
17852
class getItemsForMasterSheet_result:
17853
  """
17854
  Attributes:
17855
   - success
17856
  """
17857
 
17858
  thrift_spec = (
17859
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17860
  )
17861
 
17862
  def __init__(self, success=None,):
17863
    self.success = success
17864
 
17865
  def read(self, iprot):
17866
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17867
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17868
      return
17869
    iprot.readStructBegin()
17870
    while True:
17871
      (fname, ftype, fid) = iprot.readFieldBegin()
17872
      if ftype == TType.STOP:
17873
        break
17874
      if fid == 0:
17875
        if ftype == TType.LIST:
17876
          self.success = []
13493 amit.gupta 17877
          (_etype311, _size308) = iprot.readListBegin()
17878
          for _i312 in xrange(_size308):
17879
            _elem313 = Item()
17880
            _elem313.read(iprot)
17881
            self.success.append(_elem313)
5944 mandeep.dh 17882
          iprot.readListEnd()
17883
        else:
17884
          iprot.skip(ftype)
17885
      else:
17886
        iprot.skip(ftype)
17887
      iprot.readFieldEnd()
17888
    iprot.readStructEnd()
17889
 
17890
  def write(self, oprot):
17891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17893
      return
17894
    oprot.writeStructBegin('getItemsForMasterSheet_result')
17895
    if self.success is not None:
17896
      oprot.writeFieldBegin('success', TType.LIST, 0)
17897
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 17898
      for iter314 in self.success:
17899
        iter314.write(oprot)
5944 mandeep.dh 17900
      oprot.writeListEnd()
17901
      oprot.writeFieldEnd()
17902
    oprot.writeFieldStop()
17903
    oprot.writeStructEnd()
17904
 
17905
  def validate(self):
17906
    return
17907
 
17908
 
17909
  def __repr__(self):
17910
    L = ['%s=%r' % (key, value)
17911
      for key, value in self.__dict__.iteritems()]
17912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17913
 
17914
  def __eq__(self, other):
17915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17916
 
17917
  def __ne__(self, other):
17918
    return not (self == other)
17919
 
17920
class getSimilarItemsCatalogIds_args:
17921
  """
17922
  Attributes:
17923
   - beginIndex
17924
   - totalItems
17925
   - itemId
17926
  """
17927
 
17928
  thrift_spec = (
17929
    None, # 0
17930
    (1, TType.I64, 'beginIndex', None, None, ), # 1
17931
    (2, TType.I64, 'totalItems', None, None, ), # 2
17932
    (3, TType.I64, 'itemId', None, None, ), # 3
17933
  )
17934
 
17935
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
17936
    self.beginIndex = beginIndex
17937
    self.totalItems = totalItems
17938
    self.itemId = itemId
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.I64:
17951
          self.beginIndex = iprot.readI64();
17952
        else:
17953
          iprot.skip(ftype)
17954
      elif fid == 2:
17955
        if ftype == TType.I64:
17956
          self.totalItems = iprot.readI64();
17957
        else:
17958
          iprot.skip(ftype)
17959
      elif fid == 3:
17960
        if ftype == TType.I64:
17961
          self.itemId = iprot.readI64();
17962
        else:
17963
          iprot.skip(ftype)
17964
      else:
17965
        iprot.skip(ftype)
17966
      iprot.readFieldEnd()
17967
    iprot.readStructEnd()
17968
 
17969
  def write(self, oprot):
17970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17972
      return
17973
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
17974
    if self.beginIndex is not None:
17975
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
17976
      oprot.writeI64(self.beginIndex)
17977
      oprot.writeFieldEnd()
17978
    if self.totalItems is not None:
17979
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
17980
      oprot.writeI64(self.totalItems)
17981
      oprot.writeFieldEnd()
17982
    if self.itemId is not None:
17983
      oprot.writeFieldBegin('itemId', TType.I64, 3)
17984
      oprot.writeI64(self.itemId)
17985
      oprot.writeFieldEnd()
17986
    oprot.writeFieldStop()
17987
    oprot.writeStructEnd()
17988
 
17989
  def validate(self):
17990
    return
17991
 
17992
 
17993
  def __repr__(self):
17994
    L = ['%s=%r' % (key, value)
17995
      for key, value in self.__dict__.iteritems()]
17996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17997
 
17998
  def __eq__(self, other):
17999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18000
 
18001
  def __ne__(self, other):
18002
    return not (self == other)
18003
 
18004
class getSimilarItemsCatalogIds_result:
18005
  """
18006
  Attributes:
18007
   - success
18008
  """
18009
 
18010
  thrift_spec = (
18011
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
18012
  )
18013
 
18014
  def __init__(self, success=None,):
18015
    self.success = success
18016
 
18017
  def read(self, iprot):
18018
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18019
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18020
      return
18021
    iprot.readStructBegin()
18022
    while True:
18023
      (fname, ftype, fid) = iprot.readFieldBegin()
18024
      if ftype == TType.STOP:
18025
        break
18026
      if fid == 0:
18027
        if ftype == TType.LIST:
18028
          self.success = []
13493 amit.gupta 18029
          (_etype318, _size315) = iprot.readListBegin()
18030
          for _i319 in xrange(_size315):
18031
            _elem320 = iprot.readI64();
18032
            self.success.append(_elem320)
5944 mandeep.dh 18033
          iprot.readListEnd()
18034
        else:
18035
          iprot.skip(ftype)
18036
      else:
18037
        iprot.skip(ftype)
18038
      iprot.readFieldEnd()
18039
    iprot.readStructEnd()
18040
 
18041
  def write(self, oprot):
18042
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18043
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18044
      return
18045
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
18046
    if self.success is not None:
18047
      oprot.writeFieldBegin('success', TType.LIST, 0)
18048
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 18049
      for iter321 in self.success:
18050
        oprot.writeI64(iter321)
5944 mandeep.dh 18051
      oprot.writeListEnd()
18052
      oprot.writeFieldEnd()
18053
    oprot.writeFieldStop()
18054
    oprot.writeStructEnd()
18055
 
18056
  def validate(self):
18057
    return
18058
 
18059
 
18060
  def __repr__(self):
18061
    L = ['%s=%r' % (key, value)
18062
      for key, value in self.__dict__.iteritems()]
18063
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18064
 
18065
  def __eq__(self, other):
18066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18067
 
18068
  def __ne__(self, other):
18069
    return not (self == other)
18070
 
18071
class addProductNotification_args:
18072
  """
18073
  Attributes:
18074
   - itemId
18075
   - email
18076
  """
18077
 
18078
  thrift_spec = None
18079
  def __init__(self, itemId=None, email=None,):
18080
    self.itemId = itemId
18081
    self.email = email
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.itemId = iprot.readI64();
18095
        else:
18096
          iprot.skip(ftype)
18097
      elif fid == -2:
18098
        if ftype == TType.STRING:
18099
          self.email = iprot.readString();
18100
        else:
18101
          iprot.skip(ftype)
18102
      else:
18103
        iprot.skip(ftype)
18104
      iprot.readFieldEnd()
18105
    iprot.readStructEnd()
18106
 
18107
  def write(self, oprot):
18108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18110
      return
18111
    oprot.writeStructBegin('addProductNotification_args')
18112
    if self.email is not None:
18113
      oprot.writeFieldBegin('email', TType.STRING, -2)
18114
      oprot.writeString(self.email)
18115
      oprot.writeFieldEnd()
18116
    if self.itemId is not None:
18117
      oprot.writeFieldBegin('itemId', TType.I64, -1)
18118
      oprot.writeI64(self.itemId)
18119
      oprot.writeFieldEnd()
18120
    oprot.writeFieldStop()
18121
    oprot.writeStructEnd()
18122
 
18123
  def validate(self):
18124
    return
18125
 
18126
 
18127
  def __repr__(self):
18128
    L = ['%s=%r' % (key, value)
18129
      for key, value in self.__dict__.iteritems()]
18130
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18131
 
18132
  def __eq__(self, other):
18133
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18134
 
18135
  def __ne__(self, other):
18136
    return not (self == other)
18137
 
18138
class addProductNotification_result:
18139
  """
18140
  Attributes:
18141
   - success
18142
  """
18143
 
18144
  thrift_spec = (
18145
    (0, TType.BOOL, 'success', None, None, ), # 0
18146
  )
18147
 
18148
  def __init__(self, success=None,):
18149
    self.success = success
18150
 
18151
  def read(self, iprot):
18152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18154
      return
18155
    iprot.readStructBegin()
18156
    while True:
18157
      (fname, ftype, fid) = iprot.readFieldBegin()
18158
      if ftype == TType.STOP:
18159
        break
18160
      if fid == 0:
18161
        if ftype == TType.BOOL:
18162
          self.success = iprot.readBool();
18163
        else:
18164
          iprot.skip(ftype)
18165
      else:
18166
        iprot.skip(ftype)
18167
      iprot.readFieldEnd()
18168
    iprot.readStructEnd()
18169
 
18170
  def write(self, oprot):
18171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18173
      return
18174
    oprot.writeStructBegin('addProductNotification_result')
18175
    if self.success is not None:
18176
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18177
      oprot.writeBool(self.success)
18178
      oprot.writeFieldEnd()
18179
    oprot.writeFieldStop()
18180
    oprot.writeStructEnd()
18181
 
18182
  def validate(self):
18183
    return
18184
 
18185
 
18186
  def __repr__(self):
18187
    L = ['%s=%r' % (key, value)
18188
      for key, value in self.__dict__.iteritems()]
18189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18190
 
18191
  def __eq__(self, other):
18192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18193
 
18194
  def __ne__(self, other):
18195
    return not (self == other)
18196
 
18197
class sendProductNotifications_args:
18198
 
18199
  thrift_spec = (
18200
  )
18201
 
18202
  def read(self, iprot):
18203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18205
      return
18206
    iprot.readStructBegin()
18207
    while True:
18208
      (fname, ftype, fid) = iprot.readFieldBegin()
18209
      if ftype == TType.STOP:
18210
        break
18211
      else:
18212
        iprot.skip(ftype)
18213
      iprot.readFieldEnd()
18214
    iprot.readStructEnd()
18215
 
18216
  def write(self, oprot):
18217
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18218
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18219
      return
18220
    oprot.writeStructBegin('sendProductNotifications_args')
18221
    oprot.writeFieldStop()
18222
    oprot.writeStructEnd()
18223
 
18224
  def validate(self):
18225
    return
18226
 
18227
 
18228
  def __repr__(self):
18229
    L = ['%s=%r' % (key, value)
18230
      for key, value in self.__dict__.iteritems()]
18231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18232
 
18233
  def __eq__(self, other):
18234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18235
 
18236
  def __ne__(self, other):
18237
    return not (self == other)
18238
 
18239
class sendProductNotifications_result:
18240
  """
18241
  Attributes:
18242
   - success
18243
  """
18244
 
18245
  thrift_spec = (
18246
    (0, TType.BOOL, 'success', None, None, ), # 0
18247
  )
18248
 
18249
  def __init__(self, success=None,):
18250
    self.success = success
18251
 
18252
  def read(self, iprot):
18253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18255
      return
18256
    iprot.readStructBegin()
18257
    while True:
18258
      (fname, ftype, fid) = iprot.readFieldBegin()
18259
      if ftype == TType.STOP:
18260
        break
18261
      if fid == 0:
18262
        if ftype == TType.BOOL:
18263
          self.success = iprot.readBool();
18264
        else:
18265
          iprot.skip(ftype)
18266
      else:
18267
        iprot.skip(ftype)
18268
      iprot.readFieldEnd()
18269
    iprot.readStructEnd()
18270
 
18271
  def write(self, oprot):
18272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18274
      return
18275
    oprot.writeStructBegin('sendProductNotifications_result')
18276
    if self.success is not None:
18277
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18278
      oprot.writeBool(self.success)
18279
      oprot.writeFieldEnd()
18280
    oprot.writeFieldStop()
18281
    oprot.writeStructEnd()
18282
 
18283
  def validate(self):
18284
    return
18285
 
18286
 
18287
  def __repr__(self):
18288
    L = ['%s=%r' % (key, value)
18289
      for key, value in self.__dict__.iteritems()]
18290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18291
 
18292
  def __eq__(self, other):
18293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18294
 
18295
  def __ne__(self, other):
18296
    return not (self == other)
18297
 
18298
class getAllBrandsByCategory_args:
18299
  """
18300
  Attributes:
18301
   - categoryId
18302
  """
18303
 
18304
  thrift_spec = (
18305
    None, # 0
18306
    (1, TType.I64, 'categoryId', None, None, ), # 1
18307
  )
18308
 
18309
  def __init__(self, categoryId=None,):
18310
    self.categoryId = categoryId
18311
 
18312
  def read(self, iprot):
18313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18315
      return
18316
    iprot.readStructBegin()
18317
    while True:
18318
      (fname, ftype, fid) = iprot.readFieldBegin()
18319
      if ftype == TType.STOP:
18320
        break
18321
      if fid == 1:
18322
        if ftype == TType.I64:
18323
          self.categoryId = iprot.readI64();
18324
        else:
18325
          iprot.skip(ftype)
18326
      else:
18327
        iprot.skip(ftype)
18328
      iprot.readFieldEnd()
18329
    iprot.readStructEnd()
18330
 
18331
  def write(self, oprot):
18332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18334
      return
18335
    oprot.writeStructBegin('getAllBrandsByCategory_args')
18336
    if self.categoryId is not None:
18337
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
18338
      oprot.writeI64(self.categoryId)
18339
      oprot.writeFieldEnd()
18340
    oprot.writeFieldStop()
18341
    oprot.writeStructEnd()
18342
 
18343
  def validate(self):
18344
    return
18345
 
18346
 
18347
  def __repr__(self):
18348
    L = ['%s=%r' % (key, value)
18349
      for key, value in self.__dict__.iteritems()]
18350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18351
 
18352
  def __eq__(self, other):
18353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18354
 
18355
  def __ne__(self, other):
18356
    return not (self == other)
18357
 
18358
class getAllBrandsByCategory_result:
18359
  """
18360
  Attributes:
18361
   - success
18362
  """
18363
 
18364
  thrift_spec = (
18365
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18366
  )
18367
 
18368
  def __init__(self, success=None,):
18369
    self.success = success
18370
 
18371
  def read(self, iprot):
18372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18374
      return
18375
    iprot.readStructBegin()
18376
    while True:
18377
      (fname, ftype, fid) = iprot.readFieldBegin()
18378
      if ftype == TType.STOP:
18379
        break
18380
      if fid == 0:
18381
        if ftype == TType.LIST:
18382
          self.success = []
13493 amit.gupta 18383
          (_etype325, _size322) = iprot.readListBegin()
18384
          for _i326 in xrange(_size322):
18385
            _elem327 = iprot.readString();
18386
            self.success.append(_elem327)
5944 mandeep.dh 18387
          iprot.readListEnd()
18388
        else:
18389
          iprot.skip(ftype)
18390
      else:
18391
        iprot.skip(ftype)
18392
      iprot.readFieldEnd()
18393
    iprot.readStructEnd()
18394
 
18395
  def write(self, oprot):
18396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18398
      return
18399
    oprot.writeStructBegin('getAllBrandsByCategory_result')
18400
    if self.success is not None:
18401
      oprot.writeFieldBegin('success', TType.LIST, 0)
18402
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 18403
      for iter328 in self.success:
18404
        oprot.writeString(iter328)
5944 mandeep.dh 18405
      oprot.writeListEnd()
18406
      oprot.writeFieldEnd()
18407
    oprot.writeFieldStop()
18408
    oprot.writeStructEnd()
18409
 
18410
  def validate(self):
18411
    return
18412
 
18413
 
18414
  def __repr__(self):
18415
    L = ['%s=%r' % (key, value)
18416
      for key, value in self.__dict__.iteritems()]
18417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18418
 
18419
  def __eq__(self, other):
18420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18421
 
18422
  def __ne__(self, other):
18423
    return not (self == other)
18424
 
18425
class getAllBrands_args:
18426
 
18427
  thrift_spec = (
18428
  )
18429
 
18430
  def read(self, iprot):
18431
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18432
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18433
      return
18434
    iprot.readStructBegin()
18435
    while True:
18436
      (fname, ftype, fid) = iprot.readFieldBegin()
18437
      if ftype == TType.STOP:
18438
        break
18439
      else:
18440
        iprot.skip(ftype)
18441
      iprot.readFieldEnd()
18442
    iprot.readStructEnd()
18443
 
18444
  def write(self, oprot):
18445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18447
      return
18448
    oprot.writeStructBegin('getAllBrands_args')
18449
    oprot.writeFieldStop()
18450
    oprot.writeStructEnd()
18451
 
18452
  def validate(self):
18453
    return
18454
 
18455
 
18456
  def __repr__(self):
18457
    L = ['%s=%r' % (key, value)
18458
      for key, value in self.__dict__.iteritems()]
18459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18460
 
18461
  def __eq__(self, other):
18462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18463
 
18464
  def __ne__(self, other):
18465
    return not (self == other)
18466
 
18467
class getAllBrands_result:
18468
  """
18469
  Attributes:
18470
   - success
18471
  """
18472
 
18473
  thrift_spec = (
18474
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18475
  )
18476
 
18477
  def __init__(self, success=None,):
18478
    self.success = success
18479
 
18480
  def read(self, iprot):
18481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18483
      return
18484
    iprot.readStructBegin()
18485
    while True:
18486
      (fname, ftype, fid) = iprot.readFieldBegin()
18487
      if ftype == TType.STOP:
18488
        break
18489
      if fid == 0:
18490
        if ftype == TType.LIST:
18491
          self.success = []
13493 amit.gupta 18492
          (_etype332, _size329) = iprot.readListBegin()
18493
          for _i333 in xrange(_size329):
18494
            _elem334 = iprot.readString();
18495
            self.success.append(_elem334)
5944 mandeep.dh 18496
          iprot.readListEnd()
18497
        else:
18498
          iprot.skip(ftype)
18499
      else:
18500
        iprot.skip(ftype)
18501
      iprot.readFieldEnd()
18502
    iprot.readStructEnd()
18503
 
18504
  def write(self, oprot):
18505
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18506
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18507
      return
18508
    oprot.writeStructBegin('getAllBrands_result')
18509
    if self.success is not None:
18510
      oprot.writeFieldBegin('success', TType.LIST, 0)
18511
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 18512
      for iter335 in self.success:
18513
        oprot.writeString(iter335)
5944 mandeep.dh 18514
      oprot.writeListEnd()
18515
      oprot.writeFieldEnd()
18516
    oprot.writeFieldStop()
18517
    oprot.writeStructEnd()
18518
 
18519
  def validate(self):
18520
    return
18521
 
18522
 
18523
  def __repr__(self):
18524
    L = ['%s=%r' % (key, value)
18525
      for key, value in self.__dict__.iteritems()]
18526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18527
 
18528
  def __eq__(self, other):
18529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18530
 
18531
  def __ne__(self, other):
18532
    return not (self == other)
18533
 
18534
class getAllSources_args:
18535
 
18536
  thrift_spec = (
18537
  )
18538
 
18539
  def read(self, iprot):
18540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18542
      return
18543
    iprot.readStructBegin()
18544
    while True:
18545
      (fname, ftype, fid) = iprot.readFieldBegin()
18546
      if ftype == TType.STOP:
18547
        break
18548
      else:
18549
        iprot.skip(ftype)
18550
      iprot.readFieldEnd()
18551
    iprot.readStructEnd()
18552
 
18553
  def write(self, oprot):
18554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18556
      return
18557
    oprot.writeStructBegin('getAllSources_args')
18558
    oprot.writeFieldStop()
18559
    oprot.writeStructEnd()
18560
 
18561
  def validate(self):
18562
    return
18563
 
18564
 
18565
  def __repr__(self):
18566
    L = ['%s=%r' % (key, value)
18567
      for key, value in self.__dict__.iteritems()]
18568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18569
 
18570
  def __eq__(self, other):
18571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18572
 
18573
  def __ne__(self, other):
18574
    return not (self == other)
18575
 
18576
class getAllSources_result:
18577
  """
18578
  Attributes:
18579
   - success
18580
  """
18581
 
18582
  thrift_spec = (
18583
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
18584
  )
18585
 
18586
  def __init__(self, success=None,):
18587
    self.success = success
18588
 
18589
  def read(self, iprot):
18590
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18591
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18592
      return
18593
    iprot.readStructBegin()
18594
    while True:
18595
      (fname, ftype, fid) = iprot.readFieldBegin()
18596
      if ftype == TType.STOP:
18597
        break
18598
      if fid == 0:
18599
        if ftype == TType.LIST:
18600
          self.success = []
13493 amit.gupta 18601
          (_etype339, _size336) = iprot.readListBegin()
18602
          for _i340 in xrange(_size336):
18603
            _elem341 = Source()
18604
            _elem341.read(iprot)
18605
            self.success.append(_elem341)
5944 mandeep.dh 18606
          iprot.readListEnd()
18607
        else:
18608
          iprot.skip(ftype)
18609
      else:
18610
        iprot.skip(ftype)
18611
      iprot.readFieldEnd()
18612
    iprot.readStructEnd()
18613
 
18614
  def write(self, oprot):
18615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18617
      return
18618
    oprot.writeStructBegin('getAllSources_result')
18619
    if self.success is not None:
18620
      oprot.writeFieldBegin('success', TType.LIST, 0)
18621
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 18622
      for iter342 in self.success:
18623
        iter342.write(oprot)
5944 mandeep.dh 18624
      oprot.writeListEnd()
18625
      oprot.writeFieldEnd()
18626
    oprot.writeFieldStop()
18627
    oprot.writeStructEnd()
18628
 
18629
  def validate(self):
18630
    return
18631
 
18632
 
18633
  def __repr__(self):
18634
    L = ['%s=%r' % (key, value)
18635
      for key, value in self.__dict__.iteritems()]
18636
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18637
 
18638
  def __eq__(self, other):
18639
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18640
 
18641
  def __ne__(self, other):
18642
    return not (self == other)
18643
 
18644
class getItemPricingBySource_args:
18645
  """
18646
  Attributes:
18647
   - itemId
18648
   - sourceId
18649
  """
18650
 
18651
  thrift_spec = (
18652
    None, # 0
18653
    (1, TType.I64, 'itemId', None, None, ), # 1
18654
    (2, TType.I64, 'sourceId', None, None, ), # 2
18655
  )
18656
 
18657
  def __init__(self, itemId=None, sourceId=None,):
18658
    self.itemId = itemId
18659
    self.sourceId = sourceId
18660
 
18661
  def read(self, iprot):
18662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18664
      return
18665
    iprot.readStructBegin()
18666
    while True:
18667
      (fname, ftype, fid) = iprot.readFieldBegin()
18668
      if ftype == TType.STOP:
18669
        break
18670
      if fid == 1:
18671
        if ftype == TType.I64:
18672
          self.itemId = iprot.readI64();
18673
        else:
18674
          iprot.skip(ftype)
18675
      elif fid == 2:
18676
        if ftype == TType.I64:
18677
          self.sourceId = iprot.readI64();
18678
        else:
18679
          iprot.skip(ftype)
18680
      else:
18681
        iprot.skip(ftype)
18682
      iprot.readFieldEnd()
18683
    iprot.readStructEnd()
18684
 
18685
  def write(self, oprot):
18686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18688
      return
18689
    oprot.writeStructBegin('getItemPricingBySource_args')
18690
    if self.itemId is not None:
18691
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18692
      oprot.writeI64(self.itemId)
18693
      oprot.writeFieldEnd()
18694
    if self.sourceId is not None:
18695
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18696
      oprot.writeI64(self.sourceId)
18697
      oprot.writeFieldEnd()
18698
    oprot.writeFieldStop()
18699
    oprot.writeStructEnd()
18700
 
18701
  def validate(self):
18702
    return
18703
 
18704
 
18705
  def __repr__(self):
18706
    L = ['%s=%r' % (key, value)
18707
      for key, value in self.__dict__.iteritems()]
18708
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18709
 
18710
  def __eq__(self, other):
18711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18712
 
18713
  def __ne__(self, other):
18714
    return not (self == other)
18715
 
18716
class getItemPricingBySource_result:
18717
  """
18718
  Attributes:
18719
   - success
18720
   - cex
18721
  """
18722
 
18723
  thrift_spec = (
18724
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
18725
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18726
  )
18727
 
18728
  def __init__(self, success=None, cex=None,):
18729
    self.success = success
18730
    self.cex = cex
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.STRUCT:
18743
          self.success = SourceItemPricing()
18744
          self.success.read(iprot)
18745
        else:
18746
          iprot.skip(ftype)
18747
      elif fid == 1:
18748
        if ftype == TType.STRUCT:
18749
          self.cex = CatalogServiceException()
18750
          self.cex.read(iprot)
18751
        else:
18752
          iprot.skip(ftype)
18753
      else:
18754
        iprot.skip(ftype)
18755
      iprot.readFieldEnd()
18756
    iprot.readStructEnd()
18757
 
18758
  def write(self, oprot):
18759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18761
      return
18762
    oprot.writeStructBegin('getItemPricingBySource_result')
18763
    if self.success is not None:
18764
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18765
      self.success.write(oprot)
18766
      oprot.writeFieldEnd()
18767
    if self.cex is not None:
18768
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18769
      self.cex.write(oprot)
18770
      oprot.writeFieldEnd()
18771
    oprot.writeFieldStop()
18772
    oprot.writeStructEnd()
18773
 
18774
  def validate(self):
18775
    return
18776
 
18777
 
18778
  def __repr__(self):
18779
    L = ['%s=%r' % (key, value)
18780
      for key, value in self.__dict__.iteritems()]
18781
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18782
 
18783
  def __eq__(self, other):
18784
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18785
 
18786
  def __ne__(self, other):
18787
    return not (self == other)
18788
 
18789
class addSourceItemPricing_args:
18790
  """
18791
  Attributes:
18792
   - sourceItemPricing
18793
  """
18794
 
18795
  thrift_spec = (
18796
    None, # 0
18797
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
18798
  )
18799
 
18800
  def __init__(self, sourceItemPricing=None,):
18801
    self.sourceItemPricing = sourceItemPricing
18802
 
18803
  def read(self, iprot):
18804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18806
      return
18807
    iprot.readStructBegin()
18808
    while True:
18809
      (fname, ftype, fid) = iprot.readFieldBegin()
18810
      if ftype == TType.STOP:
18811
        break
18812
      if fid == 1:
18813
        if ftype == TType.STRUCT:
18814
          self.sourceItemPricing = SourceItemPricing()
18815
          self.sourceItemPricing.read(iprot)
18816
        else:
18817
          iprot.skip(ftype)
18818
      else:
18819
        iprot.skip(ftype)
18820
      iprot.readFieldEnd()
18821
    iprot.readStructEnd()
18822
 
18823
  def write(self, oprot):
18824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18826
      return
18827
    oprot.writeStructBegin('addSourceItemPricing_args')
18828
    if self.sourceItemPricing is not None:
18829
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
18830
      self.sourceItemPricing.write(oprot)
18831
      oprot.writeFieldEnd()
18832
    oprot.writeFieldStop()
18833
    oprot.writeStructEnd()
18834
 
18835
  def validate(self):
18836
    return
18837
 
18838
 
18839
  def __repr__(self):
18840
    L = ['%s=%r' % (key, value)
18841
      for key, value in self.__dict__.iteritems()]
18842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18843
 
18844
  def __eq__(self, other):
18845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18846
 
18847
  def __ne__(self, other):
18848
    return not (self == other)
18849
 
18850
class addSourceItemPricing_result:
18851
  """
18852
  Attributes:
18853
   - cex
18854
  """
18855
 
18856
  thrift_spec = (
18857
    None, # 0
18858
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18859
  )
18860
 
18861
  def __init__(self, cex=None,):
18862
    self.cex = cex
18863
 
18864
  def read(self, iprot):
18865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18867
      return
18868
    iprot.readStructBegin()
18869
    while True:
18870
      (fname, ftype, fid) = iprot.readFieldBegin()
18871
      if ftype == TType.STOP:
18872
        break
18873
      if fid == 1:
18874
        if ftype == TType.STRUCT:
18875
          self.cex = CatalogServiceException()
18876
          self.cex.read(iprot)
18877
        else:
18878
          iprot.skip(ftype)
18879
      else:
18880
        iprot.skip(ftype)
18881
      iprot.readFieldEnd()
18882
    iprot.readStructEnd()
18883
 
18884
  def write(self, oprot):
18885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18887
      return
18888
    oprot.writeStructBegin('addSourceItemPricing_result')
18889
    if self.cex is not None:
18890
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18891
      self.cex.write(oprot)
18892
      oprot.writeFieldEnd()
18893
    oprot.writeFieldStop()
18894
    oprot.writeStructEnd()
18895
 
18896
  def validate(self):
18897
    return
18898
 
18899
 
18900
  def __repr__(self):
18901
    L = ['%s=%r' % (key, value)
18902
      for key, value in self.__dict__.iteritems()]
18903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18904
 
18905
  def __eq__(self, other):
18906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18907
 
18908
  def __ne__(self, other):
18909
    return not (self == other)
18910
 
18911
class getAllSourcePricing_args:
18912
  """
18913
  Attributes:
18914
   - itemId
18915
  """
18916
 
18917
  thrift_spec = (
18918
    None, # 0
18919
    (1, TType.I64, 'itemId', None, None, ), # 1
18920
  )
18921
 
18922
  def __init__(self, itemId=None,):
18923
    self.itemId = itemId
18924
 
18925
  def read(self, iprot):
18926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18928
      return
18929
    iprot.readStructBegin()
18930
    while True:
18931
      (fname, ftype, fid) = iprot.readFieldBegin()
18932
      if ftype == TType.STOP:
18933
        break
18934
      if fid == 1:
18935
        if ftype == TType.I64:
18936
          self.itemId = iprot.readI64();
18937
        else:
18938
          iprot.skip(ftype)
18939
      else:
18940
        iprot.skip(ftype)
18941
      iprot.readFieldEnd()
18942
    iprot.readStructEnd()
18943
 
18944
  def write(self, oprot):
18945
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18946
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18947
      return
18948
    oprot.writeStructBegin('getAllSourcePricing_args')
18949
    if self.itemId is not None:
18950
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18951
      oprot.writeI64(self.itemId)
18952
      oprot.writeFieldEnd()
18953
    oprot.writeFieldStop()
18954
    oprot.writeStructEnd()
18955
 
18956
  def validate(self):
18957
    return
18958
 
18959
 
18960
  def __repr__(self):
18961
    L = ['%s=%r' % (key, value)
18962
      for key, value in self.__dict__.iteritems()]
18963
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18964
 
18965
  def __eq__(self, other):
18966
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18967
 
18968
  def __ne__(self, other):
18969
    return not (self == other)
18970
 
18971
class getAllSourcePricing_result:
18972
  """
18973
  Attributes:
18974
   - success
18975
   - cex
18976
  """
18977
 
18978
  thrift_spec = (
18979
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
18980
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18981
  )
18982
 
18983
  def __init__(self, success=None, cex=None,):
18984
    self.success = success
18985
    self.cex = cex
18986
 
18987
  def read(self, iprot):
18988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18990
      return
18991
    iprot.readStructBegin()
18992
    while True:
18993
      (fname, ftype, fid) = iprot.readFieldBegin()
18994
      if ftype == TType.STOP:
18995
        break
18996
      if fid == 0:
18997
        if ftype == TType.LIST:
18998
          self.success = []
13493 amit.gupta 18999
          (_etype346, _size343) = iprot.readListBegin()
19000
          for _i347 in xrange(_size343):
19001
            _elem348 = SourceItemPricing()
19002
            _elem348.read(iprot)
19003
            self.success.append(_elem348)
5944 mandeep.dh 19004
          iprot.readListEnd()
19005
        else:
19006
          iprot.skip(ftype)
19007
      elif fid == 1:
19008
        if ftype == TType.STRUCT:
19009
          self.cex = CatalogServiceException()
19010
          self.cex.read(iprot)
19011
        else:
19012
          iprot.skip(ftype)
19013
      else:
19014
        iprot.skip(ftype)
19015
      iprot.readFieldEnd()
19016
    iprot.readStructEnd()
19017
 
19018
  def write(self, oprot):
19019
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19020
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19021
      return
19022
    oprot.writeStructBegin('getAllSourcePricing_result')
19023
    if self.success is not None:
19024
      oprot.writeFieldBegin('success', TType.LIST, 0)
19025
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 19026
      for iter349 in self.success:
19027
        iter349.write(oprot)
5944 mandeep.dh 19028
      oprot.writeListEnd()
19029
      oprot.writeFieldEnd()
19030
    if self.cex is not None:
19031
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19032
      self.cex.write(oprot)
19033
      oprot.writeFieldEnd()
19034
    oprot.writeFieldStop()
19035
    oprot.writeStructEnd()
19036
 
19037
  def validate(self):
19038
    return
19039
 
19040
 
19041
  def __repr__(self):
19042
    L = ['%s=%r' % (key, value)
19043
      for key, value in self.__dict__.iteritems()]
19044
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19045
 
19046
  def __eq__(self, other):
19047
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19048
 
19049
  def __ne__(self, other):
19050
    return not (self == other)
19051
 
19052
class getItemForSource_args:
19053
  """
19054
  Attributes:
19055
   - item_id
19056
   - sourceId
19057
  """
19058
 
19059
  thrift_spec = (
19060
    None, # 0
19061
    (1, TType.I64, 'item_id', None, None, ), # 1
19062
    (2, TType.I64, 'sourceId', None, None, ), # 2
19063
  )
19064
 
19065
  def __init__(self, item_id=None, sourceId=None,):
19066
    self.item_id = item_id
19067
    self.sourceId = sourceId
19068
 
19069
  def read(self, iprot):
19070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19072
      return
19073
    iprot.readStructBegin()
19074
    while True:
19075
      (fname, ftype, fid) = iprot.readFieldBegin()
19076
      if ftype == TType.STOP:
19077
        break
19078
      if fid == 1:
19079
        if ftype == TType.I64:
19080
          self.item_id = iprot.readI64();
19081
        else:
19082
          iprot.skip(ftype)
19083
      elif fid == 2:
19084
        if ftype == TType.I64:
19085
          self.sourceId = iprot.readI64();
19086
        else:
19087
          iprot.skip(ftype)
19088
      else:
19089
        iprot.skip(ftype)
19090
      iprot.readFieldEnd()
19091
    iprot.readStructEnd()
19092
 
19093
  def write(self, oprot):
19094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19096
      return
19097
    oprot.writeStructBegin('getItemForSource_args')
19098
    if self.item_id is not None:
19099
      oprot.writeFieldBegin('item_id', TType.I64, 1)
19100
      oprot.writeI64(self.item_id)
19101
      oprot.writeFieldEnd()
19102
    if self.sourceId is not None:
19103
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
19104
      oprot.writeI64(self.sourceId)
19105
      oprot.writeFieldEnd()
19106
    oprot.writeFieldStop()
19107
    oprot.writeStructEnd()
19108
 
19109
  def validate(self):
19110
    return
19111
 
19112
 
19113
  def __repr__(self):
19114
    L = ['%s=%r' % (key, value)
19115
      for key, value in self.__dict__.iteritems()]
19116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19117
 
19118
  def __eq__(self, other):
19119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19120
 
19121
  def __ne__(self, other):
19122
    return not (self == other)
19123
 
19124
class getItemForSource_result:
19125
  """
19126
  Attributes:
19127
   - success
19128
   - cex
19129
  """
19130
 
19131
  thrift_spec = (
19132
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
19133
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19134
  )
19135
 
19136
  def __init__(self, success=None, cex=None,):
19137
    self.success = success
19138
    self.cex = cex
19139
 
19140
  def read(self, iprot):
19141
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19142
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19143
      return
19144
    iprot.readStructBegin()
19145
    while True:
19146
      (fname, ftype, fid) = iprot.readFieldBegin()
19147
      if ftype == TType.STOP:
19148
        break
19149
      if fid == 0:
19150
        if ftype == TType.STRUCT:
19151
          self.success = Item()
19152
          self.success.read(iprot)
19153
        else:
19154
          iprot.skip(ftype)
19155
      elif fid == 1:
19156
        if ftype == TType.STRUCT:
19157
          self.cex = CatalogServiceException()
19158
          self.cex.read(iprot)
19159
        else:
19160
          iprot.skip(ftype)
19161
      else:
19162
        iprot.skip(ftype)
19163
      iprot.readFieldEnd()
19164
    iprot.readStructEnd()
19165
 
19166
  def write(self, oprot):
19167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19169
      return
19170
    oprot.writeStructBegin('getItemForSource_result')
19171
    if self.success is not None:
19172
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19173
      self.success.write(oprot)
19174
      oprot.writeFieldEnd()
19175
    if self.cex is not None:
19176
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19177
      self.cex.write(oprot)
19178
      oprot.writeFieldEnd()
19179
    oprot.writeFieldStop()
19180
    oprot.writeStructEnd()
19181
 
19182
  def validate(self):
19183
    return
19184
 
19185
 
19186
  def __repr__(self):
19187
    L = ['%s=%r' % (key, value)
19188
      for key, value in self.__dict__.iteritems()]
19189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19190
 
19191
  def __eq__(self, other):
19192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19193
 
19194
  def __ne__(self, other):
19195
    return not (self == other)
19196
 
19197
class searchItemsInRange_args:
19198
  """
19199
  Attributes:
19200
   - searchTerms
19201
   - offset
19202
   - limit
19203
  """
19204
 
19205
  thrift_spec = (
19206
    None, # 0
19207
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19208
    (2, TType.I64, 'offset', None, None, ), # 2
19209
    (3, TType.I64, 'limit', None, None, ), # 3
19210
  )
19211
 
19212
  def __init__(self, searchTerms=None, offset=None, limit=None,):
19213
    self.searchTerms = searchTerms
19214
    self.offset = offset
19215
    self.limit = limit
19216
 
19217
  def read(self, iprot):
19218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19220
      return
19221
    iprot.readStructBegin()
19222
    while True:
19223
      (fname, ftype, fid) = iprot.readFieldBegin()
19224
      if ftype == TType.STOP:
19225
        break
19226
      if fid == 1:
19227
        if ftype == TType.LIST:
19228
          self.searchTerms = []
13493 amit.gupta 19229
          (_etype353, _size350) = iprot.readListBegin()
19230
          for _i354 in xrange(_size350):
19231
            _elem355 = iprot.readString();
19232
            self.searchTerms.append(_elem355)
5944 mandeep.dh 19233
          iprot.readListEnd()
19234
        else:
19235
          iprot.skip(ftype)
19236
      elif fid == 2:
19237
        if ftype == TType.I64:
19238
          self.offset = iprot.readI64();
19239
        else:
19240
          iprot.skip(ftype)
19241
      elif fid == 3:
19242
        if ftype == TType.I64:
19243
          self.limit = iprot.readI64();
19244
        else:
19245
          iprot.skip(ftype)
19246
      else:
19247
        iprot.skip(ftype)
19248
      iprot.readFieldEnd()
19249
    iprot.readStructEnd()
19250
 
19251
  def write(self, oprot):
19252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19254
      return
19255
    oprot.writeStructBegin('searchItemsInRange_args')
19256
    if self.searchTerms is not None:
19257
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19258
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
13493 amit.gupta 19259
      for iter356 in self.searchTerms:
19260
        oprot.writeString(iter356)
5944 mandeep.dh 19261
      oprot.writeListEnd()
19262
      oprot.writeFieldEnd()
19263
    if self.offset is not None:
19264
      oprot.writeFieldBegin('offset', TType.I64, 2)
19265
      oprot.writeI64(self.offset)
19266
      oprot.writeFieldEnd()
19267
    if self.limit is not None:
19268
      oprot.writeFieldBegin('limit', TType.I64, 3)
19269
      oprot.writeI64(self.limit)
19270
      oprot.writeFieldEnd()
19271
    oprot.writeFieldStop()
19272
    oprot.writeStructEnd()
19273
 
19274
  def validate(self):
19275
    return
19276
 
19277
 
19278
  def __repr__(self):
19279
    L = ['%s=%r' % (key, value)
19280
      for key, value in self.__dict__.iteritems()]
19281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19282
 
19283
  def __eq__(self, other):
19284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19285
 
19286
  def __ne__(self, other):
19287
    return not (self == other)
19288
 
19289
class searchItemsInRange_result:
19290
  """
19291
  Attributes:
19292
   - success
19293
  """
19294
 
19295
  thrift_spec = (
19296
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
19297
  )
19298
 
19299
  def __init__(self, success=None,):
19300
    self.success = success
19301
 
19302
  def read(self, iprot):
19303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19305
      return
19306
    iprot.readStructBegin()
19307
    while True:
19308
      (fname, ftype, fid) = iprot.readFieldBegin()
19309
      if ftype == TType.STOP:
19310
        break
19311
      if fid == 0:
19312
        if ftype == TType.LIST:
19313
          self.success = []
13493 amit.gupta 19314
          (_etype360, _size357) = iprot.readListBegin()
19315
          for _i361 in xrange(_size357):
19316
            _elem362 = Item()
19317
            _elem362.read(iprot)
19318
            self.success.append(_elem362)
5944 mandeep.dh 19319
          iprot.readListEnd()
19320
        else:
19321
          iprot.skip(ftype)
19322
      else:
19323
        iprot.skip(ftype)
19324
      iprot.readFieldEnd()
19325
    iprot.readStructEnd()
19326
 
19327
  def write(self, oprot):
19328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19330
      return
19331
    oprot.writeStructBegin('searchItemsInRange_result')
19332
    if self.success is not None:
19333
      oprot.writeFieldBegin('success', TType.LIST, 0)
19334
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 19335
      for iter363 in self.success:
19336
        iter363.write(oprot)
5944 mandeep.dh 19337
      oprot.writeListEnd()
19338
      oprot.writeFieldEnd()
19339
    oprot.writeFieldStop()
19340
    oprot.writeStructEnd()
19341
 
19342
  def validate(self):
19343
    return
19344
 
19345
 
19346
  def __repr__(self):
19347
    L = ['%s=%r' % (key, value)
19348
      for key, value in self.__dict__.iteritems()]
19349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19350
 
19351
  def __eq__(self, other):
19352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19353
 
19354
  def __ne__(self, other):
19355
    return not (self == other)
19356
 
19357
class getSearchResultCount_args:
19358
  """
19359
  Attributes:
19360
   - searchTerms
19361
  """
19362
 
19363
  thrift_spec = (
19364
    None, # 0
19365
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19366
  )
19367
 
19368
  def __init__(self, searchTerms=None,):
19369
    self.searchTerms = searchTerms
19370
 
19371
  def read(self, iprot):
19372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19374
      return
19375
    iprot.readStructBegin()
19376
    while True:
19377
      (fname, ftype, fid) = iprot.readFieldBegin()
19378
      if ftype == TType.STOP:
19379
        break
19380
      if fid == 1:
19381
        if ftype == TType.LIST:
19382
          self.searchTerms = []
13493 amit.gupta 19383
          (_etype367, _size364) = iprot.readListBegin()
19384
          for _i368 in xrange(_size364):
19385
            _elem369 = iprot.readString();
19386
            self.searchTerms.append(_elem369)
5944 mandeep.dh 19387
          iprot.readListEnd()
19388
        else:
19389
          iprot.skip(ftype)
19390
      else:
19391
        iprot.skip(ftype)
19392
      iprot.readFieldEnd()
19393
    iprot.readStructEnd()
19394
 
19395
  def write(self, oprot):
19396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19398
      return
19399
    oprot.writeStructBegin('getSearchResultCount_args')
19400
    if self.searchTerms is not None:
19401
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19402
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
13493 amit.gupta 19403
      for iter370 in self.searchTerms:
19404
        oprot.writeString(iter370)
5944 mandeep.dh 19405
      oprot.writeListEnd()
19406
      oprot.writeFieldEnd()
19407
    oprot.writeFieldStop()
19408
    oprot.writeStructEnd()
19409
 
19410
  def validate(self):
19411
    return
19412
 
19413
 
19414
  def __repr__(self):
19415
    L = ['%s=%r' % (key, value)
19416
      for key, value in self.__dict__.iteritems()]
19417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19418
 
19419
  def __eq__(self, other):
19420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19421
 
19422
  def __ne__(self, other):
19423
    return not (self == other)
19424
 
19425
class getSearchResultCount_result:
19426
  """
19427
  Attributes:
19428
   - success
19429
  """
19430
 
19431
  thrift_spec = (
19432
    (0, TType.I32, 'success', None, None, ), # 0
19433
  )
19434
 
19435
  def __init__(self, success=None,):
19436
    self.success = success
19437
 
19438
  def read(self, iprot):
19439
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19440
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19441
      return
19442
    iprot.readStructBegin()
19443
    while True:
19444
      (fname, ftype, fid) = iprot.readFieldBegin()
19445
      if ftype == TType.STOP:
19446
        break
19447
      if fid == 0:
19448
        if ftype == TType.I32:
19449
          self.success = iprot.readI32();
19450
        else:
19451
          iprot.skip(ftype)
19452
      else:
19453
        iprot.skip(ftype)
19454
      iprot.readFieldEnd()
19455
    iprot.readStructEnd()
19456
 
19457
  def write(self, oprot):
19458
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19459
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19460
      return
19461
    oprot.writeStructBegin('getSearchResultCount_result')
19462
    if self.success is not None:
19463
      oprot.writeFieldBegin('success', TType.I32, 0)
19464
      oprot.writeI32(self.success)
19465
      oprot.writeFieldEnd()
19466
    oprot.writeFieldStop()
19467
    oprot.writeStructEnd()
19468
 
19469
  def validate(self):
19470
    return
19471
 
19472
 
19473
  def __repr__(self):
19474
    L = ['%s=%r' % (key, value)
19475
      for key, value in self.__dict__.iteritems()]
19476
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19477
 
19478
  def __eq__(self, other):
19479
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19480
 
19481
  def __ne__(self, other):
19482
    return not (self == other)
19483
 
19484
class getProductNotifications_args:
19485
  """
19486
  Attributes:
19487
   - startDateTime
19488
  """
19489
 
19490
  thrift_spec = (
19491
    None, # 0
19492
    (1, TType.I64, 'startDateTime', None, None, ), # 1
19493
  )
19494
 
19495
  def __init__(self, startDateTime=None,):
19496
    self.startDateTime = startDateTime
19497
 
19498
  def read(self, iprot):
19499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19501
      return
19502
    iprot.readStructBegin()
19503
    while True:
19504
      (fname, ftype, fid) = iprot.readFieldBegin()
19505
      if ftype == TType.STOP:
19506
        break
19507
      if fid == 1:
19508
        if ftype == TType.I64:
19509
          self.startDateTime = iprot.readI64();
19510
        else:
19511
          iprot.skip(ftype)
19512
      else:
19513
        iprot.skip(ftype)
19514
      iprot.readFieldEnd()
19515
    iprot.readStructEnd()
19516
 
19517
  def write(self, oprot):
19518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19520
      return
19521
    oprot.writeStructBegin('getProductNotifications_args')
19522
    if self.startDateTime is not None:
19523
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19524
      oprot.writeI64(self.startDateTime)
19525
      oprot.writeFieldEnd()
19526
    oprot.writeFieldStop()
19527
    oprot.writeStructEnd()
19528
 
19529
  def validate(self):
19530
    return
19531
 
19532
 
19533
  def __repr__(self):
19534
    L = ['%s=%r' % (key, value)
19535
      for key, value in self.__dict__.iteritems()]
19536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19537
 
19538
  def __eq__(self, other):
19539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19540
 
19541
  def __ne__(self, other):
19542
    return not (self == other)
19543
 
19544
class getProductNotifications_result:
19545
  """
19546
  Attributes:
19547
   - success
19548
  """
19549
 
19550
  thrift_spec = (
19551
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
19552
  )
19553
 
19554
  def __init__(self, success=None,):
19555
    self.success = success
19556
 
19557
  def read(self, iprot):
19558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19560
      return
19561
    iprot.readStructBegin()
19562
    while True:
19563
      (fname, ftype, fid) = iprot.readFieldBegin()
19564
      if ftype == TType.STOP:
19565
        break
19566
      if fid == 0:
19567
        if ftype == TType.LIST:
19568
          self.success = []
13493 amit.gupta 19569
          (_etype374, _size371) = iprot.readListBegin()
19570
          for _i375 in xrange(_size371):
19571
            _elem376 = ProductNotificationRequest()
19572
            _elem376.read(iprot)
19573
            self.success.append(_elem376)
5944 mandeep.dh 19574
          iprot.readListEnd()
19575
        else:
19576
          iprot.skip(ftype)
19577
      else:
19578
        iprot.skip(ftype)
19579
      iprot.readFieldEnd()
19580
    iprot.readStructEnd()
19581
 
19582
  def write(self, oprot):
19583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19585
      return
19586
    oprot.writeStructBegin('getProductNotifications_result')
19587
    if self.success is not None:
19588
      oprot.writeFieldBegin('success', TType.LIST, 0)
19589
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 19590
      for iter377 in self.success:
19591
        iter377.write(oprot)
5944 mandeep.dh 19592
      oprot.writeListEnd()
19593
      oprot.writeFieldEnd()
19594
    oprot.writeFieldStop()
19595
    oprot.writeStructEnd()
19596
 
19597
  def validate(self):
19598
    return
19599
 
19600
 
19601
  def __repr__(self):
19602
    L = ['%s=%r' % (key, value)
19603
      for key, value in self.__dict__.iteritems()]
19604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19605
 
19606
  def __eq__(self, other):
19607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19608
 
19609
  def __ne__(self, other):
19610
    return not (self == other)
19611
 
19612
class getProductNotificationRequestCount_args:
19613
  """
19614
  Attributes:
19615
   - startDateTime
7897 amar.kumar 19616
   - categoryId
5944 mandeep.dh 19617
  """
19618
 
19619
  thrift_spec = (
19620
    None, # 0
19621
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 19622
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 19623
  )
19624
 
7897 amar.kumar 19625
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 19626
    self.startDateTime = startDateTime
7897 amar.kumar 19627
    self.categoryId = categoryId
5944 mandeep.dh 19628
 
19629
  def read(self, iprot):
19630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19632
      return
19633
    iprot.readStructBegin()
19634
    while True:
19635
      (fname, ftype, fid) = iprot.readFieldBegin()
19636
      if ftype == TType.STOP:
19637
        break
19638
      if fid == 1:
19639
        if ftype == TType.I64:
19640
          self.startDateTime = iprot.readI64();
19641
        else:
19642
          iprot.skip(ftype)
7897 amar.kumar 19643
      elif fid == 2:
19644
        if ftype == TType.I64:
19645
          self.categoryId = iprot.readI64();
19646
        else:
19647
          iprot.skip(ftype)
5944 mandeep.dh 19648
      else:
19649
        iprot.skip(ftype)
19650
      iprot.readFieldEnd()
19651
    iprot.readStructEnd()
19652
 
19653
  def write(self, oprot):
19654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19656
      return
19657
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
19658
    if self.startDateTime is not None:
19659
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19660
      oprot.writeI64(self.startDateTime)
19661
      oprot.writeFieldEnd()
7897 amar.kumar 19662
    if self.categoryId is not None:
19663
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
19664
      oprot.writeI64(self.categoryId)
19665
      oprot.writeFieldEnd()
5944 mandeep.dh 19666
    oprot.writeFieldStop()
19667
    oprot.writeStructEnd()
19668
 
19669
  def validate(self):
19670
    return
19671
 
19672
 
19673
  def __repr__(self):
19674
    L = ['%s=%r' % (key, value)
19675
      for key, value in self.__dict__.iteritems()]
19676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19677
 
19678
  def __eq__(self, other):
19679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19680
 
19681
  def __ne__(self, other):
19682
    return not (self == other)
19683
 
19684
class getProductNotificationRequestCount_result:
19685
  """
19686
  Attributes:
19687
   - success
19688
  """
19689
 
19690
  thrift_spec = (
19691
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
19692
  )
19693
 
19694
  def __init__(self, success=None,):
19695
    self.success = success
19696
 
19697
  def read(self, iprot):
19698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19700
      return
19701
    iprot.readStructBegin()
19702
    while True:
19703
      (fname, ftype, fid) = iprot.readFieldBegin()
19704
      if ftype == TType.STOP:
19705
        break
19706
      if fid == 0:
19707
        if ftype == TType.LIST:
19708
          self.success = []
13493 amit.gupta 19709
          (_etype381, _size378) = iprot.readListBegin()
19710
          for _i382 in xrange(_size378):
19711
            _elem383 = ProductNotificationRequestCount()
19712
            _elem383.read(iprot)
19713
            self.success.append(_elem383)
5944 mandeep.dh 19714
          iprot.readListEnd()
19715
        else:
19716
          iprot.skip(ftype)
19717
      else:
19718
        iprot.skip(ftype)
19719
      iprot.readFieldEnd()
19720
    iprot.readStructEnd()
19721
 
19722
  def write(self, oprot):
19723
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19724
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19725
      return
19726
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
19727
    if self.success is not None:
19728
      oprot.writeFieldBegin('success', TType.LIST, 0)
19729
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 19730
      for iter384 in self.success:
19731
        iter384.write(oprot)
5944 mandeep.dh 19732
      oprot.writeListEnd()
19733
      oprot.writeFieldEnd()
19734
    oprot.writeFieldStop()
19735
    oprot.writeStructEnd()
19736
 
19737
  def validate(self):
19738
    return
19739
 
19740
 
19741
  def __repr__(self):
19742
    L = ['%s=%r' % (key, value)
19743
      for key, value in self.__dict__.iteritems()]
19744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19745
 
19746
  def __eq__(self, other):
19747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19748
 
19749
  def __ne__(self, other):
19750
    return not (self == other)
19751
 
19752
class addAuthorizationLog_args:
19753
  """
19754
  Attributes:
19755
   - itemId
19756
   - username
19757
   - reason
19758
  """
19759
 
19760
  thrift_spec = (
19761
    None, # 0
19762
    (1, TType.I64, 'itemId', None, None, ), # 1
19763
    (2, TType.STRING, 'username', None, None, ), # 2
19764
    (3, TType.STRING, 'reason', None, None, ), # 3
19765
  )
19766
 
19767
  def __init__(self, itemId=None, username=None, reason=None,):
19768
    self.itemId = itemId
19769
    self.username = username
19770
    self.reason = reason
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.itemId = iprot.readI64();
19784
        else:
19785
          iprot.skip(ftype)
19786
      elif fid == 2:
19787
        if ftype == TType.STRING:
19788
          self.username = iprot.readString();
19789
        else:
19790
          iprot.skip(ftype)
19791
      elif fid == 3:
19792
        if ftype == TType.STRING:
19793
          self.reason = iprot.readString();
19794
        else:
19795
          iprot.skip(ftype)
19796
      else:
19797
        iprot.skip(ftype)
19798
      iprot.readFieldEnd()
19799
    iprot.readStructEnd()
19800
 
19801
  def write(self, oprot):
19802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19804
      return
19805
    oprot.writeStructBegin('addAuthorizationLog_args')
19806
    if self.itemId is not None:
19807
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19808
      oprot.writeI64(self.itemId)
19809
      oprot.writeFieldEnd()
19810
    if self.username is not None:
19811
      oprot.writeFieldBegin('username', TType.STRING, 2)
19812
      oprot.writeString(self.username)
19813
      oprot.writeFieldEnd()
19814
    if self.reason is not None:
19815
      oprot.writeFieldBegin('reason', TType.STRING, 3)
19816
      oprot.writeString(self.reason)
19817
      oprot.writeFieldEnd()
19818
    oprot.writeFieldStop()
19819
    oprot.writeStructEnd()
19820
 
19821
  def validate(self):
19822
    return
19823
 
19824
 
19825
  def __repr__(self):
19826
    L = ['%s=%r' % (key, value)
19827
      for key, value in self.__dict__.iteritems()]
19828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19829
 
19830
  def __eq__(self, other):
19831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19832
 
19833
  def __ne__(self, other):
19834
    return not (self == other)
19835
 
19836
class addAuthorizationLog_result:
19837
  """
19838
  Attributes:
19839
   - success
19840
   - cex
19841
  """
19842
 
19843
  thrift_spec = (
19844
    (0, TType.BOOL, 'success', None, None, ), # 0
19845
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19846
  )
19847
 
19848
  def __init__(self, success=None, cex=None,):
19849
    self.success = success
19850
    self.cex = cex
19851
 
19852
  def read(self, iprot):
19853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19855
      return
19856
    iprot.readStructBegin()
19857
    while True:
19858
      (fname, ftype, fid) = iprot.readFieldBegin()
19859
      if ftype == TType.STOP:
19860
        break
19861
      if fid == 0:
19862
        if ftype == TType.BOOL:
19863
          self.success = iprot.readBool();
19864
        else:
19865
          iprot.skip(ftype)
19866
      elif fid == 1:
19867
        if ftype == TType.STRUCT:
19868
          self.cex = CatalogServiceException()
19869
          self.cex.read(iprot)
19870
        else:
19871
          iprot.skip(ftype)
19872
      else:
19873
        iprot.skip(ftype)
19874
      iprot.readFieldEnd()
19875
    iprot.readStructEnd()
19876
 
19877
  def write(self, oprot):
19878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19880
      return
19881
    oprot.writeStructBegin('addAuthorizationLog_result')
19882
    if self.success is not None:
19883
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19884
      oprot.writeBool(self.success)
19885
      oprot.writeFieldEnd()
19886
    if self.cex is not None:
19887
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19888
      self.cex.write(oprot)
19889
      oprot.writeFieldEnd()
19890
    oprot.writeFieldStop()
19891
    oprot.writeStructEnd()
19892
 
19893
  def validate(self):
19894
    return
19895
 
19896
 
19897
  def __repr__(self):
19898
    L = ['%s=%r' % (key, value)
19899
      for key, value in self.__dict__.iteritems()]
19900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19901
 
19902
  def __eq__(self, other):
19903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19904
 
19905
  def __ne__(self, other):
19906
    return not (self == other)
19907
 
19908
class addupdateVoucherForItem_args:
19909
  """
19910
  Attributes:
19911
   - catalog_item_id
19912
   - voucherType
19913
   - voucherAmount
19914
  """
19915
 
19916
  thrift_spec = (
19917
    None, # 0
19918
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19919
    (2, TType.I64, 'voucherType', None, None, ), # 2
19920
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
19921
  )
19922
 
19923
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
19924
    self.catalog_item_id = catalog_item_id
19925
    self.voucherType = voucherType
19926
    self.voucherAmount = voucherAmount
19927
 
19928
  def read(self, iprot):
19929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19931
      return
19932
    iprot.readStructBegin()
19933
    while True:
19934
      (fname, ftype, fid) = iprot.readFieldBegin()
19935
      if ftype == TType.STOP:
19936
        break
19937
      if fid == 1:
19938
        if ftype == TType.I64:
19939
          self.catalog_item_id = iprot.readI64();
19940
        else:
19941
          iprot.skip(ftype)
19942
      elif fid == 2:
19943
        if ftype == TType.I64:
19944
          self.voucherType = iprot.readI64();
19945
        else:
19946
          iprot.skip(ftype)
19947
      elif fid == 3:
19948
        if ftype == TType.I64:
19949
          self.voucherAmount = iprot.readI64();
19950
        else:
19951
          iprot.skip(ftype)
19952
      else:
19953
        iprot.skip(ftype)
19954
      iprot.readFieldEnd()
19955
    iprot.readStructEnd()
19956
 
19957
  def write(self, oprot):
19958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19960
      return
19961
    oprot.writeStructBegin('addupdateVoucherForItem_args')
19962
    if self.catalog_item_id is not None:
19963
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19964
      oprot.writeI64(self.catalog_item_id)
19965
      oprot.writeFieldEnd()
19966
    if self.voucherType is not None:
19967
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19968
      oprot.writeI64(self.voucherType)
19969
      oprot.writeFieldEnd()
19970
    if self.voucherAmount is not None:
19971
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
19972
      oprot.writeI64(self.voucherAmount)
19973
      oprot.writeFieldEnd()
19974
    oprot.writeFieldStop()
19975
    oprot.writeStructEnd()
19976
 
19977
  def validate(self):
19978
    return
19979
 
19980
 
19981
  def __repr__(self):
19982
    L = ['%s=%r' % (key, value)
19983
      for key, value in self.__dict__.iteritems()]
19984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19985
 
19986
  def __eq__(self, other):
19987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19988
 
19989
  def __ne__(self, other):
19990
    return not (self == other)
19991
 
19992
class addupdateVoucherForItem_result:
19993
  """
19994
  Attributes:
19995
   - success
19996
   - cex
19997
  """
19998
 
19999
  thrift_spec = (
20000
    (0, TType.BOOL, 'success', None, None, ), # 0
20001
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
20002
  )
20003
 
20004
  def __init__(self, success=None, cex=None,):
20005
    self.success = success
20006
    self.cex = cex
20007
 
20008
  def read(self, iprot):
20009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20011
      return
20012
    iprot.readStructBegin()
20013
    while True:
20014
      (fname, ftype, fid) = iprot.readFieldBegin()
20015
      if ftype == TType.STOP:
20016
        break
20017
      if fid == 0:
20018
        if ftype == TType.BOOL:
20019
          self.success = iprot.readBool();
20020
        else:
20021
          iprot.skip(ftype)
20022
      elif fid == 1:
20023
        if ftype == TType.STRUCT:
20024
          self.cex = CatalogServiceException()
20025
          self.cex.read(iprot)
20026
        else:
20027
          iprot.skip(ftype)
20028
      else:
20029
        iprot.skip(ftype)
20030
      iprot.readFieldEnd()
20031
    iprot.readStructEnd()
20032
 
20033
  def write(self, oprot):
20034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20036
      return
20037
    oprot.writeStructBegin('addupdateVoucherForItem_result')
20038
    if self.success is not None:
20039
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20040
      oprot.writeBool(self.success)
20041
      oprot.writeFieldEnd()
20042
    if self.cex is not None:
20043
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20044
      self.cex.write(oprot)
20045
      oprot.writeFieldEnd()
20046
    oprot.writeFieldStop()
20047
    oprot.writeStructEnd()
20048
 
20049
  def validate(self):
20050
    return
20051
 
20052
 
20053
  def __repr__(self):
20054
    L = ['%s=%r' % (key, value)
20055
      for key, value in self.__dict__.iteritems()]
20056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20057
 
20058
  def __eq__(self, other):
20059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20060
 
20061
  def __ne__(self, other):
20062
    return not (self == other)
20063
 
20064
class deleteVoucherForItem_args:
20065
  """
20066
  Attributes:
20067
   - catalog_item_id
20068
   - voucherType
20069
  """
20070
 
20071
  thrift_spec = (
20072
    None, # 0
20073
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20074
    (2, TType.I64, 'voucherType', None, None, ), # 2
20075
  )
20076
 
20077
  def __init__(self, catalog_item_id=None, voucherType=None,):
20078
    self.catalog_item_id = catalog_item_id
20079
    self.voucherType = voucherType
20080
 
20081
  def read(self, iprot):
20082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20084
      return
20085
    iprot.readStructBegin()
20086
    while True:
20087
      (fname, ftype, fid) = iprot.readFieldBegin()
20088
      if ftype == TType.STOP:
20089
        break
20090
      if fid == 1:
20091
        if ftype == TType.I64:
20092
          self.catalog_item_id = iprot.readI64();
20093
        else:
20094
          iprot.skip(ftype)
20095
      elif fid == 2:
20096
        if ftype == TType.I64:
20097
          self.voucherType = iprot.readI64();
20098
        else:
20099
          iprot.skip(ftype)
20100
      else:
20101
        iprot.skip(ftype)
20102
      iprot.readFieldEnd()
20103
    iprot.readStructEnd()
20104
 
20105
  def write(self, oprot):
20106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20108
      return
20109
    oprot.writeStructBegin('deleteVoucherForItem_args')
20110
    if self.catalog_item_id is not None:
20111
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20112
      oprot.writeI64(self.catalog_item_id)
20113
      oprot.writeFieldEnd()
20114
    if self.voucherType is not None:
20115
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
20116
      oprot.writeI64(self.voucherType)
20117
      oprot.writeFieldEnd()
20118
    oprot.writeFieldStop()
20119
    oprot.writeStructEnd()
20120
 
20121
  def validate(self):
20122
    return
20123
 
20124
 
20125
  def __repr__(self):
20126
    L = ['%s=%r' % (key, value)
20127
      for key, value in self.__dict__.iteritems()]
20128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20129
 
20130
  def __eq__(self, other):
20131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20132
 
20133
  def __ne__(self, other):
20134
    return not (self == other)
20135
 
20136
class deleteVoucherForItem_result:
20137
  """
20138
  Attributes:
20139
   - success
20140
   - cex
20141
  """
20142
 
20143
  thrift_spec = (
20144
    (0, TType.BOOL, 'success', None, None, ), # 0
20145
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
20146
  )
20147
 
20148
  def __init__(self, success=None, cex=None,):
20149
    self.success = success
20150
    self.cex = cex
20151
 
20152
  def read(self, iprot):
20153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20155
      return
20156
    iprot.readStructBegin()
20157
    while True:
20158
      (fname, ftype, fid) = iprot.readFieldBegin()
20159
      if ftype == TType.STOP:
20160
        break
20161
      if fid == 0:
20162
        if ftype == TType.BOOL:
20163
          self.success = iprot.readBool();
20164
        else:
20165
          iprot.skip(ftype)
20166
      elif fid == 1:
20167
        if ftype == TType.STRUCT:
20168
          self.cex = CatalogServiceException()
20169
          self.cex.read(iprot)
20170
        else:
20171
          iprot.skip(ftype)
20172
      else:
20173
        iprot.skip(ftype)
20174
      iprot.readFieldEnd()
20175
    iprot.readStructEnd()
20176
 
20177
  def write(self, oprot):
20178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20180
      return
20181
    oprot.writeStructBegin('deleteVoucherForItem_result')
20182
    if self.success is not None:
20183
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20184
      oprot.writeBool(self.success)
20185
      oprot.writeFieldEnd()
20186
    if self.cex is not None:
20187
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20188
      self.cex.write(oprot)
20189
      oprot.writeFieldEnd()
20190
    oprot.writeFieldStop()
20191
    oprot.writeStructEnd()
20192
 
20193
  def validate(self):
20194
    return
20195
 
20196
 
20197
  def __repr__(self):
20198
    L = ['%s=%r' % (key, value)
20199
      for key, value in self.__dict__.iteritems()]
20200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20201
 
20202
  def __eq__(self, other):
20203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20204
 
20205
  def __ne__(self, other):
20206
    return not (self == other)
20207
 
20208
class getVoucherAmount_args:
20209
  """
20210
  Attributes:
20211
   - itemId
20212
   - voucherType
20213
  """
20214
 
20215
  thrift_spec = (
20216
    None, # 0
20217
    (1, TType.I64, 'itemId', None, None, ), # 1
20218
    (2, TType.I64, 'voucherType', None, None, ), # 2
20219
  )
20220
 
20221
  def __init__(self, itemId=None, voucherType=None,):
20222
    self.itemId = itemId
20223
    self.voucherType = voucherType
20224
 
20225
  def read(self, iprot):
20226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20228
      return
20229
    iprot.readStructBegin()
20230
    while True:
20231
      (fname, ftype, fid) = iprot.readFieldBegin()
20232
      if ftype == TType.STOP:
20233
        break
20234
      if fid == 1:
20235
        if ftype == TType.I64:
20236
          self.itemId = iprot.readI64();
20237
        else:
20238
          iprot.skip(ftype)
20239
      elif fid == 2:
20240
        if ftype == TType.I64:
20241
          self.voucherType = iprot.readI64();
20242
        else:
20243
          iprot.skip(ftype)
20244
      else:
20245
        iprot.skip(ftype)
20246
      iprot.readFieldEnd()
20247
    iprot.readStructEnd()
20248
 
20249
  def write(self, oprot):
20250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20252
      return
20253
    oprot.writeStructBegin('getVoucherAmount_args')
20254
    if self.itemId is not None:
20255
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20256
      oprot.writeI64(self.itemId)
20257
      oprot.writeFieldEnd()
20258
    if self.voucherType is not None:
20259
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
20260
      oprot.writeI64(self.voucherType)
20261
      oprot.writeFieldEnd()
20262
    oprot.writeFieldStop()
20263
    oprot.writeStructEnd()
20264
 
20265
  def validate(self):
20266
    return
20267
 
20268
 
20269
  def __repr__(self):
20270
    L = ['%s=%r' % (key, value)
20271
      for key, value in self.__dict__.iteritems()]
20272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20273
 
20274
  def __eq__(self, other):
20275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20276
 
20277
  def __ne__(self, other):
20278
    return not (self == other)
20279
 
20280
class getVoucherAmount_result:
20281
  """
20282
  Attributes:
20283
   - success
20284
  """
20285
 
20286
  thrift_spec = (
20287
    (0, TType.I64, 'success', None, None, ), # 0
20288
  )
20289
 
20290
  def __init__(self, success=None,):
20291
    self.success = success
20292
 
20293
  def read(self, iprot):
20294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20296
      return
20297
    iprot.readStructBegin()
20298
    while True:
20299
      (fname, ftype, fid) = iprot.readFieldBegin()
20300
      if ftype == TType.STOP:
20301
        break
20302
      if fid == 0:
20303
        if ftype == TType.I64:
20304
          self.success = iprot.readI64();
20305
        else:
20306
          iprot.skip(ftype)
20307
      else:
20308
        iprot.skip(ftype)
20309
      iprot.readFieldEnd()
20310
    iprot.readStructEnd()
20311
 
20312
  def write(self, oprot):
20313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20315
      return
20316
    oprot.writeStructBegin('getVoucherAmount_result')
20317
    if self.success is not None:
20318
      oprot.writeFieldBegin('success', TType.I64, 0)
20319
      oprot.writeI64(self.success)
20320
      oprot.writeFieldEnd()
20321
    oprot.writeFieldStop()
20322
    oprot.writeStructEnd()
20323
 
20324
  def validate(self):
20325
    return
20326
 
20327
 
20328
  def __repr__(self):
20329
    L = ['%s=%r' % (key, value)
20330
      for key, value in self.__dict__.iteritems()]
20331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20332
 
20333
  def __eq__(self, other):
20334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20335
 
20336
  def __ne__(self, other):
20337
    return not (self == other)
20338
 
20339
class getAllItemVouchers_args:
20340
  """
20341
  Attributes:
20342
   - itemId
20343
  """
20344
 
20345
  thrift_spec = (
20346
    None, # 0
20347
    (1, TType.I64, 'itemId', None, None, ), # 1
20348
  )
20349
 
20350
  def __init__(self, itemId=None,):
20351
    self.itemId = itemId
20352
 
20353
  def read(self, iprot):
20354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20356
      return
20357
    iprot.readStructBegin()
20358
    while True:
20359
      (fname, ftype, fid) = iprot.readFieldBegin()
20360
      if ftype == TType.STOP:
20361
        break
20362
      if fid == 1:
20363
        if ftype == TType.I64:
20364
          self.itemId = iprot.readI64();
20365
        else:
20366
          iprot.skip(ftype)
20367
      else:
20368
        iprot.skip(ftype)
20369
      iprot.readFieldEnd()
20370
    iprot.readStructEnd()
20371
 
20372
  def write(self, oprot):
20373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20375
      return
20376
    oprot.writeStructBegin('getAllItemVouchers_args')
20377
    if self.itemId is not None:
20378
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20379
      oprot.writeI64(self.itemId)
20380
      oprot.writeFieldEnd()
20381
    oprot.writeFieldStop()
20382
    oprot.writeStructEnd()
20383
 
20384
  def validate(self):
20385
    return
20386
 
20387
 
20388
  def __repr__(self):
20389
    L = ['%s=%r' % (key, value)
20390
      for key, value in self.__dict__.iteritems()]
20391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20392
 
20393
  def __eq__(self, other):
20394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20395
 
20396
  def __ne__(self, other):
20397
    return not (self == other)
20398
 
20399
class getAllItemVouchers_result:
20400
  """
20401
  Attributes:
20402
   - success
20403
  """
20404
 
20405
  thrift_spec = (
20406
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
20407
  )
20408
 
20409
  def __init__(self, success=None,):
20410
    self.success = success
20411
 
20412
  def read(self, iprot):
20413
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20414
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20415
      return
20416
    iprot.readStructBegin()
20417
    while True:
20418
      (fname, ftype, fid) = iprot.readFieldBegin()
20419
      if ftype == TType.STOP:
20420
        break
20421
      if fid == 0:
20422
        if ftype == TType.LIST:
20423
          self.success = []
13493 amit.gupta 20424
          (_etype388, _size385) = iprot.readListBegin()
20425
          for _i389 in xrange(_size385):
20426
            _elem390 = VoucherItemMapping()
20427
            _elem390.read(iprot)
20428
            self.success.append(_elem390)
5944 mandeep.dh 20429
          iprot.readListEnd()
20430
        else:
20431
          iprot.skip(ftype)
20432
      else:
20433
        iprot.skip(ftype)
20434
      iprot.readFieldEnd()
20435
    iprot.readStructEnd()
20436
 
20437
  def write(self, oprot):
20438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20440
      return
20441
    oprot.writeStructBegin('getAllItemVouchers_result')
20442
    if self.success is not None:
20443
      oprot.writeFieldBegin('success', TType.LIST, 0)
20444
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 20445
      for iter391 in self.success:
20446
        iter391.write(oprot)
5944 mandeep.dh 20447
      oprot.writeListEnd()
20448
      oprot.writeFieldEnd()
20449
    oprot.writeFieldStop()
20450
    oprot.writeStructEnd()
20451
 
20452
  def validate(self):
20453
    return
20454
 
20455
 
20456
  def __repr__(self):
20457
    L = ['%s=%r' % (key, value)
20458
      for key, value in self.__dict__.iteritems()]
20459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20460
 
20461
  def __eq__(self, other):
20462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20463
 
20464
  def __ne__(self, other):
20465
    return not (self == other)
20466
 
20467
class isValidCatalogItemId_args:
20468
  """
20469
  Attributes:
20470
   - catalog_item_id
20471
  """
20472
 
20473
  thrift_spec = (
20474
    None, # 0
20475
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20476
  )
20477
 
20478
  def __init__(self, catalog_item_id=None,):
20479
    self.catalog_item_id = catalog_item_id
20480
 
20481
  def read(self, iprot):
20482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20484
      return
20485
    iprot.readStructBegin()
20486
    while True:
20487
      (fname, ftype, fid) = iprot.readFieldBegin()
20488
      if ftype == TType.STOP:
20489
        break
20490
      if fid == 1:
20491
        if ftype == TType.I64:
20492
          self.catalog_item_id = iprot.readI64();
20493
        else:
20494
          iprot.skip(ftype)
20495
      else:
20496
        iprot.skip(ftype)
20497
      iprot.readFieldEnd()
20498
    iprot.readStructEnd()
20499
 
20500
  def write(self, oprot):
20501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20503
      return
20504
    oprot.writeStructBegin('isValidCatalogItemId_args')
20505
    if self.catalog_item_id is not None:
20506
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20507
      oprot.writeI64(self.catalog_item_id)
20508
      oprot.writeFieldEnd()
20509
    oprot.writeFieldStop()
20510
    oprot.writeStructEnd()
20511
 
20512
  def validate(self):
20513
    return
20514
 
20515
 
20516
  def __repr__(self):
20517
    L = ['%s=%r' % (key, value)
20518
      for key, value in self.__dict__.iteritems()]
20519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20520
 
20521
  def __eq__(self, other):
20522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20523
 
20524
  def __ne__(self, other):
20525
    return not (self == other)
20526
 
20527
class isValidCatalogItemId_result:
20528
  """
20529
  Attributes:
20530
   - success
20531
  """
20532
 
20533
  thrift_spec = (
20534
    (0, TType.BOOL, 'success', None, None, ), # 0
20535
  )
20536
 
20537
  def __init__(self, success=None,):
20538
    self.success = success
20539
 
20540
  def read(self, iprot):
20541
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20542
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20543
      return
20544
    iprot.readStructBegin()
20545
    while True:
20546
      (fname, ftype, fid) = iprot.readFieldBegin()
20547
      if ftype == TType.STOP:
20548
        break
20549
      if fid == 0:
20550
        if ftype == TType.BOOL:
20551
          self.success = iprot.readBool();
20552
        else:
20553
          iprot.skip(ftype)
20554
      else:
20555
        iprot.skip(ftype)
20556
      iprot.readFieldEnd()
20557
    iprot.readStructEnd()
20558
 
20559
  def write(self, oprot):
20560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20562
      return
20563
    oprot.writeStructBegin('isValidCatalogItemId_result')
20564
    if self.success is not None:
20565
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20566
      oprot.writeBool(self.success)
20567
      oprot.writeFieldEnd()
20568
    oprot.writeFieldStop()
20569
    oprot.writeStructEnd()
20570
 
20571
  def validate(self):
20572
    return
20573
 
20574
 
20575
  def __repr__(self):
20576
    L = ['%s=%r' % (key, value)
20577
      for key, value in self.__dict__.iteritems()]
20578
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20579
 
20580
  def __eq__(self, other):
20581
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20582
 
20583
  def __ne__(self, other):
20584
    return not (self == other)
6039 amit.gupta 20585
 
20586
class getVatPercentageForItem_args:
20587
  """
20588
  Attributes:
20589
   - itemId
7330 amit.gupta 20590
   - stateId
6039 amit.gupta 20591
   - price
20592
  """
20593
 
20594
  thrift_spec = (
20595
    None, # 0
20596
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 20597
    (2, TType.I64, 'stateId', None, None, ), # 2
20598
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 20599
  )
20600
 
7330 amit.gupta 20601
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 20602
    self.itemId = itemId
7330 amit.gupta 20603
    self.stateId = stateId
6039 amit.gupta 20604
    self.price = price
20605
 
20606
  def read(self, iprot):
20607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20609
      return
20610
    iprot.readStructBegin()
20611
    while True:
20612
      (fname, ftype, fid) = iprot.readFieldBegin()
20613
      if ftype == TType.STOP:
20614
        break
20615
      if fid == 1:
20616
        if ftype == TType.I64:
20617
          self.itemId = iprot.readI64();
20618
        else:
20619
          iprot.skip(ftype)
20620
      elif fid == 2:
7330 amit.gupta 20621
        if ftype == TType.I64:
20622
          self.stateId = iprot.readI64();
20623
        else:
20624
          iprot.skip(ftype)
20625
      elif fid == 3:
6039 amit.gupta 20626
        if ftype == TType.DOUBLE:
20627
          self.price = iprot.readDouble();
20628
        else:
20629
          iprot.skip(ftype)
20630
      else:
20631
        iprot.skip(ftype)
20632
      iprot.readFieldEnd()
20633
    iprot.readStructEnd()
20634
 
20635
  def write(self, oprot):
20636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20638
      return
20639
    oprot.writeStructBegin('getVatPercentageForItem_args')
20640
    if self.itemId is not None:
20641
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20642
      oprot.writeI64(self.itemId)
20643
      oprot.writeFieldEnd()
7330 amit.gupta 20644
    if self.stateId is not None:
20645
      oprot.writeFieldBegin('stateId', TType.I64, 2)
20646
      oprot.writeI64(self.stateId)
20647
      oprot.writeFieldEnd()
6039 amit.gupta 20648
    if self.price is not None:
7330 amit.gupta 20649
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 20650
      oprot.writeDouble(self.price)
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 getVatPercentageForItem_result:
20671
  """
20672
  Attributes:
20673
   - success
7340 amit.gupta 20674
   - cex
6039 amit.gupta 20675
  """
20676
 
20677
  thrift_spec = (
20678
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 20679
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 20680
  )
20681
 
7340 amit.gupta 20682
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 20683
    self.success = success
7340 amit.gupta 20684
    self.cex = cex
6039 amit.gupta 20685
 
20686
  def read(self, iprot):
20687
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20688
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20689
      return
20690
    iprot.readStructBegin()
20691
    while True:
20692
      (fname, ftype, fid) = iprot.readFieldBegin()
20693
      if ftype == TType.STOP:
20694
        break
20695
      if fid == 0:
20696
        if ftype == TType.DOUBLE:
20697
          self.success = iprot.readDouble();
20698
        else:
20699
          iprot.skip(ftype)
7340 amit.gupta 20700
      elif fid == 1:
20701
        if ftype == TType.STRUCT:
20702
          self.cex = CatalogServiceException()
20703
          self.cex.read(iprot)
20704
        else:
20705
          iprot.skip(ftype)
6039 amit.gupta 20706
      else:
20707
        iprot.skip(ftype)
20708
      iprot.readFieldEnd()
20709
    iprot.readStructEnd()
20710
 
20711
  def write(self, oprot):
20712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20714
      return
20715
    oprot.writeStructBegin('getVatPercentageForItem_result')
20716
    if self.success is not None:
20717
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20718
      oprot.writeDouble(self.success)
20719
      oprot.writeFieldEnd()
7340 amit.gupta 20720
    if self.cex is not None:
20721
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20722
      self.cex.write(oprot)
20723
      oprot.writeFieldEnd()
6039 amit.gupta 20724
    oprot.writeFieldStop()
20725
    oprot.writeStructEnd()
20726
 
20727
  def validate(self):
20728
    return
20729
 
20730
 
20731
  def __repr__(self):
20732
    L = ['%s=%r' % (key, value)
20733
      for key, value in self.__dict__.iteritems()]
20734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20735
 
20736
  def __eq__(self, other):
20737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20738
 
20739
  def __ne__(self, other):
20740
    return not (self == other)
20741
 
20742
class getVatAmountForItem_args:
20743
  """
20744
  Attributes:
20745
   - itemId
20746
   - price
20747
  """
20748
 
20749
  thrift_spec = (
20750
    None, # 0
20751
    (1, TType.I64, 'itemId', None, None, ), # 1
20752
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20753
  )
20754
 
20755
  def __init__(self, itemId=None, price=None,):
20756
    self.itemId = itemId
20757
    self.price = price
20758
 
20759
  def read(self, iprot):
20760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20762
      return
20763
    iprot.readStructBegin()
20764
    while True:
20765
      (fname, ftype, fid) = iprot.readFieldBegin()
20766
      if ftype == TType.STOP:
20767
        break
20768
      if fid == 1:
20769
        if ftype == TType.I64:
20770
          self.itemId = iprot.readI64();
20771
        else:
20772
          iprot.skip(ftype)
20773
      elif fid == 2:
20774
        if ftype == TType.DOUBLE:
20775
          self.price = iprot.readDouble();
20776
        else:
20777
          iprot.skip(ftype)
20778
      else:
20779
        iprot.skip(ftype)
20780
      iprot.readFieldEnd()
20781
    iprot.readStructEnd()
20782
 
20783
  def write(self, oprot):
20784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20786
      return
20787
    oprot.writeStructBegin('getVatAmountForItem_args')
20788
    if self.itemId is not None:
20789
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20790
      oprot.writeI64(self.itemId)
20791
      oprot.writeFieldEnd()
20792
    if self.price is not None:
20793
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20794
      oprot.writeDouble(self.price)
20795
      oprot.writeFieldEnd()
20796
    oprot.writeFieldStop()
20797
    oprot.writeStructEnd()
20798
 
20799
  def validate(self):
20800
    return
20801
 
20802
 
20803
  def __repr__(self):
20804
    L = ['%s=%r' % (key, value)
20805
      for key, value in self.__dict__.iteritems()]
20806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20807
 
20808
  def __eq__(self, other):
20809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20810
 
20811
  def __ne__(self, other):
20812
    return not (self == other)
20813
 
20814
class getVatAmountForItem_result:
20815
  """
20816
  Attributes:
20817
   - success
20818
  """
20819
 
20820
  thrift_spec = (
20821
    (0, TType.DOUBLE, 'success', None, None, ), # 0
20822
  )
20823
 
20824
  def __init__(self, success=None,):
20825
    self.success = success
20826
 
20827
  def read(self, iprot):
20828
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20829
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20830
      return
20831
    iprot.readStructBegin()
20832
    while True:
20833
      (fname, ftype, fid) = iprot.readFieldBegin()
20834
      if ftype == TType.STOP:
20835
        break
20836
      if fid == 0:
20837
        if ftype == TType.DOUBLE:
20838
          self.success = iprot.readDouble();
20839
        else:
20840
          iprot.skip(ftype)
20841
      else:
20842
        iprot.skip(ftype)
20843
      iprot.readFieldEnd()
20844
    iprot.readStructEnd()
20845
 
20846
  def write(self, oprot):
20847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20849
      return
20850
    oprot.writeStructBegin('getVatAmountForItem_result')
20851
    if self.success is not None:
20852
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20853
      oprot.writeDouble(self.success)
20854
      oprot.writeFieldEnd()
20855
    oprot.writeFieldStop()
20856
    oprot.writeStructEnd()
20857
 
20858
  def validate(self):
20859
    return
20860
 
20861
 
20862
  def __repr__(self):
20863
    L = ['%s=%r' % (key, value)
20864
      for key, value in self.__dict__.iteritems()]
20865
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20866
 
20867
  def __eq__(self, other):
20868
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20869
 
20870
  def __ne__(self, other):
20871
    return not (self == other)
6531 vikram.rag 20872
 
20873
class getAllIgnoredInventoryUpdateItemsList_args:
20874
  """
20875
  Attributes:
20876
   - offset
20877
   - limit
20878
  """
20879
 
20880
  thrift_spec = (
20881
    None, # 0
20882
    (1, TType.I32, 'offset', None, None, ), # 1
20883
    (2, TType.I32, 'limit', None, None, ), # 2
20884
  )
20885
 
20886
  def __init__(self, offset=None, limit=None,):
20887
    self.offset = offset
20888
    self.limit = limit
20889
 
20890
  def read(self, iprot):
20891
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20892
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20893
      return
20894
    iprot.readStructBegin()
20895
    while True:
20896
      (fname, ftype, fid) = iprot.readFieldBegin()
20897
      if ftype == TType.STOP:
20898
        break
20899
      if fid == 1:
20900
        if ftype == TType.I32:
20901
          self.offset = iprot.readI32();
20902
        else:
20903
          iprot.skip(ftype)
20904
      elif fid == 2:
20905
        if ftype == TType.I32:
20906
          self.limit = iprot.readI32();
20907
        else:
20908
          iprot.skip(ftype)
20909
      else:
20910
        iprot.skip(ftype)
20911
      iprot.readFieldEnd()
20912
    iprot.readStructEnd()
20913
 
20914
  def write(self, oprot):
20915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20917
      return
20918
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
20919
    if self.offset is not None:
20920
      oprot.writeFieldBegin('offset', TType.I32, 1)
20921
      oprot.writeI32(self.offset)
20922
      oprot.writeFieldEnd()
20923
    if self.limit is not None:
20924
      oprot.writeFieldBegin('limit', TType.I32, 2)
20925
      oprot.writeI32(self.limit)
20926
      oprot.writeFieldEnd()
20927
    oprot.writeFieldStop()
20928
    oprot.writeStructEnd()
20929
 
20930
  def validate(self):
20931
    return
20932
 
20933
 
20934
  def __repr__(self):
20935
    L = ['%s=%r' % (key, value)
20936
      for key, value in self.__dict__.iteritems()]
20937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20938
 
20939
  def __eq__(self, other):
20940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20941
 
20942
  def __ne__(self, other):
20943
    return not (self == other)
20944
 
20945
class getAllIgnoredInventoryUpdateItemsList_result:
20946
  """
20947
  Attributes:
20948
   - success
20949
  """
20950
 
20951
  thrift_spec = (
20952
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20953
  )
20954
 
20955
  def __init__(self, success=None,):
20956
    self.success = success
20957
 
20958
  def read(self, iprot):
20959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20961
      return
20962
    iprot.readStructBegin()
20963
    while True:
20964
      (fname, ftype, fid) = iprot.readFieldBegin()
20965
      if ftype == TType.STOP:
20966
        break
20967
      if fid == 0:
20968
        if ftype == TType.LIST:
20969
          self.success = []
13493 amit.gupta 20970
          (_etype395, _size392) = iprot.readListBegin()
20971
          for _i396 in xrange(_size392):
20972
            _elem397 = Item()
20973
            _elem397.read(iprot)
20974
            self.success.append(_elem397)
6531 vikram.rag 20975
          iprot.readListEnd()
20976
        else:
20977
          iprot.skip(ftype)
20978
      else:
20979
        iprot.skip(ftype)
20980
      iprot.readFieldEnd()
20981
    iprot.readStructEnd()
20982
 
20983
  def write(self, oprot):
20984
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20985
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20986
      return
20987
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
20988
    if self.success is not None:
20989
      oprot.writeFieldBegin('success', TType.LIST, 0)
20990
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 20991
      for iter398 in self.success:
20992
        iter398.write(oprot)
6531 vikram.rag 20993
      oprot.writeListEnd()
20994
      oprot.writeFieldEnd()
20995
    oprot.writeFieldStop()
20996
    oprot.writeStructEnd()
20997
 
20998
  def validate(self):
20999
    return
21000
 
21001
 
21002
  def __repr__(self):
21003
    L = ['%s=%r' % (key, value)
21004
      for key, value in self.__dict__.iteritems()]
21005
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21006
 
21007
  def __eq__(self, other):
21008
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21009
 
21010
  def __ne__(self, other):
21011
    return not (self == other)
6805 anupam.sin 21012
 
6821 amar.kumar 21013
class getAllAliveItems_args:
21014
 
21015
  thrift_spec = (
21016
  )
21017
 
21018
  def read(self, iprot):
21019
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21020
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21021
      return
21022
    iprot.readStructBegin()
21023
    while True:
21024
      (fname, ftype, fid) = iprot.readFieldBegin()
21025
      if ftype == TType.STOP:
21026
        break
21027
      else:
21028
        iprot.skip(ftype)
21029
      iprot.readFieldEnd()
21030
    iprot.readStructEnd()
21031
 
21032
  def write(self, oprot):
21033
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21034
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21035
      return
21036
    oprot.writeStructBegin('getAllAliveItems_args')
21037
    oprot.writeFieldStop()
21038
    oprot.writeStructEnd()
21039
 
21040
  def validate(self):
21041
    return
21042
 
21043
 
21044
  def __repr__(self):
21045
    L = ['%s=%r' % (key, value)
21046
      for key, value in self.__dict__.iteritems()]
21047
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21048
 
21049
  def __eq__(self, other):
21050
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21051
 
21052
  def __ne__(self, other):
21053
    return not (self == other)
21054
 
21055
class getAllAliveItems_result:
21056
  """
21057
  Attributes:
21058
   - success
21059
  """
21060
 
21061
  thrift_spec = (
21062
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
21063
  )
21064
 
21065
  def __init__(self, success=None,):
21066
    self.success = success
21067
 
21068
  def read(self, iprot):
21069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21071
      return
21072
    iprot.readStructBegin()
21073
    while True:
21074
      (fname, ftype, fid) = iprot.readFieldBegin()
21075
      if ftype == TType.STOP:
21076
        break
21077
      if fid == 0:
21078
        if ftype == TType.LIST:
21079
          self.success = []
13493 amit.gupta 21080
          (_etype402, _size399) = iprot.readListBegin()
21081
          for _i403 in xrange(_size399):
21082
            _elem404 = Item()
21083
            _elem404.read(iprot)
21084
            self.success.append(_elem404)
6821 amar.kumar 21085
          iprot.readListEnd()
21086
        else:
21087
          iprot.skip(ftype)
21088
      else:
21089
        iprot.skip(ftype)
21090
      iprot.readFieldEnd()
21091
    iprot.readStructEnd()
21092
 
21093
  def write(self, oprot):
21094
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21095
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21096
      return
21097
    oprot.writeStructBegin('getAllAliveItems_result')
21098
    if self.success is not None:
21099
      oprot.writeFieldBegin('success', TType.LIST, 0)
21100
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 21101
      for iter405 in self.success:
21102
        iter405.write(oprot)
6821 amar.kumar 21103
      oprot.writeListEnd()
21104
      oprot.writeFieldEnd()
21105
    oprot.writeFieldStop()
21106
    oprot.writeStructEnd()
21107
 
21108
  def validate(self):
21109
    return
21110
 
21111
 
21112
  def __repr__(self):
21113
    L = ['%s=%r' % (key, value)
21114
      for key, value in self.__dict__.iteritems()]
21115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21116
 
21117
  def __eq__(self, other):
21118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21119
 
21120
  def __ne__(self, other):
21121
    return not (self == other)
21122
 
6805 anupam.sin 21123
class getInsuranceAmount_args:
21124
  """
21125
  Attributes:
21126
   - itemId
6921 anupam.sin 21127
   - price
6805 anupam.sin 21128
   - insurerId
21129
   - quantity
21130
  """
21131
 
21132
  thrift_spec = (
21133
    None, # 0
21134
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 21135
    (2, TType.DOUBLE, 'price', None, None, ), # 2
21136
    (3, TType.I64, 'insurerId', None, None, ), # 3
21137
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 21138
  )
21139
 
6921 anupam.sin 21140
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 21141
    self.itemId = itemId
6921 anupam.sin 21142
    self.price = price
6805 anupam.sin 21143
    self.insurerId = insurerId
21144
    self.quantity = quantity
21145
 
21146
  def read(self, iprot):
21147
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21148
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21149
      return
21150
    iprot.readStructBegin()
21151
    while True:
21152
      (fname, ftype, fid) = iprot.readFieldBegin()
21153
      if ftype == TType.STOP:
21154
        break
21155
      if fid == 1:
21156
        if ftype == TType.I64:
21157
          self.itemId = iprot.readI64();
21158
        else:
21159
          iprot.skip(ftype)
21160
      elif fid == 2:
6921 anupam.sin 21161
        if ftype == TType.DOUBLE:
21162
          self.price = iprot.readDouble();
21163
        else:
21164
          iprot.skip(ftype)
21165
      elif fid == 3:
6805 anupam.sin 21166
        if ftype == TType.I64:
21167
          self.insurerId = iprot.readI64();
21168
        else:
21169
          iprot.skip(ftype)
6921 anupam.sin 21170
      elif fid == 4:
6805 anupam.sin 21171
        if ftype == TType.I64:
21172
          self.quantity = iprot.readI64();
21173
        else:
21174
          iprot.skip(ftype)
21175
      else:
21176
        iprot.skip(ftype)
21177
      iprot.readFieldEnd()
21178
    iprot.readStructEnd()
21179
 
21180
  def write(self, oprot):
21181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21183
      return
21184
    oprot.writeStructBegin('getInsuranceAmount_args')
21185
    if self.itemId is not None:
21186
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21187
      oprot.writeI64(self.itemId)
21188
      oprot.writeFieldEnd()
6921 anupam.sin 21189
    if self.price is not None:
21190
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
21191
      oprot.writeDouble(self.price)
21192
      oprot.writeFieldEnd()
6805 anupam.sin 21193
    if self.insurerId is not None:
6921 anupam.sin 21194
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 21195
      oprot.writeI64(self.insurerId)
21196
      oprot.writeFieldEnd()
21197
    if self.quantity is not None:
6921 anupam.sin 21198
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 21199
      oprot.writeI64(self.quantity)
21200
      oprot.writeFieldEnd()
21201
    oprot.writeFieldStop()
21202
    oprot.writeStructEnd()
21203
 
21204
  def validate(self):
21205
    return
21206
 
21207
 
21208
  def __repr__(self):
21209
    L = ['%s=%r' % (key, value)
21210
      for key, value in self.__dict__.iteritems()]
21211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21212
 
21213
  def __eq__(self, other):
21214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21215
 
21216
  def __ne__(self, other):
21217
    return not (self == other)
21218
 
21219
class getInsuranceAmount_result:
21220
  """
21221
  Attributes:
21222
   - success
21223
  """
21224
 
21225
  thrift_spec = (
21226
    (0, TType.I64, 'success', None, None, ), # 0
21227
  )
21228
 
21229
  def __init__(self, success=None,):
21230
    self.success = success
21231
 
21232
  def read(self, iprot):
21233
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21234
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21235
      return
21236
    iprot.readStructBegin()
21237
    while True:
21238
      (fname, ftype, fid) = iprot.readFieldBegin()
21239
      if ftype == TType.STOP:
21240
        break
21241
      if fid == 0:
21242
        if ftype == TType.I64:
21243
          self.success = iprot.readI64();
21244
        else:
21245
          iprot.skip(ftype)
21246
      else:
21247
        iprot.skip(ftype)
21248
      iprot.readFieldEnd()
21249
    iprot.readStructEnd()
21250
 
21251
  def write(self, oprot):
21252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21254
      return
21255
    oprot.writeStructBegin('getInsuranceAmount_result')
21256
    if self.success is not None:
21257
      oprot.writeFieldBegin('success', TType.I64, 0)
21258
      oprot.writeI64(self.success)
21259
      oprot.writeFieldEnd()
21260
    oprot.writeFieldStop()
21261
    oprot.writeStructEnd()
21262
 
21263
  def validate(self):
21264
    return
21265
 
21266
 
21267
  def __repr__(self):
21268
    L = ['%s=%r' % (key, value)
21269
      for key, value in self.__dict__.iteritems()]
21270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21271
 
21272
  def __eq__(self, other):
21273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21274
 
21275
  def __ne__(self, other):
21276
    return not (self == other)
21277
 
21278
class getInsurer_args:
21279
  """
21280
  Attributes:
21281
   - insurerId
21282
  """
21283
 
21284
  thrift_spec = (
21285
    None, # 0
21286
    (1, TType.I64, 'insurerId', None, None, ), # 1
21287
  )
21288
 
21289
  def __init__(self, insurerId=None,):
21290
    self.insurerId = insurerId
21291
 
21292
  def read(self, iprot):
21293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21295
      return
21296
    iprot.readStructBegin()
21297
    while True:
21298
      (fname, ftype, fid) = iprot.readFieldBegin()
21299
      if ftype == TType.STOP:
21300
        break
21301
      if fid == 1:
21302
        if ftype == TType.I64:
21303
          self.insurerId = iprot.readI64();
21304
        else:
21305
          iprot.skip(ftype)
21306
      else:
21307
        iprot.skip(ftype)
21308
      iprot.readFieldEnd()
21309
    iprot.readStructEnd()
21310
 
21311
  def write(self, oprot):
21312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21314
      return
21315
    oprot.writeStructBegin('getInsurer_args')
21316
    if self.insurerId is not None:
21317
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21318
      oprot.writeI64(self.insurerId)
21319
      oprot.writeFieldEnd()
21320
    oprot.writeFieldStop()
21321
    oprot.writeStructEnd()
21322
 
21323
  def validate(self):
21324
    return
21325
 
21326
 
21327
  def __repr__(self):
21328
    L = ['%s=%r' % (key, value)
21329
      for key, value in self.__dict__.iteritems()]
21330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21331
 
21332
  def __eq__(self, other):
21333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21334
 
21335
  def __ne__(self, other):
21336
    return not (self == other)
21337
 
21338
class getInsurer_result:
21339
  """
21340
  Attributes:
21341
   - success
21342
  """
21343
 
21344
  thrift_spec = (
21345
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
21346
  )
21347
 
21348
  def __init__(self, success=None,):
21349
    self.success = success
21350
 
21351
  def read(self, iprot):
21352
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21353
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21354
      return
21355
    iprot.readStructBegin()
21356
    while True:
21357
      (fname, ftype, fid) = iprot.readFieldBegin()
21358
      if ftype == TType.STOP:
21359
        break
21360
      if fid == 0:
21361
        if ftype == TType.STRUCT:
21362
          self.success = Insurer()
21363
          self.success.read(iprot)
21364
        else:
21365
          iprot.skip(ftype)
21366
      else:
21367
        iprot.skip(ftype)
21368
      iprot.readFieldEnd()
21369
    iprot.readStructEnd()
21370
 
21371
  def write(self, oprot):
21372
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21373
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21374
      return
21375
    oprot.writeStructBegin('getInsurer_result')
21376
    if self.success is not None:
21377
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21378
      self.success.write(oprot)
21379
      oprot.writeFieldEnd()
21380
    oprot.writeFieldStop()
21381
    oprot.writeStructEnd()
21382
 
21383
  def validate(self):
21384
    return
21385
 
21386
 
21387
  def __repr__(self):
21388
    L = ['%s=%r' % (key, value)
21389
      for key, value in self.__dict__.iteritems()]
21390
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21391
 
21392
  def __eq__(self, other):
21393
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21394
 
21395
  def __ne__(self, other):
21396
    return not (self == other)
6838 vikram.rag 21397
 
21398
class getAllInsurers_args:
21399
 
21400
  thrift_spec = (
21401
  )
21402
 
21403
  def read(self, iprot):
21404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21406
      return
21407
    iprot.readStructBegin()
21408
    while True:
21409
      (fname, ftype, fid) = iprot.readFieldBegin()
21410
      if ftype == TType.STOP:
21411
        break
21412
      else:
21413
        iprot.skip(ftype)
21414
      iprot.readFieldEnd()
21415
    iprot.readStructEnd()
21416
 
21417
  def write(self, oprot):
21418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21420
      return
21421
    oprot.writeStructBegin('getAllInsurers_args')
21422
    oprot.writeFieldStop()
21423
    oprot.writeStructEnd()
21424
 
21425
  def validate(self):
21426
    return
21427
 
21428
 
21429
  def __repr__(self):
21430
    L = ['%s=%r' % (key, value)
21431
      for key, value in self.__dict__.iteritems()]
21432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21433
 
21434
  def __eq__(self, other):
21435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21436
 
21437
  def __ne__(self, other):
21438
    return not (self == other)
21439
 
21440
class getAllInsurers_result:
21441
  """
21442
  Attributes:
21443
   - success
21444
  """
21445
 
21446
  thrift_spec = (
21447
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
21448
  )
21449
 
21450
  def __init__(self, success=None,):
21451
    self.success = success
21452
 
21453
  def read(self, iprot):
21454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21456
      return
21457
    iprot.readStructBegin()
21458
    while True:
21459
      (fname, ftype, fid) = iprot.readFieldBegin()
21460
      if ftype == TType.STOP:
21461
        break
21462
      if fid == 0:
21463
        if ftype == TType.LIST:
21464
          self.success = []
13493 amit.gupta 21465
          (_etype409, _size406) = iprot.readListBegin()
21466
          for _i410 in xrange(_size406):
21467
            _elem411 = Insurer()
21468
            _elem411.read(iprot)
21469
            self.success.append(_elem411)
6838 vikram.rag 21470
          iprot.readListEnd()
21471
        else:
21472
          iprot.skip(ftype)
21473
      else:
21474
        iprot.skip(ftype)
21475
      iprot.readFieldEnd()
21476
    iprot.readStructEnd()
21477
 
21478
  def write(self, oprot):
21479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21481
      return
21482
    oprot.writeStructBegin('getAllInsurers_result')
21483
    if self.success is not None:
21484
      oprot.writeFieldBegin('success', TType.LIST, 0)
21485
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 21486
      for iter412 in self.success:
21487
        iter412.write(oprot)
6838 vikram.rag 21488
      oprot.writeListEnd()
21489
      oprot.writeFieldEnd()
21490
    oprot.writeFieldStop()
21491
    oprot.writeStructEnd()
21492
 
21493
  def validate(self):
21494
    return
21495
 
21496
 
21497
  def __repr__(self):
21498
    L = ['%s=%r' % (key, value)
21499
      for key, value in self.__dict__.iteritems()]
21500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21501
 
21502
  def __eq__(self, other):
21503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21504
 
21505
  def __ne__(self, other):
21506
    return not (self == other)
6962 rajveer 21507
 
21508
class updateInsuranceDeclaredAmount_args:
21509
  """
21510
  Attributes:
21511
   - insurerId
21512
   - amount
21513
  """
21514
 
21515
  thrift_spec = (
21516
    None, # 0
21517
    (1, TType.I64, 'insurerId', None, None, ), # 1
21518
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
21519
  )
21520
 
21521
  def __init__(self, insurerId=None, amount=None,):
21522
    self.insurerId = insurerId
21523
    self.amount = amount
21524
 
21525
  def read(self, iprot):
21526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21528
      return
21529
    iprot.readStructBegin()
21530
    while True:
21531
      (fname, ftype, fid) = iprot.readFieldBegin()
21532
      if ftype == TType.STOP:
21533
        break
21534
      if fid == 1:
21535
        if ftype == TType.I64:
21536
          self.insurerId = iprot.readI64();
21537
        else:
21538
          iprot.skip(ftype)
21539
      elif fid == 2:
21540
        if ftype == TType.DOUBLE:
21541
          self.amount = iprot.readDouble();
21542
        else:
21543
          iprot.skip(ftype)
21544
      else:
21545
        iprot.skip(ftype)
21546
      iprot.readFieldEnd()
21547
    iprot.readStructEnd()
21548
 
21549
  def write(self, oprot):
21550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21552
      return
21553
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
21554
    if self.insurerId is not None:
21555
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21556
      oprot.writeI64(self.insurerId)
21557
      oprot.writeFieldEnd()
21558
    if self.amount is not None:
21559
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
21560
      oprot.writeDouble(self.amount)
21561
      oprot.writeFieldEnd()
21562
    oprot.writeFieldStop()
21563
    oprot.writeStructEnd()
21564
 
21565
  def validate(self):
21566
    return
21567
 
21568
 
21569
  def __repr__(self):
21570
    L = ['%s=%r' % (key, value)
21571
      for key, value in self.__dict__.iteritems()]
21572
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21573
 
21574
  def __eq__(self, other):
21575
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21576
 
21577
  def __ne__(self, other):
21578
    return not (self == other)
21579
 
21580
class updateInsuranceDeclaredAmount_result:
21581
 
21582
  thrift_spec = (
21583
  )
21584
 
21585
  def read(self, iprot):
21586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21588
      return
21589
    iprot.readStructBegin()
21590
    while True:
21591
      (fname, ftype, fid) = iprot.readFieldBegin()
21592
      if ftype == TType.STOP:
21593
        break
21594
      else:
21595
        iprot.skip(ftype)
21596
      iprot.readFieldEnd()
21597
    iprot.readStructEnd()
21598
 
21599
  def write(self, oprot):
21600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21602
      return
21603
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
21604
    oprot.writeFieldStop()
21605
    oprot.writeStructEnd()
21606
 
21607
  def validate(self):
21608
    return
21609
 
21610
 
21611
  def __repr__(self):
21612
    L = ['%s=%r' % (key, value)
21613
      for key, value in self.__dict__.iteritems()]
21614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21615
 
21616
  def __eq__(self, other):
21617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21618
 
21619
  def __ne__(self, other):
21620
    return not (self == other)
7190 amar.kumar 21621
 
21622
class getFreebieForItem_args:
21623
  """
21624
  Attributes:
21625
   - itemId
21626
  """
21627
 
21628
  thrift_spec = (
21629
    None, # 0
21630
    (1, TType.I64, 'itemId', None, None, ), # 1
21631
  )
21632
 
21633
  def __init__(self, itemId=None,):
21634
    self.itemId = itemId
21635
 
21636
  def read(self, iprot):
21637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21639
      return
21640
    iprot.readStructBegin()
21641
    while True:
21642
      (fname, ftype, fid) = iprot.readFieldBegin()
21643
      if ftype == TType.STOP:
21644
        break
21645
      if fid == 1:
21646
        if ftype == TType.I64:
21647
          self.itemId = iprot.readI64();
21648
        else:
21649
          iprot.skip(ftype)
21650
      else:
21651
        iprot.skip(ftype)
21652
      iprot.readFieldEnd()
21653
    iprot.readStructEnd()
21654
 
21655
  def write(self, oprot):
21656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21658
      return
21659
    oprot.writeStructBegin('getFreebieForItem_args')
21660
    if self.itemId is not None:
21661
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21662
      oprot.writeI64(self.itemId)
21663
      oprot.writeFieldEnd()
21664
    oprot.writeFieldStop()
21665
    oprot.writeStructEnd()
21666
 
21667
  def validate(self):
21668
    return
21669
 
21670
 
21671
  def __repr__(self):
21672
    L = ['%s=%r' % (key, value)
21673
      for key, value in self.__dict__.iteritems()]
21674
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21675
 
21676
  def __eq__(self, other):
21677
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21678
 
21679
  def __ne__(self, other):
21680
    return not (self == other)
21681
 
21682
class getFreebieForItem_result:
21683
  """
21684
  Attributes:
21685
   - success
21686
  """
21687
 
21688
  thrift_spec = (
21689
    (0, TType.I64, 'success', None, None, ), # 0
21690
  )
21691
 
21692
  def __init__(self, success=None,):
21693
    self.success = success
21694
 
21695
  def read(self, iprot):
21696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21698
      return
21699
    iprot.readStructBegin()
21700
    while True:
21701
      (fname, ftype, fid) = iprot.readFieldBegin()
21702
      if ftype == TType.STOP:
21703
        break
21704
      if fid == 0:
21705
        if ftype == TType.I64:
21706
          self.success = iprot.readI64();
21707
        else:
21708
          iprot.skip(ftype)
21709
      else:
21710
        iprot.skip(ftype)
21711
      iprot.readFieldEnd()
21712
    iprot.readStructEnd()
21713
 
21714
  def write(self, oprot):
21715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21717
      return
21718
    oprot.writeStructBegin('getFreebieForItem_result')
21719
    if self.success is not None:
21720
      oprot.writeFieldBegin('success', TType.I64, 0)
21721
      oprot.writeI64(self.success)
21722
      oprot.writeFieldEnd()
21723
    oprot.writeFieldStop()
21724
    oprot.writeStructEnd()
21725
 
21726
  def validate(self):
21727
    return
21728
 
21729
 
21730
  def __repr__(self):
21731
    L = ['%s=%r' % (key, value)
21732
      for key, value in self.__dict__.iteritems()]
21733
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21734
 
21735
  def __eq__(self, other):
21736
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21737
 
21738
  def __ne__(self, other):
21739
    return not (self == other)
21740
 
21741
class addOrUpdateFreebieForItem_args:
21742
  """
21743
  Attributes:
21744
   - freebieItem
21745
  """
21746
 
21747
  thrift_spec = (
21748
    None, # 0
21749
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
21750
  )
21751
 
21752
  def __init__(self, freebieItem=None,):
21753
    self.freebieItem = freebieItem
21754
 
21755
  def read(self, iprot):
21756
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21757
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21758
      return
21759
    iprot.readStructBegin()
21760
    while True:
21761
      (fname, ftype, fid) = iprot.readFieldBegin()
21762
      if ftype == TType.STOP:
21763
        break
21764
      if fid == 1:
21765
        if ftype == TType.STRUCT:
21766
          self.freebieItem = FreebieItem()
21767
          self.freebieItem.read(iprot)
21768
        else:
21769
          iprot.skip(ftype)
21770
      else:
21771
        iprot.skip(ftype)
21772
      iprot.readFieldEnd()
21773
    iprot.readStructEnd()
21774
 
21775
  def write(self, oprot):
21776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21778
      return
21779
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
21780
    if self.freebieItem is not None:
21781
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
21782
      self.freebieItem.write(oprot)
21783
      oprot.writeFieldEnd()
21784
    oprot.writeFieldStop()
21785
    oprot.writeStructEnd()
21786
 
21787
  def validate(self):
21788
    return
21789
 
21790
 
21791
  def __repr__(self):
21792
    L = ['%s=%r' % (key, value)
21793
      for key, value in self.__dict__.iteritems()]
21794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21795
 
21796
  def __eq__(self, other):
21797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21798
 
21799
  def __ne__(self, other):
21800
    return not (self == other)
21801
 
21802
class addOrUpdateFreebieForItem_result:
21803
 
21804
  thrift_spec = (
21805
  )
21806
 
21807
  def read(self, iprot):
21808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21810
      return
21811
    iprot.readStructBegin()
21812
    while True:
21813
      (fname, ftype, fid) = iprot.readFieldBegin()
21814
      if ftype == TType.STOP:
21815
        break
21816
      else:
21817
        iprot.skip(ftype)
21818
      iprot.readFieldEnd()
21819
    iprot.readStructEnd()
21820
 
21821
  def write(self, oprot):
21822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21824
      return
21825
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
21826
    oprot.writeFieldStop()
21827
    oprot.writeStructEnd()
21828
 
21829
  def validate(self):
21830
    return
21831
 
21832
 
21833
  def __repr__(self):
21834
    L = ['%s=%r' % (key, value)
21835
      for key, value in self.__dict__.iteritems()]
21836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21837
 
21838
  def __eq__(self, other):
21839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21840
 
21841
  def __ne__(self, other):
21842
    return not (self == other)
7256 rajveer 21843
 
7272 amit.gupta 21844
class addOrUpdateBrandInfo_args:
21845
  """
21846
  Attributes:
21847
   - brandInfo
21848
  """
21849
 
21850
  thrift_spec = (
21851
    None, # 0
21852
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
21853
  )
21854
 
21855
  def __init__(self, brandInfo=None,):
21856
    self.brandInfo = brandInfo
21857
 
21858
  def read(self, iprot):
21859
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21860
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21861
      return
21862
    iprot.readStructBegin()
21863
    while True:
21864
      (fname, ftype, fid) = iprot.readFieldBegin()
21865
      if ftype == TType.STOP:
21866
        break
21867
      if fid == 1:
21868
        if ftype == TType.STRUCT:
21869
          self.brandInfo = BrandInfo()
21870
          self.brandInfo.read(iprot)
21871
        else:
21872
          iprot.skip(ftype)
21873
      else:
21874
        iprot.skip(ftype)
21875
      iprot.readFieldEnd()
21876
    iprot.readStructEnd()
21877
 
21878
  def write(self, oprot):
21879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21881
      return
21882
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
21883
    if self.brandInfo is not None:
21884
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
21885
      self.brandInfo.write(oprot)
21886
      oprot.writeFieldEnd()
21887
    oprot.writeFieldStop()
21888
    oprot.writeStructEnd()
21889
 
21890
  def validate(self):
21891
    return
21892
 
21893
 
21894
  def __repr__(self):
21895
    L = ['%s=%r' % (key, value)
21896
      for key, value in self.__dict__.iteritems()]
21897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21898
 
21899
  def __eq__(self, other):
21900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21901
 
21902
  def __ne__(self, other):
21903
    return not (self == other)
21904
 
21905
class addOrUpdateBrandInfo_result:
21906
 
21907
  thrift_spec = (
21908
  )
21909
 
21910
  def read(self, iprot):
21911
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21912
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21913
      return
21914
    iprot.readStructBegin()
21915
    while True:
21916
      (fname, ftype, fid) = iprot.readFieldBegin()
21917
      if ftype == TType.STOP:
21918
        break
21919
      else:
21920
        iprot.skip(ftype)
21921
      iprot.readFieldEnd()
21922
    iprot.readStructEnd()
21923
 
21924
  def write(self, oprot):
21925
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21926
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21927
      return
21928
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
21929
    oprot.writeFieldStop()
21930
    oprot.writeStructEnd()
21931
 
21932
  def validate(self):
21933
    return
21934
 
21935
 
21936
  def __repr__(self):
21937
    L = ['%s=%r' % (key, value)
21938
      for key, value in self.__dict__.iteritems()]
21939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21940
 
21941
  def __eq__(self, other):
21942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21943
 
21944
  def __ne__(self, other):
21945
    return not (self == other)
21946
 
21947
class getBrandInfo_args:
21948
 
21949
  thrift_spec = (
21950
  )
21951
 
21952
  def read(self, iprot):
21953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21955
      return
21956
    iprot.readStructBegin()
21957
    while True:
21958
      (fname, ftype, fid) = iprot.readFieldBegin()
21959
      if ftype == TType.STOP:
21960
        break
21961
      else:
21962
        iprot.skip(ftype)
21963
      iprot.readFieldEnd()
21964
    iprot.readStructEnd()
21965
 
21966
  def write(self, oprot):
21967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21969
      return
21970
    oprot.writeStructBegin('getBrandInfo_args')
21971
    oprot.writeFieldStop()
21972
    oprot.writeStructEnd()
21973
 
21974
  def validate(self):
21975
    return
21976
 
21977
 
21978
  def __repr__(self):
21979
    L = ['%s=%r' % (key, value)
21980
      for key, value in self.__dict__.iteritems()]
21981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21982
 
21983
  def __eq__(self, other):
21984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21985
 
21986
  def __ne__(self, other):
21987
    return not (self == other)
21988
 
21989
class getBrandInfo_result:
21990
  """
21991
  Attributes:
21992
   - success
21993
  """
21994
 
21995
  thrift_spec = (
21996
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
21997
  )
21998
 
21999
  def __init__(self, success=None,):
22000
    self.success = success
22001
 
22002
  def read(self, iprot):
22003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22005
      return
22006
    iprot.readStructBegin()
22007
    while True:
22008
      (fname, ftype, fid) = iprot.readFieldBegin()
22009
      if ftype == TType.STOP:
22010
        break
22011
      if fid == 0:
22012
        if ftype == TType.MAP:
22013
          self.success = {}
13493 amit.gupta 22014
          (_ktype414, _vtype415, _size413 ) = iprot.readMapBegin() 
22015
          for _i417 in xrange(_size413):
22016
            _key418 = iprot.readString();
22017
            _val419 = BrandInfo()
22018
            _val419.read(iprot)
22019
            self.success[_key418] = _val419
7272 amit.gupta 22020
          iprot.readMapEnd()
22021
        else:
22022
          iprot.skip(ftype)
22023
      else:
22024
        iprot.skip(ftype)
22025
      iprot.readFieldEnd()
22026
    iprot.readStructEnd()
22027
 
22028
  def write(self, oprot):
22029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22031
      return
22032
    oprot.writeStructBegin('getBrandInfo_result')
22033
    if self.success is not None:
22034
      oprot.writeFieldBegin('success', TType.MAP, 0)
22035
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
13493 amit.gupta 22036
      for kiter420,viter421 in self.success.items():
22037
        oprot.writeString(kiter420)
22038
        viter421.write(oprot)
7272 amit.gupta 22039
      oprot.writeMapEnd()
22040
      oprot.writeFieldEnd()
22041
    oprot.writeFieldStop()
22042
    oprot.writeStructEnd()
22043
 
22044
  def validate(self):
22045
    return
22046
 
22047
 
22048
  def __repr__(self):
22049
    L = ['%s=%r' % (key, value)
22050
      for key, value in self.__dict__.iteritems()]
22051
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22052
 
22053
  def __eq__(self, other):
22054
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22055
 
22056
  def __ne__(self, other):
22057
    return not (self == other)
22058
 
7256 rajveer 22059
class getStorePricing_args:
22060
  """
22061
  Attributes:
22062
   - itemId
22063
  """
22064
 
22065
  thrift_spec = (
22066
    None, # 0
22067
    (1, TType.I64, 'itemId', None, None, ), # 1
22068
  )
22069
 
22070
  def __init__(self, itemId=None,):
22071
    self.itemId = itemId
22072
 
22073
  def read(self, iprot):
22074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22076
      return
22077
    iprot.readStructBegin()
22078
    while True:
22079
      (fname, ftype, fid) = iprot.readFieldBegin()
22080
      if ftype == TType.STOP:
22081
        break
22082
      if fid == 1:
22083
        if ftype == TType.I64:
22084
          self.itemId = iprot.readI64();
22085
        else:
22086
          iprot.skip(ftype)
22087
      else:
22088
        iprot.skip(ftype)
22089
      iprot.readFieldEnd()
22090
    iprot.readStructEnd()
22091
 
22092
  def write(self, oprot):
22093
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22094
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22095
      return
22096
    oprot.writeStructBegin('getStorePricing_args')
22097
    if self.itemId is not None:
22098
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22099
      oprot.writeI64(self.itemId)
22100
      oprot.writeFieldEnd()
22101
    oprot.writeFieldStop()
22102
    oprot.writeStructEnd()
22103
 
22104
  def validate(self):
22105
    return
22106
 
22107
 
22108
  def __repr__(self):
22109
    L = ['%s=%r' % (key, value)
22110
      for key, value in self.__dict__.iteritems()]
22111
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22112
 
22113
  def __eq__(self, other):
22114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22115
 
22116
  def __ne__(self, other):
22117
    return not (self == other)
22118
 
22119
class getStorePricing_result:
22120
  """
22121
  Attributes:
22122
   - success
22123
  """
22124
 
22125
  thrift_spec = (
22126
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
22127
  )
22128
 
22129
  def __init__(self, success=None,):
22130
    self.success = success
22131
 
22132
  def read(self, iprot):
22133
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22134
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22135
      return
22136
    iprot.readStructBegin()
22137
    while True:
22138
      (fname, ftype, fid) = iprot.readFieldBegin()
22139
      if ftype == TType.STOP:
22140
        break
22141
      if fid == 0:
22142
        if ftype == TType.STRUCT:
22143
          self.success = StorePricing()
22144
          self.success.read(iprot)
22145
        else:
22146
          iprot.skip(ftype)
22147
      else:
22148
        iprot.skip(ftype)
22149
      iprot.readFieldEnd()
22150
    iprot.readStructEnd()
22151
 
22152
  def write(self, oprot):
22153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22155
      return
22156
    oprot.writeStructBegin('getStorePricing_result')
22157
    if self.success is not None:
22158
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22159
      self.success.write(oprot)
22160
      oprot.writeFieldEnd()
22161
    oprot.writeFieldStop()
22162
    oprot.writeStructEnd()
22163
 
22164
  def validate(self):
22165
    return
22166
 
22167
 
22168
  def __repr__(self):
22169
    L = ['%s=%r' % (key, value)
22170
      for key, value in self.__dict__.iteritems()]
22171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22172
 
22173
  def __eq__(self, other):
22174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22175
 
22176
  def __ne__(self, other):
22177
    return not (self == other)
7265 rajveer 22178
 
7306 rajveer 22179
class getStorePricings_args:
22180
  """
22181
  Attributes:
22182
   - itemIds
22183
  """
22184
 
22185
  thrift_spec = (
22186
    None, # 0
22187
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
22188
  )
22189
 
22190
  def __init__(self, itemIds=None,):
22191
    self.itemIds = itemIds
22192
 
22193
  def read(self, iprot):
22194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22196
      return
22197
    iprot.readStructBegin()
22198
    while True:
22199
      (fname, ftype, fid) = iprot.readFieldBegin()
22200
      if ftype == TType.STOP:
22201
        break
22202
      if fid == 1:
22203
        if ftype == TType.LIST:
22204
          self.itemIds = []
13493 amit.gupta 22205
          (_etype425, _size422) = iprot.readListBegin()
22206
          for _i426 in xrange(_size422):
22207
            _elem427 = iprot.readI64();
22208
            self.itemIds.append(_elem427)
7306 rajveer 22209
          iprot.readListEnd()
22210
        else:
22211
          iprot.skip(ftype)
22212
      else:
22213
        iprot.skip(ftype)
22214
      iprot.readFieldEnd()
22215
    iprot.readStructEnd()
22216
 
22217
  def write(self, oprot):
22218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22220
      return
22221
    oprot.writeStructBegin('getStorePricings_args')
22222
    if self.itemIds is not None:
22223
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
22224
      oprot.writeListBegin(TType.I64, len(self.itemIds))
13493 amit.gupta 22225
      for iter428 in self.itemIds:
22226
        oprot.writeI64(iter428)
7306 rajveer 22227
      oprot.writeListEnd()
22228
      oprot.writeFieldEnd()
22229
    oprot.writeFieldStop()
22230
    oprot.writeStructEnd()
22231
 
22232
  def validate(self):
22233
    return
22234
 
22235
 
22236
  def __repr__(self):
22237
    L = ['%s=%r' % (key, value)
22238
      for key, value in self.__dict__.iteritems()]
22239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22240
 
22241
  def __eq__(self, other):
22242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22243
 
22244
  def __ne__(self, other):
22245
    return not (self == other)
22246
 
22247
class getStorePricings_result:
22248
  """
22249
  Attributes:
22250
   - success
22251
  """
22252
 
22253
  thrift_spec = (
22254
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
22255
  )
22256
 
22257
  def __init__(self, success=None,):
22258
    self.success = success
22259
 
22260
  def read(self, iprot):
22261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22263
      return
22264
    iprot.readStructBegin()
22265
    while True:
22266
      (fname, ftype, fid) = iprot.readFieldBegin()
22267
      if ftype == TType.STOP:
22268
        break
22269
      if fid == 0:
22270
        if ftype == TType.LIST:
22271
          self.success = []
13493 amit.gupta 22272
          (_etype432, _size429) = iprot.readListBegin()
22273
          for _i433 in xrange(_size429):
22274
            _elem434 = StorePricing()
22275
            _elem434.read(iprot)
22276
            self.success.append(_elem434)
7306 rajveer 22277
          iprot.readListEnd()
22278
        else:
22279
          iprot.skip(ftype)
22280
      else:
22281
        iprot.skip(ftype)
22282
      iprot.readFieldEnd()
22283
    iprot.readStructEnd()
22284
 
22285
  def write(self, oprot):
22286
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22287
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22288
      return
22289
    oprot.writeStructBegin('getStorePricings_result')
22290
    if self.success is not None:
22291
      oprot.writeFieldBegin('success', TType.LIST, 0)
22292
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 22293
      for iter435 in self.success:
22294
        iter435.write(oprot)
7306 rajveer 22295
      oprot.writeListEnd()
22296
      oprot.writeFieldEnd()
22297
    oprot.writeFieldStop()
22298
    oprot.writeStructEnd()
22299
 
22300
  def validate(self):
22301
    return
22302
 
22303
 
22304
  def __repr__(self):
22305
    L = ['%s=%r' % (key, value)
22306
      for key, value in self.__dict__.iteritems()]
22307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22308
 
22309
  def __eq__(self, other):
22310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22311
 
22312
  def __ne__(self, other):
22313
    return not (self == other)
22314
 
7265 rajveer 22315
class updateStorePricing_args:
22316
  """
22317
  Attributes:
22318
   - sp
7382 rajveer 22319
   - allColors
7265 rajveer 22320
  """
22321
 
22322
  thrift_spec = (
22323
    None, # 0
22324
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 22325
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 22326
  )
22327
 
7382 rajveer 22328
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 22329
    self.sp = sp
7382 rajveer 22330
    self.allColors = allColors
7265 rajveer 22331
 
22332
  def read(self, iprot):
22333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22335
      return
22336
    iprot.readStructBegin()
22337
    while True:
22338
      (fname, ftype, fid) = iprot.readFieldBegin()
22339
      if ftype == TType.STOP:
22340
        break
22341
      if fid == 1:
22342
        if ftype == TType.STRUCT:
22343
          self.sp = StorePricing()
22344
          self.sp.read(iprot)
22345
        else:
22346
          iprot.skip(ftype)
7382 rajveer 22347
      elif fid == 2:
22348
        if ftype == TType.BOOL:
22349
          self.allColors = iprot.readBool();
22350
        else:
22351
          iprot.skip(ftype)
7265 rajveer 22352
      else:
22353
        iprot.skip(ftype)
22354
      iprot.readFieldEnd()
22355
    iprot.readStructEnd()
22356
 
22357
  def write(self, oprot):
22358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22360
      return
22361
    oprot.writeStructBegin('updateStorePricing_args')
22362
    if self.sp is not None:
22363
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
22364
      self.sp.write(oprot)
22365
      oprot.writeFieldEnd()
7382 rajveer 22366
    if self.allColors is not None:
22367
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
22368
      oprot.writeBool(self.allColors)
22369
      oprot.writeFieldEnd()
7265 rajveer 22370
    oprot.writeFieldStop()
22371
    oprot.writeStructEnd()
22372
 
22373
  def validate(self):
22374
    return
22375
 
22376
 
22377
  def __repr__(self):
22378
    L = ['%s=%r' % (key, value)
22379
      for key, value in self.__dict__.iteritems()]
22380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22381
 
22382
  def __eq__(self, other):
22383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22384
 
22385
  def __ne__(self, other):
22386
    return not (self == other)
22387
 
22388
class updateStorePricing_result:
22389
 
22390
  thrift_spec = (
22391
  )
22392
 
22393
  def read(self, iprot):
22394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22396
      return
22397
    iprot.readStructBegin()
22398
    while True:
22399
      (fname, ftype, fid) = iprot.readFieldBegin()
22400
      if ftype == TType.STOP:
22401
        break
22402
      else:
22403
        iprot.skip(ftype)
22404
      iprot.readFieldEnd()
22405
    iprot.readStructEnd()
22406
 
22407
  def write(self, oprot):
22408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22410
      return
22411
    oprot.writeStructBegin('updateStorePricing_result')
22412
    oprot.writeFieldStop()
22413
    oprot.writeStructEnd()
22414
 
22415
  def validate(self):
22416
    return
22417
 
22418
 
22419
  def __repr__(self):
22420
    L = ['%s=%r' % (key, value)
22421
      for key, value in self.__dict__.iteritems()]
22422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22423
 
22424
  def __eq__(self, other):
22425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22426
 
22427
  def __ne__(self, other):
22428
    return not (self == other)
7281 kshitij.so 22429
 
22430
class getAllAmazonListedItems_args:
22431
 
22432
  thrift_spec = (
22433
  )
22434
 
22435
  def read(self, iprot):
22436
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22437
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22438
      return
22439
    iprot.readStructBegin()
22440
    while True:
22441
      (fname, ftype, fid) = iprot.readFieldBegin()
22442
      if ftype == TType.STOP:
22443
        break
22444
      else:
22445
        iprot.skip(ftype)
22446
      iprot.readFieldEnd()
22447
    iprot.readStructEnd()
22448
 
22449
  def write(self, oprot):
22450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22452
      return
22453
    oprot.writeStructBegin('getAllAmazonListedItems_args')
22454
    oprot.writeFieldStop()
22455
    oprot.writeStructEnd()
22456
 
22457
  def validate(self):
22458
    return
22459
 
22460
 
22461
  def __repr__(self):
22462
    L = ['%s=%r' % (key, value)
22463
      for key, value in self.__dict__.iteritems()]
22464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22465
 
22466
  def __eq__(self, other):
22467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22468
 
22469
  def __ne__(self, other):
22470
    return not (self == other)
22471
 
22472
class getAllAmazonListedItems_result:
22473
  """
22474
  Attributes:
22475
   - success
22476
  """
22477
 
22478
  thrift_spec = (
22479
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22480
  )
22481
 
22482
  def __init__(self, success=None,):
22483
    self.success = success
22484
 
22485
  def read(self, iprot):
22486
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22487
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22488
      return
22489
    iprot.readStructBegin()
22490
    while True:
22491
      (fname, ftype, fid) = iprot.readFieldBegin()
22492
      if ftype == TType.STOP:
22493
        break
22494
      if fid == 0:
22495
        if ftype == TType.LIST:
22496
          self.success = []
13493 amit.gupta 22497
          (_etype439, _size436) = iprot.readListBegin()
22498
          for _i440 in xrange(_size436):
22499
            _elem441 = Amazonlisted()
22500
            _elem441.read(iprot)
22501
            self.success.append(_elem441)
7281 kshitij.so 22502
          iprot.readListEnd()
22503
        else:
22504
          iprot.skip(ftype)
22505
      else:
22506
        iprot.skip(ftype)
22507
      iprot.readFieldEnd()
22508
    iprot.readStructEnd()
22509
 
22510
  def write(self, oprot):
22511
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22512
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22513
      return
22514
    oprot.writeStructBegin('getAllAmazonListedItems_result')
22515
    if self.success is not None:
22516
      oprot.writeFieldBegin('success', TType.LIST, 0)
22517
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 22518
      for iter442 in self.success:
22519
        iter442.write(oprot)
7281 kshitij.so 22520
      oprot.writeListEnd()
22521
      oprot.writeFieldEnd()
22522
    oprot.writeFieldStop()
22523
    oprot.writeStructEnd()
22524
 
22525
  def validate(self):
22526
    return
22527
 
22528
 
22529
  def __repr__(self):
22530
    L = ['%s=%r' % (key, value)
22531
      for key, value in self.__dict__.iteritems()]
22532
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22533
 
22534
  def __eq__(self, other):
22535
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22536
 
22537
  def __ne__(self, other):
22538
    return not (self == other)
22539
 
8619 kshitij.so 22540
class searchAmazonItems_args:
22541
  """
22542
  Attributes:
22543
   - searchTerm
22544
   - offset
22545
   - limit
22546
  """
22547
 
22548
  thrift_spec = (
22549
    None, # 0
22550
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22551
    (2, TType.I64, 'offset', None, None, ), # 2
22552
    (3, TType.I64, 'limit', None, None, ), # 3
22553
  )
22554
 
22555
  def __init__(self, searchTerm=None, offset=None, limit=None,):
22556
    self.searchTerm = searchTerm
22557
    self.offset = offset
22558
    self.limit = limit
22559
 
22560
  def read(self, iprot):
22561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22563
      return
22564
    iprot.readStructBegin()
22565
    while True:
22566
      (fname, ftype, fid) = iprot.readFieldBegin()
22567
      if ftype == TType.STOP:
22568
        break
22569
      if fid == 1:
22570
        if ftype == TType.LIST:
22571
          self.searchTerm = []
13493 amit.gupta 22572
          (_etype446, _size443) = iprot.readListBegin()
22573
          for _i447 in xrange(_size443):
22574
            _elem448 = iprot.readString();
22575
            self.searchTerm.append(_elem448)
8619 kshitij.so 22576
          iprot.readListEnd()
22577
        else:
22578
          iprot.skip(ftype)
22579
      elif fid == 2:
22580
        if ftype == TType.I64:
22581
          self.offset = iprot.readI64();
22582
        else:
22583
          iprot.skip(ftype)
22584
      elif fid == 3:
22585
        if ftype == TType.I64:
22586
          self.limit = iprot.readI64();
22587
        else:
22588
          iprot.skip(ftype)
22589
      else:
22590
        iprot.skip(ftype)
22591
      iprot.readFieldEnd()
22592
    iprot.readStructEnd()
22593
 
22594
  def write(self, oprot):
22595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22597
      return
22598
    oprot.writeStructBegin('searchAmazonItems_args')
22599
    if self.searchTerm is not None:
22600
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22601
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 22602
      for iter449 in self.searchTerm:
22603
        oprot.writeString(iter449)
8619 kshitij.so 22604
      oprot.writeListEnd()
22605
      oprot.writeFieldEnd()
22606
    if self.offset is not None:
22607
      oprot.writeFieldBegin('offset', TType.I64, 2)
22608
      oprot.writeI64(self.offset)
22609
      oprot.writeFieldEnd()
22610
    if self.limit is not None:
22611
      oprot.writeFieldBegin('limit', TType.I64, 3)
22612
      oprot.writeI64(self.limit)
22613
      oprot.writeFieldEnd()
22614
    oprot.writeFieldStop()
22615
    oprot.writeStructEnd()
22616
 
22617
  def validate(self):
22618
    return
22619
 
22620
 
22621
  def __repr__(self):
22622
    L = ['%s=%r' % (key, value)
22623
      for key, value in self.__dict__.iteritems()]
22624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22625
 
22626
  def __eq__(self, other):
22627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22628
 
22629
  def __ne__(self, other):
22630
    return not (self == other)
22631
 
22632
class searchAmazonItems_result:
22633
  """
22634
  Attributes:
22635
   - success
22636
  """
22637
 
22638
  thrift_spec = (
22639
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22640
  )
22641
 
22642
  def __init__(self, success=None,):
22643
    self.success = success
22644
 
22645
  def read(self, iprot):
22646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22648
      return
22649
    iprot.readStructBegin()
22650
    while True:
22651
      (fname, ftype, fid) = iprot.readFieldBegin()
22652
      if ftype == TType.STOP:
22653
        break
22654
      if fid == 0:
22655
        if ftype == TType.LIST:
22656
          self.success = []
13493 amit.gupta 22657
          (_etype453, _size450) = iprot.readListBegin()
22658
          for _i454 in xrange(_size450):
22659
            _elem455 = Amazonlisted()
22660
            _elem455.read(iprot)
22661
            self.success.append(_elem455)
8619 kshitij.so 22662
          iprot.readListEnd()
22663
        else:
22664
          iprot.skip(ftype)
22665
      else:
22666
        iprot.skip(ftype)
22667
      iprot.readFieldEnd()
22668
    iprot.readStructEnd()
22669
 
22670
  def write(self, oprot):
22671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22673
      return
22674
    oprot.writeStructBegin('searchAmazonItems_result')
22675
    if self.success is not None:
22676
      oprot.writeFieldBegin('success', TType.LIST, 0)
22677
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 22678
      for iter456 in self.success:
22679
        iter456.write(oprot)
8619 kshitij.so 22680
      oprot.writeListEnd()
22681
      oprot.writeFieldEnd()
22682
    oprot.writeFieldStop()
22683
    oprot.writeStructEnd()
22684
 
22685
  def validate(self):
22686
    return
22687
 
22688
 
22689
  def __repr__(self):
22690
    L = ['%s=%r' % (key, value)
22691
      for key, value in self.__dict__.iteritems()]
22692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22693
 
22694
  def __eq__(self, other):
22695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22696
 
22697
  def __ne__(self, other):
22698
    return not (self == other)
22699
 
22700
class getAmazonSearchResultCount_args:
22701
  """
22702
  Attributes:
22703
   - searchTerm
22704
  """
22705
 
22706
  thrift_spec = (
22707
    None, # 0
22708
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22709
  )
22710
 
22711
  def __init__(self, searchTerm=None,):
22712
    self.searchTerm = searchTerm
22713
 
22714
  def read(self, iprot):
22715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22717
      return
22718
    iprot.readStructBegin()
22719
    while True:
22720
      (fname, ftype, fid) = iprot.readFieldBegin()
22721
      if ftype == TType.STOP:
22722
        break
22723
      if fid == 1:
22724
        if ftype == TType.LIST:
22725
          self.searchTerm = []
13493 amit.gupta 22726
          (_etype460, _size457) = iprot.readListBegin()
22727
          for _i461 in xrange(_size457):
22728
            _elem462 = iprot.readString();
22729
            self.searchTerm.append(_elem462)
8619 kshitij.so 22730
          iprot.readListEnd()
22731
        else:
22732
          iprot.skip(ftype)
22733
      else:
22734
        iprot.skip(ftype)
22735
      iprot.readFieldEnd()
22736
    iprot.readStructEnd()
22737
 
22738
  def write(self, oprot):
22739
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22740
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22741
      return
22742
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
22743
    if self.searchTerm is not None:
22744
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22745
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 22746
      for iter463 in self.searchTerm:
22747
        oprot.writeString(iter463)
8619 kshitij.so 22748
      oprot.writeListEnd()
22749
      oprot.writeFieldEnd()
22750
    oprot.writeFieldStop()
22751
    oprot.writeStructEnd()
22752
 
22753
  def validate(self):
22754
    return
22755
 
22756
 
22757
  def __repr__(self):
22758
    L = ['%s=%r' % (key, value)
22759
      for key, value in self.__dict__.iteritems()]
22760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22761
 
22762
  def __eq__(self, other):
22763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22764
 
22765
  def __ne__(self, other):
22766
    return not (self == other)
22767
 
22768
class getAmazonSearchResultCount_result:
22769
  """
22770
  Attributes:
22771
   - success
22772
  """
22773
 
22774
  thrift_spec = (
22775
    (0, TType.I64, 'success', None, None, ), # 0
22776
  )
22777
 
22778
  def __init__(self, success=None,):
22779
    self.success = success
22780
 
22781
  def read(self, iprot):
22782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22784
      return
22785
    iprot.readStructBegin()
22786
    while True:
22787
      (fname, ftype, fid) = iprot.readFieldBegin()
22788
      if ftype == TType.STOP:
22789
        break
22790
      if fid == 0:
22791
        if ftype == TType.I64:
22792
          self.success = iprot.readI64();
22793
        else:
22794
          iprot.skip(ftype)
22795
      else:
22796
        iprot.skip(ftype)
22797
      iprot.readFieldEnd()
22798
    iprot.readStructEnd()
22799
 
22800
  def write(self, oprot):
22801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22803
      return
22804
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
22805
    if self.success is not None:
22806
      oprot.writeFieldBegin('success', TType.I64, 0)
22807
      oprot.writeI64(self.success)
22808
      oprot.writeFieldEnd()
22809
    oprot.writeFieldStop()
22810
    oprot.writeStructEnd()
22811
 
22812
  def validate(self):
22813
    return
22814
 
22815
 
22816
  def __repr__(self):
22817
    L = ['%s=%r' % (key, value)
22818
      for key, value in self.__dict__.iteritems()]
22819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22820
 
22821
  def __eq__(self, other):
22822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22823
 
22824
  def __ne__(self, other):
22825
    return not (self == other)
22826
 
22827
class getCountForAmazonlistedItems_args:
22828
 
22829
  thrift_spec = (
22830
  )
22831
 
22832
  def read(self, iprot):
22833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22835
      return
22836
    iprot.readStructBegin()
22837
    while True:
22838
      (fname, ftype, fid) = iprot.readFieldBegin()
22839
      if ftype == TType.STOP:
22840
        break
22841
      else:
22842
        iprot.skip(ftype)
22843
      iprot.readFieldEnd()
22844
    iprot.readStructEnd()
22845
 
22846
  def write(self, oprot):
22847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22849
      return
22850
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
22851
    oprot.writeFieldStop()
22852
    oprot.writeStructEnd()
22853
 
22854
  def validate(self):
22855
    return
22856
 
22857
 
22858
  def __repr__(self):
22859
    L = ['%s=%r' % (key, value)
22860
      for key, value in self.__dict__.iteritems()]
22861
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22862
 
22863
  def __eq__(self, other):
22864
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22865
 
22866
  def __ne__(self, other):
22867
    return not (self == other)
22868
 
22869
class getCountForAmazonlistedItems_result:
22870
  """
22871
  Attributes:
22872
   - success
22873
  """
22874
 
22875
  thrift_spec = (
22876
    (0, TType.I64, 'success', None, None, ), # 0
22877
  )
22878
 
22879
  def __init__(self, success=None,):
22880
    self.success = success
22881
 
22882
  def read(self, iprot):
22883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22885
      return
22886
    iprot.readStructBegin()
22887
    while True:
22888
      (fname, ftype, fid) = iprot.readFieldBegin()
22889
      if ftype == TType.STOP:
22890
        break
22891
      if fid == 0:
22892
        if ftype == TType.I64:
22893
          self.success = iprot.readI64();
22894
        else:
22895
          iprot.skip(ftype)
22896
      else:
22897
        iprot.skip(ftype)
22898
      iprot.readFieldEnd()
22899
    iprot.readStructEnd()
22900
 
22901
  def write(self, oprot):
22902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22904
      return
22905
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
22906
    if self.success is not None:
22907
      oprot.writeFieldBegin('success', TType.I64, 0)
22908
      oprot.writeI64(self.success)
22909
      oprot.writeFieldEnd()
22910
    oprot.writeFieldStop()
22911
    oprot.writeStructEnd()
22912
 
22913
  def validate(self):
22914
    return
22915
 
22916
 
22917
  def __repr__(self):
22918
    L = ['%s=%r' % (key, value)
22919
      for key, value in self.__dict__.iteritems()]
22920
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22921
 
22922
  def __eq__(self, other):
22923
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22924
 
22925
  def __ne__(self, other):
22926
    return not (self == other)
22927
 
7281 kshitij.so 22928
class getAmazonItemDetails_args:
22929
  """
22930
  Attributes:
22931
   - itemId
22932
  """
22933
 
22934
  thrift_spec = (
22935
    None, # 0
22936
    (1, TType.I64, 'itemId', None, None, ), # 1
22937
  )
22938
 
22939
  def __init__(self, itemId=None,):
22940
    self.itemId = itemId
22941
 
22942
  def read(self, iprot):
22943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22945
      return
22946
    iprot.readStructBegin()
22947
    while True:
22948
      (fname, ftype, fid) = iprot.readFieldBegin()
22949
      if ftype == TType.STOP:
22950
        break
22951
      if fid == 1:
22952
        if ftype == TType.I64:
22953
          self.itemId = iprot.readI64();
22954
        else:
22955
          iprot.skip(ftype)
22956
      else:
22957
        iprot.skip(ftype)
22958
      iprot.readFieldEnd()
22959
    iprot.readStructEnd()
22960
 
22961
  def write(self, oprot):
22962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22964
      return
22965
    oprot.writeStructBegin('getAmazonItemDetails_args')
22966
    if self.itemId is not None:
22967
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22968
      oprot.writeI64(self.itemId)
22969
      oprot.writeFieldEnd()
22970
    oprot.writeFieldStop()
22971
    oprot.writeStructEnd()
22972
 
22973
  def validate(self):
22974
    return
22975
 
22976
 
22977
  def __repr__(self):
22978
    L = ['%s=%r' % (key, value)
22979
      for key, value in self.__dict__.iteritems()]
22980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22981
 
22982
  def __eq__(self, other):
22983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22984
 
22985
  def __ne__(self, other):
22986
    return not (self == other)
22987
 
22988
class getAmazonItemDetails_result:
22989
  """
22990
  Attributes:
22991
   - success
22992
  """
22993
 
22994
  thrift_spec = (
22995
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
22996
  )
22997
 
22998
  def __init__(self, success=None,):
22999
    self.success = success
23000
 
23001
  def read(self, iprot):
23002
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23003
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23004
      return
23005
    iprot.readStructBegin()
23006
    while True:
23007
      (fname, ftype, fid) = iprot.readFieldBegin()
23008
      if ftype == TType.STOP:
23009
        break
23010
      if fid == 0:
23011
        if ftype == TType.STRUCT:
23012
          self.success = Amazonlisted()
23013
          self.success.read(iprot)
23014
        else:
23015
          iprot.skip(ftype)
23016
      else:
23017
        iprot.skip(ftype)
23018
      iprot.readFieldEnd()
23019
    iprot.readStructEnd()
23020
 
23021
  def write(self, oprot):
23022
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23023
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23024
      return
23025
    oprot.writeStructBegin('getAmazonItemDetails_result')
23026
    if self.success is not None:
23027
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
23028
      self.success.write(oprot)
23029
      oprot.writeFieldEnd()
23030
    oprot.writeFieldStop()
23031
    oprot.writeStructEnd()
23032
 
23033
  def validate(self):
23034
    return
23035
 
23036
 
23037
  def __repr__(self):
23038
    L = ['%s=%r' % (key, value)
23039
      for key, value in self.__dict__.iteritems()]
23040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23041
 
23042
  def __eq__(self, other):
23043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23044
 
23045
  def __ne__(self, other):
23046
    return not (self == other)
23047
 
23048
class updateAmazonItemDetails_args:
23049
  """
23050
  Attributes:
8168 kshitij.so 23051
   - amazonlisted
7281 kshitij.so 23052
  """
23053
 
23054
  thrift_spec = (
23055
    None, # 0
8168 kshitij.so 23056
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 23057
  )
23058
 
8168 kshitij.so 23059
  def __init__(self, amazonlisted=None,):
23060
    self.amazonlisted = amazonlisted
7281 kshitij.so 23061
 
23062
  def read(self, iprot):
23063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23065
      return
23066
    iprot.readStructBegin()
23067
    while True:
23068
      (fname, ftype, fid) = iprot.readFieldBegin()
23069
      if ftype == TType.STOP:
23070
        break
23071
      if fid == 1:
8168 kshitij.so 23072
        if ftype == TType.STRUCT:
23073
          self.amazonlisted = Amazonlisted()
23074
          self.amazonlisted.read(iprot)
7281 kshitij.so 23075
        else:
23076
          iprot.skip(ftype)
23077
      else:
23078
        iprot.skip(ftype)
23079
      iprot.readFieldEnd()
23080
    iprot.readStructEnd()
23081
 
23082
  def write(self, oprot):
23083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23085
      return
23086
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 23087
    if self.amazonlisted is not None:
23088
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
23089
      self.amazonlisted.write(oprot)
7281 kshitij.so 23090
      oprot.writeFieldEnd()
23091
    oprot.writeFieldStop()
23092
    oprot.writeStructEnd()
23093
 
23094
  def validate(self):
23095
    return
23096
 
23097
 
23098
  def __repr__(self):
23099
    L = ['%s=%r' % (key, value)
23100
      for key, value in self.__dict__.iteritems()]
23101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23102
 
23103
  def __eq__(self, other):
23104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23105
 
23106
  def __ne__(self, other):
23107
    return not (self == other)
23108
 
23109
class updateAmazonItemDetails_result:
23110
 
23111
  thrift_spec = (
23112
  )
23113
 
23114
  def read(self, iprot):
23115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23117
      return
23118
    iprot.readStructBegin()
23119
    while True:
23120
      (fname, ftype, fid) = iprot.readFieldBegin()
23121
      if ftype == TType.STOP:
23122
        break
23123
      else:
23124
        iprot.skip(ftype)
23125
      iprot.readFieldEnd()
23126
    iprot.readStructEnd()
23127
 
23128
  def write(self, oprot):
23129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23131
      return
23132
    oprot.writeStructBegin('updateAmazonItemDetails_result')
23133
    oprot.writeFieldStop()
23134
    oprot.writeStructEnd()
23135
 
23136
  def validate(self):
23137
    return
23138
 
23139
 
23140
  def __repr__(self):
23141
    L = ['%s=%r' % (key, value)
23142
      for key, value in self.__dict__.iteritems()]
23143
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23144
 
23145
  def __eq__(self, other):
23146
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23147
 
23148
  def __ne__(self, other):
23149
    return not (self == other)
23150
 
23151
class addAmazonItem_args:
23152
  """
23153
  Attributes:
23154
   - amazonlisted
23155
  """
23156
 
23157
  thrift_spec = (
23158
    None, # 0
23159
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
23160
  )
23161
 
23162
  def __init__(self, amazonlisted=None,):
23163
    self.amazonlisted = amazonlisted
23164
 
23165
  def read(self, iprot):
23166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23168
      return
23169
    iprot.readStructBegin()
23170
    while True:
23171
      (fname, ftype, fid) = iprot.readFieldBegin()
23172
      if ftype == TType.STOP:
23173
        break
23174
      if fid == 1:
23175
        if ftype == TType.STRUCT:
23176
          self.amazonlisted = Amazonlisted()
23177
          self.amazonlisted.read(iprot)
23178
        else:
23179
          iprot.skip(ftype)
23180
      else:
23181
        iprot.skip(ftype)
23182
      iprot.readFieldEnd()
23183
    iprot.readStructEnd()
23184
 
23185
  def write(self, oprot):
23186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23188
      return
23189
    oprot.writeStructBegin('addAmazonItem_args')
23190
    if self.amazonlisted is not None:
23191
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
23192
      self.amazonlisted.write(oprot)
23193
      oprot.writeFieldEnd()
23194
    oprot.writeFieldStop()
23195
    oprot.writeStructEnd()
23196
 
23197
  def validate(self):
23198
    return
23199
 
23200
 
23201
  def __repr__(self):
23202
    L = ['%s=%r' % (key, value)
23203
      for key, value in self.__dict__.iteritems()]
23204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23205
 
23206
  def __eq__(self, other):
23207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23208
 
23209
  def __ne__(self, other):
23210
    return not (self == other)
23211
 
23212
class addAmazonItem_result:
23213
 
23214
  thrift_spec = (
23215
  )
23216
 
23217
  def read(self, iprot):
23218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23220
      return
23221
    iprot.readStructBegin()
23222
    while True:
23223
      (fname, ftype, fid) = iprot.readFieldBegin()
23224
      if ftype == TType.STOP:
23225
        break
23226
      else:
23227
        iprot.skip(ftype)
23228
      iprot.readFieldEnd()
23229
    iprot.readStructEnd()
23230
 
23231
  def write(self, oprot):
23232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23234
      return
23235
    oprot.writeStructBegin('addAmazonItem_result')
23236
    oprot.writeFieldStop()
23237
    oprot.writeStructEnd()
23238
 
23239
  def validate(self):
23240
    return
23241
 
23242
 
23243
  def __repr__(self):
23244
    L = ['%s=%r' % (key, value)
23245
      for key, value in self.__dict__.iteritems()]
23246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23247
 
23248
  def __eq__(self, other):
23249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23250
 
23251
  def __ne__(self, other):
23252
    return not (self == other)
7291 vikram.rag 23253
 
23254
class getAsinItems_args:
23255
 
23256
  thrift_spec = (
23257
  )
23258
 
23259
  def read(self, iprot):
23260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23262
      return
23263
    iprot.readStructBegin()
23264
    while True:
23265
      (fname, ftype, fid) = iprot.readFieldBegin()
23266
      if ftype == TType.STOP:
23267
        break
23268
      else:
23269
        iprot.skip(ftype)
23270
      iprot.readFieldEnd()
23271
    iprot.readStructEnd()
23272
 
23273
  def write(self, oprot):
23274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23276
      return
23277
    oprot.writeStructBegin('getAsinItems_args')
23278
    oprot.writeFieldStop()
23279
    oprot.writeStructEnd()
23280
 
23281
  def validate(self):
23282
    return
23283
 
23284
 
23285
  def __repr__(self):
23286
    L = ['%s=%r' % (key, value)
23287
      for key, value in self.__dict__.iteritems()]
23288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23289
 
23290
  def __eq__(self, other):
23291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23292
 
23293
  def __ne__(self, other):
23294
    return not (self == other)
23295
 
23296
class getAsinItems_result:
23297
  """
23298
  Attributes:
23299
   - success
23300
  """
23301
 
23302
  thrift_spec = (
23303
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
23304
  )
23305
 
23306
  def __init__(self, success=None,):
23307
    self.success = success
23308
 
23309
  def read(self, iprot):
23310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23312
      return
23313
    iprot.readStructBegin()
23314
    while True:
23315
      (fname, ftype, fid) = iprot.readFieldBegin()
23316
      if ftype == TType.STOP:
23317
        break
23318
      if fid == 0:
23319
        if ftype == TType.LIST:
23320
          self.success = []
13493 amit.gupta 23321
          (_etype467, _size464) = iprot.readListBegin()
23322
          for _i468 in xrange(_size464):
23323
            _elem469 = Item()
23324
            _elem469.read(iprot)
23325
            self.success.append(_elem469)
7291 vikram.rag 23326
          iprot.readListEnd()
23327
        else:
23328
          iprot.skip(ftype)
23329
      else:
23330
        iprot.skip(ftype)
23331
      iprot.readFieldEnd()
23332
    iprot.readStructEnd()
23333
 
23334
  def write(self, oprot):
23335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23337
      return
23338
    oprot.writeStructBegin('getAsinItems_result')
23339
    if self.success is not None:
23340
      oprot.writeFieldBegin('success', TType.LIST, 0)
23341
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 23342
      for iter470 in self.success:
23343
        iter470.write(oprot)
7291 vikram.rag 23344
      oprot.writeListEnd()
23345
      oprot.writeFieldEnd()
23346
    oprot.writeFieldStop()
23347
    oprot.writeStructEnd()
23348
 
23349
  def validate(self):
23350
    return
23351
 
23352
 
23353
  def __repr__(self):
23354
    L = ['%s=%r' % (key, value)
23355
      for key, value in self.__dict__.iteritems()]
23356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23357
 
23358
  def __eq__(self, other):
23359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23360
 
23361
  def __ne__(self, other):
23362
    return not (self == other)
23363
 
23364
class getAllFbaListedItems_args:
23365
 
23366
  thrift_spec = (
23367
  )
23368
 
23369
  def read(self, iprot):
23370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23372
      return
23373
    iprot.readStructBegin()
23374
    while True:
23375
      (fname, ftype, fid) = iprot.readFieldBegin()
23376
      if ftype == TType.STOP:
23377
        break
23378
      else:
23379
        iprot.skip(ftype)
23380
      iprot.readFieldEnd()
23381
    iprot.readStructEnd()
23382
 
23383
  def write(self, oprot):
23384
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23385
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23386
      return
23387
    oprot.writeStructBegin('getAllFbaListedItems_args')
23388
    oprot.writeFieldStop()
23389
    oprot.writeStructEnd()
23390
 
23391
  def validate(self):
23392
    return
23393
 
23394
 
23395
  def __repr__(self):
23396
    L = ['%s=%r' % (key, value)
23397
      for key, value in self.__dict__.iteritems()]
23398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23399
 
23400
  def __eq__(self, other):
23401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23402
 
23403
  def __ne__(self, other):
23404
    return not (self == other)
23405
 
23406
class getAllFbaListedItems_result:
23407
  """
23408
  Attributes:
23409
   - success
23410
  """
23411
 
23412
  thrift_spec = (
23413
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23414
  )
23415
 
23416
  def __init__(self, success=None,):
23417
    self.success = success
23418
 
23419
  def read(self, iprot):
23420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23422
      return
23423
    iprot.readStructBegin()
23424
    while True:
23425
      (fname, ftype, fid) = iprot.readFieldBegin()
23426
      if ftype == TType.STOP:
23427
        break
23428
      if fid == 0:
23429
        if ftype == TType.LIST:
23430
          self.success = []
13493 amit.gupta 23431
          (_etype474, _size471) = iprot.readListBegin()
23432
          for _i475 in xrange(_size471):
23433
            _elem476 = Amazonlisted()
23434
            _elem476.read(iprot)
23435
            self.success.append(_elem476)
7291 vikram.rag 23436
          iprot.readListEnd()
23437
        else:
23438
          iprot.skip(ftype)
23439
      else:
23440
        iprot.skip(ftype)
23441
      iprot.readFieldEnd()
23442
    iprot.readStructEnd()
23443
 
23444
  def write(self, oprot):
23445
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23446
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23447
      return
23448
    oprot.writeStructBegin('getAllFbaListedItems_result')
23449
    if self.success is not None:
23450
      oprot.writeFieldBegin('success', TType.LIST, 0)
23451
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 23452
      for iter477 in self.success:
23453
        iter477.write(oprot)
7291 vikram.rag 23454
      oprot.writeListEnd()
23455
      oprot.writeFieldEnd()
23456
    oprot.writeFieldStop()
23457
    oprot.writeStructEnd()
23458
 
23459
  def validate(self):
23460
    return
23461
 
23462
 
23463
  def __repr__(self):
23464
    L = ['%s=%r' % (key, value)
23465
      for key, value in self.__dict__.iteritems()]
23466
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23467
 
23468
  def __eq__(self, other):
23469
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23470
 
23471
  def __ne__(self, other):
23472
    return not (self == other)
23473
 
23474
class getAllNonFbaListedItems_args:
23475
 
23476
  thrift_spec = (
23477
  )
23478
 
23479
  def read(self, iprot):
23480
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23481
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23482
      return
23483
    iprot.readStructBegin()
23484
    while True:
23485
      (fname, ftype, fid) = iprot.readFieldBegin()
23486
      if ftype == TType.STOP:
23487
        break
23488
      else:
23489
        iprot.skip(ftype)
23490
      iprot.readFieldEnd()
23491
    iprot.readStructEnd()
23492
 
23493
  def write(self, oprot):
23494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23496
      return
23497
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
23498
    oprot.writeFieldStop()
23499
    oprot.writeStructEnd()
23500
 
23501
  def validate(self):
23502
    return
23503
 
23504
 
23505
  def __repr__(self):
23506
    L = ['%s=%r' % (key, value)
23507
      for key, value in self.__dict__.iteritems()]
23508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23509
 
23510
  def __eq__(self, other):
23511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23512
 
23513
  def __ne__(self, other):
23514
    return not (self == other)
23515
 
23516
class getAllNonFbaListedItems_result:
23517
  """
23518
  Attributes:
23519
   - success
23520
  """
23521
 
23522
  thrift_spec = (
23523
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23524
  )
23525
 
23526
  def __init__(self, success=None,):
23527
    self.success = success
23528
 
23529
  def read(self, iprot):
23530
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23531
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23532
      return
23533
    iprot.readStructBegin()
23534
    while True:
23535
      (fname, ftype, fid) = iprot.readFieldBegin()
23536
      if ftype == TType.STOP:
23537
        break
23538
      if fid == 0:
23539
        if ftype == TType.LIST:
23540
          self.success = []
13493 amit.gupta 23541
          (_etype481, _size478) = iprot.readListBegin()
23542
          for _i482 in xrange(_size478):
23543
            _elem483 = Amazonlisted()
23544
            _elem483.read(iprot)
23545
            self.success.append(_elem483)
7291 vikram.rag 23546
          iprot.readListEnd()
23547
        else:
23548
          iprot.skip(ftype)
23549
      else:
23550
        iprot.skip(ftype)
23551
      iprot.readFieldEnd()
23552
    iprot.readStructEnd()
23553
 
23554
  def write(self, oprot):
23555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23557
      return
23558
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
23559
    if self.success is not None:
23560
      oprot.writeFieldBegin('success', TType.LIST, 0)
23561
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 23562
      for iter484 in self.success:
23563
        iter484.write(oprot)
7291 vikram.rag 23564
      oprot.writeListEnd()
23565
      oprot.writeFieldEnd()
23566
    oprot.writeFieldStop()
23567
    oprot.writeStructEnd()
23568
 
23569
  def validate(self):
23570
    return
23571
 
23572
 
23573
  def __repr__(self):
23574
    L = ['%s=%r' % (key, value)
23575
      for key, value in self.__dict__.iteritems()]
23576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23577
 
23578
  def __eq__(self, other):
23579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23580
 
23581
  def __ne__(self, other):
23582
    return not (self == other)
7460 kshitij.so 23583
 
23584
class updateItemInventory_args:
23585
  """
23586
  Attributes:
23587
   - itemId
23588
   - holdInventory
23589
   - defaultInventory
23590
  """
23591
 
23592
  thrift_spec = (
23593
    None, # 0
23594
    (1, TType.I64, 'itemId', None, None, ), # 1
23595
    (2, TType.I64, 'holdInventory', None, None, ), # 2
23596
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
23597
  )
23598
 
23599
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
23600
    self.itemId = itemId
23601
    self.holdInventory = holdInventory
23602
    self.defaultInventory = defaultInventory
23603
 
23604
  def read(self, iprot):
23605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23607
      return
23608
    iprot.readStructBegin()
23609
    while True:
23610
      (fname, ftype, fid) = iprot.readFieldBegin()
23611
      if ftype == TType.STOP:
23612
        break
23613
      if fid == 1:
23614
        if ftype == TType.I64:
23615
          self.itemId = iprot.readI64();
23616
        else:
23617
          iprot.skip(ftype)
23618
      elif fid == 2:
23619
        if ftype == TType.I64:
23620
          self.holdInventory = iprot.readI64();
23621
        else:
23622
          iprot.skip(ftype)
23623
      elif fid == 3:
23624
        if ftype == TType.I64:
23625
          self.defaultInventory = iprot.readI64();
23626
        else:
23627
          iprot.skip(ftype)
23628
      else:
23629
        iprot.skip(ftype)
23630
      iprot.readFieldEnd()
23631
    iprot.readStructEnd()
23632
 
23633
  def write(self, oprot):
23634
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23635
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23636
      return
23637
    oprot.writeStructBegin('updateItemInventory_args')
23638
    if self.itemId is not None:
23639
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23640
      oprot.writeI64(self.itemId)
23641
      oprot.writeFieldEnd()
23642
    if self.holdInventory is not None:
23643
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
23644
      oprot.writeI64(self.holdInventory)
23645
      oprot.writeFieldEnd()
23646
    if self.defaultInventory is not None:
23647
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
23648
      oprot.writeI64(self.defaultInventory)
23649
      oprot.writeFieldEnd()
23650
    oprot.writeFieldStop()
23651
    oprot.writeStructEnd()
23652
 
23653
  def validate(self):
23654
    return
23655
 
23656
 
23657
  def __repr__(self):
23658
    L = ['%s=%r' % (key, value)
23659
      for key, value in self.__dict__.iteritems()]
23660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23661
 
23662
  def __eq__(self, other):
23663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23664
 
23665
  def __ne__(self, other):
23666
    return not (self == other)
23667
 
23668
class updateItemInventory_result:
23669
  """
23670
  Attributes:
23671
   - success
23672
  """
23673
 
23674
  thrift_spec = (
23675
    (0, TType.BOOL, 'success', None, None, ), # 0
23676
  )
23677
 
23678
  def __init__(self, success=None,):
23679
    self.success = success
23680
 
23681
  def read(self, iprot):
23682
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23683
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23684
      return
23685
    iprot.readStructBegin()
23686
    while True:
23687
      (fname, ftype, fid) = iprot.readFieldBegin()
23688
      if ftype == TType.STOP:
23689
        break
23690
      if fid == 0:
23691
        if ftype == TType.BOOL:
23692
          self.success = iprot.readBool();
23693
        else:
23694
          iprot.skip(ftype)
23695
      else:
23696
        iprot.skip(ftype)
23697
      iprot.readFieldEnd()
23698
    iprot.readStructEnd()
23699
 
23700
  def write(self, oprot):
23701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23703
      return
23704
    oprot.writeStructBegin('updateItemInventory_result')
23705
    if self.success is not None:
23706
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23707
      oprot.writeBool(self.success)
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)
7770 kshitij.so 23726
 
23727
class updateTimestampForAmazonFeeds_args:
23728
  """
23729
  Attributes:
23730
   - type
23731
   - sku
23732
   - timestamp
23733
  """
23734
 
23735
  thrift_spec = (
23736
    None, # 0
23737
    (1, TType.STRING, 'type', None, None, ), # 1
23738
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
23739
    (3, TType.I64, 'timestamp', None, None, ), # 3
23740
  )
23741
 
23742
  def __init__(self, type=None, sku=None, timestamp=None,):
23743
    self.type = type
23744
    self.sku = sku
23745
    self.timestamp = timestamp
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.STRING:
23758
          self.type = iprot.readString();
23759
        else:
23760
          iprot.skip(ftype)
23761
      elif fid == 2:
23762
        if ftype == TType.LIST:
23763
          self.sku = []
13493 amit.gupta 23764
          (_etype488, _size485) = iprot.readListBegin()
23765
          for _i489 in xrange(_size485):
23766
            _elem490 = iprot.readI64();
23767
            self.sku.append(_elem490)
7770 kshitij.so 23768
          iprot.readListEnd()
23769
        else:
23770
          iprot.skip(ftype)
23771
      elif fid == 3:
23772
        if ftype == TType.I64:
23773
          self.timestamp = iprot.readI64();
23774
        else:
23775
          iprot.skip(ftype)
23776
      else:
23777
        iprot.skip(ftype)
23778
      iprot.readFieldEnd()
23779
    iprot.readStructEnd()
23780
 
23781
  def write(self, oprot):
23782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23784
      return
23785
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
23786
    if self.type is not None:
23787
      oprot.writeFieldBegin('type', TType.STRING, 1)
23788
      oprot.writeString(self.type)
23789
      oprot.writeFieldEnd()
23790
    if self.sku is not None:
23791
      oprot.writeFieldBegin('sku', TType.LIST, 2)
23792
      oprot.writeListBegin(TType.I64, len(self.sku))
13493 amit.gupta 23793
      for iter491 in self.sku:
23794
        oprot.writeI64(iter491)
7770 kshitij.so 23795
      oprot.writeListEnd()
23796
      oprot.writeFieldEnd()
23797
    if self.timestamp is not None:
23798
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
23799
      oprot.writeI64(self.timestamp)
23800
      oprot.writeFieldEnd()
23801
    oprot.writeFieldStop()
23802
    oprot.writeStructEnd()
23803
 
23804
  def validate(self):
23805
    return
23806
 
23807
 
23808
  def __repr__(self):
23809
    L = ['%s=%r' % (key, value)
23810
      for key, value in self.__dict__.iteritems()]
23811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23812
 
23813
  def __eq__(self, other):
23814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23815
 
23816
  def __ne__(self, other):
23817
    return not (self == other)
23818
 
23819
class updateTimestampForAmazonFeeds_result:
23820
  """
23821
  Attributes:
23822
   - success
23823
  """
23824
 
23825
  thrift_spec = (
23826
    (0, TType.BOOL, 'success', None, None, ), # 0
23827
  )
23828
 
23829
  def __init__(self, success=None,):
23830
    self.success = success
23831
 
23832
  def read(self, iprot):
23833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23835
      return
23836
    iprot.readStructBegin()
23837
    while True:
23838
      (fname, ftype, fid) = iprot.readFieldBegin()
23839
      if ftype == TType.STOP:
23840
        break
23841
      if fid == 0:
23842
        if ftype == TType.BOOL:
23843
          self.success = iprot.readBool();
23844
        else:
23845
          iprot.skip(ftype)
23846
      else:
23847
        iprot.skip(ftype)
23848
      iprot.readFieldEnd()
23849
    iprot.readStructEnd()
23850
 
23851
  def write(self, oprot):
23852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23854
      return
23855
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
23856
    if self.success is not None:
23857
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23858
      oprot.writeBool(self.success)
23859
      oprot.writeFieldEnd()
23860
    oprot.writeFieldStop()
23861
    oprot.writeStructEnd()
23862
 
23863
  def validate(self):
23864
    return
23865
 
23866
 
23867
  def __repr__(self):
23868
    L = ['%s=%r' % (key, value)
23869
      for key, value in self.__dict__.iteritems()]
23870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23871
 
23872
  def __eq__(self, other):
23873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23874
 
23875
  def __ne__(self, other):
23876
    return not (self == other)
7897 amar.kumar 23877
 
23878
class getAllParentCategories_args:
23879
 
23880
  thrift_spec = (
23881
  )
23882
 
23883
  def read(self, iprot):
23884
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23885
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23886
      return
23887
    iprot.readStructBegin()
23888
    while True:
23889
      (fname, ftype, fid) = iprot.readFieldBegin()
23890
      if ftype == TType.STOP:
23891
        break
23892
      else:
23893
        iprot.skip(ftype)
23894
      iprot.readFieldEnd()
23895
    iprot.readStructEnd()
23896
 
23897
  def write(self, oprot):
23898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23900
      return
23901
    oprot.writeStructBegin('getAllParentCategories_args')
23902
    oprot.writeFieldStop()
23903
    oprot.writeStructEnd()
23904
 
23905
  def validate(self):
23906
    return
23907
 
23908
 
23909
  def __repr__(self):
23910
    L = ['%s=%r' % (key, value)
23911
      for key, value in self.__dict__.iteritems()]
23912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23913
 
23914
  def __eq__(self, other):
23915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23916
 
23917
  def __ne__(self, other):
23918
    return not (self == other)
23919
 
23920
class getAllParentCategories_result:
23921
  """
23922
  Attributes:
23923
   - success
23924
  """
23925
 
23926
  thrift_spec = (
23927
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
23928
  )
23929
 
23930
  def __init__(self, success=None,):
23931
    self.success = success
23932
 
23933
  def read(self, iprot):
23934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23936
      return
23937
    iprot.readStructBegin()
23938
    while True:
23939
      (fname, ftype, fid) = iprot.readFieldBegin()
23940
      if ftype == TType.STOP:
23941
        break
23942
      if fid == 0:
23943
        if ftype == TType.LIST:
23944
          self.success = []
13493 amit.gupta 23945
          (_etype495, _size492) = iprot.readListBegin()
23946
          for _i496 in xrange(_size492):
23947
            _elem497 = Category()
23948
            _elem497.read(iprot)
23949
            self.success.append(_elem497)
7897 amar.kumar 23950
          iprot.readListEnd()
23951
        else:
23952
          iprot.skip(ftype)
23953
      else:
23954
        iprot.skip(ftype)
23955
      iprot.readFieldEnd()
23956
    iprot.readStructEnd()
23957
 
23958
  def write(self, oprot):
23959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23961
      return
23962
    oprot.writeStructBegin('getAllParentCategories_result')
23963
    if self.success is not None:
23964
      oprot.writeFieldBegin('success', TType.LIST, 0)
23965
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 23966
      for iter498 in self.success:
23967
        iter498.write(oprot)
7897 amar.kumar 23968
      oprot.writeListEnd()
23969
      oprot.writeFieldEnd()
23970
    oprot.writeFieldStop()
23971
    oprot.writeStructEnd()
23972
 
23973
  def validate(self):
23974
    return
23975
 
23976
 
23977
  def __repr__(self):
23978
    L = ['%s=%r' % (key, value)
23979
      for key, value in self.__dict__.iteritems()]
23980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23981
 
23982
  def __eq__(self, other):
23983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23984
 
23985
  def __ne__(self, other):
23986
    return not (self == other)
7977 kshitij.so 23987
 
23988
class addPageViewEvent_args:
23989
  """
23990
  Attributes:
23991
   - pageViewEvents
23992
  """
23993
 
23994
  thrift_spec = (
23995
    None, # 0
23996
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
23997
  )
23998
 
23999
  def __init__(self, pageViewEvents=None,):
24000
    self.pageViewEvents = pageViewEvents
24001
 
24002
  def read(self, iprot):
24003
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24004
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24005
      return
24006
    iprot.readStructBegin()
24007
    while True:
24008
      (fname, ftype, fid) = iprot.readFieldBegin()
24009
      if ftype == TType.STOP:
24010
        break
24011
      if fid == 1:
24012
        if ftype == TType.STRUCT:
24013
          self.pageViewEvents = PageViewEvents()
24014
          self.pageViewEvents.read(iprot)
24015
        else:
24016
          iprot.skip(ftype)
24017
      else:
24018
        iprot.skip(ftype)
24019
      iprot.readFieldEnd()
24020
    iprot.readStructEnd()
24021
 
24022
  def write(self, oprot):
24023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24025
      return
24026
    oprot.writeStructBegin('addPageViewEvent_args')
24027
    if self.pageViewEvents is not None:
24028
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
24029
      self.pageViewEvents.write(oprot)
24030
      oprot.writeFieldEnd()
24031
    oprot.writeFieldStop()
24032
    oprot.writeStructEnd()
24033
 
24034
  def validate(self):
24035
    return
24036
 
24037
 
24038
  def __repr__(self):
24039
    L = ['%s=%r' % (key, value)
24040
      for key, value in self.__dict__.iteritems()]
24041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24042
 
24043
  def __eq__(self, other):
24044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24045
 
24046
  def __ne__(self, other):
24047
    return not (self == other)
24048
 
24049
class addPageViewEvent_result:
24050
 
24051
  thrift_spec = (
24052
  )
24053
 
24054
  def read(self, iprot):
24055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24057
      return
24058
    iprot.readStructBegin()
24059
    while True:
24060
      (fname, ftype, fid) = iprot.readFieldBegin()
24061
      if ftype == TType.STOP:
24062
        break
24063
      else:
24064
        iprot.skip(ftype)
24065
      iprot.readFieldEnd()
24066
    iprot.readStructEnd()
24067
 
24068
  def write(self, oprot):
24069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24071
      return
24072
    oprot.writeStructBegin('addPageViewEvent_result')
24073
    oprot.writeFieldStop()
24074
    oprot.writeStructEnd()
24075
 
24076
  def validate(self):
24077
    return
24078
 
24079
 
24080
  def __repr__(self):
24081
    L = ['%s=%r' % (key, value)
24082
      for key, value in self.__dict__.iteritems()]
24083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24084
 
24085
  def __eq__(self, other):
24086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24087
 
24088
  def __ne__(self, other):
24089
    return not (self == other)
24090
 
24091
class addCartEvent_args:
24092
  """
24093
  Attributes:
24094
   - cartEvents
24095
  """
24096
 
24097
  thrift_spec = (
24098
    None, # 0
24099
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
24100
  )
24101
 
24102
  def __init__(self, cartEvents=None,):
24103
    self.cartEvents = cartEvents
24104
 
24105
  def read(self, iprot):
24106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24108
      return
24109
    iprot.readStructBegin()
24110
    while True:
24111
      (fname, ftype, fid) = iprot.readFieldBegin()
24112
      if ftype == TType.STOP:
24113
        break
24114
      if fid == 1:
24115
        if ftype == TType.STRUCT:
24116
          self.cartEvents = CartEvents()
24117
          self.cartEvents.read(iprot)
24118
        else:
24119
          iprot.skip(ftype)
24120
      else:
24121
        iprot.skip(ftype)
24122
      iprot.readFieldEnd()
24123
    iprot.readStructEnd()
24124
 
24125
  def write(self, oprot):
24126
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24127
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24128
      return
24129
    oprot.writeStructBegin('addCartEvent_args')
24130
    if self.cartEvents is not None:
24131
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
24132
      self.cartEvents.write(oprot)
24133
      oprot.writeFieldEnd()
24134
    oprot.writeFieldStop()
24135
    oprot.writeStructEnd()
24136
 
24137
  def validate(self):
24138
    return
24139
 
24140
 
24141
  def __repr__(self):
24142
    L = ['%s=%r' % (key, value)
24143
      for key, value in self.__dict__.iteritems()]
24144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24145
 
24146
  def __eq__(self, other):
24147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24148
 
24149
  def __ne__(self, other):
24150
    return not (self == other)
24151
 
24152
class addCartEvent_result:
24153
 
24154
  thrift_spec = (
24155
  )
24156
 
24157
  def read(self, iprot):
24158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24160
      return
24161
    iprot.readStructBegin()
24162
    while True:
24163
      (fname, ftype, fid) = iprot.readFieldBegin()
24164
      if ftype == TType.STOP:
24165
        break
24166
      else:
24167
        iprot.skip(ftype)
24168
      iprot.readFieldEnd()
24169
    iprot.readStructEnd()
24170
 
24171
  def write(self, oprot):
24172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24174
      return
24175
    oprot.writeStructBegin('addCartEvent_result')
24176
    oprot.writeFieldStop()
24177
    oprot.writeStructEnd()
24178
 
24179
  def validate(self):
24180
    return
24181
 
24182
 
24183
  def __repr__(self):
24184
    L = ['%s=%r' % (key, value)
24185
      for key, value in self.__dict__.iteritems()]
24186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24187
 
24188
  def __eq__(self, other):
24189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24190
 
24191
  def __ne__(self, other):
24192
    return not (self == other)
8139 kshitij.so 24193
 
8182 amar.kumar 24194
class addEbayItem_args:
24195
  """
24196
  Attributes:
24197
   - ebayItem
24198
  """
24199
 
24200
  thrift_spec = (
24201
    None, # 0
24202
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24203
  )
24204
 
24205
  def __init__(self, ebayItem=None,):
24206
    self.ebayItem = ebayItem
24207
 
24208
  def read(self, iprot):
24209
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24210
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24211
      return
24212
    iprot.readStructBegin()
24213
    while True:
24214
      (fname, ftype, fid) = iprot.readFieldBegin()
24215
      if ftype == TType.STOP:
24216
        break
24217
      if fid == 1:
24218
        if ftype == TType.STRUCT:
24219
          self.ebayItem = EbayItem()
24220
          self.ebayItem.read(iprot)
24221
        else:
24222
          iprot.skip(ftype)
24223
      else:
24224
        iprot.skip(ftype)
24225
      iprot.readFieldEnd()
24226
    iprot.readStructEnd()
24227
 
24228
  def write(self, oprot):
24229
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24230
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24231
      return
24232
    oprot.writeStructBegin('addEbayItem_args')
24233
    if self.ebayItem is not None:
24234
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24235
      self.ebayItem.write(oprot)
24236
      oprot.writeFieldEnd()
24237
    oprot.writeFieldStop()
24238
    oprot.writeStructEnd()
24239
 
24240
  def validate(self):
24241
    return
24242
 
24243
 
24244
  def __repr__(self):
24245
    L = ['%s=%r' % (key, value)
24246
      for key, value in self.__dict__.iteritems()]
24247
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24248
 
24249
  def __eq__(self, other):
24250
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24251
 
24252
  def __ne__(self, other):
24253
    return not (self == other)
24254
 
24255
class addEbayItem_result:
24256
 
24257
  thrift_spec = (
24258
  )
24259
 
24260
  def read(self, iprot):
24261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24263
      return
24264
    iprot.readStructBegin()
24265
    while True:
24266
      (fname, ftype, fid) = iprot.readFieldBegin()
24267
      if ftype == TType.STOP:
24268
        break
24269
      else:
24270
        iprot.skip(ftype)
24271
      iprot.readFieldEnd()
24272
    iprot.readStructEnd()
24273
 
24274
  def write(self, oprot):
24275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24277
      return
24278
    oprot.writeStructBegin('addEbayItem_result')
24279
    oprot.writeFieldStop()
24280
    oprot.writeStructEnd()
24281
 
24282
  def validate(self):
24283
    return
24284
 
24285
 
24286
  def __repr__(self):
24287
    L = ['%s=%r' % (key, value)
24288
      for key, value in self.__dict__.iteritems()]
24289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24290
 
24291
  def __eq__(self, other):
24292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24293
 
24294
  def __ne__(self, other):
24295
    return not (self == other)
24296
 
24297
class getEbayItem_args:
24298
  """
24299
  Attributes:
24300
   - listingId
24301
  """
24302
 
24303
  thrift_spec = (
24304
    None, # 0
24305
    (1, TType.STRING, 'listingId', None, None, ), # 1
24306
  )
24307
 
24308
  def __init__(self, listingId=None,):
24309
    self.listingId = listingId
24310
 
24311
  def read(self, iprot):
24312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24314
      return
24315
    iprot.readStructBegin()
24316
    while True:
24317
      (fname, ftype, fid) = iprot.readFieldBegin()
24318
      if ftype == TType.STOP:
24319
        break
24320
      if fid == 1:
24321
        if ftype == TType.STRING:
24322
          self.listingId = iprot.readString();
24323
        else:
24324
          iprot.skip(ftype)
24325
      else:
24326
        iprot.skip(ftype)
24327
      iprot.readFieldEnd()
24328
    iprot.readStructEnd()
24329
 
24330
  def write(self, oprot):
24331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24333
      return
24334
    oprot.writeStructBegin('getEbayItem_args')
24335
    if self.listingId is not None:
24336
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
24337
      oprot.writeString(self.listingId)
24338
      oprot.writeFieldEnd()
24339
    oprot.writeFieldStop()
24340
    oprot.writeStructEnd()
24341
 
24342
  def validate(self):
24343
    return
24344
 
24345
 
24346
  def __repr__(self):
24347
    L = ['%s=%r' % (key, value)
24348
      for key, value in self.__dict__.iteritems()]
24349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24350
 
24351
  def __eq__(self, other):
24352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24353
 
24354
  def __ne__(self, other):
24355
    return not (self == other)
24356
 
24357
class getEbayItem_result:
24358
  """
24359
  Attributes:
24360
   - success
24361
  """
24362
 
24363
  thrift_spec = (
24364
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
24365
  )
24366
 
24367
  def __init__(self, success=None,):
24368
    self.success = success
24369
 
24370
  def read(self, iprot):
24371
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24372
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24373
      return
24374
    iprot.readStructBegin()
24375
    while True:
24376
      (fname, ftype, fid) = iprot.readFieldBegin()
24377
      if ftype == TType.STOP:
24378
        break
24379
      if fid == 0:
24380
        if ftype == TType.STRUCT:
24381
          self.success = EbayItem()
24382
          self.success.read(iprot)
24383
        else:
24384
          iprot.skip(ftype)
24385
      else:
24386
        iprot.skip(ftype)
24387
      iprot.readFieldEnd()
24388
    iprot.readStructEnd()
24389
 
24390
  def write(self, oprot):
24391
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24392
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24393
      return
24394
    oprot.writeStructBegin('getEbayItem_result')
24395
    if self.success is not None:
24396
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24397
      self.success.write(oprot)
24398
      oprot.writeFieldEnd()
24399
    oprot.writeFieldStop()
24400
    oprot.writeStructEnd()
24401
 
24402
  def validate(self):
24403
    return
24404
 
24405
 
24406
  def __repr__(self):
24407
    L = ['%s=%r' % (key, value)
24408
      for key, value in self.__dict__.iteritems()]
24409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24410
 
24411
  def __eq__(self, other):
24412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24413
 
24414
  def __ne__(self, other):
24415
    return not (self == other)
24416
 
24417
class updateEbayItem_args:
24418
  """
24419
  Attributes:
24420
   - ebayItem
24421
  """
24422
 
24423
  thrift_spec = (
24424
    None, # 0
24425
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24426
  )
24427
 
24428
  def __init__(self, ebayItem=None,):
24429
    self.ebayItem = ebayItem
24430
 
24431
  def read(self, iprot):
24432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24434
      return
24435
    iprot.readStructBegin()
24436
    while True:
24437
      (fname, ftype, fid) = iprot.readFieldBegin()
24438
      if ftype == TType.STOP:
24439
        break
24440
      if fid == 1:
24441
        if ftype == TType.STRUCT:
24442
          self.ebayItem = EbayItem()
24443
          self.ebayItem.read(iprot)
24444
        else:
24445
          iprot.skip(ftype)
24446
      else:
24447
        iprot.skip(ftype)
24448
      iprot.readFieldEnd()
24449
    iprot.readStructEnd()
24450
 
24451
  def write(self, oprot):
24452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24454
      return
24455
    oprot.writeStructBegin('updateEbayItem_args')
24456
    if self.ebayItem is not None:
24457
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24458
      self.ebayItem.write(oprot)
24459
      oprot.writeFieldEnd()
24460
    oprot.writeFieldStop()
24461
    oprot.writeStructEnd()
24462
 
24463
  def validate(self):
24464
    return
24465
 
24466
 
24467
  def __repr__(self):
24468
    L = ['%s=%r' % (key, value)
24469
      for key, value in self.__dict__.iteritems()]
24470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24471
 
24472
  def __eq__(self, other):
24473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24474
 
24475
  def __ne__(self, other):
24476
    return not (self == other)
24477
 
24478
class updateEbayItem_result:
24479
 
24480
  thrift_spec = (
24481
  )
24482
 
24483
  def read(self, iprot):
24484
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24485
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24486
      return
24487
    iprot.readStructBegin()
24488
    while True:
24489
      (fname, ftype, fid) = iprot.readFieldBegin()
24490
      if ftype == TType.STOP:
24491
        break
24492
      else:
24493
        iprot.skip(ftype)
24494
      iprot.readFieldEnd()
24495
    iprot.readStructEnd()
24496
 
24497
  def write(self, oprot):
24498
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24499
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24500
      return
24501
    oprot.writeStructBegin('updateEbayItem_result')
24502
    oprot.writeFieldStop()
24503
    oprot.writeStructEnd()
24504
 
24505
  def validate(self):
24506
    return
24507
 
24508
 
24509
  def __repr__(self):
24510
    L = ['%s=%r' % (key, value)
24511
      for key, value in self.__dict__.iteritems()]
24512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24513
 
24514
  def __eq__(self, other):
24515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24516
 
24517
  def __ne__(self, other):
24518
    return not (self == other)
24519
 
8139 kshitij.so 24520
class getAmazonListedItems_args:
24521
  """
24522
  Attributes:
24523
   - offset
24524
   - limit
24525
  """
24526
 
24527
  thrift_spec = (
24528
    None, # 0
24529
    (1, TType.I64, 'offset', None, None, ), # 1
24530
    (2, TType.I64, 'limit', None, None, ), # 2
24531
  )
24532
 
24533
  def __init__(self, offset=None, limit=None,):
24534
    self.offset = offset
24535
    self.limit = limit
24536
 
24537
  def read(self, iprot):
24538
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24539
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24540
      return
24541
    iprot.readStructBegin()
24542
    while True:
24543
      (fname, ftype, fid) = iprot.readFieldBegin()
24544
      if ftype == TType.STOP:
24545
        break
24546
      if fid == 1:
24547
        if ftype == TType.I64:
24548
          self.offset = iprot.readI64();
24549
        else:
24550
          iprot.skip(ftype)
24551
      elif fid == 2:
24552
        if ftype == TType.I64:
24553
          self.limit = iprot.readI64();
24554
        else:
24555
          iprot.skip(ftype)
24556
      else:
24557
        iprot.skip(ftype)
24558
      iprot.readFieldEnd()
24559
    iprot.readStructEnd()
24560
 
24561
  def write(self, oprot):
24562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24564
      return
24565
    oprot.writeStructBegin('getAmazonListedItems_args')
24566
    if self.offset is not None:
24567
      oprot.writeFieldBegin('offset', TType.I64, 1)
24568
      oprot.writeI64(self.offset)
24569
      oprot.writeFieldEnd()
24570
    if self.limit is not None:
24571
      oprot.writeFieldBegin('limit', TType.I64, 2)
24572
      oprot.writeI64(self.limit)
24573
      oprot.writeFieldEnd()
24574
    oprot.writeFieldStop()
24575
    oprot.writeStructEnd()
24576
 
24577
  def validate(self):
24578
    return
24579
 
24580
 
24581
  def __repr__(self):
24582
    L = ['%s=%r' % (key, value)
24583
      for key, value in self.__dict__.iteritems()]
24584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24585
 
24586
  def __eq__(self, other):
24587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24588
 
24589
  def __ne__(self, other):
24590
    return not (self == other)
24591
 
24592
class getAmazonListedItems_result:
24593
  """
24594
  Attributes:
24595
   - success
24596
  """
24597
 
24598
  thrift_spec = (
24599
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24600
  )
24601
 
24602
  def __init__(self, success=None,):
24603
    self.success = success
24604
 
24605
  def read(self, iprot):
24606
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24607
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24608
      return
24609
    iprot.readStructBegin()
24610
    while True:
24611
      (fname, ftype, fid) = iprot.readFieldBegin()
24612
      if ftype == TType.STOP:
24613
        break
24614
      if fid == 0:
24615
        if ftype == TType.LIST:
24616
          self.success = []
13493 amit.gupta 24617
          (_etype502, _size499) = iprot.readListBegin()
24618
          for _i503 in xrange(_size499):
24619
            _elem504 = Amazonlisted()
24620
            _elem504.read(iprot)
24621
            self.success.append(_elem504)
8139 kshitij.so 24622
          iprot.readListEnd()
24623
        else:
24624
          iprot.skip(ftype)
24625
      else:
24626
        iprot.skip(ftype)
24627
      iprot.readFieldEnd()
24628
    iprot.readStructEnd()
24629
 
24630
  def write(self, oprot):
24631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24633
      return
24634
    oprot.writeStructBegin('getAmazonListedItems_result')
24635
    if self.success is not None:
24636
      oprot.writeFieldBegin('success', TType.LIST, 0)
24637
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 24638
      for iter505 in self.success:
24639
        iter505.write(oprot)
8139 kshitij.so 24640
      oprot.writeListEnd()
24641
      oprot.writeFieldEnd()
24642
    oprot.writeFieldStop()
24643
    oprot.writeStructEnd()
24644
 
24645
  def validate(self):
24646
    return
24647
 
24648
 
24649
  def __repr__(self):
24650
    L = ['%s=%r' % (key, value)
24651
      for key, value in self.__dict__.iteritems()]
24652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24653
 
24654
  def __eq__(self, other):
24655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24656
 
24657
  def __ne__(self, other):
24658
    return not (self == other)
8168 kshitij.so 24659
 
24660
class updateAmazonAttributesInBulk_args:
24661
  """
24662
  Attributes:
24663
   - amazonlisted
24664
  """
24665
 
24666
  thrift_spec = (
24667
    None, # 0
24668
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
24669
  )
24670
 
24671
  def __init__(self, amazonlisted=None,):
24672
    self.amazonlisted = amazonlisted
24673
 
24674
  def read(self, iprot):
24675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24677
      return
24678
    iprot.readStructBegin()
24679
    while True:
24680
      (fname, ftype, fid) = iprot.readFieldBegin()
24681
      if ftype == TType.STOP:
24682
        break
24683
      if fid == 1:
24684
        if ftype == TType.MAP:
24685
          self.amazonlisted = {}
13493 amit.gupta 24686
          (_ktype507, _vtype508, _size506 ) = iprot.readMapBegin() 
24687
          for _i510 in xrange(_size506):
24688
            _key511 = iprot.readI64();
24689
            _val512 = Amazonlisted()
24690
            _val512.read(iprot)
24691
            self.amazonlisted[_key511] = _val512
8168 kshitij.so 24692
          iprot.readMapEnd()
24693
        else:
24694
          iprot.skip(ftype)
24695
      else:
24696
        iprot.skip(ftype)
24697
      iprot.readFieldEnd()
24698
    iprot.readStructEnd()
24699
 
24700
  def write(self, oprot):
24701
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24702
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24703
      return
24704
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
24705
    if self.amazonlisted is not None:
24706
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
24707
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
13493 amit.gupta 24708
      for kiter513,viter514 in self.amazonlisted.items():
24709
        oprot.writeI64(kiter513)
24710
        viter514.write(oprot)
8168 kshitij.so 24711
      oprot.writeMapEnd()
24712
      oprot.writeFieldEnd()
24713
    oprot.writeFieldStop()
24714
    oprot.writeStructEnd()
24715
 
24716
  def validate(self):
24717
    return
24718
 
24719
 
24720
  def __repr__(self):
24721
    L = ['%s=%r' % (key, value)
24722
      for key, value in self.__dict__.iteritems()]
24723
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24724
 
24725
  def __eq__(self, other):
24726
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24727
 
24728
  def __ne__(self, other):
24729
    return not (self == other)
24730
 
24731
class updateAmazonAttributesInBulk_result:
24732
  """
24733
  Attributes:
24734
   - success
24735
  """
24736
 
24737
  thrift_spec = (
24738
    (0, TType.BOOL, 'success', None, None, ), # 0
24739
  )
24740
 
24741
  def __init__(self, success=None,):
24742
    self.success = success
24743
 
24744
  def read(self, iprot):
24745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24747
      return
24748
    iprot.readStructBegin()
24749
    while True:
24750
      (fname, ftype, fid) = iprot.readFieldBegin()
24751
      if ftype == TType.STOP:
24752
        break
24753
      if fid == 0:
24754
        if ftype == TType.BOOL:
24755
          self.success = iprot.readBool();
24756
        else:
24757
          iprot.skip(ftype)
24758
      else:
24759
        iprot.skip(ftype)
24760
      iprot.readFieldEnd()
24761
    iprot.readStructEnd()
24762
 
24763
  def write(self, oprot):
24764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24766
      return
24767
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
24768
    if self.success is not None:
24769
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24770
      oprot.writeBool(self.success)
24771
      oprot.writeFieldEnd()
24772
    oprot.writeFieldStop()
24773
    oprot.writeStructEnd()
24774
 
24775
  def validate(self):
24776
    return
24777
 
24778
 
24779
  def __repr__(self):
24780
    L = ['%s=%r' % (key, value)
24781
      for key, value in self.__dict__.iteritems()]
24782
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24783
 
24784
  def __eq__(self, other):
24785
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24786
 
24787
  def __ne__(self, other):
24788
    return not (self == other)
8379 vikram.rag 24789
 
24790
class getAllItemstoListOnFba_args:
24791
 
24792
  thrift_spec = (
24793
  )
24794
 
24795
  def read(self, iprot):
24796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24798
      return
24799
    iprot.readStructBegin()
24800
    while True:
24801
      (fname, ftype, fid) = iprot.readFieldBegin()
24802
      if ftype == TType.STOP:
24803
        break
24804
      else:
24805
        iprot.skip(ftype)
24806
      iprot.readFieldEnd()
24807
    iprot.readStructEnd()
24808
 
24809
  def write(self, oprot):
24810
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24811
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24812
      return
24813
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
24814
    oprot.writeFieldStop()
24815
    oprot.writeStructEnd()
24816
 
24817
  def validate(self):
24818
    return
24819
 
24820
 
24821
  def __repr__(self):
24822
    L = ['%s=%r' % (key, value)
24823
      for key, value in self.__dict__.iteritems()]
24824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24825
 
24826
  def __eq__(self, other):
24827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24828
 
24829
  def __ne__(self, other):
24830
    return not (self == other)
24831
 
24832
class getAllItemstoListOnFba_result:
24833
  """
24834
  Attributes:
24835
   - success
24836
  """
24837
 
24838
  thrift_spec = (
24839
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24840
  )
24841
 
24842
  def __init__(self, success=None,):
24843
    self.success = success
24844
 
24845
  def read(self, iprot):
24846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24848
      return
24849
    iprot.readStructBegin()
24850
    while True:
24851
      (fname, ftype, fid) = iprot.readFieldBegin()
24852
      if ftype == TType.STOP:
24853
        break
24854
      if fid == 0:
24855
        if ftype == TType.LIST:
24856
          self.success = []
13493 amit.gupta 24857
          (_etype518, _size515) = iprot.readListBegin()
24858
          for _i519 in xrange(_size515):
24859
            _elem520 = Amazonlisted()
24860
            _elem520.read(iprot)
24861
            self.success.append(_elem520)
8379 vikram.rag 24862
          iprot.readListEnd()
24863
        else:
24864
          iprot.skip(ftype)
24865
      else:
24866
        iprot.skip(ftype)
24867
      iprot.readFieldEnd()
24868
    iprot.readStructEnd()
24869
 
24870
  def write(self, oprot):
24871
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24872
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24873
      return
24874
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
24875
    if self.success is not None:
24876
      oprot.writeFieldBegin('success', TType.LIST, 0)
24877
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 24878
      for iter521 in self.success:
24879
        iter521.write(oprot)
8379 vikram.rag 24880
      oprot.writeListEnd()
24881
      oprot.writeFieldEnd()
24882
    oprot.writeFieldStop()
24883
    oprot.writeStructEnd()
24884
 
24885
  def validate(self):
24886
    return
24887
 
24888
 
24889
  def __repr__(self):
24890
    L = ['%s=%r' % (key, value)
24891
      for key, value in self.__dict__.iteritems()]
24892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24893
 
24894
  def __eq__(self, other):
24895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24896
 
24897
  def __ne__(self, other):
24898
    return not (self == other)
24899
 
24900
class getAllItemstoListOnNonFba_args:
24901
 
24902
  thrift_spec = (
24903
  )
24904
 
24905
  def read(self, iprot):
24906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24908
      return
24909
    iprot.readStructBegin()
24910
    while True:
24911
      (fname, ftype, fid) = iprot.readFieldBegin()
24912
      if ftype == TType.STOP:
24913
        break
24914
      else:
24915
        iprot.skip(ftype)
24916
      iprot.readFieldEnd()
24917
    iprot.readStructEnd()
24918
 
24919
  def write(self, oprot):
24920
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24921
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24922
      return
24923
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
24924
    oprot.writeFieldStop()
24925
    oprot.writeStructEnd()
24926
 
24927
  def validate(self):
24928
    return
24929
 
24930
 
24931
  def __repr__(self):
24932
    L = ['%s=%r' % (key, value)
24933
      for key, value in self.__dict__.iteritems()]
24934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24935
 
24936
  def __eq__(self, other):
24937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24938
 
24939
  def __ne__(self, other):
24940
    return not (self == other)
24941
 
24942
class getAllItemstoListOnNonFba_result:
24943
  """
24944
  Attributes:
24945
   - success
24946
  """
24947
 
24948
  thrift_spec = (
24949
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24950
  )
24951
 
24952
  def __init__(self, success=None,):
24953
    self.success = success
24954
 
24955
  def read(self, iprot):
24956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24958
      return
24959
    iprot.readStructBegin()
24960
    while True:
24961
      (fname, ftype, fid) = iprot.readFieldBegin()
24962
      if ftype == TType.STOP:
24963
        break
24964
      if fid == 0:
24965
        if ftype == TType.LIST:
24966
          self.success = []
13493 amit.gupta 24967
          (_etype525, _size522) = iprot.readListBegin()
24968
          for _i526 in xrange(_size522):
24969
            _elem527 = Amazonlisted()
24970
            _elem527.read(iprot)
24971
            self.success.append(_elem527)
8379 vikram.rag 24972
          iprot.readListEnd()
24973
        else:
24974
          iprot.skip(ftype)
24975
      else:
24976
        iprot.skip(ftype)
24977
      iprot.readFieldEnd()
24978
    iprot.readStructEnd()
24979
 
24980
  def write(self, oprot):
24981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24983
      return
24984
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
24985
    if self.success is not None:
24986
      oprot.writeFieldBegin('success', TType.LIST, 0)
24987
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 24988
      for iter528 in self.success:
24989
        iter528.write(oprot)
8379 vikram.rag 24990
      oprot.writeListEnd()
24991
      oprot.writeFieldEnd()
24992
    oprot.writeFieldStop()
24993
    oprot.writeStructEnd()
24994
 
24995
  def validate(self):
24996
    return
24997
 
24998
 
24999
  def __repr__(self):
25000
    L = ['%s=%r' % (key, value)
25001
      for key, value in self.__dict__.iteritems()]
25002
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25003
 
25004
  def __eq__(self, other):
25005
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25006
 
25007
  def __ne__(self, other):
25008
    return not (self == other)
8616 vikram.rag 25009
 
9242 kshitij.so 25010
class updateAsin_args:
25011
  """
25012
  Attributes:
25013
   - item
25014
  """
8616 vikram.rag 25015
 
25016
  thrift_spec = (
9242 kshitij.so 25017
    None, # 0
25018
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 25019
  )
25020
 
9242 kshitij.so 25021
  def __init__(self, item=None,):
25022
    self.item = item
25023
 
8616 vikram.rag 25024
  def read(self, iprot):
25025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25027
      return
25028
    iprot.readStructBegin()
25029
    while True:
25030
      (fname, ftype, fid) = iprot.readFieldBegin()
25031
      if ftype == TType.STOP:
25032
        break
9242 kshitij.so 25033
      if fid == 1:
25034
        if ftype == TType.MAP:
25035
          self.item = {}
13493 amit.gupta 25036
          (_ktype530, _vtype531, _size529 ) = iprot.readMapBegin() 
25037
          for _i533 in xrange(_size529):
25038
            _key534 = iprot.readI64();
25039
            _val535 = Item()
25040
            _val535.read(iprot)
25041
            self.item[_key534] = _val535
9242 kshitij.so 25042
          iprot.readMapEnd()
25043
        else:
25044
          iprot.skip(ftype)
8616 vikram.rag 25045
      else:
25046
        iprot.skip(ftype)
25047
      iprot.readFieldEnd()
25048
    iprot.readStructEnd()
25049
 
25050
  def write(self, oprot):
25051
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25052
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25053
      return
9242 kshitij.so 25054
    oprot.writeStructBegin('updateAsin_args')
25055
    if self.item is not None:
25056
      oprot.writeFieldBegin('item', TType.MAP, 1)
25057
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
13493 amit.gupta 25058
      for kiter536,viter537 in self.item.items():
25059
        oprot.writeI64(kiter536)
25060
        viter537.write(oprot)
9242 kshitij.so 25061
      oprot.writeMapEnd()
25062
      oprot.writeFieldEnd()
8616 vikram.rag 25063
    oprot.writeFieldStop()
25064
    oprot.writeStructEnd()
25065
 
25066
  def validate(self):
25067
    return
25068
 
25069
 
25070
  def __repr__(self):
25071
    L = ['%s=%r' % (key, value)
25072
      for key, value in self.__dict__.iteritems()]
25073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25074
 
25075
  def __eq__(self, other):
25076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25077
 
25078
  def __ne__(self, other):
25079
    return not (self == other)
25080
 
9242 kshitij.so 25081
class updateAsin_result:
8616 vikram.rag 25082
 
25083
  thrift_spec = (
25084
  )
25085
 
25086
  def read(self, iprot):
25087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25089
      return
25090
    iprot.readStructBegin()
25091
    while True:
25092
      (fname, ftype, fid) = iprot.readFieldBegin()
25093
      if ftype == TType.STOP:
25094
        break
25095
      else:
25096
        iprot.skip(ftype)
25097
      iprot.readFieldEnd()
25098
    iprot.readStructEnd()
25099
 
25100
  def write(self, oprot):
25101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25103
      return
9242 kshitij.so 25104
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 25105
    oprot.writeFieldStop()
25106
    oprot.writeStructEnd()
25107
 
25108
  def validate(self):
25109
    return
25110
 
25111
 
25112
  def __repr__(self):
25113
    L = ['%s=%r' % (key, value)
25114
      for key, value in self.__dict__.iteritems()]
25115
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25116
 
25117
  def __eq__(self, other):
25118
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25119
 
25120
  def __ne__(self, other):
25121
    return not (self == other)
8619 kshitij.so 25122
 
9242 kshitij.so 25123
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 25124
  """
25125
  Attributes:
9242 kshitij.so 25126
   - snapdealitem
8619 kshitij.so 25127
  """
25128
 
9242 kshitij.so 25129
  thrift_spec = None
25130
  def __init__(self, snapdealitem=None,):
25131
    self.snapdealitem = snapdealitem
8619 kshitij.so 25132
 
25133
  def read(self, iprot):
25134
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25135
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25136
      return
25137
    iprot.readStructBegin()
25138
    while True:
25139
      (fname, ftype, fid) = iprot.readFieldBegin()
25140
      if ftype == TType.STOP:
25141
        break
9242 kshitij.so 25142
      if fid == -1:
25143
        if ftype == TType.STRUCT:
25144
          self.snapdealitem = SnapdealItem()
25145
          self.snapdealitem.read(iprot)
8619 kshitij.so 25146
        else:
25147
          iprot.skip(ftype)
25148
      else:
25149
        iprot.skip(ftype)
25150
      iprot.readFieldEnd()
25151
    iprot.readStructEnd()
25152
 
25153
  def write(self, oprot):
25154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25156
      return
9242 kshitij.so 25157
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
25158
    if self.snapdealitem is not None:
25159
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
25160
      self.snapdealitem.write(oprot)
8619 kshitij.so 25161
      oprot.writeFieldEnd()
25162
    oprot.writeFieldStop()
25163
    oprot.writeStructEnd()
25164
 
25165
  def validate(self):
25166
    return
25167
 
25168
 
25169
  def __repr__(self):
25170
    L = ['%s=%r' % (key, value)
25171
      for key, value in self.__dict__.iteritems()]
25172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25173
 
25174
  def __eq__(self, other):
25175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25176
 
25177
  def __ne__(self, other):
25178
    return not (self == other)
25179
 
9242 kshitij.so 25180
class addOrUpdateSnapdealItem_result:
25181
  """
25182
  Attributes:
25183
   - success
25184
  """
8619 kshitij.so 25185
 
25186
  thrift_spec = (
9242 kshitij.so 25187
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 25188
  )
25189
 
9242 kshitij.so 25190
  def __init__(self, success=None,):
25191
    self.success = success
25192
 
8619 kshitij.so 25193
  def read(self, iprot):
25194
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25195
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25196
      return
25197
    iprot.readStructBegin()
25198
    while True:
25199
      (fname, ftype, fid) = iprot.readFieldBegin()
25200
      if ftype == TType.STOP:
25201
        break
9242 kshitij.so 25202
      if fid == 0:
25203
        if ftype == TType.BOOL:
25204
          self.success = iprot.readBool();
25205
        else:
25206
          iprot.skip(ftype)
8619 kshitij.so 25207
      else:
25208
        iprot.skip(ftype)
25209
      iprot.readFieldEnd()
25210
    iprot.readStructEnd()
25211
 
25212
  def write(self, oprot):
25213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25215
      return
9242 kshitij.so 25216
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
25217
    if self.success is not None:
25218
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25219
      oprot.writeBool(self.success)
25220
      oprot.writeFieldEnd()
8619 kshitij.so 25221
    oprot.writeFieldStop()
25222
    oprot.writeStructEnd()
25223
 
25224
  def validate(self):
25225
    return
25226
 
25227
 
25228
  def __repr__(self):
25229
    L = ['%s=%r' % (key, value)
25230
      for key, value in self.__dict__.iteritems()]
25231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25232
 
25233
  def __eq__(self, other):
25234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25235
 
25236
  def __ne__(self, other):
25237
    return not (self == other)
8739 vikram.rag 25238
 
9242 kshitij.so 25239
class getSnapdealItem_args:
8739 vikram.rag 25240
  """
25241
  Attributes:
9242 kshitij.so 25242
   - item_id
8739 vikram.rag 25243
  """
25244
 
9242 kshitij.so 25245
  thrift_spec = (
25246
    None, # 0
25247
    (1, TType.I64, 'item_id', None, None, ), # 1
25248
  )
8739 vikram.rag 25249
 
9242 kshitij.so 25250
  def __init__(self, item_id=None,):
25251
    self.item_id = item_id
25252
 
8739 vikram.rag 25253
  def read(self, iprot):
25254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25256
      return
25257
    iprot.readStructBegin()
25258
    while True:
25259
      (fname, ftype, fid) = iprot.readFieldBegin()
25260
      if ftype == TType.STOP:
25261
        break
9242 kshitij.so 25262
      if fid == 1:
25263
        if ftype == TType.I64:
25264
          self.item_id = iprot.readI64();
8739 vikram.rag 25265
        else:
25266
          iprot.skip(ftype)
25267
      else:
25268
        iprot.skip(ftype)
25269
      iprot.readFieldEnd()
25270
    iprot.readStructEnd()
25271
 
25272
  def write(self, oprot):
25273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25275
      return
9242 kshitij.so 25276
    oprot.writeStructBegin('getSnapdealItem_args')
25277
    if self.item_id is not None:
25278
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25279
      oprot.writeI64(self.item_id)
8739 vikram.rag 25280
      oprot.writeFieldEnd()
25281
    oprot.writeFieldStop()
25282
    oprot.writeStructEnd()
25283
 
25284
  def validate(self):
25285
    return
25286
 
25287
 
25288
  def __repr__(self):
25289
    L = ['%s=%r' % (key, value)
25290
      for key, value in self.__dict__.iteritems()]
25291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25292
 
25293
  def __eq__(self, other):
25294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25295
 
25296
  def __ne__(self, other):
25297
    return not (self == other)
25298
 
9242 kshitij.so 25299
class getSnapdealItem_result:
8739 vikram.rag 25300
  """
25301
  Attributes:
25302
   - success
25303
  """
25304
 
25305
  thrift_spec = (
9242 kshitij.so 25306
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 25307
  )
25308
 
25309
  def __init__(self, success=None,):
25310
    self.success = success
25311
 
25312
  def read(self, iprot):
25313
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25314
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25315
      return
25316
    iprot.readStructBegin()
25317
    while True:
25318
      (fname, ftype, fid) = iprot.readFieldBegin()
25319
      if ftype == TType.STOP:
25320
        break
25321
      if fid == 0:
9242 kshitij.so 25322
        if ftype == TType.STRUCT:
25323
          self.success = SnapdealItem()
25324
          self.success.read(iprot)
8739 vikram.rag 25325
        else:
25326
          iprot.skip(ftype)
25327
      else:
25328
        iprot.skip(ftype)
25329
      iprot.readFieldEnd()
25330
    iprot.readStructEnd()
25331
 
25332
  def write(self, oprot):
25333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25335
      return
9242 kshitij.so 25336
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 25337
    if self.success is not None:
9242 kshitij.so 25338
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25339
      self.success.write(oprot)
8739 vikram.rag 25340
      oprot.writeFieldEnd()
25341
    oprot.writeFieldStop()
25342
    oprot.writeStructEnd()
25343
 
25344
  def validate(self):
25345
    return
25346
 
25347
 
25348
  def __repr__(self):
25349
    L = ['%s=%r' % (key, value)
25350
      for key, value in self.__dict__.iteritems()]
25351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25352
 
25353
  def __eq__(self, other):
25354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25355
 
25356
  def __ne__(self, other):
25357
    return not (self == other)
25358
 
9242 kshitij.so 25359
class getSnapdealItemDetails_args:
8739 vikram.rag 25360
  """
25361
  Attributes:
25362
   - item_id
25363
  """
25364
 
25365
  thrift_spec = (
25366
    None, # 0
25367
    (1, TType.I64, 'item_id', None, None, ), # 1
25368
  )
25369
 
25370
  def __init__(self, item_id=None,):
25371
    self.item_id = item_id
25372
 
25373
  def read(self, iprot):
25374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25376
      return
25377
    iprot.readStructBegin()
25378
    while True:
25379
      (fname, ftype, fid) = iprot.readFieldBegin()
25380
      if ftype == TType.STOP:
25381
        break
25382
      if fid == 1:
25383
        if ftype == TType.I64:
25384
          self.item_id = iprot.readI64();
25385
        else:
25386
          iprot.skip(ftype)
25387
      else:
25388
        iprot.skip(ftype)
25389
      iprot.readFieldEnd()
25390
    iprot.readStructEnd()
25391
 
25392
  def write(self, oprot):
25393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25395
      return
9242 kshitij.so 25396
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 25397
    if self.item_id is not None:
25398
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25399
      oprot.writeI64(self.item_id)
25400
      oprot.writeFieldEnd()
25401
    oprot.writeFieldStop()
25402
    oprot.writeStructEnd()
25403
 
25404
  def validate(self):
25405
    return
25406
 
25407
 
25408
  def __repr__(self):
25409
    L = ['%s=%r' % (key, value)
25410
      for key, value in self.__dict__.iteritems()]
25411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25412
 
25413
  def __eq__(self, other):
25414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25415
 
25416
  def __ne__(self, other):
25417
    return not (self == other)
25418
 
9242 kshitij.so 25419
class getSnapdealItemDetails_result:
8739 vikram.rag 25420
  """
25421
  Attributes:
25422
   - success
25423
  """
25424
 
25425
  thrift_spec = (
9242 kshitij.so 25426
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 25427
  )
25428
 
25429
  def __init__(self, success=None,):
25430
    self.success = success
25431
 
25432
  def read(self, iprot):
25433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25435
      return
25436
    iprot.readStructBegin()
25437
    while True:
25438
      (fname, ftype, fid) = iprot.readFieldBegin()
25439
      if ftype == TType.STOP:
25440
        break
25441
      if fid == 0:
25442
        if ftype == TType.STRUCT:
9242 kshitij.so 25443
          self.success = SnapdealItemDetails()
8739 vikram.rag 25444
          self.success.read(iprot)
25445
        else:
25446
          iprot.skip(ftype)
25447
      else:
25448
        iprot.skip(ftype)
25449
      iprot.readFieldEnd()
25450
    iprot.readStructEnd()
25451
 
25452
  def write(self, oprot):
25453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25455
      return
9242 kshitij.so 25456
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 25457
    if self.success is not None:
25458
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25459
      self.success.write(oprot)
25460
      oprot.writeFieldEnd()
25461
    oprot.writeFieldStop()
25462
    oprot.writeStructEnd()
25463
 
25464
  def validate(self):
25465
    return
25466
 
25467
 
25468
  def __repr__(self):
25469
    L = ['%s=%r' % (key, value)
25470
      for key, value in self.__dict__.iteritems()]
25471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25472
 
25473
  def __eq__(self, other):
25474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25475
 
25476
  def __ne__(self, other):
25477
    return not (self == other)
25478
 
25479
class getAllSnapdealItems_args:
25480
 
25481
  thrift_spec = (
25482
  )
25483
 
25484
  def read(self, iprot):
25485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25487
      return
25488
    iprot.readStructBegin()
25489
    while True:
25490
      (fname, ftype, fid) = iprot.readFieldBegin()
25491
      if ftype == TType.STOP:
25492
        break
25493
      else:
25494
        iprot.skip(ftype)
25495
      iprot.readFieldEnd()
25496
    iprot.readStructEnd()
25497
 
25498
  def write(self, oprot):
25499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25501
      return
25502
    oprot.writeStructBegin('getAllSnapdealItems_args')
25503
    oprot.writeFieldStop()
25504
    oprot.writeStructEnd()
25505
 
25506
  def validate(self):
25507
    return
25508
 
25509
 
25510
  def __repr__(self):
25511
    L = ['%s=%r' % (key, value)
25512
      for key, value in self.__dict__.iteritems()]
25513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25514
 
25515
  def __eq__(self, other):
25516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25517
 
25518
  def __ne__(self, other):
25519
    return not (self == other)
25520
 
25521
class getAllSnapdealItems_result:
25522
  """
25523
  Attributes:
25524
   - success
25525
  """
25526
 
25527
  thrift_spec = (
9242 kshitij.so 25528
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 25529
  )
25530
 
25531
  def __init__(self, success=None,):
25532
    self.success = success
25533
 
25534
  def read(self, iprot):
25535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25537
      return
25538
    iprot.readStructBegin()
25539
    while True:
25540
      (fname, ftype, fid) = iprot.readFieldBegin()
25541
      if ftype == TType.STOP:
25542
        break
25543
      if fid == 0:
25544
        if ftype == TType.LIST:
25545
          self.success = []
13493 amit.gupta 25546
          (_etype541, _size538) = iprot.readListBegin()
25547
          for _i542 in xrange(_size538):
25548
            _elem543 = SnapdealItemDetails()
25549
            _elem543.read(iprot)
25550
            self.success.append(_elem543)
9242 kshitij.so 25551
          iprot.readListEnd()
25552
        else:
25553
          iprot.skip(ftype)
25554
      else:
25555
        iprot.skip(ftype)
25556
      iprot.readFieldEnd()
25557
    iprot.readStructEnd()
25558
 
25559
  def write(self, oprot):
25560
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25561
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25562
      return
25563
    oprot.writeStructBegin('getAllSnapdealItems_result')
25564
    if self.success is not None:
25565
      oprot.writeFieldBegin('success', TType.LIST, 0)
25566
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 25567
      for iter544 in self.success:
25568
        iter544.write(oprot)
9242 kshitij.so 25569
      oprot.writeListEnd()
25570
      oprot.writeFieldEnd()
25571
    oprot.writeFieldStop()
25572
    oprot.writeStructEnd()
25573
 
25574
  def validate(self):
25575
    return
25576
 
25577
 
25578
  def __repr__(self):
25579
    L = ['%s=%r' % (key, value)
25580
      for key, value in self.__dict__.iteritems()]
25581
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25582
 
25583
  def __eq__(self, other):
25584
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25585
 
25586
  def __ne__(self, other):
25587
    return not (self == other)
25588
 
25589
class getSnapdealItems_args:
25590
  """
25591
  Attributes:
25592
   - offset
25593
   - limit
25594
  """
25595
 
25596
  thrift_spec = (
25597
    None, # 0
25598
    (1, TType.I64, 'offset', None, None, ), # 1
25599
    (2, TType.I64, 'limit', None, None, ), # 2
25600
  )
25601
 
25602
  def __init__(self, offset=None, limit=None,):
25603
    self.offset = offset
25604
    self.limit = limit
25605
 
25606
  def read(self, iprot):
25607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25609
      return
25610
    iprot.readStructBegin()
25611
    while True:
25612
      (fname, ftype, fid) = iprot.readFieldBegin()
25613
      if ftype == TType.STOP:
25614
        break
25615
      if fid == 1:
25616
        if ftype == TType.I64:
25617
          self.offset = iprot.readI64();
25618
        else:
25619
          iprot.skip(ftype)
25620
      elif fid == 2:
25621
        if ftype == TType.I64:
25622
          self.limit = iprot.readI64();
25623
        else:
25624
          iprot.skip(ftype)
25625
      else:
25626
        iprot.skip(ftype)
25627
      iprot.readFieldEnd()
25628
    iprot.readStructEnd()
25629
 
25630
  def write(self, oprot):
25631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25633
      return
25634
    oprot.writeStructBegin('getSnapdealItems_args')
25635
    if self.offset is not None:
25636
      oprot.writeFieldBegin('offset', TType.I64, 1)
25637
      oprot.writeI64(self.offset)
25638
      oprot.writeFieldEnd()
25639
    if self.limit is not None:
25640
      oprot.writeFieldBegin('limit', TType.I64, 2)
25641
      oprot.writeI64(self.limit)
25642
      oprot.writeFieldEnd()
25643
    oprot.writeFieldStop()
25644
    oprot.writeStructEnd()
25645
 
25646
  def validate(self):
25647
    return
25648
 
25649
 
25650
  def __repr__(self):
25651
    L = ['%s=%r' % (key, value)
25652
      for key, value in self.__dict__.iteritems()]
25653
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25654
 
25655
  def __eq__(self, other):
25656
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25657
 
25658
  def __ne__(self, other):
25659
    return not (self == other)
25660
 
25661
class getSnapdealItems_result:
25662
  """
25663
  Attributes:
25664
   - success
25665
  """
25666
 
25667
  thrift_spec = (
25668
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25669
  )
25670
 
25671
  def __init__(self, success=None,):
25672
    self.success = success
25673
 
25674
  def read(self, iprot):
25675
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25676
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25677
      return
25678
    iprot.readStructBegin()
25679
    while True:
25680
      (fname, ftype, fid) = iprot.readFieldBegin()
25681
      if ftype == TType.STOP:
25682
        break
25683
      if fid == 0:
25684
        if ftype == TType.LIST:
25685
          self.success = []
13493 amit.gupta 25686
          (_etype548, _size545) = iprot.readListBegin()
25687
          for _i549 in xrange(_size545):
25688
            _elem550 = SnapdealItemDetails()
25689
            _elem550.read(iprot)
25690
            self.success.append(_elem550)
8739 vikram.rag 25691
          iprot.readListEnd()
25692
        else:
25693
          iprot.skip(ftype)
25694
      else:
25695
        iprot.skip(ftype)
25696
      iprot.readFieldEnd()
25697
    iprot.readStructEnd()
25698
 
25699
  def write(self, oprot):
25700
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25701
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25702
      return
9242 kshitij.so 25703
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 25704
    if self.success is not None:
25705
      oprot.writeFieldBegin('success', TType.LIST, 0)
25706
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 25707
      for iter551 in self.success:
25708
        iter551.write(oprot)
8739 vikram.rag 25709
      oprot.writeListEnd()
25710
      oprot.writeFieldEnd()
25711
    oprot.writeFieldStop()
25712
    oprot.writeStructEnd()
25713
 
25714
  def validate(self):
25715
    return
25716
 
25717
 
25718
  def __repr__(self):
25719
    L = ['%s=%r' % (key, value)
25720
      for key, value in self.__dict__.iteritems()]
25721
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25722
 
25723
  def __eq__(self, other):
25724
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25725
 
25726
  def __ne__(self, other):
25727
    return not (self == other)
9242 kshitij.so 25728
 
25729
class searchSnapdealItems_args:
25730
  """
25731
  Attributes:
25732
   - searchTerm
25733
   - offset
25734
   - limit
25735
  """
25736
 
25737
  thrift_spec = (
25738
    None, # 0
25739
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25740
    (2, TType.I64, 'offset', None, None, ), # 2
25741
    (3, TType.I64, 'limit', None, None, ), # 3
25742
  )
25743
 
25744
  def __init__(self, searchTerm=None, offset=None, limit=None,):
25745
    self.searchTerm = searchTerm
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.LIST:
25760
          self.searchTerm = []
13493 amit.gupta 25761
          (_etype555, _size552) = iprot.readListBegin()
25762
          for _i556 in xrange(_size552):
25763
            _elem557 = iprot.readString();
25764
            self.searchTerm.append(_elem557)
9242 kshitij.so 25765
          iprot.readListEnd()
25766
        else:
25767
          iprot.skip(ftype)
25768
      elif fid == 2:
25769
        if ftype == TType.I64:
25770
          self.offset = iprot.readI64();
25771
        else:
25772
          iprot.skip(ftype)
25773
      elif fid == 3:
25774
        if ftype == TType.I64:
25775
          self.limit = iprot.readI64();
25776
        else:
25777
          iprot.skip(ftype)
25778
      else:
25779
        iprot.skip(ftype)
25780
      iprot.readFieldEnd()
25781
    iprot.readStructEnd()
25782
 
25783
  def write(self, oprot):
25784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25786
      return
25787
    oprot.writeStructBegin('searchSnapdealItems_args')
25788
    if self.searchTerm is not None:
25789
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25790
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 25791
      for iter558 in self.searchTerm:
25792
        oprot.writeString(iter558)
9242 kshitij.so 25793
      oprot.writeListEnd()
25794
      oprot.writeFieldEnd()
25795
    if self.offset is not None:
25796
      oprot.writeFieldBegin('offset', TType.I64, 2)
25797
      oprot.writeI64(self.offset)
25798
      oprot.writeFieldEnd()
25799
    if self.limit is not None:
25800
      oprot.writeFieldBegin('limit', TType.I64, 3)
25801
      oprot.writeI64(self.limit)
25802
      oprot.writeFieldEnd()
25803
    oprot.writeFieldStop()
25804
    oprot.writeStructEnd()
25805
 
25806
  def validate(self):
25807
    return
25808
 
25809
 
25810
  def __repr__(self):
25811
    L = ['%s=%r' % (key, value)
25812
      for key, value in self.__dict__.iteritems()]
25813
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25814
 
25815
  def __eq__(self, other):
25816
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25817
 
25818
  def __ne__(self, other):
25819
    return not (self == other)
25820
 
25821
class searchSnapdealItems_result:
25822
  """
25823
  Attributes:
25824
   - success
25825
  """
25826
 
25827
  thrift_spec = (
25828
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25829
  )
25830
 
25831
  def __init__(self, success=None,):
25832
    self.success = success
25833
 
25834
  def read(self, iprot):
25835
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25836
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25837
      return
25838
    iprot.readStructBegin()
25839
    while True:
25840
      (fname, ftype, fid) = iprot.readFieldBegin()
25841
      if ftype == TType.STOP:
25842
        break
25843
      if fid == 0:
25844
        if ftype == TType.LIST:
25845
          self.success = []
13493 amit.gupta 25846
          (_etype562, _size559) = iprot.readListBegin()
25847
          for _i563 in xrange(_size559):
25848
            _elem564 = SnapdealItemDetails()
25849
            _elem564.read(iprot)
25850
            self.success.append(_elem564)
9242 kshitij.so 25851
          iprot.readListEnd()
25852
        else:
25853
          iprot.skip(ftype)
25854
      else:
25855
        iprot.skip(ftype)
25856
      iprot.readFieldEnd()
25857
    iprot.readStructEnd()
25858
 
25859
  def write(self, oprot):
25860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25862
      return
25863
    oprot.writeStructBegin('searchSnapdealItems_result')
25864
    if self.success is not None:
25865
      oprot.writeFieldBegin('success', TType.LIST, 0)
25866
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 25867
      for iter565 in self.success:
25868
        iter565.write(oprot)
9242 kshitij.so 25869
      oprot.writeListEnd()
25870
      oprot.writeFieldEnd()
25871
    oprot.writeFieldStop()
25872
    oprot.writeStructEnd()
25873
 
25874
  def validate(self):
25875
    return
25876
 
25877
 
25878
  def __repr__(self):
25879
    L = ['%s=%r' % (key, value)
25880
      for key, value in self.__dict__.iteritems()]
25881
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25882
 
25883
  def __eq__(self, other):
25884
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25885
 
25886
  def __ne__(self, other):
25887
    return not (self == other)
25888
 
25889
class getCountForSnapdealItems_args:
25890
 
25891
  thrift_spec = (
25892
  )
25893
 
25894
  def read(self, iprot):
25895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25897
      return
25898
    iprot.readStructBegin()
25899
    while True:
25900
      (fname, ftype, fid) = iprot.readFieldBegin()
25901
      if ftype == TType.STOP:
25902
        break
25903
      else:
25904
        iprot.skip(ftype)
25905
      iprot.readFieldEnd()
25906
    iprot.readStructEnd()
25907
 
25908
  def write(self, oprot):
25909
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25910
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25911
      return
25912
    oprot.writeStructBegin('getCountForSnapdealItems_args')
25913
    oprot.writeFieldStop()
25914
    oprot.writeStructEnd()
25915
 
25916
  def validate(self):
25917
    return
25918
 
25919
 
25920
  def __repr__(self):
25921
    L = ['%s=%r' % (key, value)
25922
      for key, value in self.__dict__.iteritems()]
25923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25924
 
25925
  def __eq__(self, other):
25926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25927
 
25928
  def __ne__(self, other):
25929
    return not (self == other)
25930
 
25931
class getCountForSnapdealItems_result:
25932
  """
25933
  Attributes:
25934
   - success
25935
  """
25936
 
25937
  thrift_spec = (
25938
    (0, TType.I64, 'success', None, None, ), # 0
25939
  )
25940
 
25941
  def __init__(self, success=None,):
25942
    self.success = success
25943
 
25944
  def read(self, iprot):
25945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25947
      return
25948
    iprot.readStructBegin()
25949
    while True:
25950
      (fname, ftype, fid) = iprot.readFieldBegin()
25951
      if ftype == TType.STOP:
25952
        break
25953
      if fid == 0:
25954
        if ftype == TType.I64:
25955
          self.success = iprot.readI64();
25956
        else:
25957
          iprot.skip(ftype)
25958
      else:
25959
        iprot.skip(ftype)
25960
      iprot.readFieldEnd()
25961
    iprot.readStructEnd()
25962
 
25963
  def write(self, oprot):
25964
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25965
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25966
      return
25967
    oprot.writeStructBegin('getCountForSnapdealItems_result')
25968
    if self.success is not None:
25969
      oprot.writeFieldBegin('success', TType.I64, 0)
25970
      oprot.writeI64(self.success)
25971
      oprot.writeFieldEnd()
25972
    oprot.writeFieldStop()
25973
    oprot.writeStructEnd()
25974
 
25975
  def validate(self):
25976
    return
25977
 
25978
 
25979
  def __repr__(self):
25980
    L = ['%s=%r' % (key, value)
25981
      for key, value in self.__dict__.iteritems()]
25982
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25983
 
25984
  def __eq__(self, other):
25985
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25986
 
25987
  def __ne__(self, other):
25988
    return not (self == other)
25989
 
25990
class getSnapdealSearchResultCount_args:
25991
  """
25992
  Attributes:
25993
   - searchTerm
25994
  """
25995
 
25996
  thrift_spec = (
25997
    None, # 0
25998
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25999
  )
26000
 
26001
  def __init__(self, searchTerm=None,):
26002
    self.searchTerm = searchTerm
26003
 
26004
  def read(self, iprot):
26005
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26006
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26007
      return
26008
    iprot.readStructBegin()
26009
    while True:
26010
      (fname, ftype, fid) = iprot.readFieldBegin()
26011
      if ftype == TType.STOP:
26012
        break
26013
      if fid == 1:
26014
        if ftype == TType.LIST:
26015
          self.searchTerm = []
13493 amit.gupta 26016
          (_etype569, _size566) = iprot.readListBegin()
26017
          for _i570 in xrange(_size566):
26018
            _elem571 = iprot.readString();
26019
            self.searchTerm.append(_elem571)
9242 kshitij.so 26020
          iprot.readListEnd()
26021
        else:
26022
          iprot.skip(ftype)
26023
      else:
26024
        iprot.skip(ftype)
26025
      iprot.readFieldEnd()
26026
    iprot.readStructEnd()
26027
 
26028
  def write(self, oprot):
26029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26031
      return
26032
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
26033
    if self.searchTerm is not None:
26034
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
26035
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 26036
      for iter572 in self.searchTerm:
26037
        oprot.writeString(iter572)
9242 kshitij.so 26038
      oprot.writeListEnd()
26039
      oprot.writeFieldEnd()
26040
    oprot.writeFieldStop()
26041
    oprot.writeStructEnd()
26042
 
26043
  def validate(self):
26044
    return
26045
 
26046
 
26047
  def __repr__(self):
26048
    L = ['%s=%r' % (key, value)
26049
      for key, value in self.__dict__.iteritems()]
26050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26051
 
26052
  def __eq__(self, other):
26053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26054
 
26055
  def __ne__(self, other):
26056
    return not (self == other)
26057
 
26058
class getSnapdealSearchResultCount_result:
26059
  """
26060
  Attributes:
26061
   - success
26062
  """
26063
 
26064
  thrift_spec = (
26065
    (0, TType.I64, 'success', None, None, ), # 0
26066
  )
26067
 
26068
  def __init__(self, success=None,):
26069
    self.success = success
26070
 
26071
  def read(self, iprot):
26072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26074
      return
26075
    iprot.readStructBegin()
26076
    while True:
26077
      (fname, ftype, fid) = iprot.readFieldBegin()
26078
      if ftype == TType.STOP:
26079
        break
26080
      if fid == 0:
26081
        if ftype == TType.I64:
26082
          self.success = iprot.readI64();
26083
        else:
26084
          iprot.skip(ftype)
26085
      else:
26086
        iprot.skip(ftype)
26087
      iprot.readFieldEnd()
26088
    iprot.readStructEnd()
26089
 
26090
  def write(self, oprot):
26091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26093
      return
26094
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
26095
    if self.success is not None:
26096
      oprot.writeFieldBegin('success', TType.I64, 0)
26097
      oprot.writeI64(self.success)
26098
      oprot.writeFieldEnd()
26099
    oprot.writeFieldStop()
26100
    oprot.writeStructEnd()
26101
 
26102
  def validate(self):
26103
    return
26104
 
26105
 
26106
  def __repr__(self):
26107
    L = ['%s=%r' % (key, value)
26108
      for key, value in self.__dict__.iteritems()]
26109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26110
 
26111
  def __eq__(self, other):
26112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26113
 
26114
  def __ne__(self, other):
26115
    return not (self == other)
9299 kshitij.so 26116
 
26117
class getPrefferedInsurerForItem_args:
26118
  """
26119
  Attributes:
26120
   - itemId
26121
   - insurerType
26122
  """
26123
 
26124
  thrift_spec = (
26125
    None, # 0
26126
    (1, TType.I64, 'itemId', None, None, ), # 1
26127
    (2, TType.I32, 'insurerType', None, None, ), # 2
26128
  )
26129
 
26130
  def __init__(self, itemId=None, insurerType=None,):
26131
    self.itemId = itemId
26132
    self.insurerType = insurerType
26133
 
26134
  def read(self, iprot):
26135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26137
      return
26138
    iprot.readStructBegin()
26139
    while True:
26140
      (fname, ftype, fid) = iprot.readFieldBegin()
26141
      if ftype == TType.STOP:
26142
        break
26143
      if fid == 1:
26144
        if ftype == TType.I64:
26145
          self.itemId = iprot.readI64();
26146
        else:
26147
          iprot.skip(ftype)
26148
      elif fid == 2:
26149
        if ftype == TType.I32:
26150
          self.insurerType = iprot.readI32();
26151
        else:
26152
          iprot.skip(ftype)
26153
      else:
26154
        iprot.skip(ftype)
26155
      iprot.readFieldEnd()
26156
    iprot.readStructEnd()
26157
 
26158
  def write(self, oprot):
26159
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26160
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26161
      return
26162
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
26163
    if self.itemId is not None:
26164
      oprot.writeFieldBegin('itemId', TType.I64, 1)
26165
      oprot.writeI64(self.itemId)
26166
      oprot.writeFieldEnd()
26167
    if self.insurerType is not None:
26168
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
26169
      oprot.writeI32(self.insurerType)
26170
      oprot.writeFieldEnd()
26171
    oprot.writeFieldStop()
26172
    oprot.writeStructEnd()
26173
 
26174
  def validate(self):
26175
    return
26176
 
26177
 
26178
  def __repr__(self):
26179
    L = ['%s=%r' % (key, value)
26180
      for key, value in self.__dict__.iteritems()]
26181
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26182
 
26183
  def __eq__(self, other):
26184
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26185
 
26186
  def __ne__(self, other):
26187
    return not (self == other)
26188
 
26189
class getPrefferedInsurerForItem_result:
26190
  """
26191
  Attributes:
26192
   - success
26193
  """
26194
 
26195
  thrift_spec = (
26196
    (0, TType.I64, 'success', None, None, ), # 0
26197
  )
26198
 
26199
  def __init__(self, success=None,):
26200
    self.success = success
26201
 
26202
  def read(self, iprot):
26203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26205
      return
26206
    iprot.readStructBegin()
26207
    while True:
26208
      (fname, ftype, fid) = iprot.readFieldBegin()
26209
      if ftype == TType.STOP:
26210
        break
26211
      if fid == 0:
26212
        if ftype == TType.I64:
26213
          self.success = iprot.readI64();
26214
        else:
26215
          iprot.skip(ftype)
26216
      else:
26217
        iprot.skip(ftype)
26218
      iprot.readFieldEnd()
26219
    iprot.readStructEnd()
26220
 
26221
  def write(self, oprot):
26222
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26223
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26224
      return
26225
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
26226
    if self.success is not None:
26227
      oprot.writeFieldBegin('success', TType.I64, 0)
26228
      oprot.writeI64(self.success)
26229
      oprot.writeFieldEnd()
26230
    oprot.writeFieldStop()
26231
    oprot.writeStructEnd()
26232
 
26233
  def validate(self):
26234
    return
26235
 
26236
 
26237
  def __repr__(self):
26238
    L = ['%s=%r' % (key, value)
26239
      for key, value in self.__dict__.iteritems()]
26240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26241
 
26242
  def __eq__(self, other):
26243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26244
 
26245
  def __ne__(self, other):
26246
    return not (self == other)
9456 vikram.rag 26247
 
26248
class getSnapdealItembySkuAtSnapdeal_args:
26249
  """
26250
  Attributes:
26251
   - skuAtSnapdeal
26252
  """
26253
 
26254
  thrift_spec = None
26255
  def __init__(self, skuAtSnapdeal=None,):
26256
    self.skuAtSnapdeal = skuAtSnapdeal
26257
 
26258
  def read(self, iprot):
26259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26261
      return
26262
    iprot.readStructBegin()
26263
    while True:
26264
      (fname, ftype, fid) = iprot.readFieldBegin()
26265
      if ftype == TType.STOP:
26266
        break
26267
      if fid == -1:
26268
        if ftype == TType.STRING:
26269
          self.skuAtSnapdeal = iprot.readString();
26270
        else:
26271
          iprot.skip(ftype)
26272
      else:
26273
        iprot.skip(ftype)
26274
      iprot.readFieldEnd()
26275
    iprot.readStructEnd()
26276
 
26277
  def write(self, oprot):
26278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26280
      return
26281
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
26282
    if self.skuAtSnapdeal is not None:
26283
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
26284
      oprot.writeString(self.skuAtSnapdeal)
26285
      oprot.writeFieldEnd()
26286
    oprot.writeFieldStop()
26287
    oprot.writeStructEnd()
26288
 
26289
  def validate(self):
26290
    return
26291
 
26292
 
26293
  def __repr__(self):
26294
    L = ['%s=%r' % (key, value)
26295
      for key, value in self.__dict__.iteritems()]
26296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26297
 
26298
  def __eq__(self, other):
26299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26300
 
26301
  def __ne__(self, other):
26302
    return not (self == other)
26303
 
26304
class getSnapdealItembySkuAtSnapdeal_result:
26305
  """
26306
  Attributes:
26307
   - success
26308
  """
26309
 
26310
  thrift_spec = (
26311
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
26312
  )
26313
 
26314
  def __init__(self, success=None,):
26315
    self.success = success
26316
 
26317
  def read(self, iprot):
26318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26320
      return
26321
    iprot.readStructBegin()
26322
    while True:
26323
      (fname, ftype, fid) = iprot.readFieldBegin()
26324
      if ftype == TType.STOP:
26325
        break
26326
      if fid == 0:
26327
        if ftype == TType.STRUCT:
26328
          self.success = SnapdealItem()
26329
          self.success.read(iprot)
26330
        else:
26331
          iprot.skip(ftype)
26332
      else:
26333
        iprot.skip(ftype)
26334
      iprot.readFieldEnd()
26335
    iprot.readStructEnd()
26336
 
26337
  def write(self, oprot):
26338
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26339
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26340
      return
26341
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
26342
    if self.success is not None:
26343
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26344
      self.success.write(oprot)
26345
      oprot.writeFieldEnd()
26346
    oprot.writeFieldStop()
26347
    oprot.writeStructEnd()
26348
 
26349
  def validate(self):
26350
    return
26351
 
26352
 
26353
  def __repr__(self):
26354
    L = ['%s=%r' % (key, value)
26355
      for key, value in self.__dict__.iteritems()]
26356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26357
 
26358
  def __eq__(self, other):
26359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26360
 
26361
  def __ne__(self, other):
26362
    return not (self == other)
9621 manish.sha 26363
 
26364
class getProductFeedSubmit_args:
26365
  """
26366
  Attributes:
26367
   - catalogItemId
26368
  """
26369
 
26370
  thrift_spec = (
26371
    None, # 0
26372
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26373
  )
26374
 
26375
  def __init__(self, catalogItemId=None,):
26376
    self.catalogItemId = catalogItemId
26377
 
26378
  def read(self, iprot):
26379
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26380
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26381
      return
26382
    iprot.readStructBegin()
26383
    while True:
26384
      (fname, ftype, fid) = iprot.readFieldBegin()
26385
      if ftype == TType.STOP:
26386
        break
26387
      if fid == 1:
26388
        if ftype == TType.I64:
26389
          self.catalogItemId = iprot.readI64();
26390
        else:
26391
          iprot.skip(ftype)
26392
      else:
26393
        iprot.skip(ftype)
26394
      iprot.readFieldEnd()
26395
    iprot.readStructEnd()
26396
 
26397
  def write(self, oprot):
26398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26400
      return
26401
    oprot.writeStructBegin('getProductFeedSubmit_args')
26402
    if self.catalogItemId is not None:
26403
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26404
      oprot.writeI64(self.catalogItemId)
26405
      oprot.writeFieldEnd()
26406
    oprot.writeFieldStop()
26407
    oprot.writeStructEnd()
26408
 
26409
  def validate(self):
26410
    return
26411
 
26412
 
26413
  def __repr__(self):
26414
    L = ['%s=%r' % (key, value)
26415
      for key, value in self.__dict__.iteritems()]
26416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26417
 
26418
  def __eq__(self, other):
26419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26420
 
26421
  def __ne__(self, other):
26422
    return not (self == other)
26423
 
26424
class getProductFeedSubmit_result:
26425
  """
26426
  Attributes:
26427
   - success
26428
   - cex
26429
  """
26430
 
26431
  thrift_spec = (
26432
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
26433
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26434
  )
26435
 
26436
  def __init__(self, success=None, cex=None,):
26437
    self.success = success
26438
    self.cex = cex
26439
 
26440
  def read(self, iprot):
26441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26443
      return
26444
    iprot.readStructBegin()
26445
    while True:
26446
      (fname, ftype, fid) = iprot.readFieldBegin()
26447
      if ftype == TType.STOP:
26448
        break
26449
      if fid == 0:
26450
        if ftype == TType.STRUCT:
26451
          self.success = ProductFeedSubmit()
26452
          self.success.read(iprot)
26453
        else:
26454
          iprot.skip(ftype)
26455
      elif fid == 1:
26456
        if ftype == TType.STRUCT:
26457
          self.cex = CatalogServiceException()
26458
          self.cex.read(iprot)
26459
        else:
26460
          iprot.skip(ftype)
26461
      else:
26462
        iprot.skip(ftype)
26463
      iprot.readFieldEnd()
26464
    iprot.readStructEnd()
26465
 
26466
  def write(self, oprot):
26467
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26468
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26469
      return
26470
    oprot.writeStructBegin('getProductFeedSubmit_result')
26471
    if self.success is not None:
26472
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26473
      self.success.write(oprot)
26474
      oprot.writeFieldEnd()
26475
    if self.cex is not None:
26476
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26477
      self.cex.write(oprot)
26478
      oprot.writeFieldEnd()
26479
    oprot.writeFieldStop()
26480
    oprot.writeStructEnd()
26481
 
26482
  def validate(self):
26483
    return
26484
 
26485
 
26486
  def __repr__(self):
26487
    L = ['%s=%r' % (key, value)
26488
      for key, value in self.__dict__.iteritems()]
26489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26490
 
26491
  def __eq__(self, other):
26492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26493
 
26494
  def __ne__(self, other):
26495
    return not (self == other)
26496
 
26497
class addProductFeedSubmit_args:
26498
  """
26499
  Attributes:
26500
   - productFeedSubmit
26501
  """
26502
 
26503
  thrift_spec = (
26504
    None, # 0
26505
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26506
  )
26507
 
26508
  def __init__(self, productFeedSubmit=None,):
26509
    self.productFeedSubmit = productFeedSubmit
26510
 
26511
  def read(self, iprot):
26512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26514
      return
26515
    iprot.readStructBegin()
26516
    while True:
26517
      (fname, ftype, fid) = iprot.readFieldBegin()
26518
      if ftype == TType.STOP:
26519
        break
26520
      if fid == 1:
26521
        if ftype == TType.STRUCT:
26522
          self.productFeedSubmit = ProductFeedSubmit()
26523
          self.productFeedSubmit.read(iprot)
26524
        else:
26525
          iprot.skip(ftype)
26526
      else:
26527
        iprot.skip(ftype)
26528
      iprot.readFieldEnd()
26529
    iprot.readStructEnd()
26530
 
26531
  def write(self, oprot):
26532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26534
      return
26535
    oprot.writeStructBegin('addProductFeedSubmit_args')
26536
    if self.productFeedSubmit is not None:
26537
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26538
      self.productFeedSubmit.write(oprot)
26539
      oprot.writeFieldEnd()
26540
    oprot.writeFieldStop()
26541
    oprot.writeStructEnd()
26542
 
26543
  def validate(self):
26544
    return
26545
 
26546
 
26547
  def __repr__(self):
26548
    L = ['%s=%r' % (key, value)
26549
      for key, value in self.__dict__.iteritems()]
26550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26551
 
26552
  def __eq__(self, other):
26553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26554
 
26555
  def __ne__(self, other):
26556
    return not (self == other)
26557
 
26558
class addProductFeedSubmit_result:
26559
  """
26560
  Attributes:
26561
   - success
26562
   - cex
26563
  """
26564
 
26565
  thrift_spec = (
26566
    (0, TType.BOOL, 'success', None, None, ), # 0
26567
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26568
  )
26569
 
26570
  def __init__(self, success=None, cex=None,):
26571
    self.success = success
26572
    self.cex = cex
26573
 
26574
  def read(self, iprot):
26575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26577
      return
26578
    iprot.readStructBegin()
26579
    while True:
26580
      (fname, ftype, fid) = iprot.readFieldBegin()
26581
      if ftype == TType.STOP:
26582
        break
26583
      if fid == 0:
26584
        if ftype == TType.BOOL:
26585
          self.success = iprot.readBool();
26586
        else:
26587
          iprot.skip(ftype)
26588
      elif fid == 1:
26589
        if ftype == TType.STRUCT:
26590
          self.cex = CatalogServiceException()
26591
          self.cex.read(iprot)
26592
        else:
26593
          iprot.skip(ftype)
26594
      else:
26595
        iprot.skip(ftype)
26596
      iprot.readFieldEnd()
26597
    iprot.readStructEnd()
26598
 
26599
  def write(self, oprot):
26600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26602
      return
26603
    oprot.writeStructBegin('addProductFeedSubmit_result')
26604
    if self.success is not None:
26605
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26606
      oprot.writeBool(self.success)
26607
      oprot.writeFieldEnd()
26608
    if self.cex is not None:
26609
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26610
      self.cex.write(oprot)
26611
      oprot.writeFieldEnd()
26612
    oprot.writeFieldStop()
26613
    oprot.writeStructEnd()
26614
 
26615
  def validate(self):
26616
    return
26617
 
26618
 
26619
  def __repr__(self):
26620
    L = ['%s=%r' % (key, value)
26621
      for key, value in self.__dict__.iteritems()]
26622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26623
 
26624
  def __eq__(self, other):
26625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26626
 
26627
  def __ne__(self, other):
26628
    return not (self == other)
26629
 
26630
class updateProductFeedSubmit_args:
26631
  """
26632
  Attributes:
26633
   - productFeedSubmit
26634
  """
26635
 
26636
  thrift_spec = (
26637
    None, # 0
26638
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26639
  )
26640
 
26641
  def __init__(self, productFeedSubmit=None,):
26642
    self.productFeedSubmit = productFeedSubmit
26643
 
26644
  def read(self, iprot):
26645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26647
      return
26648
    iprot.readStructBegin()
26649
    while True:
26650
      (fname, ftype, fid) = iprot.readFieldBegin()
26651
      if ftype == TType.STOP:
26652
        break
26653
      if fid == 1:
26654
        if ftype == TType.STRUCT:
26655
          self.productFeedSubmit = ProductFeedSubmit()
26656
          self.productFeedSubmit.read(iprot)
26657
        else:
26658
          iprot.skip(ftype)
26659
      else:
26660
        iprot.skip(ftype)
26661
      iprot.readFieldEnd()
26662
    iprot.readStructEnd()
26663
 
26664
  def write(self, oprot):
26665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26667
      return
26668
    oprot.writeStructBegin('updateProductFeedSubmit_args')
26669
    if self.productFeedSubmit is not None:
26670
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26671
      self.productFeedSubmit.write(oprot)
26672
      oprot.writeFieldEnd()
26673
    oprot.writeFieldStop()
26674
    oprot.writeStructEnd()
26675
 
26676
  def validate(self):
26677
    return
26678
 
26679
 
26680
  def __repr__(self):
26681
    L = ['%s=%r' % (key, value)
26682
      for key, value in self.__dict__.iteritems()]
26683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26684
 
26685
  def __eq__(self, other):
26686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26687
 
26688
  def __ne__(self, other):
26689
    return not (self == other)
26690
 
26691
class updateProductFeedSubmit_result:
26692
  """
26693
  Attributes:
26694
   - success
26695
   - cex
26696
  """
26697
 
26698
  thrift_spec = (
26699
    (0, TType.BOOL, 'success', None, None, ), # 0
26700
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26701
  )
26702
 
26703
  def __init__(self, success=None, cex=None,):
26704
    self.success = success
26705
    self.cex = cex
26706
 
26707
  def read(self, iprot):
26708
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26709
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26710
      return
26711
    iprot.readStructBegin()
26712
    while True:
26713
      (fname, ftype, fid) = iprot.readFieldBegin()
26714
      if ftype == TType.STOP:
26715
        break
26716
      if fid == 0:
26717
        if ftype == TType.BOOL:
26718
          self.success = iprot.readBool();
26719
        else:
26720
          iprot.skip(ftype)
26721
      elif fid == 1:
26722
        if ftype == TType.STRUCT:
26723
          self.cex = CatalogServiceException()
26724
          self.cex.read(iprot)
26725
        else:
26726
          iprot.skip(ftype)
26727
      else:
26728
        iprot.skip(ftype)
26729
      iprot.readFieldEnd()
26730
    iprot.readStructEnd()
26731
 
26732
  def write(self, oprot):
26733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26735
      return
26736
    oprot.writeStructBegin('updateProductFeedSubmit_result')
26737
    if self.success is not None:
26738
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26739
      oprot.writeBool(self.success)
26740
      oprot.writeFieldEnd()
26741
    if self.cex is not None:
26742
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26743
      self.cex.write(oprot)
26744
      oprot.writeFieldEnd()
26745
    oprot.writeFieldStop()
26746
    oprot.writeStructEnd()
26747
 
26748
  def validate(self):
26749
    return
26750
 
26751
 
26752
  def __repr__(self):
26753
    L = ['%s=%r' % (key, value)
26754
      for key, value in self.__dict__.iteritems()]
26755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26756
 
26757
  def __eq__(self, other):
26758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26759
 
26760
  def __ne__(self, other):
26761
    return not (self == other)
26762
 
26763
class deleteProductFeedSubmit_args:
26764
  """
26765
  Attributes:
26766
   - catalogItemId
26767
  """
26768
 
26769
  thrift_spec = (
26770
    None, # 0
26771
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26772
  )
26773
 
26774
  def __init__(self, catalogItemId=None,):
26775
    self.catalogItemId = catalogItemId
26776
 
26777
  def read(self, iprot):
26778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26780
      return
26781
    iprot.readStructBegin()
26782
    while True:
26783
      (fname, ftype, fid) = iprot.readFieldBegin()
26784
      if ftype == TType.STOP:
26785
        break
26786
      if fid == 1:
26787
        if ftype == TType.I64:
26788
          self.catalogItemId = iprot.readI64();
26789
        else:
26790
          iprot.skip(ftype)
26791
      else:
26792
        iprot.skip(ftype)
26793
      iprot.readFieldEnd()
26794
    iprot.readStructEnd()
26795
 
26796
  def write(self, oprot):
26797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26799
      return
26800
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
26801
    if self.catalogItemId is not None:
26802
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26803
      oprot.writeI64(self.catalogItemId)
26804
      oprot.writeFieldEnd()
26805
    oprot.writeFieldStop()
26806
    oprot.writeStructEnd()
26807
 
26808
  def validate(self):
26809
    return
26810
 
26811
 
26812
  def __repr__(self):
26813
    L = ['%s=%r' % (key, value)
26814
      for key, value in self.__dict__.iteritems()]
26815
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26816
 
26817
  def __eq__(self, other):
26818
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26819
 
26820
  def __ne__(self, other):
26821
    return not (self == other)
26822
 
26823
class deleteProductFeedSubmit_result:
26824
  """
26825
  Attributes:
26826
   - success
26827
   - cex
26828
  """
26829
 
26830
  thrift_spec = (
26831
    (0, TType.BOOL, 'success', None, None, ), # 0
26832
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26833
  )
26834
 
26835
  def __init__(self, success=None, cex=None,):
26836
    self.success = success
26837
    self.cex = cex
26838
 
26839
  def read(self, iprot):
26840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26842
      return
26843
    iprot.readStructBegin()
26844
    while True:
26845
      (fname, ftype, fid) = iprot.readFieldBegin()
26846
      if ftype == TType.STOP:
26847
        break
26848
      if fid == 0:
26849
        if ftype == TType.BOOL:
26850
          self.success = iprot.readBool();
26851
        else:
26852
          iprot.skip(ftype)
26853
      elif fid == 1:
26854
        if ftype == TType.STRUCT:
26855
          self.cex = CatalogServiceException()
26856
          self.cex.read(iprot)
26857
        else:
26858
          iprot.skip(ftype)
26859
      else:
26860
        iprot.skip(ftype)
26861
      iprot.readFieldEnd()
26862
    iprot.readStructEnd()
26863
 
26864
  def write(self, oprot):
26865
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26866
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26867
      return
26868
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
26869
    if self.success is not None:
26870
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26871
      oprot.writeBool(self.success)
26872
      oprot.writeFieldEnd()
26873
    if self.cex is not None:
26874
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26875
      self.cex.write(oprot)
26876
      oprot.writeFieldEnd()
26877
    oprot.writeFieldStop()
26878
    oprot.writeStructEnd()
26879
 
26880
  def validate(self):
26881
    return
26882
 
26883
 
26884
  def __repr__(self):
26885
    L = ['%s=%r' % (key, value)
26886
      for key, value in self.__dict__.iteritems()]
26887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26888
 
26889
  def __eq__(self, other):
26890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26891
 
26892
  def __ne__(self, other):
26893
    return not (self == other)
26894
 
26895
class getAllProductFeedSubmit_args:
26896
 
26897
  thrift_spec = (
26898
  )
26899
 
26900
  def read(self, iprot):
26901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26903
      return
26904
    iprot.readStructBegin()
26905
    while True:
26906
      (fname, ftype, fid) = iprot.readFieldBegin()
26907
      if ftype == TType.STOP:
26908
        break
26909
      else:
26910
        iprot.skip(ftype)
26911
      iprot.readFieldEnd()
26912
    iprot.readStructEnd()
26913
 
26914
  def write(self, oprot):
26915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26917
      return
26918
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
26919
    oprot.writeFieldStop()
26920
    oprot.writeStructEnd()
26921
 
26922
  def validate(self):
26923
    return
26924
 
26925
 
26926
  def __repr__(self):
26927
    L = ['%s=%r' % (key, value)
26928
      for key, value in self.__dict__.iteritems()]
26929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26930
 
26931
  def __eq__(self, other):
26932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26933
 
26934
  def __ne__(self, other):
26935
    return not (self == other)
26936
 
26937
class getAllProductFeedSubmit_result:
26938
  """
26939
  Attributes:
26940
   - success
26941
   - cex
26942
  """
26943
 
26944
  thrift_spec = (
26945
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
26946
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26947
  )
26948
 
26949
  def __init__(self, success=None, cex=None,):
26950
    self.success = success
26951
    self.cex = cex
26952
 
26953
  def read(self, iprot):
26954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26956
      return
26957
    iprot.readStructBegin()
26958
    while True:
26959
      (fname, ftype, fid) = iprot.readFieldBegin()
26960
      if ftype == TType.STOP:
26961
        break
26962
      if fid == 0:
26963
        if ftype == TType.LIST:
26964
          self.success = []
13493 amit.gupta 26965
          (_etype576, _size573) = iprot.readListBegin()
26966
          for _i577 in xrange(_size573):
26967
            _elem578 = ProductFeedSubmit()
26968
            _elem578.read(iprot)
26969
            self.success.append(_elem578)
9621 manish.sha 26970
          iprot.readListEnd()
26971
        else:
26972
          iprot.skip(ftype)
26973
      elif fid == 1:
26974
        if ftype == TType.STRUCT:
26975
          self.cex = CatalogServiceException()
26976
          self.cex.read(iprot)
26977
        else:
26978
          iprot.skip(ftype)
26979
      else:
26980
        iprot.skip(ftype)
26981
      iprot.readFieldEnd()
26982
    iprot.readStructEnd()
26983
 
26984
  def write(self, oprot):
26985
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26986
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26987
      return
26988
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
26989
    if self.success is not None:
26990
      oprot.writeFieldBegin('success', TType.LIST, 0)
26991
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 26992
      for iter579 in self.success:
26993
        iter579.write(oprot)
9621 manish.sha 26994
      oprot.writeListEnd()
26995
      oprot.writeFieldEnd()
26996
    if self.cex is not None:
26997
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26998
      self.cex.write(oprot)
26999
      oprot.writeFieldEnd()
27000
    oprot.writeFieldStop()
27001
    oprot.writeStructEnd()
27002
 
27003
  def validate(self):
27004
    return
27005
 
27006
 
27007
  def __repr__(self):
27008
    L = ['%s=%r' % (key, value)
27009
      for key, value in self.__dict__.iteritems()]
27010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27011
 
27012
  def __eq__(self, other):
27013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27014
 
27015
  def __ne__(self, other):
27016
    return not (self == other)
9724 kshitij.so 27017
 
27018
class getMarketplacedetailsForItem_args:
27019
  """
27020
  Attributes:
27021
   - itemId
27022
   - sourceId
27023
  """
27024
 
27025
  thrift_spec = (
27026
    None, # 0
27027
    (1, TType.I64, 'itemId', None, None, ), # 1
27028
    (2, TType.I64, 'sourceId', None, None, ), # 2
27029
  )
27030
 
27031
  def __init__(self, itemId=None, sourceId=None,):
27032
    self.itemId = itemId
27033
    self.sourceId = sourceId
27034
 
27035
  def read(self, iprot):
27036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27038
      return
27039
    iprot.readStructBegin()
27040
    while True:
27041
      (fname, ftype, fid) = iprot.readFieldBegin()
27042
      if ftype == TType.STOP:
27043
        break
27044
      if fid == 1:
27045
        if ftype == TType.I64:
27046
          self.itemId = iprot.readI64();
27047
        else:
27048
          iprot.skip(ftype)
27049
      elif fid == 2:
27050
        if ftype == TType.I64:
27051
          self.sourceId = iprot.readI64();
27052
        else:
27053
          iprot.skip(ftype)
27054
      else:
27055
        iprot.skip(ftype)
27056
      iprot.readFieldEnd()
27057
    iprot.readStructEnd()
27058
 
27059
  def write(self, oprot):
27060
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27061
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27062
      return
27063
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
27064
    if self.itemId is not None:
27065
      oprot.writeFieldBegin('itemId', TType.I64, 1)
27066
      oprot.writeI64(self.itemId)
27067
      oprot.writeFieldEnd()
27068
    if self.sourceId is not None:
27069
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
27070
      oprot.writeI64(self.sourceId)
27071
      oprot.writeFieldEnd()
27072
    oprot.writeFieldStop()
27073
    oprot.writeStructEnd()
27074
 
27075
  def validate(self):
27076
    return
27077
 
27078
 
27079
  def __repr__(self):
27080
    L = ['%s=%r' % (key, value)
27081
      for key, value in self.__dict__.iteritems()]
27082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27083
 
27084
  def __eq__(self, other):
27085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27086
 
27087
  def __ne__(self, other):
27088
    return not (self == other)
27089
 
27090
class getMarketplacedetailsForItem_result:
27091
  """
27092
  Attributes:
27093
   - success
27094
  """
27095
 
27096
  thrift_spec = (
27097
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
27098
  )
27099
 
27100
  def __init__(self, success=None,):
27101
    self.success = success
27102
 
27103
  def read(self, iprot):
27104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27106
      return
27107
    iprot.readStructBegin()
27108
    while True:
27109
      (fname, ftype, fid) = iprot.readFieldBegin()
27110
      if ftype == TType.STOP:
27111
        break
27112
      if fid == 0:
27113
        if ftype == TType.STRUCT:
27114
          self.success = MarketplaceItems()
27115
          self.success.read(iprot)
27116
        else:
27117
          iprot.skip(ftype)
27118
      else:
27119
        iprot.skip(ftype)
27120
      iprot.readFieldEnd()
27121
    iprot.readStructEnd()
27122
 
27123
  def write(self, oprot):
27124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27126
      return
27127
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
27128
    if self.success is not None:
27129
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27130
      self.success.write(oprot)
27131
      oprot.writeFieldEnd()
27132
    oprot.writeFieldStop()
27133
    oprot.writeStructEnd()
27134
 
27135
  def validate(self):
27136
    return
27137
 
27138
 
27139
  def __repr__(self):
27140
    L = ['%s=%r' % (key, value)
27141
      for key, value in self.__dict__.iteritems()]
27142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27143
 
27144
  def __eq__(self, other):
27145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27146
 
27147
  def __ne__(self, other):
27148
    return not (self == other)
27149
 
27150
class updateMarketplaceAttributesForItem_args:
27151
  """
27152
  Attributes:
27153
   - marketPlaceItem
27154
  """
27155
 
27156
  thrift_spec = (
27157
    None, # 0
27158
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
27159
  )
27160
 
27161
  def __init__(self, marketPlaceItem=None,):
27162
    self.marketPlaceItem = marketPlaceItem
27163
 
27164
  def read(self, iprot):
27165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27167
      return
27168
    iprot.readStructBegin()
27169
    while True:
27170
      (fname, ftype, fid) = iprot.readFieldBegin()
27171
      if ftype == TType.STOP:
27172
        break
27173
      if fid == 1:
27174
        if ftype == TType.STRUCT:
27175
          self.marketPlaceItem = MarketplaceItems()
27176
          self.marketPlaceItem.read(iprot)
27177
        else:
27178
          iprot.skip(ftype)
27179
      else:
27180
        iprot.skip(ftype)
27181
      iprot.readFieldEnd()
27182
    iprot.readStructEnd()
27183
 
27184
  def write(self, oprot):
27185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27187
      return
27188
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
27189
    if self.marketPlaceItem is not None:
27190
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
27191
      self.marketPlaceItem.write(oprot)
27192
      oprot.writeFieldEnd()
27193
    oprot.writeFieldStop()
27194
    oprot.writeStructEnd()
27195
 
27196
  def validate(self):
27197
    return
27198
 
27199
 
27200
  def __repr__(self):
27201
    L = ['%s=%r' % (key, value)
27202
      for key, value in self.__dict__.iteritems()]
27203
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27204
 
27205
  def __eq__(self, other):
27206
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27207
 
27208
  def __ne__(self, other):
27209
    return not (self == other)
27210
 
27211
class updateMarketplaceAttributesForItem_result:
27212
  """
27213
  Attributes:
27214
   - success
27215
  """
27216
 
27217
  thrift_spec = (
27218
    (0, TType.BOOL, 'success', None, None, ), # 0
27219
  )
27220
 
27221
  def __init__(self, success=None,):
27222
    self.success = success
27223
 
27224
  def read(self, iprot):
27225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27227
      return
27228
    iprot.readStructBegin()
27229
    while True:
27230
      (fname, ftype, fid) = iprot.readFieldBegin()
27231
      if ftype == TType.STOP:
27232
        break
27233
      if fid == 0:
27234
        if ftype == TType.BOOL:
27235
          self.success = iprot.readBool();
27236
        else:
27237
          iprot.skip(ftype)
27238
      else:
27239
        iprot.skip(ftype)
27240
      iprot.readFieldEnd()
27241
    iprot.readStructEnd()
27242
 
27243
  def write(self, oprot):
27244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27246
      return
27247
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
27248
    if self.success is not None:
27249
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27250
      oprot.writeBool(self.success)
27251
      oprot.writeFieldEnd()
27252
    oprot.writeFieldStop()
27253
    oprot.writeStructEnd()
27254
 
27255
  def validate(self):
27256
    return
27257
 
27258
 
27259
  def __repr__(self):
27260
    L = ['%s=%r' % (key, value)
27261
      for key, value in self.__dict__.iteritems()]
27262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27263
 
27264
  def __eq__(self, other):
27265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27266
 
27267
  def __ne__(self, other):
27268
    return not (self == other)
9776 vikram.rag 27269
 
9779 kshitij.so 27270
class getCostingForMarketplace_args:
27271
  """
27272
  Attributes:
27273
   - source
27274
   - item_id
27275
  """
27276
 
27277
  thrift_spec = (
27278
    None, # 0
27279
    (1, TType.I64, 'source', None, None, ), # 1
27280
    (2, TType.I64, 'item_id', None, None, ), # 2
27281
  )
27282
 
27283
  def __init__(self, source=None, item_id=None,):
27284
    self.source = source
27285
    self.item_id = item_id
27286
 
27287
  def read(self, iprot):
27288
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27289
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27290
      return
27291
    iprot.readStructBegin()
27292
    while True:
27293
      (fname, ftype, fid) = iprot.readFieldBegin()
27294
      if ftype == TType.STOP:
27295
        break
27296
      if fid == 1:
27297
        if ftype == TType.I64:
27298
          self.source = iprot.readI64();
27299
        else:
27300
          iprot.skip(ftype)
27301
      elif fid == 2:
27302
        if ftype == TType.I64:
27303
          self.item_id = iprot.readI64();
27304
        else:
27305
          iprot.skip(ftype)
27306
      else:
27307
        iprot.skip(ftype)
27308
      iprot.readFieldEnd()
27309
    iprot.readStructEnd()
27310
 
27311
  def write(self, oprot):
27312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27314
      return
27315
    oprot.writeStructBegin('getCostingForMarketplace_args')
27316
    if self.source is not None:
27317
      oprot.writeFieldBegin('source', TType.I64, 1)
27318
      oprot.writeI64(self.source)
27319
      oprot.writeFieldEnd()
27320
    if self.item_id is not None:
27321
      oprot.writeFieldBegin('item_id', TType.I64, 2)
27322
      oprot.writeI64(self.item_id)
27323
      oprot.writeFieldEnd()
27324
    oprot.writeFieldStop()
27325
    oprot.writeStructEnd()
27326
 
27327
  def validate(self):
27328
    return
27329
 
27330
 
27331
  def __repr__(self):
27332
    L = ['%s=%r' % (key, value)
27333
      for key, value in self.__dict__.iteritems()]
27334
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27335
 
27336
  def __eq__(self, other):
27337
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27338
 
27339
  def __ne__(self, other):
27340
    return not (self == other)
27341
 
27342
class getCostingForMarketplace_result:
27343
  """
27344
  Attributes:
27345
   - success
27346
  """
27347
 
27348
  thrift_spec = (
27349
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
27350
  )
27351
 
27352
  def __init__(self, success=None,):
27353
    self.success = success
27354
 
27355
  def read(self, iprot):
27356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27358
      return
27359
    iprot.readStructBegin()
27360
    while True:
27361
      (fname, ftype, fid) = iprot.readFieldBegin()
27362
      if ftype == TType.STOP:
27363
        break
27364
      if fid == 0:
27365
        if ftype == TType.STRUCT:
27366
          self.success = MarketplacePercentage()
27367
          self.success.read(iprot)
27368
        else:
27369
          iprot.skip(ftype)
27370
      else:
27371
        iprot.skip(ftype)
27372
      iprot.readFieldEnd()
27373
    iprot.readStructEnd()
27374
 
27375
  def write(self, oprot):
27376
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27377
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27378
      return
27379
    oprot.writeStructBegin('getCostingForMarketplace_result')
27380
    if self.success is not None:
27381
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27382
      self.success.write(oprot)
27383
      oprot.writeFieldEnd()
27384
    oprot.writeFieldStop()
27385
    oprot.writeStructEnd()
27386
 
27387
  def validate(self):
27388
    return
27389
 
27390
 
27391
  def __repr__(self):
27392
    L = ['%s=%r' % (key, value)
27393
      for key, value in self.__dict__.iteritems()]
27394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27395
 
27396
  def __eq__(self, other):
27397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27398
 
27399
  def __ne__(self, other):
27400
    return not (self == other)
27401
 
9776 vikram.rag 27402
class getMarketPlaceItemsForPriceUpdate_args:
27403
  """
27404
  Attributes:
27405
   - source
27406
  """
27407
 
27408
  thrift_spec = (
27409
    None, # 0
27410
    (1, TType.I64, 'source', None, None, ), # 1
27411
  )
27412
 
27413
  def __init__(self, source=None,):
27414
    self.source = source
27415
 
27416
  def read(self, iprot):
27417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27419
      return
27420
    iprot.readStructBegin()
27421
    while True:
27422
      (fname, ftype, fid) = iprot.readFieldBegin()
27423
      if ftype == TType.STOP:
27424
        break
27425
      if fid == 1:
27426
        if ftype == TType.I64:
27427
          self.source = iprot.readI64();
27428
        else:
27429
          iprot.skip(ftype)
27430
      else:
27431
        iprot.skip(ftype)
27432
      iprot.readFieldEnd()
27433
    iprot.readStructEnd()
27434
 
27435
  def write(self, oprot):
27436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27438
      return
27439
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
27440
    if self.source is not None:
27441
      oprot.writeFieldBegin('source', TType.I64, 1)
27442
      oprot.writeI64(self.source)
27443
      oprot.writeFieldEnd()
27444
    oprot.writeFieldStop()
27445
    oprot.writeStructEnd()
27446
 
27447
  def validate(self):
27448
    return
27449
 
27450
 
27451
  def __repr__(self):
27452
    L = ['%s=%r' % (key, value)
27453
      for key, value in self.__dict__.iteritems()]
27454
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27455
 
27456
  def __eq__(self, other):
27457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27458
 
27459
  def __ne__(self, other):
27460
    return not (self == other)
27461
 
27462
class getMarketPlaceItemsForPriceUpdate_result:
27463
  """
27464
  Attributes:
27465
   - success
27466
  """
27467
 
27468
  thrift_spec = (
27469
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
27470
  )
27471
 
27472
  def __init__(self, success=None,):
27473
    self.success = success
27474
 
27475
  def read(self, iprot):
27476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27478
      return
27479
    iprot.readStructBegin()
27480
    while True:
27481
      (fname, ftype, fid) = iprot.readFieldBegin()
27482
      if ftype == TType.STOP:
27483
        break
27484
      if fid == 0:
27485
        if ftype == TType.LIST:
27486
          self.success = []
13493 amit.gupta 27487
          (_etype583, _size580) = iprot.readListBegin()
27488
          for _i584 in xrange(_size580):
27489
            _elem585 = MarketPlaceItemPrice()
27490
            _elem585.read(iprot)
27491
            self.success.append(_elem585)
9776 vikram.rag 27492
          iprot.readListEnd()
27493
        else:
27494
          iprot.skip(ftype)
27495
      else:
27496
        iprot.skip(ftype)
27497
      iprot.readFieldEnd()
27498
    iprot.readStructEnd()
27499
 
27500
  def write(self, oprot):
27501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27503
      return
27504
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
27505
    if self.success is not None:
27506
      oprot.writeFieldBegin('success', TType.LIST, 0)
27507
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 27508
      for iter586 in self.success:
27509
        iter586.write(oprot)
9776 vikram.rag 27510
      oprot.writeListEnd()
27511
      oprot.writeFieldEnd()
27512
    oprot.writeFieldStop()
27513
    oprot.writeStructEnd()
27514
 
27515
  def validate(self):
27516
    return
27517
 
27518
 
27519
  def __repr__(self):
27520
    L = ['%s=%r' % (key, value)
27521
      for key, value in self.__dict__.iteritems()]
27522
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27523
 
27524
  def __eq__(self, other):
27525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27526
 
27527
  def __ne__(self, other):
27528
    return not (self == other)
27529
 
27530
class updateMarketPlacePriceUpdateStatus_args:
27531
  """
27532
  Attributes:
27533
   - skulist
27534
   - timestamp
9816 kshitij.so 27535
   - source
9776 vikram.rag 27536
  """
27537
 
27538
  thrift_spec = (
27539
    None, # 0
27540
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
27541
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 27542
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 27543
  )
27544
 
9816 kshitij.so 27545
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 27546
    self.skulist = skulist
27547
    self.timestamp = timestamp
9816 kshitij.so 27548
    self.source = source
9776 vikram.rag 27549
 
27550
  def read(self, iprot):
27551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27553
      return
27554
    iprot.readStructBegin()
27555
    while True:
27556
      (fname, ftype, fid) = iprot.readFieldBegin()
27557
      if ftype == TType.STOP:
27558
        break
27559
      if fid == 1:
27560
        if ftype == TType.LIST:
27561
          self.skulist = []
13493 amit.gupta 27562
          (_etype590, _size587) = iprot.readListBegin()
27563
          for _i591 in xrange(_size587):
27564
            _elem592 = iprot.readI64();
27565
            self.skulist.append(_elem592)
9776 vikram.rag 27566
          iprot.readListEnd()
27567
        else:
27568
          iprot.skip(ftype)
27569
      elif fid == 2:
27570
        if ftype == TType.I64:
27571
          self.timestamp = iprot.readI64();
27572
        else:
27573
          iprot.skip(ftype)
9816 kshitij.so 27574
      elif fid == 3:
27575
        if ftype == TType.I64:
27576
          self.source = iprot.readI64();
27577
        else:
27578
          iprot.skip(ftype)
9776 vikram.rag 27579
      else:
27580
        iprot.skip(ftype)
27581
      iprot.readFieldEnd()
27582
    iprot.readStructEnd()
27583
 
27584
  def write(self, oprot):
27585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27587
      return
27588
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
27589
    if self.skulist is not None:
27590
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
27591
      oprot.writeListBegin(TType.I64, len(self.skulist))
13493 amit.gupta 27592
      for iter593 in self.skulist:
27593
        oprot.writeI64(iter593)
9776 vikram.rag 27594
      oprot.writeListEnd()
27595
      oprot.writeFieldEnd()
27596
    if self.timestamp is not None:
27597
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
27598
      oprot.writeI64(self.timestamp)
27599
      oprot.writeFieldEnd()
9816 kshitij.so 27600
    if self.source is not None:
27601
      oprot.writeFieldBegin('source', TType.I64, 3)
27602
      oprot.writeI64(self.source)
27603
      oprot.writeFieldEnd()
9776 vikram.rag 27604
    oprot.writeFieldStop()
27605
    oprot.writeStructEnd()
27606
 
27607
  def validate(self):
27608
    return
27609
 
27610
 
27611
  def __repr__(self):
27612
    L = ['%s=%r' % (key, value)
27613
      for key, value in self.__dict__.iteritems()]
27614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27615
 
27616
  def __eq__(self, other):
27617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27618
 
27619
  def __ne__(self, other):
27620
    return not (self == other)
27621
 
27622
class updateMarketPlacePriceUpdateStatus_result:
27623
 
27624
  thrift_spec = (
27625
  )
27626
 
27627
  def read(self, iprot):
27628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27630
      return
27631
    iprot.readStructBegin()
27632
    while True:
27633
      (fname, ftype, fid) = iprot.readFieldBegin()
27634
      if ftype == TType.STOP:
27635
        break
27636
      else:
27637
        iprot.skip(ftype)
27638
      iprot.readFieldEnd()
27639
    iprot.readStructEnd()
27640
 
27641
  def write(self, oprot):
27642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27644
      return
27645
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
27646
    oprot.writeFieldStop()
27647
    oprot.writeStructEnd()
27648
 
27649
  def validate(self):
27650
    return
27651
 
27652
 
27653
  def __repr__(self):
27654
    L = ['%s=%r' % (key, value)
27655
      for key, value in self.__dict__.iteritems()]
27656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27657
 
27658
  def __eq__(self, other):
27659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27660
 
27661
  def __ne__(self, other):
27662
    return not (self == other)
9861 rajveer 27663
 
27664
class updateItemHoldInventory_args:
27665
  """
27666
  Attributes:
27667
   - itemHoldMap
27668
  """
27669
 
27670
  thrift_spec = (
27671
    None, # 0
27672
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
27673
  )
27674
 
27675
  def __init__(self, itemHoldMap=None,):
27676
    self.itemHoldMap = itemHoldMap
27677
 
27678
  def read(self, iprot):
27679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27681
      return
27682
    iprot.readStructBegin()
27683
    while True:
27684
      (fname, ftype, fid) = iprot.readFieldBegin()
27685
      if ftype == TType.STOP:
27686
        break
27687
      if fid == 1:
27688
        if ftype == TType.MAP:
27689
          self.itemHoldMap = {}
13493 amit.gupta 27690
          (_ktype595, _vtype596, _size594 ) = iprot.readMapBegin() 
27691
          for _i598 in xrange(_size594):
27692
            _key599 = iprot.readI64();
27693
            _val600 = iprot.readI64();
27694
            self.itemHoldMap[_key599] = _val600
9861 rajveer 27695
          iprot.readMapEnd()
27696
        else:
27697
          iprot.skip(ftype)
27698
      else:
27699
        iprot.skip(ftype)
27700
      iprot.readFieldEnd()
27701
    iprot.readStructEnd()
27702
 
27703
  def write(self, oprot):
27704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27706
      return
27707
    oprot.writeStructBegin('updateItemHoldInventory_args')
27708
    if self.itemHoldMap is not None:
27709
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
27710
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
13493 amit.gupta 27711
      for kiter601,viter602 in self.itemHoldMap.items():
27712
        oprot.writeI64(kiter601)
27713
        oprot.writeI64(viter602)
9861 rajveer 27714
      oprot.writeMapEnd()
27715
      oprot.writeFieldEnd()
27716
    oprot.writeFieldStop()
27717
    oprot.writeStructEnd()
27718
 
27719
  def validate(self):
27720
    return
27721
 
27722
 
27723
  def __repr__(self):
27724
    L = ['%s=%r' % (key, value)
27725
      for key, value in self.__dict__.iteritems()]
27726
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27727
 
27728
  def __eq__(self, other):
27729
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27730
 
27731
  def __ne__(self, other):
27732
    return not (self == other)
27733
 
27734
class updateItemHoldInventory_result:
27735
 
27736
  thrift_spec = (
27737
  )
27738
 
27739
  def read(self, iprot):
27740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27742
      return
27743
    iprot.readStructBegin()
27744
    while True:
27745
      (fname, ftype, fid) = iprot.readFieldBegin()
27746
      if ftype == TType.STOP:
27747
        break
27748
      else:
27749
        iprot.skip(ftype)
27750
      iprot.readFieldEnd()
27751
    iprot.readStructEnd()
27752
 
27753
  def write(self, oprot):
27754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27756
      return
27757
    oprot.writeStructBegin('updateItemHoldInventory_result')
27758
    oprot.writeFieldStop()
27759
    oprot.writeStructEnd()
27760
 
27761
  def validate(self):
27762
    return
27763
 
27764
 
27765
  def __repr__(self):
27766
    L = ['%s=%r' % (key, value)
27767
      for key, value in self.__dict__.iteritems()]
27768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27769
 
27770
  def __eq__(self, other):
27771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27772
 
27773
  def __ne__(self, other):
27774
    return not (self == other)
9895 vikram.rag 27775
 
27776
class updateNlcAtMarketplaces_args:
27777
  """
27778
  Attributes:
27779
   - item_id
27780
   - vendor_id
27781
   - nlc
27782
  """
27783
 
27784
  thrift_spec = None
27785
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
27786
    self.item_id = item_id
27787
    self.vendor_id = vendor_id
27788
    self.nlc = nlc
27789
 
27790
  def read(self, iprot):
27791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27793
      return
27794
    iprot.readStructBegin()
27795
    while True:
27796
      (fname, ftype, fid) = iprot.readFieldBegin()
27797
      if ftype == TType.STOP:
27798
        break
27799
      if fid == 1:
27800
        if ftype == TType.I64:
27801
          self.item_id = iprot.readI64();
27802
        else:
27803
          iprot.skip(ftype)
27804
      elif fid == 2:
27805
        if ftype == TType.I64:
27806
          self.vendor_id = iprot.readI64();
27807
        else:
27808
          iprot.skip(ftype)
27809
      elif fid == -1:
27810
        if ftype == TType.DOUBLE:
27811
          self.nlc = iprot.readDouble();
27812
        else:
27813
          iprot.skip(ftype)
27814
      else:
27815
        iprot.skip(ftype)
27816
      iprot.readFieldEnd()
27817
    iprot.readStructEnd()
27818
 
27819
  def write(self, oprot):
27820
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27821
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27822
      return
27823
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
27824
    if self.nlc is not None:
27825
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
27826
      oprot.writeDouble(self.nlc)
27827
      oprot.writeFieldEnd()
27828
    if self.item_id is not None:
27829
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27830
      oprot.writeI64(self.item_id)
27831
      oprot.writeFieldEnd()
27832
    if self.vendor_id is not None:
27833
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
27834
      oprot.writeI64(self.vendor_id)
27835
      oprot.writeFieldEnd()
27836
    oprot.writeFieldStop()
27837
    oprot.writeStructEnd()
27838
 
27839
  def validate(self):
27840
    return
27841
 
27842
 
27843
  def __repr__(self):
27844
    L = ['%s=%r' % (key, value)
27845
      for key, value in self.__dict__.iteritems()]
27846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27847
 
27848
  def __eq__(self, other):
27849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27850
 
27851
  def __ne__(self, other):
27852
    return not (self == other)
27853
 
27854
class updateNlcAtMarketplaces_result:
27855
 
27856
  thrift_spec = (
27857
  )
27858
 
27859
  def read(self, iprot):
27860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27862
      return
27863
    iprot.readStructBegin()
27864
    while True:
27865
      (fname, ftype, fid) = iprot.readFieldBegin()
27866
      if ftype == TType.STOP:
27867
        break
27868
      else:
27869
        iprot.skip(ftype)
27870
      iprot.readFieldEnd()
27871
    iprot.readStructEnd()
27872
 
27873
  def write(self, oprot):
27874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27876
      return
27877
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
27878
    oprot.writeFieldStop()
27879
    oprot.writeStructEnd()
27880
 
27881
  def validate(self):
27882
    return
27883
 
27884
 
27885
  def __repr__(self):
27886
    L = ['%s=%r' % (key, value)
27887
      for key, value in self.__dict__.iteritems()]
27888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27889
 
27890
  def __eq__(self, other):
27891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27892
 
27893
  def __ne__(self, other):
27894
    return not (self == other)
9945 vikram.rag 27895
 
27896
class getAllFlipkartItems_args:
27897
 
27898
  thrift_spec = (
27899
  )
27900
 
27901
  def read(self, iprot):
27902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27904
      return
27905
    iprot.readStructBegin()
27906
    while True:
27907
      (fname, ftype, fid) = iprot.readFieldBegin()
27908
      if ftype == TType.STOP:
27909
        break
27910
      else:
27911
        iprot.skip(ftype)
27912
      iprot.readFieldEnd()
27913
    iprot.readStructEnd()
27914
 
27915
  def write(self, oprot):
27916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27918
      return
27919
    oprot.writeStructBegin('getAllFlipkartItems_args')
27920
    oprot.writeFieldStop()
27921
    oprot.writeStructEnd()
27922
 
27923
  def validate(self):
27924
    return
27925
 
27926
 
27927
  def __repr__(self):
27928
    L = ['%s=%r' % (key, value)
27929
      for key, value in self.__dict__.iteritems()]
27930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27931
 
27932
  def __eq__(self, other):
27933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27934
 
27935
  def __ne__(self, other):
27936
    return not (self == other)
27937
 
27938
class getAllFlipkartItems_result:
27939
  """
27940
  Attributes:
27941
   - success
27942
  """
27943
 
27944
  thrift_spec = (
27945
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
27946
  )
27947
 
27948
  def __init__(self, success=None,):
27949
    self.success = success
27950
 
27951
  def read(self, iprot):
27952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27954
      return
27955
    iprot.readStructBegin()
27956
    while True:
27957
      (fname, ftype, fid) = iprot.readFieldBegin()
27958
      if ftype == TType.STOP:
27959
        break
27960
      if fid == 0:
27961
        if ftype == TType.LIST:
27962
          self.success = []
13493 amit.gupta 27963
          (_etype606, _size603) = iprot.readListBegin()
27964
          for _i607 in xrange(_size603):
27965
            _elem608 = FlipkartItem()
27966
            _elem608.read(iprot)
27967
            self.success.append(_elem608)
9945 vikram.rag 27968
          iprot.readListEnd()
27969
        else:
27970
          iprot.skip(ftype)
27971
      else:
27972
        iprot.skip(ftype)
27973
      iprot.readFieldEnd()
27974
    iprot.readStructEnd()
27975
 
27976
  def write(self, oprot):
27977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27979
      return
27980
    oprot.writeStructBegin('getAllFlipkartItems_result')
27981
    if self.success is not None:
27982
      oprot.writeFieldBegin('success', TType.LIST, 0)
27983
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 27984
      for iter609 in self.success:
27985
        iter609.write(oprot)
9945 vikram.rag 27986
      oprot.writeListEnd()
27987
      oprot.writeFieldEnd()
27988
    oprot.writeFieldStop()
27989
    oprot.writeStructEnd()
27990
 
27991
  def validate(self):
27992
    return
27993
 
27994
 
27995
  def __repr__(self):
27996
    L = ['%s=%r' % (key, value)
27997
      for key, value in self.__dict__.iteritems()]
27998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27999
 
28000
  def __eq__(self, other):
28001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28002
 
28003
  def __ne__(self, other):
28004
    return not (self == other)
10097 kshitij.so 28005
 
28006
class addOrUpdateFlipkartItem_args:
28007
  """
28008
  Attributes:
28009
   - flipkartitem
28010
  """
28011
 
28012
  thrift_spec = None
28013
  def __init__(self, flipkartitem=None,):
28014
    self.flipkartitem = flipkartitem
28015
 
28016
  def read(self, iprot):
28017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28019
      return
28020
    iprot.readStructBegin()
28021
    while True:
28022
      (fname, ftype, fid) = iprot.readFieldBegin()
28023
      if ftype == TType.STOP:
28024
        break
28025
      if fid == -1:
28026
        if ftype == TType.STRUCT:
28027
          self.flipkartitem = FlipkartItem()
28028
          self.flipkartitem.read(iprot)
28029
        else:
28030
          iprot.skip(ftype)
28031
      else:
28032
        iprot.skip(ftype)
28033
      iprot.readFieldEnd()
28034
    iprot.readStructEnd()
28035
 
28036
  def write(self, oprot):
28037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28039
      return
28040
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
28041
    if self.flipkartitem is not None:
28042
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
28043
      self.flipkartitem.write(oprot)
28044
      oprot.writeFieldEnd()
28045
    oprot.writeFieldStop()
28046
    oprot.writeStructEnd()
28047
 
28048
  def validate(self):
28049
    return
28050
 
28051
 
28052
  def __repr__(self):
28053
    L = ['%s=%r' % (key, value)
28054
      for key, value in self.__dict__.iteritems()]
28055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28056
 
28057
  def __eq__(self, other):
28058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28059
 
28060
  def __ne__(self, other):
28061
    return not (self == other)
28062
 
28063
class addOrUpdateFlipkartItem_result:
28064
  """
28065
  Attributes:
28066
   - success
28067
  """
28068
 
28069
  thrift_spec = (
28070
    (0, TType.BOOL, 'success', None, None, ), # 0
28071
  )
28072
 
28073
  def __init__(self, success=None,):
28074
    self.success = success
28075
 
28076
  def read(self, iprot):
28077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28079
      return
28080
    iprot.readStructBegin()
28081
    while True:
28082
      (fname, ftype, fid) = iprot.readFieldBegin()
28083
      if ftype == TType.STOP:
28084
        break
28085
      if fid == 0:
28086
        if ftype == TType.BOOL:
28087
          self.success = iprot.readBool();
28088
        else:
28089
          iprot.skip(ftype)
28090
      else:
28091
        iprot.skip(ftype)
28092
      iprot.readFieldEnd()
28093
    iprot.readStructEnd()
28094
 
28095
  def write(self, oprot):
28096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28098
      return
28099
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
28100
    if self.success is not None:
28101
      oprot.writeFieldBegin('success', TType.BOOL, 0)
28102
      oprot.writeBool(self.success)
28103
      oprot.writeFieldEnd()
28104
    oprot.writeFieldStop()
28105
    oprot.writeStructEnd()
28106
 
28107
  def validate(self):
28108
    return
28109
 
28110
 
28111
  def __repr__(self):
28112
    L = ['%s=%r' % (key, value)
28113
      for key, value in self.__dict__.iteritems()]
28114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28115
 
28116
  def __eq__(self, other):
28117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28118
 
28119
  def __ne__(self, other):
28120
    return not (self == other)
28121
 
28122
class getFlipkartItem_args:
28123
  """
28124
  Attributes:
28125
   - item_id
28126
  """
28127
 
28128
  thrift_spec = (
28129
    None, # 0
28130
    (1, TType.I64, 'item_id', None, None, ), # 1
28131
  )
28132
 
28133
  def __init__(self, item_id=None,):
28134
    self.item_id = item_id
28135
 
28136
  def read(self, iprot):
28137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28139
      return
28140
    iprot.readStructBegin()
28141
    while True:
28142
      (fname, ftype, fid) = iprot.readFieldBegin()
28143
      if ftype == TType.STOP:
28144
        break
28145
      if fid == 1:
28146
        if ftype == TType.I64:
28147
          self.item_id = iprot.readI64();
28148
        else:
28149
          iprot.skip(ftype)
28150
      else:
28151
        iprot.skip(ftype)
28152
      iprot.readFieldEnd()
28153
    iprot.readStructEnd()
28154
 
28155
  def write(self, oprot):
28156
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28157
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28158
      return
28159
    oprot.writeStructBegin('getFlipkartItem_args')
28160
    if self.item_id is not None:
28161
      oprot.writeFieldBegin('item_id', TType.I64, 1)
28162
      oprot.writeI64(self.item_id)
28163
      oprot.writeFieldEnd()
28164
    oprot.writeFieldStop()
28165
    oprot.writeStructEnd()
28166
 
28167
  def validate(self):
28168
    return
28169
 
28170
 
28171
  def __repr__(self):
28172
    L = ['%s=%r' % (key, value)
28173
      for key, value in self.__dict__.iteritems()]
28174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28175
 
28176
  def __eq__(self, other):
28177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28178
 
28179
  def __ne__(self, other):
28180
    return not (self == other)
28181
 
28182
class getFlipkartItem_result:
28183
  """
28184
  Attributes:
28185
   - success
28186
  """
28187
 
28188
  thrift_spec = (
28189
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
28190
  )
28191
 
28192
  def __init__(self, success=None,):
28193
    self.success = success
28194
 
28195
  def read(self, iprot):
28196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28198
      return
28199
    iprot.readStructBegin()
28200
    while True:
28201
      (fname, ftype, fid) = iprot.readFieldBegin()
28202
      if ftype == TType.STOP:
28203
        break
28204
      if fid == 0:
28205
        if ftype == TType.STRUCT:
28206
          self.success = FlipkartItem()
28207
          self.success.read(iprot)
28208
        else:
28209
          iprot.skip(ftype)
28210
      else:
28211
        iprot.skip(ftype)
28212
      iprot.readFieldEnd()
28213
    iprot.readStructEnd()
28214
 
28215
  def write(self, oprot):
28216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28218
      return
28219
    oprot.writeStructBegin('getFlipkartItem_result')
28220
    if self.success is not None:
28221
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28222
      self.success.write(oprot)
28223
      oprot.writeFieldEnd()
28224
    oprot.writeFieldStop()
28225
    oprot.writeStructEnd()
28226
 
28227
  def validate(self):
28228
    return
28229
 
28230
 
28231
  def __repr__(self):
28232
    L = ['%s=%r' % (key, value)
28233
      for key, value in self.__dict__.iteritems()]
28234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28235
 
28236
  def __eq__(self, other):
28237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28238
 
28239
  def __ne__(self, other):
28240
    return not (self == other)
28241
 
28242
class getFlipkartItemDetails_args:
28243
  """
28244
  Attributes:
28245
   - item_id
28246
  """
28247
 
28248
  thrift_spec = (
28249
    None, # 0
28250
    (1, TType.I64, 'item_id', None, None, ), # 1
28251
  )
28252
 
28253
  def __init__(self, item_id=None,):
28254
    self.item_id = item_id
28255
 
28256
  def read(self, iprot):
28257
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28258
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28259
      return
28260
    iprot.readStructBegin()
28261
    while True:
28262
      (fname, ftype, fid) = iprot.readFieldBegin()
28263
      if ftype == TType.STOP:
28264
        break
28265
      if fid == 1:
28266
        if ftype == TType.I64:
28267
          self.item_id = iprot.readI64();
28268
        else:
28269
          iprot.skip(ftype)
28270
      else:
28271
        iprot.skip(ftype)
28272
      iprot.readFieldEnd()
28273
    iprot.readStructEnd()
28274
 
28275
  def write(self, oprot):
28276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28278
      return
28279
    oprot.writeStructBegin('getFlipkartItemDetails_args')
28280
    if self.item_id is not None:
28281
      oprot.writeFieldBegin('item_id', TType.I64, 1)
28282
      oprot.writeI64(self.item_id)
28283
      oprot.writeFieldEnd()
28284
    oprot.writeFieldStop()
28285
    oprot.writeStructEnd()
28286
 
28287
  def validate(self):
28288
    return
28289
 
28290
 
28291
  def __repr__(self):
28292
    L = ['%s=%r' % (key, value)
28293
      for key, value in self.__dict__.iteritems()]
28294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28295
 
28296
  def __eq__(self, other):
28297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28298
 
28299
  def __ne__(self, other):
28300
    return not (self == other)
28301
 
28302
class getFlipkartItemDetails_result:
28303
  """
28304
  Attributes:
28305
   - success
28306
  """
28307
 
28308
  thrift_spec = (
28309
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
28310
  )
28311
 
28312
  def __init__(self, success=None,):
28313
    self.success = success
28314
 
28315
  def read(self, iprot):
28316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28318
      return
28319
    iprot.readStructBegin()
28320
    while True:
28321
      (fname, ftype, fid) = iprot.readFieldBegin()
28322
      if ftype == TType.STOP:
28323
        break
28324
      if fid == 0:
28325
        if ftype == TType.STRUCT:
28326
          self.success = FlipkartItemDetails()
28327
          self.success.read(iprot)
28328
        else:
28329
          iprot.skip(ftype)
28330
      else:
28331
        iprot.skip(ftype)
28332
      iprot.readFieldEnd()
28333
    iprot.readStructEnd()
28334
 
28335
  def write(self, oprot):
28336
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28337
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28338
      return
28339
    oprot.writeStructBegin('getFlipkartItemDetails_result')
28340
    if self.success is not None:
28341
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28342
      self.success.write(oprot)
28343
      oprot.writeFieldEnd()
28344
    oprot.writeFieldStop()
28345
    oprot.writeStructEnd()
28346
 
28347
  def validate(self):
28348
    return
28349
 
28350
 
28351
  def __repr__(self):
28352
    L = ['%s=%r' % (key, value)
28353
      for key, value in self.__dict__.iteritems()]
28354
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28355
 
28356
  def __eq__(self, other):
28357
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28358
 
28359
  def __ne__(self, other):
28360
    return not (self == other)
28361
 
28362
class getFlipkartItems_args:
28363
  """
28364
  Attributes:
28365
   - offset
28366
   - limit
28367
  """
28368
 
28369
  thrift_spec = (
28370
    None, # 0
28371
    (1, TType.I64, 'offset', None, None, ), # 1
28372
    (2, TType.I64, 'limit', None, None, ), # 2
28373
  )
28374
 
28375
  def __init__(self, offset=None, limit=None,):
28376
    self.offset = offset
28377
    self.limit = limit
28378
 
28379
  def read(self, iprot):
28380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28382
      return
28383
    iprot.readStructBegin()
28384
    while True:
28385
      (fname, ftype, fid) = iprot.readFieldBegin()
28386
      if ftype == TType.STOP:
28387
        break
28388
      if fid == 1:
28389
        if ftype == TType.I64:
28390
          self.offset = iprot.readI64();
28391
        else:
28392
          iprot.skip(ftype)
28393
      elif fid == 2:
28394
        if ftype == TType.I64:
28395
          self.limit = iprot.readI64();
28396
        else:
28397
          iprot.skip(ftype)
28398
      else:
28399
        iprot.skip(ftype)
28400
      iprot.readFieldEnd()
28401
    iprot.readStructEnd()
28402
 
28403
  def write(self, oprot):
28404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28406
      return
28407
    oprot.writeStructBegin('getFlipkartItems_args')
28408
    if self.offset is not None:
28409
      oprot.writeFieldBegin('offset', TType.I64, 1)
28410
      oprot.writeI64(self.offset)
28411
      oprot.writeFieldEnd()
28412
    if self.limit is not None:
28413
      oprot.writeFieldBegin('limit', TType.I64, 2)
28414
      oprot.writeI64(self.limit)
28415
      oprot.writeFieldEnd()
28416
    oprot.writeFieldStop()
28417
    oprot.writeStructEnd()
28418
 
28419
  def validate(self):
28420
    return
28421
 
28422
 
28423
  def __repr__(self):
28424
    L = ['%s=%r' % (key, value)
28425
      for key, value in self.__dict__.iteritems()]
28426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28427
 
28428
  def __eq__(self, other):
28429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28430
 
28431
  def __ne__(self, other):
28432
    return not (self == other)
28433
 
28434
class getFlipkartItems_result:
28435
  """
28436
  Attributes:
28437
   - success
28438
  """
28439
 
28440
  thrift_spec = (
28441
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28442
  )
28443
 
28444
  def __init__(self, success=None,):
28445
    self.success = success
28446
 
28447
  def read(self, iprot):
28448
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28449
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28450
      return
28451
    iprot.readStructBegin()
28452
    while True:
28453
      (fname, ftype, fid) = iprot.readFieldBegin()
28454
      if ftype == TType.STOP:
28455
        break
28456
      if fid == 0:
28457
        if ftype == TType.LIST:
28458
          self.success = []
13493 amit.gupta 28459
          (_etype613, _size610) = iprot.readListBegin()
28460
          for _i614 in xrange(_size610):
28461
            _elem615 = FlipkartItemDetails()
28462
            _elem615.read(iprot)
28463
            self.success.append(_elem615)
10097 kshitij.so 28464
          iprot.readListEnd()
28465
        else:
28466
          iprot.skip(ftype)
28467
      else:
28468
        iprot.skip(ftype)
28469
      iprot.readFieldEnd()
28470
    iprot.readStructEnd()
28471
 
28472
  def write(self, oprot):
28473
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28474
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28475
      return
28476
    oprot.writeStructBegin('getFlipkartItems_result')
28477
    if self.success is not None:
28478
      oprot.writeFieldBegin('success', TType.LIST, 0)
28479
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 28480
      for iter616 in self.success:
28481
        iter616.write(oprot)
10097 kshitij.so 28482
      oprot.writeListEnd()
28483
      oprot.writeFieldEnd()
28484
    oprot.writeFieldStop()
28485
    oprot.writeStructEnd()
28486
 
28487
  def validate(self):
28488
    return
28489
 
28490
 
28491
  def __repr__(self):
28492
    L = ['%s=%r' % (key, value)
28493
      for key, value in self.__dict__.iteritems()]
28494
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28495
 
28496
  def __eq__(self, other):
28497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28498
 
28499
  def __ne__(self, other):
28500
    return not (self == other)
28501
 
28502
class searchFlipkartItems_args:
28503
  """
28504
  Attributes:
28505
   - searchTerm
28506
   - offset
28507
   - limit
28508
  """
28509
 
28510
  thrift_spec = (
28511
    None, # 0
28512
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28513
    (2, TType.I64, 'offset', None, None, ), # 2
28514
    (3, TType.I64, 'limit', None, None, ), # 3
28515
  )
28516
 
28517
  def __init__(self, searchTerm=None, offset=None, limit=None,):
28518
    self.searchTerm = searchTerm
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.LIST:
28533
          self.searchTerm = []
13493 amit.gupta 28534
          (_etype620, _size617) = iprot.readListBegin()
28535
          for _i621 in xrange(_size617):
28536
            _elem622 = iprot.readString();
28537
            self.searchTerm.append(_elem622)
10097 kshitij.so 28538
          iprot.readListEnd()
28539
        else:
28540
          iprot.skip(ftype)
28541
      elif fid == 2:
28542
        if ftype == TType.I64:
28543
          self.offset = iprot.readI64();
28544
        else:
28545
          iprot.skip(ftype)
28546
      elif fid == 3:
28547
        if ftype == TType.I64:
28548
          self.limit = iprot.readI64();
28549
        else:
28550
          iprot.skip(ftype)
28551
      else:
28552
        iprot.skip(ftype)
28553
      iprot.readFieldEnd()
28554
    iprot.readStructEnd()
28555
 
28556
  def write(self, oprot):
28557
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28558
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28559
      return
28560
    oprot.writeStructBegin('searchFlipkartItems_args')
28561
    if self.searchTerm is not None:
28562
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28563
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 28564
      for iter623 in self.searchTerm:
28565
        oprot.writeString(iter623)
10097 kshitij.so 28566
      oprot.writeListEnd()
28567
      oprot.writeFieldEnd()
28568
    if self.offset is not None:
28569
      oprot.writeFieldBegin('offset', TType.I64, 2)
28570
      oprot.writeI64(self.offset)
28571
      oprot.writeFieldEnd()
28572
    if self.limit is not None:
28573
      oprot.writeFieldBegin('limit', TType.I64, 3)
28574
      oprot.writeI64(self.limit)
28575
      oprot.writeFieldEnd()
28576
    oprot.writeFieldStop()
28577
    oprot.writeStructEnd()
28578
 
28579
  def validate(self):
28580
    return
28581
 
28582
 
28583
  def __repr__(self):
28584
    L = ['%s=%r' % (key, value)
28585
      for key, value in self.__dict__.iteritems()]
28586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28587
 
28588
  def __eq__(self, other):
28589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28590
 
28591
  def __ne__(self, other):
28592
    return not (self == other)
28593
 
28594
class searchFlipkartItems_result:
28595
  """
28596
  Attributes:
28597
   - success
28598
  """
28599
 
28600
  thrift_spec = (
28601
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28602
  )
28603
 
28604
  def __init__(self, success=None,):
28605
    self.success = success
28606
 
28607
  def read(self, iprot):
28608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28610
      return
28611
    iprot.readStructBegin()
28612
    while True:
28613
      (fname, ftype, fid) = iprot.readFieldBegin()
28614
      if ftype == TType.STOP:
28615
        break
28616
      if fid == 0:
28617
        if ftype == TType.LIST:
28618
          self.success = []
13493 amit.gupta 28619
          (_etype627, _size624) = iprot.readListBegin()
28620
          for _i628 in xrange(_size624):
28621
            _elem629 = FlipkartItemDetails()
28622
            _elem629.read(iprot)
28623
            self.success.append(_elem629)
10097 kshitij.so 28624
          iprot.readListEnd()
28625
        else:
28626
          iprot.skip(ftype)
28627
      else:
28628
        iprot.skip(ftype)
28629
      iprot.readFieldEnd()
28630
    iprot.readStructEnd()
28631
 
28632
  def write(self, oprot):
28633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28635
      return
28636
    oprot.writeStructBegin('searchFlipkartItems_result')
28637
    if self.success is not None:
28638
      oprot.writeFieldBegin('success', TType.LIST, 0)
28639
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 28640
      for iter630 in self.success:
28641
        iter630.write(oprot)
10097 kshitij.so 28642
      oprot.writeListEnd()
28643
      oprot.writeFieldEnd()
28644
    oprot.writeFieldStop()
28645
    oprot.writeStructEnd()
28646
 
28647
  def validate(self):
28648
    return
28649
 
28650
 
28651
  def __repr__(self):
28652
    L = ['%s=%r' % (key, value)
28653
      for key, value in self.__dict__.iteritems()]
28654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28655
 
28656
  def __eq__(self, other):
28657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28658
 
28659
  def __ne__(self, other):
28660
    return not (self == other)
28661
 
28662
class getCountForFlipkartItems_args:
28663
 
28664
  thrift_spec = (
28665
  )
28666
 
28667
  def read(self, iprot):
28668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28670
      return
28671
    iprot.readStructBegin()
28672
    while True:
28673
      (fname, ftype, fid) = iprot.readFieldBegin()
28674
      if ftype == TType.STOP:
28675
        break
28676
      else:
28677
        iprot.skip(ftype)
28678
      iprot.readFieldEnd()
28679
    iprot.readStructEnd()
28680
 
28681
  def write(self, oprot):
28682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28684
      return
28685
    oprot.writeStructBegin('getCountForFlipkartItems_args')
28686
    oprot.writeFieldStop()
28687
    oprot.writeStructEnd()
28688
 
28689
  def validate(self):
28690
    return
28691
 
28692
 
28693
  def __repr__(self):
28694
    L = ['%s=%r' % (key, value)
28695
      for key, value in self.__dict__.iteritems()]
28696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28697
 
28698
  def __eq__(self, other):
28699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28700
 
28701
  def __ne__(self, other):
28702
    return not (self == other)
28703
 
28704
class getCountForFlipkartItems_result:
28705
  """
28706
  Attributes:
28707
   - success
28708
  """
28709
 
28710
  thrift_spec = (
28711
    (0, TType.I64, 'success', None, None, ), # 0
28712
  )
28713
 
28714
  def __init__(self, success=None,):
28715
    self.success = success
28716
 
28717
  def read(self, iprot):
28718
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28719
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28720
      return
28721
    iprot.readStructBegin()
28722
    while True:
28723
      (fname, ftype, fid) = iprot.readFieldBegin()
28724
      if ftype == TType.STOP:
28725
        break
28726
      if fid == 0:
28727
        if ftype == TType.I64:
28728
          self.success = iprot.readI64();
28729
        else:
28730
          iprot.skip(ftype)
28731
      else:
28732
        iprot.skip(ftype)
28733
      iprot.readFieldEnd()
28734
    iprot.readStructEnd()
28735
 
28736
  def write(self, oprot):
28737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28739
      return
28740
    oprot.writeStructBegin('getCountForFlipkartItems_result')
28741
    if self.success is not None:
28742
      oprot.writeFieldBegin('success', TType.I64, 0)
28743
      oprot.writeI64(self.success)
28744
      oprot.writeFieldEnd()
28745
    oprot.writeFieldStop()
28746
    oprot.writeStructEnd()
28747
 
28748
  def validate(self):
28749
    return
28750
 
28751
 
28752
  def __repr__(self):
28753
    L = ['%s=%r' % (key, value)
28754
      for key, value in self.__dict__.iteritems()]
28755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28756
 
28757
  def __eq__(self, other):
28758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28759
 
28760
  def __ne__(self, other):
28761
    return not (self == other)
28762
 
28763
class getFlipkartSearchResultCount_args:
28764
  """
28765
  Attributes:
28766
   - searchTerm
28767
  """
28768
 
28769
  thrift_spec = (
28770
    None, # 0
28771
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28772
  )
28773
 
28774
  def __init__(self, searchTerm=None,):
28775
    self.searchTerm = searchTerm
28776
 
28777
  def read(self, iprot):
28778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28780
      return
28781
    iprot.readStructBegin()
28782
    while True:
28783
      (fname, ftype, fid) = iprot.readFieldBegin()
28784
      if ftype == TType.STOP:
28785
        break
28786
      if fid == 1:
28787
        if ftype == TType.LIST:
28788
          self.searchTerm = []
13493 amit.gupta 28789
          (_etype634, _size631) = iprot.readListBegin()
28790
          for _i635 in xrange(_size631):
28791
            _elem636 = iprot.readString();
28792
            self.searchTerm.append(_elem636)
10097 kshitij.so 28793
          iprot.readListEnd()
28794
        else:
28795
          iprot.skip(ftype)
28796
      else:
28797
        iprot.skip(ftype)
28798
      iprot.readFieldEnd()
28799
    iprot.readStructEnd()
28800
 
28801
  def write(self, oprot):
28802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28804
      return
28805
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
28806
    if self.searchTerm is not None:
28807
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28808
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
13493 amit.gupta 28809
      for iter637 in self.searchTerm:
28810
        oprot.writeString(iter637)
10097 kshitij.so 28811
      oprot.writeListEnd()
28812
      oprot.writeFieldEnd()
28813
    oprot.writeFieldStop()
28814
    oprot.writeStructEnd()
28815
 
28816
  def validate(self):
28817
    return
28818
 
28819
 
28820
  def __repr__(self):
28821
    L = ['%s=%r' % (key, value)
28822
      for key, value in self.__dict__.iteritems()]
28823
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28824
 
28825
  def __eq__(self, other):
28826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28827
 
28828
  def __ne__(self, other):
28829
    return not (self == other)
28830
 
28831
class getFlipkartSearchResultCount_result:
28832
  """
28833
  Attributes:
28834
   - success
28835
  """
28836
 
28837
  thrift_spec = (
28838
    (0, TType.I64, 'success', None, None, ), # 0
28839
  )
28840
 
28841
  def __init__(self, success=None,):
28842
    self.success = success
28843
 
28844
  def read(self, iprot):
28845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28847
      return
28848
    iprot.readStructBegin()
28849
    while True:
28850
      (fname, ftype, fid) = iprot.readFieldBegin()
28851
      if ftype == TType.STOP:
28852
        break
28853
      if fid == 0:
28854
        if ftype == TType.I64:
28855
          self.success = iprot.readI64();
28856
        else:
28857
          iprot.skip(ftype)
28858
      else:
28859
        iprot.skip(ftype)
28860
      iprot.readFieldEnd()
28861
    iprot.readStructEnd()
28862
 
28863
  def write(self, oprot):
28864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28866
      return
28867
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
28868
    if self.success is not None:
28869
      oprot.writeFieldBegin('success', TType.I64, 0)
28870
      oprot.writeI64(self.success)
28871
      oprot.writeFieldEnd()
28872
    oprot.writeFieldStop()
28873
    oprot.writeStructEnd()
28874
 
28875
  def validate(self):
28876
    return
28877
 
28878
 
28879
  def __repr__(self):
28880
    L = ['%s=%r' % (key, value)
28881
      for key, value in self.__dict__.iteritems()]
28882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28883
 
28884
  def __eq__(self, other):
28885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28886
 
28887
  def __ne__(self, other):
28888
    return not (self == other)
28889
 
28890
class getAllFkItems_args:
28891
 
28892
  thrift_spec = (
28893
  )
28894
 
28895
  def read(self, iprot):
28896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28898
      return
28899
    iprot.readStructBegin()
28900
    while True:
28901
      (fname, ftype, fid) = iprot.readFieldBegin()
28902
      if ftype == TType.STOP:
28903
        break
28904
      else:
28905
        iprot.skip(ftype)
28906
      iprot.readFieldEnd()
28907
    iprot.readStructEnd()
28908
 
28909
  def write(self, oprot):
28910
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28911
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28912
      return
28913
    oprot.writeStructBegin('getAllFkItems_args')
28914
    oprot.writeFieldStop()
28915
    oprot.writeStructEnd()
28916
 
28917
  def validate(self):
28918
    return
28919
 
28920
 
28921
  def __repr__(self):
28922
    L = ['%s=%r' % (key, value)
28923
      for key, value in self.__dict__.iteritems()]
28924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28925
 
28926
  def __eq__(self, other):
28927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28928
 
28929
  def __ne__(self, other):
28930
    return not (self == other)
28931
 
28932
class getAllFkItems_result:
28933
  """
28934
  Attributes:
28935
   - success
28936
  """
28937
 
28938
  thrift_spec = (
28939
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28940
  )
28941
 
28942
  def __init__(self, success=None,):
28943
    self.success = success
28944
 
28945
  def read(self, iprot):
28946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28948
      return
28949
    iprot.readStructBegin()
28950
    while True:
28951
      (fname, ftype, fid) = iprot.readFieldBegin()
28952
      if ftype == TType.STOP:
28953
        break
28954
      if fid == 0:
28955
        if ftype == TType.LIST:
28956
          self.success = []
13493 amit.gupta 28957
          (_etype641, _size638) = iprot.readListBegin()
28958
          for _i642 in xrange(_size638):
28959
            _elem643 = FlipkartItemDetails()
28960
            _elem643.read(iprot)
28961
            self.success.append(_elem643)
10097 kshitij.so 28962
          iprot.readListEnd()
28963
        else:
28964
          iprot.skip(ftype)
28965
      else:
28966
        iprot.skip(ftype)
28967
      iprot.readFieldEnd()
28968
    iprot.readStructEnd()
28969
 
28970
  def write(self, oprot):
28971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28973
      return
28974
    oprot.writeStructBegin('getAllFkItems_result')
28975
    if self.success is not None:
28976
      oprot.writeFieldBegin('success', TType.LIST, 0)
28977
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 28978
      for iter644 in self.success:
28979
        iter644.write(oprot)
10097 kshitij.so 28980
      oprot.writeListEnd()
28981
      oprot.writeFieldEnd()
28982
    oprot.writeFieldStop()
28983
    oprot.writeStructEnd()
28984
 
28985
  def validate(self):
28986
    return
28987
 
28988
 
28989
  def __repr__(self):
28990
    L = ['%s=%r' % (key, value)
28991
      for key, value in self.__dict__.iteritems()]
28992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28993
 
28994
  def __eq__(self, other):
28995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28996
 
28997
  def __ne__(self, other):
28998
    return not (self == other)
10140 vikram.rag 28999
 
29000
class getFlipkartItemBySkyAtFlipkart_args:
29001
  """
29002
  Attributes:
29003
   - sku
29004
  """
29005
 
11531 vikram.rag 29006
  thrift_spec = None
10140 vikram.rag 29007
  def __init__(self, sku=None,):
29008
    self.sku = sku
29009
 
29010
  def read(self, iprot):
29011
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29012
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29013
      return
29014
    iprot.readStructBegin()
29015
    while True:
29016
      (fname, ftype, fid) = iprot.readFieldBegin()
29017
      if ftype == TType.STOP:
29018
        break
11531 vikram.rag 29019
      if fid == -1:
10140 vikram.rag 29020
        if ftype == TType.STRING:
29021
          self.sku = iprot.readString();
29022
        else:
29023
          iprot.skip(ftype)
29024
      else:
29025
        iprot.skip(ftype)
29026
      iprot.readFieldEnd()
29027
    iprot.readStructEnd()
29028
 
29029
  def write(self, oprot):
29030
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29031
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29032
      return
29033
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
29034
    if self.sku is not None:
11531 vikram.rag 29035
      oprot.writeFieldBegin('sku', TType.STRING, -1)
10140 vikram.rag 29036
      oprot.writeString(self.sku)
29037
      oprot.writeFieldEnd()
29038
    oprot.writeFieldStop()
29039
    oprot.writeStructEnd()
29040
 
29041
  def validate(self):
29042
    return
29043
 
29044
 
29045
  def __repr__(self):
29046
    L = ['%s=%r' % (key, value)
29047
      for key, value in self.__dict__.iteritems()]
29048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29049
 
29050
  def __eq__(self, other):
29051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29052
 
29053
  def __ne__(self, other):
29054
    return not (self == other)
29055
 
29056
class getFlipkartItemBySkyAtFlipkart_result:
29057
  """
29058
  Attributes:
29059
   - success
29060
  """
29061
 
29062
  thrift_spec = (
29063
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
29064
  )
29065
 
29066
  def __init__(self, success=None,):
29067
    self.success = success
29068
 
29069
  def read(self, iprot):
29070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29072
      return
29073
    iprot.readStructBegin()
29074
    while True:
29075
      (fname, ftype, fid) = iprot.readFieldBegin()
29076
      if ftype == TType.STOP:
29077
        break
29078
      if fid == 0:
29079
        if ftype == TType.STRUCT:
29080
          self.success = FlipkartItem()
29081
          self.success.read(iprot)
29082
        else:
29083
          iprot.skip(ftype)
29084
      else:
29085
        iprot.skip(ftype)
29086
      iprot.readFieldEnd()
29087
    iprot.readStructEnd()
29088
 
29089
  def write(self, oprot):
29090
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29091
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29092
      return
29093
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
29094
    if self.success is not None:
29095
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29096
      self.success.write(oprot)
29097
      oprot.writeFieldEnd()
29098
    oprot.writeFieldStop()
29099
    oprot.writeStructEnd()
29100
 
29101
  def validate(self):
29102
    return
29103
 
29104
 
29105
  def __repr__(self):
29106
    L = ['%s=%r' % (key, value)
29107
      for key, value in self.__dict__.iteritems()]
29108
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29109
 
29110
  def __eq__(self, other):
29111
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29112
 
29113
  def __ne__(self, other):
29114
    return not (self == other)
10909 vikram.rag 29115
 
11015 kshitij.so 29116
class getMarketplaceHistory_args:
29117
  """
29118
  Attributes:
29119
   - source
29120
   - offset
29121
   - itemId
29122
  """
10909 vikram.rag 29123
 
29124
  thrift_spec = (
11015 kshitij.so 29125
    None, # 0
29126
    (1, TType.I64, 'source', None, None, ), # 1
29127
    (2, TType.I64, 'offset', None, None, ), # 2
29128
    (3, TType.I64, 'itemId', None, None, ), # 3
10909 vikram.rag 29129
  )
29130
 
11015 kshitij.so 29131
  def __init__(self, source=None, offset=None, itemId=None,):
29132
    self.source = source
29133
    self.offset = offset
29134
    self.itemId = itemId
29135
 
10909 vikram.rag 29136
  def read(self, iprot):
29137
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29138
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29139
      return
29140
    iprot.readStructBegin()
29141
    while True:
29142
      (fname, ftype, fid) = iprot.readFieldBegin()
29143
      if ftype == TType.STOP:
29144
        break
11015 kshitij.so 29145
      if fid == 1:
29146
        if ftype == TType.I64:
29147
          self.source = iprot.readI64();
29148
        else:
29149
          iprot.skip(ftype)
29150
      elif fid == 2:
29151
        if ftype == TType.I64:
29152
          self.offset = iprot.readI64();
29153
        else:
29154
          iprot.skip(ftype)
29155
      elif fid == 3:
29156
        if ftype == TType.I64:
29157
          self.itemId = iprot.readI64();
29158
        else:
29159
          iprot.skip(ftype)
10909 vikram.rag 29160
      else:
29161
        iprot.skip(ftype)
29162
      iprot.readFieldEnd()
29163
    iprot.readStructEnd()
29164
 
29165
  def write(self, oprot):
29166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29168
      return
11015 kshitij.so 29169
    oprot.writeStructBegin('getMarketplaceHistory_args')
29170
    if self.source is not None:
29171
      oprot.writeFieldBegin('source', TType.I64, 1)
29172
      oprot.writeI64(self.source)
29173
      oprot.writeFieldEnd()
29174
    if self.offset is not None:
29175
      oprot.writeFieldBegin('offset', TType.I64, 2)
29176
      oprot.writeI64(self.offset)
29177
      oprot.writeFieldEnd()
29178
    if self.itemId is not None:
29179
      oprot.writeFieldBegin('itemId', TType.I64, 3)
29180
      oprot.writeI64(self.itemId)
29181
      oprot.writeFieldEnd()
10909 vikram.rag 29182
    oprot.writeFieldStop()
29183
    oprot.writeStructEnd()
29184
 
29185
  def validate(self):
29186
    return
29187
 
29188
 
29189
  def __repr__(self):
29190
    L = ['%s=%r' % (key, value)
29191
      for key, value in self.__dict__.iteritems()]
29192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29193
 
29194
  def __eq__(self, other):
29195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29196
 
29197
  def __ne__(self, other):
29198
    return not (self == other)
29199
 
11015 kshitij.so 29200
class getMarketplaceHistory_result:
10909 vikram.rag 29201
  """
29202
  Attributes:
29203
   - success
29204
  """
29205
 
29206
  thrift_spec = (
11015 kshitij.so 29207
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
10909 vikram.rag 29208
  )
29209
 
29210
  def __init__(self, success=None,):
29211
    self.success = success
29212
 
29213
  def read(self, iprot):
29214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29216
      return
29217
    iprot.readStructBegin()
29218
    while True:
29219
      (fname, ftype, fid) = iprot.readFieldBegin()
29220
      if ftype == TType.STOP:
29221
        break
29222
      if fid == 0:
29223
        if ftype == TType.LIST:
29224
          self.success = []
13493 amit.gupta 29225
          (_etype648, _size645) = iprot.readListBegin()
29226
          for _i649 in xrange(_size645):
29227
            _elem650 = MarketplaceHistory()
29228
            _elem650.read(iprot)
29229
            self.success.append(_elem650)
10909 vikram.rag 29230
          iprot.readListEnd()
29231
        else:
29232
          iprot.skip(ftype)
29233
      else:
29234
        iprot.skip(ftype)
29235
      iprot.readFieldEnd()
29236
    iprot.readStructEnd()
29237
 
29238
  def write(self, oprot):
29239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29241
      return
11015 kshitij.so 29242
    oprot.writeStructBegin('getMarketplaceHistory_result')
10909 vikram.rag 29243
    if self.success is not None:
29244
      oprot.writeFieldBegin('success', TType.LIST, 0)
29245
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29246
      for iter651 in self.success:
29247
        iter651.write(oprot)
10909 vikram.rag 29248
      oprot.writeListEnd()
29249
      oprot.writeFieldEnd()
29250
    oprot.writeFieldStop()
29251
    oprot.writeStructEnd()
29252
 
29253
  def validate(self):
29254
    return
29255
 
29256
 
29257
  def __repr__(self):
29258
    L = ['%s=%r' % (key, value)
29259
      for key, value in self.__dict__.iteritems()]
29260
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29261
 
29262
  def __eq__(self, other):
29263
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29264
 
29265
  def __ne__(self, other):
29266
    return not (self == other)
10924 vikram.rag 29267
 
11015 kshitij.so 29268
class getAllFbbListedItems_args:
10924 vikram.rag 29269
 
29270
  thrift_spec = (
29271
  )
29272
 
29273
  def read(self, iprot):
29274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29276
      return
29277
    iprot.readStructBegin()
29278
    while True:
29279
      (fname, ftype, fid) = iprot.readFieldBegin()
29280
      if ftype == TType.STOP:
29281
        break
29282
      else:
29283
        iprot.skip(ftype)
29284
      iprot.readFieldEnd()
29285
    iprot.readStructEnd()
29286
 
29287
  def write(self, oprot):
29288
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29289
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29290
      return
11015 kshitij.so 29291
    oprot.writeStructBegin('getAllFbbListedItems_args')
10924 vikram.rag 29292
    oprot.writeFieldStop()
29293
    oprot.writeStructEnd()
29294
 
29295
  def validate(self):
29296
    return
29297
 
29298
 
29299
  def __repr__(self):
29300
    L = ['%s=%r' % (key, value)
29301
      for key, value in self.__dict__.iteritems()]
29302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29303
 
29304
  def __eq__(self, other):
29305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29306
 
29307
  def __ne__(self, other):
29308
    return not (self == other)
29309
 
11015 kshitij.so 29310
class getAllFbbListedItems_result:
10924 vikram.rag 29311
  """
29312
  Attributes:
29313
   - success
29314
  """
29315
 
29316
  thrift_spec = (
29317
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29318
  )
29319
 
29320
  def __init__(self, success=None,):
29321
    self.success = success
29322
 
29323
  def read(self, iprot):
29324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29326
      return
29327
    iprot.readStructBegin()
29328
    while True:
29329
      (fname, ftype, fid) = iprot.readFieldBegin()
29330
      if ftype == TType.STOP:
29331
        break
29332
      if fid == 0:
29333
        if ftype == TType.LIST:
29334
          self.success = []
13493 amit.gupta 29335
          (_etype655, _size652) = iprot.readListBegin()
29336
          for _i656 in xrange(_size652):
29337
            _elem657 = Amazonlisted()
29338
            _elem657.read(iprot)
29339
            self.success.append(_elem657)
10924 vikram.rag 29340
          iprot.readListEnd()
29341
        else:
29342
          iprot.skip(ftype)
29343
      else:
29344
        iprot.skip(ftype)
29345
      iprot.readFieldEnd()
29346
    iprot.readStructEnd()
29347
 
29348
  def write(self, oprot):
29349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29351
      return
11015 kshitij.so 29352
    oprot.writeStructBegin('getAllFbbListedItems_result')
10924 vikram.rag 29353
    if self.success is not None:
29354
      oprot.writeFieldBegin('success', TType.LIST, 0)
29355
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29356
      for iter658 in self.success:
29357
        iter658.write(oprot)
10924 vikram.rag 29358
      oprot.writeListEnd()
29359
      oprot.writeFieldEnd()
29360
    oprot.writeFieldStop()
29361
    oprot.writeStructEnd()
29362
 
29363
  def validate(self):
29364
    return
29365
 
29366
 
29367
  def __repr__(self):
29368
    L = ['%s=%r' % (key, value)
29369
      for key, value in self.__dict__.iteritems()]
29370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29371
 
29372
  def __eq__(self, other):
29373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29374
 
29375
  def __ne__(self, other):
29376
    return not (self == other)
11015 kshitij.so 29377
 
29378
class getAllFbbPricingItems_args:
29379
 
29380
  thrift_spec = (
29381
  )
29382
 
29383
  def read(self, iprot):
29384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29386
      return
29387
    iprot.readStructBegin()
29388
    while True:
29389
      (fname, ftype, fid) = iprot.readFieldBegin()
29390
      if ftype == TType.STOP:
29391
        break
29392
      else:
29393
        iprot.skip(ftype)
29394
      iprot.readFieldEnd()
29395
    iprot.readStructEnd()
29396
 
29397
  def write(self, oprot):
29398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29400
      return
29401
    oprot.writeStructBegin('getAllFbbPricingItems_args')
29402
    oprot.writeFieldStop()
29403
    oprot.writeStructEnd()
29404
 
29405
  def validate(self):
29406
    return
29407
 
29408
 
29409
  def __repr__(self):
29410
    L = ['%s=%r' % (key, value)
29411
      for key, value in self.__dict__.iteritems()]
29412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29413
 
29414
  def __eq__(self, other):
29415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29416
 
29417
  def __ne__(self, other):
29418
    return not (self == other)
29419
 
29420
class getAllFbbPricingItems_result:
29421
  """
29422
  Attributes:
29423
   - success
29424
  """
29425
 
29426
  thrift_spec = (
29427
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29428
  )
29429
 
29430
  def __init__(self, success=None,):
29431
    self.success = success
29432
 
29433
  def read(self, iprot):
29434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29436
      return
29437
    iprot.readStructBegin()
29438
    while True:
29439
      (fname, ftype, fid) = iprot.readFieldBegin()
29440
      if ftype == TType.STOP:
29441
        break
29442
      if fid == 0:
29443
        if ftype == TType.LIST:
29444
          self.success = []
13493 amit.gupta 29445
          (_etype662, _size659) = iprot.readListBegin()
29446
          for _i663 in xrange(_size659):
29447
            _elem664 = Amazonlisted()
29448
            _elem664.read(iprot)
29449
            self.success.append(_elem664)
11015 kshitij.so 29450
          iprot.readListEnd()
29451
        else:
29452
          iprot.skip(ftype)
29453
      else:
29454
        iprot.skip(ftype)
29455
      iprot.readFieldEnd()
29456
    iprot.readStructEnd()
29457
 
29458
  def write(self, oprot):
29459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29461
      return
29462
    oprot.writeStructBegin('getAllFbbPricingItems_result')
29463
    if self.success is not None:
29464
      oprot.writeFieldBegin('success', TType.LIST, 0)
29465
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29466
      for iter665 in self.success:
29467
        iter665.write(oprot)
11015 kshitij.so 29468
      oprot.writeListEnd()
29469
      oprot.writeFieldEnd()
29470
    oprot.writeFieldStop()
29471
    oprot.writeStructEnd()
29472
 
29473
  def validate(self):
29474
    return
29475
 
29476
 
29477
  def __repr__(self):
29478
    L = ['%s=%r' % (key, value)
29479
      for key, value in self.__dict__.iteritems()]
29480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29481
 
29482
  def __eq__(self, other):
29483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29484
 
29485
  def __ne__(self, other):
29486
    return not (self == other)
29487
 
29488
class getCountForMarketplaceHistory_args:
29489
  """
29490
  Attributes:
29491
   - source
29492
   - itemId
29493
  """
29494
 
29495
  thrift_spec = (
29496
    None, # 0
29497
    (1, TType.I64, 'source', None, None, ), # 1
29498
    (2, TType.I64, 'itemId', None, None, ), # 2
29499
  )
29500
 
29501
  def __init__(self, source=None, itemId=None,):
29502
    self.source = source
29503
    self.itemId = itemId
29504
 
29505
  def read(self, iprot):
29506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29508
      return
29509
    iprot.readStructBegin()
29510
    while True:
29511
      (fname, ftype, fid) = iprot.readFieldBegin()
29512
      if ftype == TType.STOP:
29513
        break
29514
      if fid == 1:
29515
        if ftype == TType.I64:
29516
          self.source = iprot.readI64();
29517
        else:
29518
          iprot.skip(ftype)
29519
      elif fid == 2:
29520
        if ftype == TType.I64:
29521
          self.itemId = iprot.readI64();
29522
        else:
29523
          iprot.skip(ftype)
29524
      else:
29525
        iprot.skip(ftype)
29526
      iprot.readFieldEnd()
29527
    iprot.readStructEnd()
29528
 
29529
  def write(self, oprot):
29530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29532
      return
29533
    oprot.writeStructBegin('getCountForMarketplaceHistory_args')
29534
    if self.source is not None:
29535
      oprot.writeFieldBegin('source', TType.I64, 1)
29536
      oprot.writeI64(self.source)
29537
      oprot.writeFieldEnd()
29538
    if self.itemId is not None:
29539
      oprot.writeFieldBegin('itemId', TType.I64, 2)
29540
      oprot.writeI64(self.itemId)
29541
      oprot.writeFieldEnd()
29542
    oprot.writeFieldStop()
29543
    oprot.writeStructEnd()
29544
 
29545
  def validate(self):
29546
    return
29547
 
29548
 
29549
  def __repr__(self):
29550
    L = ['%s=%r' % (key, value)
29551
      for key, value in self.__dict__.iteritems()]
29552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29553
 
29554
  def __eq__(self, other):
29555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29556
 
29557
  def __ne__(self, other):
29558
    return not (self == other)
29559
 
29560
class getCountForMarketplaceHistory_result:
29561
  """
29562
  Attributes:
29563
   - success
29564
  """
29565
 
29566
  thrift_spec = (
29567
    (0, TType.I64, 'success', None, None, ), # 0
29568
  )
29569
 
29570
  def __init__(self, success=None,):
29571
    self.success = success
29572
 
29573
  def read(self, iprot):
29574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29576
      return
29577
    iprot.readStructBegin()
29578
    while True:
29579
      (fname, ftype, fid) = iprot.readFieldBegin()
29580
      if ftype == TType.STOP:
29581
        break
29582
      if fid == 0:
29583
        if ftype == TType.I64:
29584
          self.success = iprot.readI64();
29585
        else:
29586
          iprot.skip(ftype)
29587
      else:
29588
        iprot.skip(ftype)
29589
      iprot.readFieldEnd()
29590
    iprot.readStructEnd()
29591
 
29592
  def write(self, oprot):
29593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29595
      return
29596
    oprot.writeStructBegin('getCountForMarketplaceHistory_result')
29597
    if self.success is not None:
29598
      oprot.writeFieldBegin('success', TType.I64, 0)
29599
      oprot.writeI64(self.success)
29600
      oprot.writeFieldEnd()
29601
    oprot.writeFieldStop()
29602
    oprot.writeStructEnd()
29603
 
29604
  def validate(self):
29605
    return
29606
 
29607
 
29608
  def __repr__(self):
29609
    L = ['%s=%r' % (key, value)
29610
      for key, value in self.__dict__.iteritems()]
29611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29612
 
29613
  def __eq__(self, other):
29614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29615
 
29616
  def __ne__(self, other):
29617
    return not (self == other)
29618
 
29619
class getMarketplaceHistoryByDate_args:
29620
  """
29621
  Attributes:
29622
   - source
29623
   - startDate
29624
   - endDate
29625
   - offset
29626
   - limit
29627
   - itemId
29628
  """
29629
 
29630
  thrift_spec = (
29631
    None, # 0
29632
    (1, TType.I64, 'source', None, None, ), # 1
29633
    (2, TType.I64, 'startDate', None, None, ), # 2
29634
    (3, TType.I64, 'endDate', None, None, ), # 3
29635
    (4, TType.I64, 'offset', None, None, ), # 4
29636
    (5, TType.I64, 'limit', None, None, ), # 5
29637
    (6, TType.I64, 'itemId', None, None, ), # 6
29638
  )
29639
 
29640
  def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):
29641
    self.source = source
29642
    self.startDate = startDate
29643
    self.endDate = endDate
29644
    self.offset = offset
29645
    self.limit = limit
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.startDate = iprot.readI64();
29665
        else:
29666
          iprot.skip(ftype)
29667
      elif fid == 3:
29668
        if ftype == TType.I64:
29669
          self.endDate = iprot.readI64();
29670
        else:
29671
          iprot.skip(ftype)
29672
      elif fid == 4:
29673
        if ftype == TType.I64:
29674
          self.offset = iprot.readI64();
29675
        else:
29676
          iprot.skip(ftype)
29677
      elif fid == 5:
29678
        if ftype == TType.I64:
29679
          self.limit = iprot.readI64();
29680
        else:
29681
          iprot.skip(ftype)
29682
      elif fid == 6:
29683
        if ftype == TType.I64:
29684
          self.itemId = iprot.readI64();
29685
        else:
29686
          iprot.skip(ftype)
29687
      else:
29688
        iprot.skip(ftype)
29689
      iprot.readFieldEnd()
29690
    iprot.readStructEnd()
29691
 
29692
  def write(self, oprot):
29693
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29694
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29695
      return
29696
    oprot.writeStructBegin('getMarketplaceHistoryByDate_args')
29697
    if self.source is not None:
29698
      oprot.writeFieldBegin('source', TType.I64, 1)
29699
      oprot.writeI64(self.source)
29700
      oprot.writeFieldEnd()
29701
    if self.startDate is not None:
29702
      oprot.writeFieldBegin('startDate', TType.I64, 2)
29703
      oprot.writeI64(self.startDate)
29704
      oprot.writeFieldEnd()
29705
    if self.endDate is not None:
29706
      oprot.writeFieldBegin('endDate', TType.I64, 3)
29707
      oprot.writeI64(self.endDate)
29708
      oprot.writeFieldEnd()
29709
    if self.offset is not None:
29710
      oprot.writeFieldBegin('offset', TType.I64, 4)
29711
      oprot.writeI64(self.offset)
29712
      oprot.writeFieldEnd()
29713
    if self.limit is not None:
29714
      oprot.writeFieldBegin('limit', TType.I64, 5)
29715
      oprot.writeI64(self.limit)
29716
      oprot.writeFieldEnd()
29717
    if self.itemId is not None:
29718
      oprot.writeFieldBegin('itemId', TType.I64, 6)
29719
      oprot.writeI64(self.itemId)
29720
      oprot.writeFieldEnd()
29721
    oprot.writeFieldStop()
29722
    oprot.writeStructEnd()
29723
 
29724
  def validate(self):
29725
    return
29726
 
29727
 
29728
  def __repr__(self):
29729
    L = ['%s=%r' % (key, value)
29730
      for key, value in self.__dict__.iteritems()]
29731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29732
 
29733
  def __eq__(self, other):
29734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29735
 
29736
  def __ne__(self, other):
29737
    return not (self == other)
29738
 
29739
class getMarketplaceHistoryByDate_result:
29740
  """
29741
  Attributes:
29742
   - success
29743
  """
29744
 
29745
  thrift_spec = (
29746
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
29747
  )
29748
 
29749
  def __init__(self, success=None,):
29750
    self.success = success
29751
 
29752
  def read(self, iprot):
29753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29755
      return
29756
    iprot.readStructBegin()
29757
    while True:
29758
      (fname, ftype, fid) = iprot.readFieldBegin()
29759
      if ftype == TType.STOP:
29760
        break
29761
      if fid == 0:
29762
        if ftype == TType.LIST:
29763
          self.success = []
13493 amit.gupta 29764
          (_etype669, _size666) = iprot.readListBegin()
29765
          for _i670 in xrange(_size666):
29766
            _elem671 = MarketplaceHistory()
29767
            _elem671.read(iprot)
29768
            self.success.append(_elem671)
11015 kshitij.so 29769
          iprot.readListEnd()
29770
        else:
29771
          iprot.skip(ftype)
29772
      else:
29773
        iprot.skip(ftype)
29774
      iprot.readFieldEnd()
29775
    iprot.readStructEnd()
29776
 
29777
  def write(self, oprot):
29778
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29779
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29780
      return
29781
    oprot.writeStructBegin('getMarketplaceHistoryByDate_result')
29782
    if self.success is not None:
29783
      oprot.writeFieldBegin('success', TType.LIST, 0)
29784
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 29785
      for iter672 in self.success:
29786
        iter672.write(oprot)
11015 kshitij.so 29787
      oprot.writeListEnd()
29788
      oprot.writeFieldEnd()
29789
    oprot.writeFieldStop()
29790
    oprot.writeStructEnd()
29791
 
29792
  def validate(self):
29793
    return
29794
 
29795
 
29796
  def __repr__(self):
29797
    L = ['%s=%r' % (key, value)
29798
      for key, value in self.__dict__.iteritems()]
29799
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29800
 
29801
  def __eq__(self, other):
29802
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29803
 
29804
  def __ne__(self, other):
29805
    return not (self == other)
11531 vikram.rag 29806
 
29807
class getPrivateDealDetails_args:
29808
  """
29809
  Attributes:
29810
   - item_id
29811
  """
29812
 
29813
  thrift_spec = (
29814
    None, # 0
29815
    (1, TType.I64, 'item_id', None, None, ), # 1
29816
  )
29817
 
29818
  def __init__(self, item_id=None,):
29819
    self.item_id = item_id
29820
 
29821
  def read(self, iprot):
29822
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29823
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29824
      return
29825
    iprot.readStructBegin()
29826
    while True:
29827
      (fname, ftype, fid) = iprot.readFieldBegin()
29828
      if ftype == TType.STOP:
29829
        break
29830
      if fid == 1:
29831
        if ftype == TType.I64:
29832
          self.item_id = iprot.readI64();
29833
        else:
29834
          iprot.skip(ftype)
29835
      else:
29836
        iprot.skip(ftype)
29837
      iprot.readFieldEnd()
29838
    iprot.readStructEnd()
29839
 
29840
  def write(self, oprot):
29841
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29842
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29843
      return
29844
    oprot.writeStructBegin('getPrivateDealDetails_args')
29845
    if self.item_id is not None:
29846
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29847
      oprot.writeI64(self.item_id)
29848
      oprot.writeFieldEnd()
29849
    oprot.writeFieldStop()
29850
    oprot.writeStructEnd()
29851
 
29852
  def validate(self):
29853
    return
29854
 
29855
 
29856
  def __repr__(self):
29857
    L = ['%s=%r' % (key, value)
29858
      for key, value in self.__dict__.iteritems()]
29859
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29860
 
29861
  def __eq__(self, other):
29862
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29863
 
29864
  def __ne__(self, other):
29865
    return not (self == other)
29866
 
29867
class getPrivateDealDetails_result:
29868
  """
29869
  Attributes:
29870
   - success
29871
  """
29872
 
29873
  thrift_spec = (
29874
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
29875
  )
29876
 
29877
  def __init__(self, success=None,):
29878
    self.success = success
29879
 
29880
  def read(self, iprot):
29881
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29882
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29883
      return
29884
    iprot.readStructBegin()
29885
    while True:
29886
      (fname, ftype, fid) = iprot.readFieldBegin()
29887
      if ftype == TType.STOP:
29888
        break
29889
      if fid == 0:
29890
        if ftype == TType.STRUCT:
29891
          self.success = PrivateDeal()
29892
          self.success.read(iprot)
29893
        else:
29894
          iprot.skip(ftype)
29895
      else:
29896
        iprot.skip(ftype)
29897
      iprot.readFieldEnd()
29898
    iprot.readStructEnd()
29899
 
29900
  def write(self, oprot):
29901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29903
      return
29904
    oprot.writeStructBegin('getPrivateDealDetails_result')
29905
    if self.success is not None:
29906
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29907
      self.success.write(oprot)
29908
      oprot.writeFieldEnd()
29909
    oprot.writeFieldStop()
29910
    oprot.writeStructEnd()
29911
 
29912
  def validate(self):
29913
    return
29914
 
29915
 
29916
  def __repr__(self):
29917
    L = ['%s=%r' % (key, value)
29918
      for key, value in self.__dict__.iteritems()]
29919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29920
 
29921
  def __eq__(self, other):
29922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29923
 
29924
  def __ne__(self, other):
29925
    return not (self == other)
29926
 
29927
class getPrivateDealItems_args:
29928
  """
29929
  Attributes:
29930
   - offset
29931
   - limit
29932
  """
29933
 
29934
  thrift_spec = (
29935
    None, # 0
29936
    (1, TType.I64, 'offset', None, None, ), # 1
29937
    (2, TType.I64, 'limit', None, None, ), # 2
29938
  )
29939
 
29940
  def __init__(self, offset=None, limit=None,):
29941
    self.offset = offset
29942
    self.limit = limit
29943
 
29944
  def read(self, iprot):
29945
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29946
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29947
      return
29948
    iprot.readStructBegin()
29949
    while True:
29950
      (fname, ftype, fid) = iprot.readFieldBegin()
29951
      if ftype == TType.STOP:
29952
        break
29953
      if fid == 1:
29954
        if ftype == TType.I64:
29955
          self.offset = iprot.readI64();
29956
        else:
29957
          iprot.skip(ftype)
29958
      elif fid == 2:
29959
        if ftype == TType.I64:
29960
          self.limit = iprot.readI64();
29961
        else:
29962
          iprot.skip(ftype)
29963
      else:
29964
        iprot.skip(ftype)
29965
      iprot.readFieldEnd()
29966
    iprot.readStructEnd()
29967
 
29968
  def write(self, oprot):
29969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29971
      return
29972
    oprot.writeStructBegin('getPrivateDealItems_args')
29973
    if self.offset is not None:
29974
      oprot.writeFieldBegin('offset', TType.I64, 1)
29975
      oprot.writeI64(self.offset)
29976
      oprot.writeFieldEnd()
29977
    if self.limit is not None:
29978
      oprot.writeFieldBegin('limit', TType.I64, 2)
29979
      oprot.writeI64(self.limit)
29980
      oprot.writeFieldEnd()
29981
    oprot.writeFieldStop()
29982
    oprot.writeStructEnd()
29983
 
29984
  def validate(self):
29985
    return
29986
 
29987
 
29988
  def __repr__(self):
29989
    L = ['%s=%r' % (key, value)
29990
      for key, value in self.__dict__.iteritems()]
29991
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29992
 
29993
  def __eq__(self, other):
29994
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29995
 
29996
  def __ne__(self, other):
29997
    return not (self == other)
29998
 
29999
class getPrivateDealItems_result:
30000
  """
30001
  Attributes:
30002
   - success
30003
  """
30004
 
30005
  thrift_spec = (
30006
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
30007
  )
30008
 
30009
  def __init__(self, success=None,):
30010
    self.success = success
30011
 
30012
  def read(self, iprot):
30013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30015
      return
30016
    iprot.readStructBegin()
30017
    while True:
30018
      (fname, ftype, fid) = iprot.readFieldBegin()
30019
      if ftype == TType.STOP:
30020
        break
30021
      if fid == 0:
30022
        if ftype == TType.LIST:
30023
          self.success = []
13493 amit.gupta 30024
          (_etype676, _size673) = iprot.readListBegin()
30025
          for _i677 in xrange(_size673):
30026
            _elem678 = Item()
30027
            _elem678.read(iprot)
30028
            self.success.append(_elem678)
11531 vikram.rag 30029
          iprot.readListEnd()
30030
        else:
30031
          iprot.skip(ftype)
30032
      else:
30033
        iprot.skip(ftype)
30034
      iprot.readFieldEnd()
30035
    iprot.readStructEnd()
30036
 
30037
  def write(self, oprot):
30038
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30039
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30040
      return
30041
    oprot.writeStructBegin('getPrivateDealItems_result')
30042
    if self.success is not None:
30043
      oprot.writeFieldBegin('success', TType.LIST, 0)
30044
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 30045
      for iter679 in self.success:
30046
        iter679.write(oprot)
11531 vikram.rag 30047
      oprot.writeListEnd()
30048
      oprot.writeFieldEnd()
30049
    oprot.writeFieldStop()
30050
    oprot.writeStructEnd()
30051
 
30052
  def validate(self):
30053
    return
30054
 
30055
 
30056
  def __repr__(self):
30057
    L = ['%s=%r' % (key, value)
30058
      for key, value in self.__dict__.iteritems()]
30059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30060
 
30061
  def __eq__(self, other):
30062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30063
 
30064
  def __ne__(self, other):
30065
    return not (self == other)
30066
 
11592 amit.gupta 30067
class getAllActivePrivateDeals_args:
11653 amit.gupta 30068
  """
30069
  Attributes:
30070
   - itemIds
30071
   - daysDelta
30072
  """
11592 amit.gupta 30073
 
30074
  thrift_spec = (
11653 amit.gupta 30075
    None, # 0
30076
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
30077
    (2, TType.I64, 'daysDelta', None, None, ), # 2
11592 amit.gupta 30078
  )
30079
 
11653 amit.gupta 30080
  def __init__(self, itemIds=None, daysDelta=None,):
30081
    self.itemIds = itemIds
30082
    self.daysDelta = daysDelta
30083
 
11592 amit.gupta 30084
  def read(self, iprot):
30085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30087
      return
30088
    iprot.readStructBegin()
30089
    while True:
30090
      (fname, ftype, fid) = iprot.readFieldBegin()
30091
      if ftype == TType.STOP:
30092
        break
11653 amit.gupta 30093
      if fid == 1:
30094
        if ftype == TType.LIST:
30095
          self.itemIds = []
13493 amit.gupta 30096
          (_etype683, _size680) = iprot.readListBegin()
30097
          for _i684 in xrange(_size680):
30098
            _elem685 = iprot.readI64();
30099
            self.itemIds.append(_elem685)
11653 amit.gupta 30100
          iprot.readListEnd()
30101
        else:
30102
          iprot.skip(ftype)
30103
      elif fid == 2:
30104
        if ftype == TType.I64:
30105
          self.daysDelta = iprot.readI64();
30106
        else:
30107
          iprot.skip(ftype)
11592 amit.gupta 30108
      else:
30109
        iprot.skip(ftype)
30110
      iprot.readFieldEnd()
30111
    iprot.readStructEnd()
30112
 
30113
  def write(self, oprot):
30114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30116
      return
30117
    oprot.writeStructBegin('getAllActivePrivateDeals_args')
11653 amit.gupta 30118
    if self.itemIds is not None:
30119
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
30120
      oprot.writeListBegin(TType.I64, len(self.itemIds))
13493 amit.gupta 30121
      for iter686 in self.itemIds:
30122
        oprot.writeI64(iter686)
11653 amit.gupta 30123
      oprot.writeListEnd()
30124
      oprot.writeFieldEnd()
30125
    if self.daysDelta is not None:
30126
      oprot.writeFieldBegin('daysDelta', TType.I64, 2)
30127
      oprot.writeI64(self.daysDelta)
30128
      oprot.writeFieldEnd()
11592 amit.gupta 30129
    oprot.writeFieldStop()
30130
    oprot.writeStructEnd()
30131
 
30132
  def validate(self):
30133
    return
30134
 
30135
 
30136
  def __repr__(self):
30137
    L = ['%s=%r' % (key, value)
30138
      for key, value in self.__dict__.iteritems()]
30139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30140
 
30141
  def __eq__(self, other):
30142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30143
 
30144
  def __ne__(self, other):
30145
    return not (self == other)
30146
 
30147
class getAllActivePrivateDeals_result:
30148
  """
30149
  Attributes:
30150
   - success
30151
  """
30152
 
30153
  thrift_spec = (
30154
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.thrift_spec)), None, ), # 0
30155
  )
30156
 
30157
  def __init__(self, success=None,):
30158
    self.success = success
30159
 
30160
  def read(self, iprot):
30161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30163
      return
30164
    iprot.readStructBegin()
30165
    while True:
30166
      (fname, ftype, fid) = iprot.readFieldBegin()
30167
      if ftype == TType.STOP:
30168
        break
30169
      if fid == 0:
30170
        if ftype == TType.MAP:
30171
          self.success = {}
13493 amit.gupta 30172
          (_ktype688, _vtype689, _size687 ) = iprot.readMapBegin() 
30173
          for _i691 in xrange(_size687):
30174
            _key692 = iprot.readI64();
30175
            _val693 = PrivateDeal()
30176
            _val693.read(iprot)
30177
            self.success[_key692] = _val693
11592 amit.gupta 30178
          iprot.readMapEnd()
30179
        else:
30180
          iprot.skip(ftype)
30181
      else:
30182
        iprot.skip(ftype)
30183
      iprot.readFieldEnd()
30184
    iprot.readStructEnd()
30185
 
30186
  def write(self, oprot):
30187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30189
      return
30190
    oprot.writeStructBegin('getAllActivePrivateDeals_result')
30191
    if self.success is not None:
30192
      oprot.writeFieldBegin('success', TType.MAP, 0)
30193
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
13493 amit.gupta 30194
      for kiter694,viter695 in self.success.items():
30195
        oprot.writeI64(kiter694)
30196
        viter695.write(oprot)
11592 amit.gupta 30197
      oprot.writeMapEnd()
30198
      oprot.writeFieldEnd()
30199
    oprot.writeFieldStop()
30200
    oprot.writeStructEnd()
30201
 
30202
  def validate(self):
30203
    return
30204
 
30205
 
30206
  def __repr__(self):
30207
    L = ['%s=%r' % (key, value)
30208
      for key, value in self.__dict__.iteritems()]
30209
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30210
 
30211
  def __eq__(self, other):
30212
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30213
 
30214
  def __ne__(self, other):
30215
    return not (self == other)
30216
 
11531 vikram.rag 30217
class addOrUpdatePrivateDeal_args:
30218
  """
30219
  Attributes:
30220
   - privateDeal
30221
  """
30222
 
30223
  thrift_spec = (
30224
    None, # 0
30225
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
30226
  )
30227
 
30228
  def __init__(self, privateDeal=None,):
30229
    self.privateDeal = privateDeal
30230
 
30231
  def read(self, iprot):
30232
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30233
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30234
      return
30235
    iprot.readStructBegin()
30236
    while True:
30237
      (fname, ftype, fid) = iprot.readFieldBegin()
30238
      if ftype == TType.STOP:
30239
        break
30240
      if fid == 1:
30241
        if ftype == TType.STRUCT:
30242
          self.privateDeal = PrivateDeal()
30243
          self.privateDeal.read(iprot)
30244
        else:
30245
          iprot.skip(ftype)
30246
      else:
30247
        iprot.skip(ftype)
30248
      iprot.readFieldEnd()
30249
    iprot.readStructEnd()
30250
 
30251
  def write(self, oprot):
30252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30254
      return
30255
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
30256
    if self.privateDeal is not None:
30257
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
30258
      self.privateDeal.write(oprot)
30259
      oprot.writeFieldEnd()
30260
    oprot.writeFieldStop()
30261
    oprot.writeStructEnd()
30262
 
30263
  def validate(self):
30264
    return
30265
 
30266
 
30267
  def __repr__(self):
30268
    L = ['%s=%r' % (key, value)
30269
      for key, value in self.__dict__.iteritems()]
30270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30271
 
30272
  def __eq__(self, other):
30273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30274
 
30275
  def __ne__(self, other):
30276
    return not (self == other)
30277
 
30278
class addOrUpdatePrivateDeal_result:
30279
  """
30280
  Attributes:
30281
   - success
30282
  """
30283
 
30284
  thrift_spec = (
30285
    (0, TType.BOOL, 'success', None, None, ), # 0
30286
  )
30287
 
30288
  def __init__(self, success=None,):
30289
    self.success = success
30290
 
30291
  def read(self, iprot):
30292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30294
      return
30295
    iprot.readStructBegin()
30296
    while True:
30297
      (fname, ftype, fid) = iprot.readFieldBegin()
30298
      if ftype == TType.STOP:
30299
        break
30300
      if fid == 0:
30301
        if ftype == TType.BOOL:
30302
          self.success = iprot.readBool();
30303
        else:
30304
          iprot.skip(ftype)
30305
      else:
30306
        iprot.skip(ftype)
30307
      iprot.readFieldEnd()
30308
    iprot.readStructEnd()
30309
 
30310
  def write(self, oprot):
30311
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30312
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30313
      return
30314
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
30315
    if self.success is not None:
30316
      oprot.writeFieldBegin('success', TType.BOOL, 0)
30317
      oprot.writeBool(self.success)
30318
      oprot.writeFieldEnd()
30319
    oprot.writeFieldStop()
30320
    oprot.writeStructEnd()
30321
 
30322
  def validate(self):
30323
    return
30324
 
30325
 
30326
  def __repr__(self):
30327
    L = ['%s=%r' % (key, value)
30328
      for key, value in self.__dict__.iteritems()]
30329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30330
 
30331
  def __eq__(self, other):
30332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30333
 
30334
  def __ne__(self, other):
30335
    return not (self == other)
11635 vikram.rag 30336
 
30337
class getPrivateDealsCatalogIds_args:
30338
  """
30339
  Attributes:
30340
   - beginIndex
30341
   - totalItems
30342
  """
30343
 
30344
  thrift_spec = (
30345
    None, # 0
30346
    (1, TType.I64, 'beginIndex', None, None, ), # 1
30347
    (2, TType.I64, 'totalItems', None, None, ), # 2
30348
  )
30349
 
30350
  def __init__(self, beginIndex=None, totalItems=None,):
30351
    self.beginIndex = beginIndex
30352
    self.totalItems = totalItems
30353
 
30354
  def read(self, iprot):
30355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30357
      return
30358
    iprot.readStructBegin()
30359
    while True:
30360
      (fname, ftype, fid) = iprot.readFieldBegin()
30361
      if ftype == TType.STOP:
30362
        break
30363
      if fid == 1:
30364
        if ftype == TType.I64:
30365
          self.beginIndex = iprot.readI64();
30366
        else:
30367
          iprot.skip(ftype)
30368
      elif fid == 2:
30369
        if ftype == TType.I64:
30370
          self.totalItems = iprot.readI64();
30371
        else:
30372
          iprot.skip(ftype)
30373
      else:
30374
        iprot.skip(ftype)
30375
      iprot.readFieldEnd()
30376
    iprot.readStructEnd()
30377
 
30378
  def write(self, oprot):
30379
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30380
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30381
      return
30382
    oprot.writeStructBegin('getPrivateDealsCatalogIds_args')
30383
    if self.beginIndex is not None:
30384
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
30385
      oprot.writeI64(self.beginIndex)
30386
      oprot.writeFieldEnd()
30387
    if self.totalItems is not None:
30388
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
30389
      oprot.writeI64(self.totalItems)
30390
      oprot.writeFieldEnd()
30391
    oprot.writeFieldStop()
30392
    oprot.writeStructEnd()
30393
 
30394
  def validate(self):
30395
    return
30396
 
30397
 
30398
  def __repr__(self):
30399
    L = ['%s=%r' % (key, value)
30400
      for key, value in self.__dict__.iteritems()]
30401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30402
 
30403
  def __eq__(self, other):
30404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30405
 
30406
  def __ne__(self, other):
30407
    return not (self == other)
30408
 
30409
class getPrivateDealsCatalogIds_result:
30410
  """
30411
  Attributes:
30412
   - success
30413
   - cex
30414
  """
30415
 
30416
  thrift_spec = (
30417
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
30418
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
30419
  )
30420
 
30421
  def __init__(self, success=None, cex=None,):
30422
    self.success = success
30423
    self.cex = cex
30424
 
30425
  def read(self, iprot):
30426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30428
      return
30429
    iprot.readStructBegin()
30430
    while True:
30431
      (fname, ftype, fid) = iprot.readFieldBegin()
30432
      if ftype == TType.STOP:
30433
        break
30434
      if fid == 0:
30435
        if ftype == TType.LIST:
30436
          self.success = []
13493 amit.gupta 30437
          (_etype699, _size696) = iprot.readListBegin()
30438
          for _i700 in xrange(_size696):
30439
            _elem701 = iprot.readI64();
30440
            self.success.append(_elem701)
11635 vikram.rag 30441
          iprot.readListEnd()
30442
        else:
30443
          iprot.skip(ftype)
30444
      elif fid == 1:
30445
        if ftype == TType.STRUCT:
30446
          self.cex = CatalogServiceException()
30447
          self.cex.read(iprot)
30448
        else:
30449
          iprot.skip(ftype)
30450
      else:
30451
        iprot.skip(ftype)
30452
      iprot.readFieldEnd()
30453
    iprot.readStructEnd()
30454
 
30455
  def write(self, oprot):
30456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30458
      return
30459
    oprot.writeStructBegin('getPrivateDealsCatalogIds_result')
30460
    if self.success is not None:
30461
      oprot.writeFieldBegin('success', TType.LIST, 0)
30462
      oprot.writeListBegin(TType.I64, len(self.success))
13493 amit.gupta 30463
      for iter702 in self.success:
30464
        oprot.writeI64(iter702)
11635 vikram.rag 30465
      oprot.writeListEnd()
30466
      oprot.writeFieldEnd()
30467
    if self.cex is not None:
30468
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
30469
      self.cex.write(oprot)
30470
      oprot.writeFieldEnd()
30471
    oprot.writeFieldStop()
30472
    oprot.writeStructEnd()
30473
 
30474
  def validate(self):
30475
    return
30476
 
30477
 
30478
  def __repr__(self):
30479
    L = ['%s=%r' % (key, value)
30480
      for key, value in self.__dict__.iteritems()]
30481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30482
 
30483
  def __eq__(self, other):
30484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30485
 
30486
  def __ne__(self, other):
30487
    return not (self == other)
11645 amit.gupta 30488
 
30489
class getPrivateDealsCount_args:
30490
 
30491
  thrift_spec = (
30492
  )
30493
 
30494
  def read(self, iprot):
30495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30497
      return
30498
    iprot.readStructBegin()
30499
    while True:
30500
      (fname, ftype, fid) = iprot.readFieldBegin()
30501
      if ftype == TType.STOP:
30502
        break
30503
      else:
30504
        iprot.skip(ftype)
30505
      iprot.readFieldEnd()
30506
    iprot.readStructEnd()
30507
 
30508
  def write(self, oprot):
30509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30511
      return
30512
    oprot.writeStructBegin('getPrivateDealsCount_args')
30513
    oprot.writeFieldStop()
30514
    oprot.writeStructEnd()
30515
 
30516
  def validate(self):
30517
    return
30518
 
30519
 
30520
  def __repr__(self):
30521
    L = ['%s=%r' % (key, value)
30522
      for key, value in self.__dict__.iteritems()]
30523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30524
 
30525
  def __eq__(self, other):
30526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30527
 
30528
  def __ne__(self, other):
30529
    return not (self == other)
30530
 
30531
class getPrivateDealsCount_result:
30532
  """
30533
  Attributes:
30534
   - success
30535
  """
30536
 
30537
  thrift_spec = (
30538
    (0, TType.I32, 'success', None, None, ), # 0
30539
  )
30540
 
30541
  def __init__(self, success=None,):
30542
    self.success = success
30543
 
30544
  def read(self, iprot):
30545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30547
      return
30548
    iprot.readStructBegin()
30549
    while True:
30550
      (fname, ftype, fid) = iprot.readFieldBegin()
30551
      if ftype == TType.STOP:
30552
        break
30553
      if fid == 0:
30554
        if ftype == TType.I32:
30555
          self.success = iprot.readI32();
30556
        else:
30557
          iprot.skip(ftype)
30558
      else:
30559
        iprot.skip(ftype)
30560
      iprot.readFieldEnd()
30561
    iprot.readStructEnd()
30562
 
30563
  def write(self, oprot):
30564
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30565
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30566
      return
30567
    oprot.writeStructBegin('getPrivateDealsCount_result')
30568
    if self.success is not None:
30569
      oprot.writeFieldBegin('success', TType.I32, 0)
30570
      oprot.writeI32(self.success)
30571
      oprot.writeFieldEnd()
30572
    oprot.writeFieldStop()
30573
    oprot.writeStructEnd()
30574
 
30575
  def validate(self):
30576
    return
30577
 
30578
 
30579
  def __repr__(self):
30580
    L = ['%s=%r' % (key, value)
30581
      for key, value in self.__dict__.iteritems()]
30582
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30583
 
30584
  def __eq__(self, other):
30585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30586
 
30587
  def __ne__(self, other):
30588
    return not (self == other)
11905 kshitij.so 30589
 
30590
class getAmazonOutSyncItems_args:
30591
  """
30592
  Attributes:
30593
   - item_id
30594
  """
30595
 
30596
  thrift_spec = (
30597
    None, # 0
30598
    (1, TType.I64, 'item_id', None, None, ), # 1
30599
  )
30600
 
30601
  def __init__(self, item_id=None,):
30602
    self.item_id = item_id
30603
 
30604
  def read(self, iprot):
30605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30607
      return
30608
    iprot.readStructBegin()
30609
    while True:
30610
      (fname, ftype, fid) = iprot.readFieldBegin()
30611
      if ftype == TType.STOP:
30612
        break
30613
      if fid == 1:
30614
        if ftype == TType.I64:
30615
          self.item_id = iprot.readI64();
30616
        else:
30617
          iprot.skip(ftype)
30618
      else:
30619
        iprot.skip(ftype)
30620
      iprot.readFieldEnd()
30621
    iprot.readStructEnd()
30622
 
30623
  def write(self, oprot):
30624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30626
      return
30627
    oprot.writeStructBegin('getAmazonOutSyncItems_args')
30628
    if self.item_id is not None:
30629
      oprot.writeFieldBegin('item_id', TType.I64, 1)
30630
      oprot.writeI64(self.item_id)
30631
      oprot.writeFieldEnd()
30632
    oprot.writeFieldStop()
30633
    oprot.writeStructEnd()
30634
 
30635
  def validate(self):
30636
    return
30637
 
30638
 
30639
  def __repr__(self):
30640
    L = ['%s=%r' % (key, value)
30641
      for key, value in self.__dict__.iteritems()]
30642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30643
 
30644
  def __eq__(self, other):
30645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30646
 
30647
  def __ne__(self, other):
30648
    return not (self == other)
30649
 
30650
class getAmazonOutSyncItems_result:
30651
  """
30652
  Attributes:
30653
   - success
30654
  """
30655
 
30656
  thrift_spec = (
30657
    (0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.thrift_spec), None, ), # 0
30658
  )
30659
 
30660
  def __init__(self, success=None,):
30661
    self.success = success
30662
 
30663
  def read(self, iprot):
30664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30666
      return
30667
    iprot.readStructBegin()
30668
    while True:
30669
      (fname, ftype, fid) = iprot.readFieldBegin()
30670
      if ftype == TType.STOP:
30671
        break
30672
      if fid == 0:
30673
        if ftype == TType.STRUCT:
30674
          self.success = AmazonOutOfSync()
30675
          self.success.read(iprot)
30676
        else:
30677
          iprot.skip(ftype)
30678
      else:
30679
        iprot.skip(ftype)
30680
      iprot.readFieldEnd()
30681
    iprot.readStructEnd()
30682
 
30683
  def write(self, oprot):
30684
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30685
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30686
      return
30687
    oprot.writeStructBegin('getAmazonOutSyncItems_result')
30688
    if self.success is not None:
30689
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
30690
      self.success.write(oprot)
30691
      oprot.writeFieldEnd()
30692
    oprot.writeFieldStop()
30693
    oprot.writeStructEnd()
30694
 
30695
  def validate(self):
30696
    return
30697
 
30698
 
30699
  def __repr__(self):
30700
    L = ['%s=%r' % (key, value)
30701
      for key, value in self.__dict__.iteritems()]
30702
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30703
 
30704
  def __eq__(self, other):
30705
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30706
 
30707
  def __ne__(self, other):
30708
    return not (self == other)
30709
 
30710
class getAllPrivateDealsComparison_args:
30711
 
30712
  thrift_spec = (
30713
  )
30714
 
30715
  def read(self, iprot):
30716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30718
      return
30719
    iprot.readStructBegin()
30720
    while True:
30721
      (fname, ftype, fid) = iprot.readFieldBegin()
30722
      if ftype == TType.STOP:
30723
        break
30724
      else:
30725
        iprot.skip(ftype)
30726
      iprot.readFieldEnd()
30727
    iprot.readStructEnd()
30728
 
30729
  def write(self, oprot):
30730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30732
      return
30733
    oprot.writeStructBegin('getAllPrivateDealsComparison_args')
30734
    oprot.writeFieldStop()
30735
    oprot.writeStructEnd()
30736
 
30737
  def validate(self):
30738
    return
30739
 
30740
 
30741
  def __repr__(self):
30742
    L = ['%s=%r' % (key, value)
30743
      for key, value in self.__dict__.iteritems()]
30744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30745
 
30746
  def __eq__(self, other):
30747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30748
 
30749
  def __ne__(self, other):
30750
    return not (self == other)
30751
 
30752
class getAllPrivateDealsComparison_result:
30753
  """
30754
  Attributes:
30755
   - success
30756
  """
30757
 
30758
  thrift_spec = (
30759
    (0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.thrift_spec)), None, ), # 0
30760
  )
30761
 
30762
  def __init__(self, success=None,):
30763
    self.success = success
30764
 
30765
  def read(self, iprot):
30766
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30767
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30768
      return
30769
    iprot.readStructBegin()
30770
    while True:
30771
      (fname, ftype, fid) = iprot.readFieldBegin()
30772
      if ftype == TType.STOP:
30773
        break
30774
      if fid == 0:
30775
        if ftype == TType.LIST:
30776
          self.success = []
13493 amit.gupta 30777
          (_etype706, _size703) = iprot.readListBegin()
30778
          for _i707 in xrange(_size703):
30779
            _elem708 = PdPriceComp()
30780
            _elem708.read(iprot)
30781
            self.success.append(_elem708)
11905 kshitij.so 30782
          iprot.readListEnd()
30783
        else:
30784
          iprot.skip(ftype)
30785
      else:
30786
        iprot.skip(ftype)
30787
      iprot.readFieldEnd()
30788
    iprot.readStructEnd()
30789
 
30790
  def write(self, oprot):
30791
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30792
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30793
      return
30794
    oprot.writeStructBegin('getAllPrivateDealsComparison_result')
30795
    if self.success is not None:
30796
      oprot.writeFieldBegin('success', TType.LIST, 0)
30797
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 30798
      for iter709 in self.success:
30799
        iter709.write(oprot)
11905 kshitij.so 30800
      oprot.writeListEnd()
30801
      oprot.writeFieldEnd()
30802
    oprot.writeFieldStop()
30803
    oprot.writeStructEnd()
30804
 
30805
  def validate(self):
30806
    return
30807
 
30808
 
30809
  def __repr__(self):
30810
    L = ['%s=%r' % (key, value)
30811
      for key, value in self.__dict__.iteritems()]
30812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30813
 
30814
  def __eq__(self, other):
30815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30816
 
30817
  def __ne__(self, other):
30818
    return not (self == other)
12133 kshitij.so 30819
 
30820
class getAllSnapdealMarketplaceItem_args:
30821
 
30822
  thrift_spec = (
30823
  )
30824
 
30825
  def read(self, iprot):
30826
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30827
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30828
      return
30829
    iprot.readStructBegin()
30830
    while True:
30831
      (fname, ftype, fid) = iprot.readFieldBegin()
30832
      if ftype == TType.STOP:
30833
        break
30834
      else:
30835
        iprot.skip(ftype)
30836
      iprot.readFieldEnd()
30837
    iprot.readStructEnd()
30838
 
30839
  def write(self, oprot):
30840
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30841
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30842
      return
30843
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_args')
30844
    oprot.writeFieldStop()
30845
    oprot.writeStructEnd()
30846
 
30847
  def validate(self):
30848
    return
30849
 
30850
 
30851
  def __repr__(self):
30852
    L = ['%s=%r' % (key, value)
30853
      for key, value in self.__dict__.iteritems()]
30854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30855
 
30856
  def __eq__(self, other):
30857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30858
 
30859
  def __ne__(self, other):
30860
    return not (self == other)
30861
 
30862
class getAllSnapdealMarketplaceItem_result:
30863
  """
30864
  Attributes:
30865
   - success
30866
  """
30867
 
30868
  thrift_spec = (
30869
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
30870
  )
30871
 
30872
  def __init__(self, success=None,):
30873
    self.success = success
30874
 
30875
  def read(self, iprot):
30876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30878
      return
30879
    iprot.readStructBegin()
30880
    while True:
30881
      (fname, ftype, fid) = iprot.readFieldBegin()
30882
      if ftype == TType.STOP:
30883
        break
30884
      if fid == 0:
30885
        if ftype == TType.LIST:
30886
          self.success = []
13493 amit.gupta 30887
          (_etype713, _size710) = iprot.readListBegin()
30888
          for _i714 in xrange(_size710):
30889
            _elem715 = SnapdealItem()
30890
            _elem715.read(iprot)
30891
            self.success.append(_elem715)
12133 kshitij.so 30892
          iprot.readListEnd()
30893
        else:
30894
          iprot.skip(ftype)
30895
      else:
30896
        iprot.skip(ftype)
30897
      iprot.readFieldEnd()
30898
    iprot.readStructEnd()
30899
 
30900
  def write(self, oprot):
30901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30903
      return
30904
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_result')
30905
    if self.success is not None:
30906
      oprot.writeFieldBegin('success', TType.LIST, 0)
30907
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 30908
      for iter716 in self.success:
30909
        iter716.write(oprot)
12133 kshitij.so 30910
      oprot.writeListEnd()
30911
      oprot.writeFieldEnd()
30912
    oprot.writeFieldStop()
30913
    oprot.writeStructEnd()
30914
 
30915
  def validate(self):
30916
    return
30917
 
30918
 
30919
  def __repr__(self):
30920
    L = ['%s=%r' % (key, value)
30921
      for key, value in self.__dict__.iteritems()]
30922
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30923
 
30924
  def __eq__(self, other):
30925
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30926
 
30927
  def __ne__(self, other):
30928
    return not (self == other)
30929
 
30930
class getAllFlipkartMarketplaceItem_args:
30931
 
30932
  thrift_spec = (
30933
  )
30934
 
30935
  def read(self, iprot):
30936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30938
      return
30939
    iprot.readStructBegin()
30940
    while True:
30941
      (fname, ftype, fid) = iprot.readFieldBegin()
30942
      if ftype == TType.STOP:
30943
        break
30944
      else:
30945
        iprot.skip(ftype)
30946
      iprot.readFieldEnd()
30947
    iprot.readStructEnd()
30948
 
30949
  def write(self, oprot):
30950
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30951
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30952
      return
30953
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_args')
30954
    oprot.writeFieldStop()
30955
    oprot.writeStructEnd()
30956
 
30957
  def validate(self):
30958
    return
30959
 
30960
 
30961
  def __repr__(self):
30962
    L = ['%s=%r' % (key, value)
30963
      for key, value in self.__dict__.iteritems()]
30964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30965
 
30966
  def __eq__(self, other):
30967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30968
 
30969
  def __ne__(self, other):
30970
    return not (self == other)
30971
 
30972
class getAllFlipkartMarketplaceItem_result:
30973
  """
30974
  Attributes:
30975
   - success
30976
  """
30977
 
30978
  thrift_spec = (
30979
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
30980
  )
30981
 
30982
  def __init__(self, success=None,):
30983
    self.success = success
30984
 
30985
  def read(self, iprot):
30986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30988
      return
30989
    iprot.readStructBegin()
30990
    while True:
30991
      (fname, ftype, fid) = iprot.readFieldBegin()
30992
      if ftype == TType.STOP:
30993
        break
30994
      if fid == 0:
30995
        if ftype == TType.LIST:
30996
          self.success = []
13493 amit.gupta 30997
          (_etype720, _size717) = iprot.readListBegin()
30998
          for _i721 in xrange(_size717):
30999
            _elem722 = FlipkartItem()
31000
            _elem722.read(iprot)
31001
            self.success.append(_elem722)
12133 kshitij.so 31002
          iprot.readListEnd()
31003
        else:
31004
          iprot.skip(ftype)
31005
      else:
31006
        iprot.skip(ftype)
31007
      iprot.readFieldEnd()
31008
    iprot.readStructEnd()
31009
 
31010
  def write(self, oprot):
31011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31013
      return
31014
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_result')
31015
    if self.success is not None:
31016
      oprot.writeFieldBegin('success', TType.LIST, 0)
31017
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31018
      for iter723 in self.success:
31019
        iter723.write(oprot)
12133 kshitij.so 31020
      oprot.writeListEnd()
31021
      oprot.writeFieldEnd()
31022
    oprot.writeFieldStop()
31023
    oprot.writeStructEnd()
31024
 
31025
  def validate(self):
31026
    return
31027
 
31028
 
31029
  def __repr__(self):
31030
    L = ['%s=%r' % (key, value)
31031
      for key, value in self.__dict__.iteritems()]
31032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31033
 
31034
  def __eq__(self, other):
31035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31036
 
31037
  def __ne__(self, other):
31038
    return not (self == other)
12243 kshitij.so 31039
 
31040
class addCompetitorScraping_args:
31041
  """
31042
  Attributes:
31043
   - competitorPricingMap
31044
  """
31045
 
31046
  thrift_spec = (
31047
    None, # 0
31048
    (1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1
31049
  )
31050
 
31051
  def __init__(self, competitorPricingMap=None,):
31052
    self.competitorPricingMap = competitorPricingMap
31053
 
31054
  def read(self, iprot):
31055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31057
      return
31058
    iprot.readStructBegin()
31059
    while True:
31060
      (fname, ftype, fid) = iprot.readFieldBegin()
31061
      if ftype == TType.STOP:
31062
        break
31063
      if fid == 1:
31064
        if ftype == TType.MAP:
31065
          self.competitorPricingMap = {}
13493 amit.gupta 31066
          (_ktype725, _vtype726, _size724 ) = iprot.readMapBegin() 
31067
          for _i728 in xrange(_size724):
31068
            _key729 = iprot.readI64();
31069
            _val730 = CompetitorPricing()
31070
            _val730.read(iprot)
31071
            self.competitorPricingMap[_key729] = _val730
12243 kshitij.so 31072
          iprot.readMapEnd()
31073
        else:
31074
          iprot.skip(ftype)
31075
      else:
31076
        iprot.skip(ftype)
31077
      iprot.readFieldEnd()
31078
    iprot.readStructEnd()
31079
 
31080
  def write(self, oprot):
31081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31083
      return
31084
    oprot.writeStructBegin('addCompetitorScraping_args')
31085
    if self.competitorPricingMap is not None:
31086
      oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)
31087
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))
13493 amit.gupta 31088
      for kiter731,viter732 in self.competitorPricingMap.items():
31089
        oprot.writeI64(kiter731)
31090
        viter732.write(oprot)
12243 kshitij.so 31091
      oprot.writeMapEnd()
31092
      oprot.writeFieldEnd()
31093
    oprot.writeFieldStop()
31094
    oprot.writeStructEnd()
31095
 
31096
  def validate(self):
31097
    return
31098
 
31099
 
31100
  def __repr__(self):
31101
    L = ['%s=%r' % (key, value)
31102
      for key, value in self.__dict__.iteritems()]
31103
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31104
 
31105
  def __eq__(self, other):
31106
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31107
 
31108
  def __ne__(self, other):
31109
    return not (self == other)
31110
 
31111
class addCompetitorScraping_result:
31112
 
31113
  thrift_spec = (
31114
  )
31115
 
31116
  def read(self, iprot):
31117
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31118
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31119
      return
31120
    iprot.readStructBegin()
31121
    while True:
31122
      (fname, ftype, fid) = iprot.readFieldBegin()
31123
      if ftype == TType.STOP:
31124
        break
31125
      else:
31126
        iprot.skip(ftype)
31127
      iprot.readFieldEnd()
31128
    iprot.readStructEnd()
31129
 
31130
  def write(self, oprot):
31131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31133
      return
31134
    oprot.writeStructBegin('addCompetitorScraping_result')
31135
    oprot.writeFieldStop()
31136
    oprot.writeStructEnd()
31137
 
31138
  def validate(self):
31139
    return
31140
 
31141
 
31142
  def __repr__(self):
31143
    L = ['%s=%r' % (key, value)
31144
      for key, value in self.__dict__.iteritems()]
31145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31146
 
31147
  def __eq__(self, other):
31148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31149
 
31150
  def __ne__(self, other):
31151
    return not (self == other)
31152
 
31153
class getPreviousCompetitorScraping_args:
31154
  """
31155
  Attributes:
31156
   - delta
31157
  """
31158
 
31159
  thrift_spec = (
31160
    None, # 0
31161
    (1, TType.I64, 'delta', None, None, ), # 1
31162
  )
31163
 
31164
  def __init__(self, delta=None,):
31165
    self.delta = delta
31166
 
31167
  def read(self, iprot):
31168
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31169
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31170
      return
31171
    iprot.readStructBegin()
31172
    while True:
31173
      (fname, ftype, fid) = iprot.readFieldBegin()
31174
      if ftype == TType.STOP:
31175
        break
31176
      if fid == 1:
31177
        if ftype == TType.I64:
31178
          self.delta = iprot.readI64();
31179
        else:
31180
          iprot.skip(ftype)
31181
      else:
31182
        iprot.skip(ftype)
31183
      iprot.readFieldEnd()
31184
    iprot.readStructEnd()
31185
 
31186
  def write(self, oprot):
31187
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31188
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31189
      return
31190
    oprot.writeStructBegin('getPreviousCompetitorScraping_args')
31191
    if self.delta is not None:
31192
      oprot.writeFieldBegin('delta', TType.I64, 1)
31193
      oprot.writeI64(self.delta)
31194
      oprot.writeFieldEnd()
31195
    oprot.writeFieldStop()
31196
    oprot.writeStructEnd()
31197
 
31198
  def validate(self):
31199
    return
31200
 
31201
 
31202
  def __repr__(self):
31203
    L = ['%s=%r' % (key, value)
31204
      for key, value in self.__dict__.iteritems()]
31205
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31206
 
31207
  def __eq__(self, other):
31208
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31209
 
31210
  def __ne__(self, other):
31211
    return not (self == other)
31212
 
31213
class getPreviousCompetitorScraping_result:
31214
  """
31215
  Attributes:
31216
   - success
31217
  """
31218
 
31219
  thrift_spec = (
31220
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31221
  )
31222
 
31223
  def __init__(self, success=None,):
31224
    self.success = success
31225
 
31226
  def read(self, iprot):
31227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31229
      return
31230
    iprot.readStructBegin()
31231
    while True:
31232
      (fname, ftype, fid) = iprot.readFieldBegin()
31233
      if ftype == TType.STOP:
31234
        break
31235
      if fid == 0:
31236
        if ftype == TType.LIST:
31237
          self.success = []
13493 amit.gupta 31238
          (_etype736, _size733) = iprot.readListBegin()
31239
          for _i737 in xrange(_size733):
31240
            _elem738 = CompetitorPricing()
31241
            _elem738.read(iprot)
31242
            self.success.append(_elem738)
12243 kshitij.so 31243
          iprot.readListEnd()
31244
        else:
31245
          iprot.skip(ftype)
31246
      else:
31247
        iprot.skip(ftype)
31248
      iprot.readFieldEnd()
31249
    iprot.readStructEnd()
31250
 
31251
  def write(self, oprot):
31252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31254
      return
31255
    oprot.writeStructBegin('getPreviousCompetitorScraping_result')
31256
    if self.success is not None:
31257
      oprot.writeFieldBegin('success', TType.LIST, 0)
31258
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31259
      for iter739 in self.success:
31260
        iter739.write(oprot)
12243 kshitij.so 31261
      oprot.writeListEnd()
31262
      oprot.writeFieldEnd()
31263
    oprot.writeFieldStop()
31264
    oprot.writeStructEnd()
31265
 
31266
  def validate(self):
31267
    return
31268
 
31269
 
31270
  def __repr__(self):
31271
    L = ['%s=%r' % (key, value)
31272
      for key, value in self.__dict__.iteritems()]
31273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31274
 
31275
  def __eq__(self, other):
31276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31277
 
31278
  def __ne__(self, other):
31279
    return not (self == other)
12256 kshitij.so 31280
 
31281
class getUploadResultById_args:
31282
  """
31283
  Attributes:
31284
   - uploadId
31285
  """
31286
 
31287
  thrift_spec = (
31288
    None, # 0
31289
    (1, TType.I64, 'uploadId', None, None, ), # 1
31290
  )
31291
 
31292
  def __init__(self, uploadId=None,):
31293
    self.uploadId = uploadId
31294
 
31295
  def read(self, iprot):
31296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31298
      return
31299
    iprot.readStructBegin()
31300
    while True:
31301
      (fname, ftype, fid) = iprot.readFieldBegin()
31302
      if ftype == TType.STOP:
31303
        break
31304
      if fid == 1:
31305
        if ftype == TType.I64:
31306
          self.uploadId = iprot.readI64();
31307
        else:
31308
          iprot.skip(ftype)
31309
      else:
31310
        iprot.skip(ftype)
31311
      iprot.readFieldEnd()
31312
    iprot.readStructEnd()
31313
 
31314
  def write(self, oprot):
31315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31317
      return
31318
    oprot.writeStructBegin('getUploadResultById_args')
31319
    if self.uploadId is not None:
31320
      oprot.writeFieldBegin('uploadId', TType.I64, 1)
31321
      oprot.writeI64(self.uploadId)
31322
      oprot.writeFieldEnd()
31323
    oprot.writeFieldStop()
31324
    oprot.writeStructEnd()
31325
 
31326
  def validate(self):
31327
    return
31328
 
31329
 
31330
  def __repr__(self):
31331
    L = ['%s=%r' % (key, value)
31332
      for key, value in self.__dict__.iteritems()]
31333
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31334
 
31335
  def __eq__(self, other):
31336
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31337
 
31338
  def __ne__(self, other):
31339
    return not (self == other)
31340
 
31341
class getUploadResultById_result:
31342
  """
31343
  Attributes:
31344
   - success
31345
  """
31346
 
31347
  thrift_spec = (
31348
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31349
  )
31350
 
31351
  def __init__(self, success=None,):
31352
    self.success = success
31353
 
31354
  def read(self, iprot):
31355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31357
      return
31358
    iprot.readStructBegin()
31359
    while True:
31360
      (fname, ftype, fid) = iprot.readFieldBegin()
31361
      if ftype == TType.STOP:
31362
        break
31363
      if fid == 0:
31364
        if ftype == TType.LIST:
31365
          self.success = []
13493 amit.gupta 31366
          (_etype743, _size740) = iprot.readListBegin()
31367
          for _i744 in xrange(_size740):
31368
            _elem745 = CompetitorPricing()
31369
            _elem745.read(iprot)
31370
            self.success.append(_elem745)
12256 kshitij.so 31371
          iprot.readListEnd()
31372
        else:
31373
          iprot.skip(ftype)
31374
      else:
31375
        iprot.skip(ftype)
31376
      iprot.readFieldEnd()
31377
    iprot.readStructEnd()
31378
 
31379
  def write(self, oprot):
31380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31382
      return
31383
    oprot.writeStructBegin('getUploadResultById_result')
31384
    if self.success is not None:
31385
      oprot.writeFieldBegin('success', TType.LIST, 0)
31386
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31387
      for iter746 in self.success:
31388
        iter746.write(oprot)
12256 kshitij.so 31389
      oprot.writeListEnd()
31390
      oprot.writeFieldEnd()
31391
    oprot.writeFieldStop()
31392
    oprot.writeStructEnd()
31393
 
31394
  def validate(self):
31395
    return
31396
 
31397
 
31398
  def __repr__(self):
31399
    L = ['%s=%r' % (key, value)
31400
      for key, value in self.__dict__.iteritems()]
31401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31402
 
31403
  def __eq__(self, other):
31404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31405
 
31406
  def __ne__(self, other):
31407
    return not (self == other)
12363 kshitij.so 31408
 
31409
class addAmazonPromotion_args:
31410
  """
31411
  Attributes:
31412
   - amazonPromotions
31413
  """
31414
 
31415
  thrift_spec = (
31416
    None, # 0
31417
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31418
  )
31419
 
31420
  def __init__(self, amazonPromotions=None,):
31421
    self.amazonPromotions = amazonPromotions
31422
 
31423
  def read(self, iprot):
31424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31426
      return
31427
    iprot.readStructBegin()
31428
    while True:
31429
      (fname, ftype, fid) = iprot.readFieldBegin()
31430
      if ftype == TType.STOP:
31431
        break
31432
      if fid == 1:
31433
        if ftype == TType.MAP:
31434
          self.amazonPromotions = {}
13493 amit.gupta 31435
          (_ktype748, _vtype749, _size747 ) = iprot.readMapBegin() 
31436
          for _i751 in xrange(_size747):
31437
            _key752 = iprot.readString();
31438
            _val753 = AmazonPromotion()
31439
            _val753.read(iprot)
31440
            self.amazonPromotions[_key752] = _val753
12363 kshitij.so 31441
          iprot.readMapEnd()
31442
        else:
31443
          iprot.skip(ftype)
31444
      else:
31445
        iprot.skip(ftype)
31446
      iprot.readFieldEnd()
31447
    iprot.readStructEnd()
31448
 
31449
  def write(self, oprot):
31450
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31451
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31452
      return
31453
    oprot.writeStructBegin('addAmazonPromotion_args')
31454
    if self.amazonPromotions is not None:
31455
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
31456
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
13493 amit.gupta 31457
      for kiter754,viter755 in self.amazonPromotions.items():
31458
        oprot.writeString(kiter754)
31459
        viter755.write(oprot)
12363 kshitij.so 31460
      oprot.writeMapEnd()
31461
      oprot.writeFieldEnd()
31462
    oprot.writeFieldStop()
31463
    oprot.writeStructEnd()
31464
 
31465
  def validate(self):
31466
    return
31467
 
31468
 
31469
  def __repr__(self):
31470
    L = ['%s=%r' % (key, value)
31471
      for key, value in self.__dict__.iteritems()]
31472
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31473
 
31474
  def __eq__(self, other):
31475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31476
 
31477
  def __ne__(self, other):
31478
    return not (self == other)
31479
 
31480
class addAmazonPromotion_result:
31481
  """
31482
  Attributes:
31483
   - success
12947 kshitij.so 31484
   - cex
12363 kshitij.so 31485
  """
31486
 
31487
  thrift_spec = (
12947 kshitij.so 31488
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
31489
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12363 kshitij.so 31490
  )
31491
 
12947 kshitij.so 31492
  def __init__(self, success=None, cex=None,):
12363 kshitij.so 31493
    self.success = success
12947 kshitij.so 31494
    self.cex = cex
12363 kshitij.so 31495
 
31496
  def read(self, iprot):
31497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31499
      return
31500
    iprot.readStructBegin()
31501
    while True:
31502
      (fname, ftype, fid) = iprot.readFieldBegin()
31503
      if ftype == TType.STOP:
31504
        break
31505
      if fid == 0:
12947 kshitij.so 31506
        if ftype == TType.LIST:
31507
          self.success = []
13493 amit.gupta 31508
          (_etype759, _size756) = iprot.readListBegin()
31509
          for _i760 in xrange(_size756):
31510
            _elem761 = iprot.readString();
31511
            self.success.append(_elem761)
12947 kshitij.so 31512
          iprot.readListEnd()
12363 kshitij.so 31513
        else:
31514
          iprot.skip(ftype)
12947 kshitij.so 31515
      elif fid == 1:
31516
        if ftype == TType.STRUCT:
31517
          self.cex = CatalogServiceException()
31518
          self.cex.read(iprot)
31519
        else:
31520
          iprot.skip(ftype)
12363 kshitij.so 31521
      else:
31522
        iprot.skip(ftype)
31523
      iprot.readFieldEnd()
31524
    iprot.readStructEnd()
31525
 
31526
  def write(self, oprot):
31527
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31528
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31529
      return
31530
    oprot.writeStructBegin('addAmazonPromotion_result')
31531
    if self.success is not None:
12947 kshitij.so 31532
      oprot.writeFieldBegin('success', TType.LIST, 0)
31533
      oprot.writeListBegin(TType.STRING, len(self.success))
13493 amit.gupta 31534
      for iter762 in self.success:
31535
        oprot.writeString(iter762)
12947 kshitij.so 31536
      oprot.writeListEnd()
12363 kshitij.so 31537
      oprot.writeFieldEnd()
12947 kshitij.so 31538
    if self.cex is not None:
31539
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
31540
      self.cex.write(oprot)
31541
      oprot.writeFieldEnd()
12363 kshitij.so 31542
    oprot.writeFieldStop()
31543
    oprot.writeStructEnd()
31544
 
31545
  def validate(self):
31546
    return
31547
 
31548
 
31549
  def __repr__(self):
31550
    L = ['%s=%r' % (key, value)
31551
      for key, value in self.__dict__.iteritems()]
31552
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31553
 
31554
  def __eq__(self, other):
31555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31556
 
31557
  def __ne__(self, other):
31558
    return not (self == other)
31559
 
31560
class getAmazonPromotion_args:
31561
  """
31562
  Attributes:
31563
   - startDate
31564
   - endDate
31565
  """
31566
 
31567
  thrift_spec = (
31568
    None, # 0
31569
    (1, TType.I64, 'startDate', None, None, ), # 1
31570
    (2, TType.I64, 'endDate', None, None, ), # 2
31571
  )
31572
 
31573
  def __init__(self, startDate=None, endDate=None,):
31574
    self.startDate = startDate
31575
    self.endDate = endDate
31576
 
31577
  def read(self, iprot):
31578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31580
      return
31581
    iprot.readStructBegin()
31582
    while True:
31583
      (fname, ftype, fid) = iprot.readFieldBegin()
31584
      if ftype == TType.STOP:
31585
        break
31586
      if fid == 1:
31587
        if ftype == TType.I64:
31588
          self.startDate = iprot.readI64();
31589
        else:
31590
          iprot.skip(ftype)
31591
      elif fid == 2:
31592
        if ftype == TType.I64:
31593
          self.endDate = iprot.readI64();
31594
        else:
31595
          iprot.skip(ftype)
31596
      else:
31597
        iprot.skip(ftype)
31598
      iprot.readFieldEnd()
31599
    iprot.readStructEnd()
31600
 
31601
  def write(self, oprot):
31602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31604
      return
31605
    oprot.writeStructBegin('getAmazonPromotion_args')
31606
    if self.startDate is not None:
31607
      oprot.writeFieldBegin('startDate', TType.I64, 1)
31608
      oprot.writeI64(self.startDate)
31609
      oprot.writeFieldEnd()
31610
    if self.endDate is not None:
31611
      oprot.writeFieldBegin('endDate', TType.I64, 2)
31612
      oprot.writeI64(self.endDate)
31613
      oprot.writeFieldEnd()
31614
    oprot.writeFieldStop()
31615
    oprot.writeStructEnd()
31616
 
31617
  def validate(self):
31618
    return
31619
 
31620
 
31621
  def __repr__(self):
31622
    L = ['%s=%r' % (key, value)
31623
      for key, value in self.__dict__.iteritems()]
31624
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31625
 
31626
  def __eq__(self, other):
31627
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31628
 
31629
  def __ne__(self, other):
31630
    return not (self == other)
31631
 
31632
class getAmazonPromotion_result:
31633
  """
31634
  Attributes:
31635
   - success
31636
  """
31637
 
31638
  thrift_spec = (
31639
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
31640
  )
31641
 
31642
  def __init__(self, success=None,):
31643
    self.success = success
31644
 
31645
  def read(self, iprot):
31646
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31647
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31648
      return
31649
    iprot.readStructBegin()
31650
    while True:
31651
      (fname, ftype, fid) = iprot.readFieldBegin()
31652
      if ftype == TType.STOP:
31653
        break
31654
      if fid == 0:
31655
        if ftype == TType.LIST:
31656
          self.success = []
13493 amit.gupta 31657
          (_etype766, _size763) = iprot.readListBegin()
31658
          for _i767 in xrange(_size763):
31659
            _elem768 = AmazonPromotion()
31660
            _elem768.read(iprot)
31661
            self.success.append(_elem768)
12363 kshitij.so 31662
          iprot.readListEnd()
31663
        else:
31664
          iprot.skip(ftype)
31665
      else:
31666
        iprot.skip(ftype)
31667
      iprot.readFieldEnd()
31668
    iprot.readStructEnd()
31669
 
31670
  def write(self, oprot):
31671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31673
      return
31674
    oprot.writeStructBegin('getAmazonPromotion_result')
31675
    if self.success is not None:
31676
      oprot.writeFieldBegin('success', TType.LIST, 0)
31677
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 31678
      for iter769 in self.success:
31679
        iter769.write(oprot)
12363 kshitij.so 31680
      oprot.writeListEnd()
31681
      oprot.writeFieldEnd()
31682
    oprot.writeFieldStop()
31683
    oprot.writeStructEnd()
31684
 
31685
  def validate(self):
31686
    return
31687
 
31688
 
31689
  def __repr__(self):
31690
    L = ['%s=%r' % (key, value)
31691
      for key, value in self.__dict__.iteritems()]
31692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31693
 
31694
  def __eq__(self, other):
31695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31696
 
31697
  def __ne__(self, other):
31698
    return not (self == other)
31699
 
31700
class updateAmazonPromotion_args:
31701
  """
31702
  Attributes:
31703
   - amazonPromotions
31704
  """
31705
 
31706
  thrift_spec = (
31707
    None, # 0
31708
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31709
  )
31710
 
31711
  def __init__(self, amazonPromotions=None,):
31712
    self.amazonPromotions = amazonPromotions
31713
 
31714
  def read(self, iprot):
31715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31717
      return
31718
    iprot.readStructBegin()
31719
    while True:
31720
      (fname, ftype, fid) = iprot.readFieldBegin()
31721
      if ftype == TType.STOP:
31722
        break
31723
      if fid == 1:
31724
        if ftype == TType.LIST:
31725
          self.amazonPromotions = []
13493 amit.gupta 31726
          (_etype773, _size770) = iprot.readListBegin()
31727
          for _i774 in xrange(_size770):
31728
            _elem775 = AmazonPromotion()
31729
            _elem775.read(iprot)
31730
            self.amazonPromotions.append(_elem775)
12363 kshitij.so 31731
          iprot.readListEnd()
31732
        else:
31733
          iprot.skip(ftype)
31734
      else:
31735
        iprot.skip(ftype)
31736
      iprot.readFieldEnd()
31737
    iprot.readStructEnd()
31738
 
31739
  def write(self, oprot):
31740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31742
      return
31743
    oprot.writeStructBegin('updateAmazonPromotion_args')
31744
    if self.amazonPromotions is not None:
31745
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
31746
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
13493 amit.gupta 31747
      for iter776 in self.amazonPromotions:
31748
        iter776.write(oprot)
12363 kshitij.so 31749
      oprot.writeListEnd()
31750
      oprot.writeFieldEnd()
31751
    oprot.writeFieldStop()
31752
    oprot.writeStructEnd()
31753
 
31754
  def validate(self):
31755
    return
31756
 
31757
 
31758
  def __repr__(self):
31759
    L = ['%s=%r' % (key, value)
31760
      for key, value in self.__dict__.iteritems()]
31761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31762
 
31763
  def __eq__(self, other):
31764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31765
 
31766
  def __ne__(self, other):
31767
    return not (self == other)
31768
 
31769
class updateAmazonPromotion_result:
31770
  """
31771
  Attributes:
31772
   - success
31773
  """
31774
 
31775
  thrift_spec = (
31776
    (0, TType.BOOL, 'success', None, None, ), # 0
31777
  )
31778
 
31779
  def __init__(self, success=None,):
31780
    self.success = success
31781
 
31782
  def read(self, iprot):
31783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31785
      return
31786
    iprot.readStructBegin()
31787
    while True:
31788
      (fname, ftype, fid) = iprot.readFieldBegin()
31789
      if ftype == TType.STOP:
31790
        break
31791
      if fid == 0:
31792
        if ftype == TType.BOOL:
31793
          self.success = iprot.readBool();
31794
        else:
31795
          iprot.skip(ftype)
31796
      else:
31797
        iprot.skip(ftype)
31798
      iprot.readFieldEnd()
31799
    iprot.readStructEnd()
31800
 
31801
  def write(self, oprot):
31802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31804
      return
31805
    oprot.writeStructBegin('updateAmazonPromotion_result')
31806
    if self.success is not None:
31807
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31808
      oprot.writeBool(self.success)
31809
      oprot.writeFieldEnd()
31810
    oprot.writeFieldStop()
31811
    oprot.writeStructEnd()
31812
 
31813
  def validate(self):
31814
    return
31815
 
31816
 
31817
  def __repr__(self):
31818
    L = ['%s=%r' % (key, value)
31819
      for key, value in self.__dict__.iteritems()]
31820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31821
 
31822
  def __eq__(self, other):
31823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31824
 
31825
  def __ne__(self, other):
31826
    return not (self == other)
12567 amit.gupta 31827
 
31828
class markPartiallyActive_args:
31829
  """
31830
  Attributes:
31831
   - itemId
31832
   - categoryId
31833
  """
31834
 
31835
  thrift_spec = (
31836
    None, # 0
31837
    (1, TType.I64, 'itemId', None, None, ), # 1
31838
    (2, TType.I64, 'categoryId', None, None, ), # 2
31839
  )
31840
 
31841
  def __init__(self, itemId=None, categoryId=None,):
31842
    self.itemId = itemId
31843
    self.categoryId = categoryId
31844
 
31845
  def read(self, iprot):
31846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31848
      return
31849
    iprot.readStructBegin()
31850
    while True:
31851
      (fname, ftype, fid) = iprot.readFieldBegin()
31852
      if ftype == TType.STOP:
31853
        break
31854
      if fid == 1:
31855
        if ftype == TType.I64:
31856
          self.itemId = iprot.readI64();
31857
        else:
31858
          iprot.skip(ftype)
31859
      elif fid == 2:
31860
        if ftype == TType.I64:
31861
          self.categoryId = iprot.readI64();
31862
        else:
31863
          iprot.skip(ftype)
31864
      else:
31865
        iprot.skip(ftype)
31866
      iprot.readFieldEnd()
31867
    iprot.readStructEnd()
31868
 
31869
  def write(self, oprot):
31870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31872
      return
31873
    oprot.writeStructBegin('markPartiallyActive_args')
31874
    if self.itemId is not None:
31875
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31876
      oprot.writeI64(self.itemId)
31877
      oprot.writeFieldEnd()
31878
    if self.categoryId is not None:
31879
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
31880
      oprot.writeI64(self.categoryId)
31881
      oprot.writeFieldEnd()
31882
    oprot.writeFieldStop()
31883
    oprot.writeStructEnd()
31884
 
31885
  def validate(self):
31886
    return
31887
 
31888
 
31889
  def __repr__(self):
31890
    L = ['%s=%r' % (key, value)
31891
      for key, value in self.__dict__.iteritems()]
31892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31893
 
31894
  def __eq__(self, other):
31895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31896
 
31897
  def __ne__(self, other):
31898
    return not (self == other)
31899
 
31900
class markPartiallyActive_result:
31901
  """
31902
  Attributes:
31903
   - success
31904
  """
31905
 
31906
  thrift_spec = (
31907
    (0, TType.BOOL, 'success', None, None, ), # 0
31908
  )
31909
 
31910
  def __init__(self, success=None,):
31911
    self.success = success
31912
 
31913
  def read(self, iprot):
31914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31916
      return
31917
    iprot.readStructBegin()
31918
    while True:
31919
      (fname, ftype, fid) = iprot.readFieldBegin()
31920
      if ftype == TType.STOP:
31921
        break
31922
      if fid == 0:
31923
        if ftype == TType.BOOL:
31924
          self.success = iprot.readBool();
31925
        else:
31926
          iprot.skip(ftype)
31927
      else:
31928
        iprot.skip(ftype)
31929
      iprot.readFieldEnd()
31930
    iprot.readStructEnd()
31931
 
31932
  def write(self, oprot):
31933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31935
      return
31936
    oprot.writeStructBegin('markPartiallyActive_result')
31937
    if self.success is not None:
31938
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31939
      oprot.writeBool(self.success)
31940
      oprot.writeFieldEnd()
31941
    oprot.writeFieldStop()
31942
    oprot.writeStructEnd()
31943
 
31944
  def validate(self):
31945
    return
31946
 
31947
 
31948
  def __repr__(self):
31949
    L = ['%s=%r' % (key, value)
31950
      for key, value in self.__dict__.iteritems()]
31951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31952
 
31953
  def __eq__(self, other):
31954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31955
 
31956
  def __ne__(self, other):
31957
    return not (self == other)
31958
 
31959
class updateItemStateVat_args:
31960
  """
31961
  Attributes:
31962
   - itemId
31963
   - statevat
31964
  """
31965
 
31966
  thrift_spec = (
31967
    None, # 0
31968
    (1, TType.I64, 'itemId', None, None, ), # 1
31969
    (2, TType.MAP, 'statevat', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
31970
  )
31971
 
31972
  def __init__(self, itemId=None, statevat=None,):
31973
    self.itemId = itemId
31974
    self.statevat = statevat
31975
 
31976
  def read(self, iprot):
31977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31979
      return
31980
    iprot.readStructBegin()
31981
    while True:
31982
      (fname, ftype, fid) = iprot.readFieldBegin()
31983
      if ftype == TType.STOP:
31984
        break
31985
      if fid == 1:
31986
        if ftype == TType.I64:
31987
          self.itemId = iprot.readI64();
31988
        else:
31989
          iprot.skip(ftype)
31990
      elif fid == 2:
31991
        if ftype == TType.MAP:
31992
          self.statevat = {}
13493 amit.gupta 31993
          (_ktype778, _vtype779, _size777 ) = iprot.readMapBegin() 
31994
          for _i781 in xrange(_size777):
31995
            _key782 = iprot.readI64();
31996
            _val783 = iprot.readDouble();
31997
            self.statevat[_key782] = _val783
12567 amit.gupta 31998
          iprot.readMapEnd()
31999
        else:
32000
          iprot.skip(ftype)
32001
      else:
32002
        iprot.skip(ftype)
32003
      iprot.readFieldEnd()
32004
    iprot.readStructEnd()
32005
 
32006
  def write(self, oprot):
32007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32009
      return
32010
    oprot.writeStructBegin('updateItemStateVat_args')
32011
    if self.itemId is not None:
32012
      oprot.writeFieldBegin('itemId', TType.I64, 1)
32013
      oprot.writeI64(self.itemId)
32014
      oprot.writeFieldEnd()
32015
    if self.statevat is not None:
32016
      oprot.writeFieldBegin('statevat', TType.MAP, 2)
32017
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.statevat))
13493 amit.gupta 32018
      for kiter784,viter785 in self.statevat.items():
32019
        oprot.writeI64(kiter784)
32020
        oprot.writeDouble(viter785)
12567 amit.gupta 32021
      oprot.writeMapEnd()
32022
      oprot.writeFieldEnd()
32023
    oprot.writeFieldStop()
32024
    oprot.writeStructEnd()
32025
 
32026
  def validate(self):
32027
    return
32028
 
32029
 
32030
  def __repr__(self):
32031
    L = ['%s=%r' % (key, value)
32032
      for key, value in self.__dict__.iteritems()]
32033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32034
 
32035
  def __eq__(self, other):
32036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32037
 
32038
  def __ne__(self, other):
32039
    return not (self == other)
32040
 
32041
class updateItemStateVat_result:
32042
  """
32043
  Attributes:
32044
   - success
32045
  """
32046
 
32047
  thrift_spec = (
32048
    (0, TType.BOOL, 'success', None, None, ), # 0
32049
  )
32050
 
32051
  def __init__(self, success=None,):
32052
    self.success = success
32053
 
32054
  def read(self, iprot):
32055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32057
      return
32058
    iprot.readStructBegin()
32059
    while True:
32060
      (fname, ftype, fid) = iprot.readFieldBegin()
32061
      if ftype == TType.STOP:
32062
        break
32063
      if fid == 0:
32064
        if ftype == TType.BOOL:
32065
          self.success = iprot.readBool();
32066
        else:
32067
          iprot.skip(ftype)
32068
      else:
32069
        iprot.skip(ftype)
32070
      iprot.readFieldEnd()
32071
    iprot.readStructEnd()
32072
 
32073
  def write(self, oprot):
32074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32076
      return
32077
    oprot.writeStructBegin('updateItemStateVat_result')
32078
    if self.success is not None:
32079
      oprot.writeFieldBegin('success', TType.BOOL, 0)
32080
      oprot.writeBool(self.success)
32081
      oprot.writeFieldEnd()
32082
    oprot.writeFieldStop()
32083
    oprot.writeStructEnd()
32084
 
32085
  def validate(self):
32086
    return
32087
 
32088
 
32089
  def __repr__(self):
32090
    L = ['%s=%r' % (key, value)
32091
      for key, value in self.__dict__.iteritems()]
32092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32093
 
32094
  def __eq__(self, other):
32095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32096
 
32097
  def __ne__(self, other):
32098
    return not (self == other)
12620 amit.gupta 32099
 
32100
class getExAffiliateItemInfo_args:
32101
 
32102
  thrift_spec = (
32103
  )
32104
 
32105
  def read(self, iprot):
32106
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32107
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32108
      return
32109
    iprot.readStructBegin()
32110
    while True:
32111
      (fname, ftype, fid) = iprot.readFieldBegin()
32112
      if ftype == TType.STOP:
32113
        break
32114
      else:
32115
        iprot.skip(ftype)
32116
      iprot.readFieldEnd()
32117
    iprot.readStructEnd()
32118
 
32119
  def write(self, oprot):
32120
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32121
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32122
      return
32123
    oprot.writeStructBegin('getExAffiliateItemInfo_args')
32124
    oprot.writeFieldStop()
32125
    oprot.writeStructEnd()
32126
 
32127
  def validate(self):
32128
    return
32129
 
32130
 
32131
  def __repr__(self):
32132
    L = ['%s=%r' % (key, value)
32133
      for key, value in self.__dict__.iteritems()]
32134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32135
 
32136
  def __eq__(self, other):
32137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32138
 
32139
  def __ne__(self, other):
32140
    return not (self == other)
32141
 
32142
class getExAffiliateItemInfo_result:
32143
  """
32144
  Attributes:
32145
   - success
32146
  """
32147
 
32148
  thrift_spec = (
32149
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo.thrift_spec)), None, ), # 0
32150
  )
32151
 
32152
  def __init__(self, success=None,):
32153
    self.success = success
32154
 
32155
  def read(self, iprot):
32156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32158
      return
32159
    iprot.readStructBegin()
32160
    while True:
32161
      (fname, ftype, fid) = iprot.readFieldBegin()
32162
      if ftype == TType.STOP:
32163
        break
32164
      if fid == 0:
32165
        if ftype == TType.MAP:
32166
          self.success = {}
13493 amit.gupta 32167
          (_ktype787, _vtype788, _size786 ) = iprot.readMapBegin() 
32168
          for _i790 in xrange(_size786):
32169
            _key791 = iprot.readI64();
32170
            _val792 = ExclusiveAffiliateItemInfo()
32171
            _val792.read(iprot)
32172
            self.success[_key791] = _val792
12620 amit.gupta 32173
          iprot.readMapEnd()
32174
        else:
32175
          iprot.skip(ftype)
32176
      else:
32177
        iprot.skip(ftype)
32178
      iprot.readFieldEnd()
32179
    iprot.readStructEnd()
32180
 
32181
  def write(self, oprot):
32182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32184
      return
32185
    oprot.writeStructBegin('getExAffiliateItemInfo_result')
32186
    if self.success is not None:
32187
      oprot.writeFieldBegin('success', TType.MAP, 0)
32188
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
13493 amit.gupta 32189
      for kiter793,viter794 in self.success.items():
32190
        oprot.writeI64(kiter793)
32191
        viter794.write(oprot)
12620 amit.gupta 32192
      oprot.writeMapEnd()
32193
      oprot.writeFieldEnd()
32194
    oprot.writeFieldStop()
32195
    oprot.writeStructEnd()
32196
 
32197
  def validate(self):
32198
    return
32199
 
32200
 
32201
  def __repr__(self):
32202
    L = ['%s=%r' % (key, value)
32203
      for key, value in self.__dict__.iteritems()]
32204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32205
 
32206
  def __eq__(self, other):
32207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32208
 
32209
  def __ne__(self, other):
32210
    return not (self == other)
12888 kshitij.so 32211
 
32212
class getAllItemstoListOnFbg_args:
32213
 
32214
  thrift_spec = (
32215
  )
32216
 
32217
  def read(self, iprot):
32218
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32219
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32220
      return
32221
    iprot.readStructBegin()
32222
    while True:
32223
      (fname, ftype, fid) = iprot.readFieldBegin()
32224
      if ftype == TType.STOP:
32225
        break
32226
      else:
32227
        iprot.skip(ftype)
32228
      iprot.readFieldEnd()
32229
    iprot.readStructEnd()
32230
 
32231
  def write(self, oprot):
32232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32234
      return
32235
    oprot.writeStructBegin('getAllItemstoListOnFbg_args')
32236
    oprot.writeFieldStop()
32237
    oprot.writeStructEnd()
32238
 
32239
  def validate(self):
32240
    return
32241
 
32242
 
32243
  def __repr__(self):
32244
    L = ['%s=%r' % (key, value)
32245
      for key, value in self.__dict__.iteritems()]
32246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32247
 
32248
  def __eq__(self, other):
32249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32250
 
32251
  def __ne__(self, other):
32252
    return not (self == other)
32253
 
32254
class getAllItemstoListOnFbg_result:
32255
  """
32256
  Attributes:
32257
   - success
32258
  """
32259
 
32260
  thrift_spec = (
32261
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
32262
  )
32263
 
32264
  def __init__(self, success=None,):
32265
    self.success = success
32266
 
32267
  def read(self, iprot):
32268
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32269
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32270
      return
32271
    iprot.readStructBegin()
32272
    while True:
32273
      (fname, ftype, fid) = iprot.readFieldBegin()
32274
      if ftype == TType.STOP:
32275
        break
32276
      if fid == 0:
32277
        if ftype == TType.LIST:
32278
          self.success = []
13493 amit.gupta 32279
          (_etype798, _size795) = iprot.readListBegin()
32280
          for _i799 in xrange(_size795):
32281
            _elem800 = Amazonlisted()
32282
            _elem800.read(iprot)
32283
            self.success.append(_elem800)
12888 kshitij.so 32284
          iprot.readListEnd()
32285
        else:
32286
          iprot.skip(ftype)
32287
      else:
32288
        iprot.skip(ftype)
32289
      iprot.readFieldEnd()
32290
    iprot.readStructEnd()
32291
 
32292
  def write(self, oprot):
32293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32295
      return
32296
    oprot.writeStructBegin('getAllItemstoListOnFbg_result')
32297
    if self.success is not None:
32298
      oprot.writeFieldBegin('success', TType.LIST, 0)
32299
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 32300
      for iter801 in self.success:
32301
        iter801.write(oprot)
12888 kshitij.so 32302
      oprot.writeListEnd()
32303
      oprot.writeFieldEnd()
32304
    oprot.writeFieldStop()
32305
    oprot.writeStructEnd()
32306
 
32307
  def validate(self):
32308
    return
32309
 
32310
 
32311
  def __repr__(self):
32312
    L = ['%s=%r' % (key, value)
32313
      for key, value in self.__dict__.iteritems()]
32314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32315
 
32316
  def __eq__(self, other):
32317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32318
 
32319
  def __ne__(self, other):
32320
    return not (self == other)
12892 kshitij.so 32321
 
32322
class getAllFbgListedItems_args:
32323
 
32324
  thrift_spec = (
32325
  )
32326
 
32327
  def read(self, iprot):
32328
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32329
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32330
      return
32331
    iprot.readStructBegin()
32332
    while True:
32333
      (fname, ftype, fid) = iprot.readFieldBegin()
32334
      if ftype == TType.STOP:
32335
        break
32336
      else:
32337
        iprot.skip(ftype)
32338
      iprot.readFieldEnd()
32339
    iprot.readStructEnd()
32340
 
32341
  def write(self, oprot):
32342
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32343
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32344
      return
32345
    oprot.writeStructBegin('getAllFbgListedItems_args')
32346
    oprot.writeFieldStop()
32347
    oprot.writeStructEnd()
32348
 
32349
  def validate(self):
32350
    return
32351
 
32352
 
32353
  def __repr__(self):
32354
    L = ['%s=%r' % (key, value)
32355
      for key, value in self.__dict__.iteritems()]
32356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32357
 
32358
  def __eq__(self, other):
32359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32360
 
32361
  def __ne__(self, other):
32362
    return not (self == other)
32363
 
32364
class getAllFbgListedItems_result:
32365
  """
32366
  Attributes:
32367
   - success
32368
  """
32369
 
32370
  thrift_spec = (
32371
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
32372
  )
32373
 
32374
  def __init__(self, success=None,):
32375
    self.success = success
32376
 
32377
  def read(self, iprot):
32378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32380
      return
32381
    iprot.readStructBegin()
32382
    while True:
32383
      (fname, ftype, fid) = iprot.readFieldBegin()
32384
      if ftype == TType.STOP:
32385
        break
32386
      if fid == 0:
32387
        if ftype == TType.LIST:
32388
          self.success = []
13493 amit.gupta 32389
          (_etype805, _size802) = iprot.readListBegin()
32390
          for _i806 in xrange(_size802):
32391
            _elem807 = Amazonlisted()
32392
            _elem807.read(iprot)
32393
            self.success.append(_elem807)
12892 kshitij.so 32394
          iprot.readListEnd()
32395
        else:
32396
          iprot.skip(ftype)
32397
      else:
32398
        iprot.skip(ftype)
32399
      iprot.readFieldEnd()
32400
    iprot.readStructEnd()
32401
 
32402
  def write(self, oprot):
32403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32405
      return
32406
    oprot.writeStructBegin('getAllFbgListedItems_result')
32407
    if self.success is not None:
32408
      oprot.writeFieldBegin('success', TType.LIST, 0)
32409
      oprot.writeListBegin(TType.STRUCT, len(self.success))
13493 amit.gupta 32410
      for iter808 in self.success:
32411
        iter808.write(oprot)
12892 kshitij.so 32412
      oprot.writeListEnd()
32413
      oprot.writeFieldEnd()
32414
    oprot.writeFieldStop()
32415
    oprot.writeStructEnd()
32416
 
32417
  def validate(self):
32418
    return
32419
 
32420
 
32421
  def __repr__(self):
32422
    L = ['%s=%r' % (key, value)
32423
      for key, value in self.__dict__.iteritems()]
32424
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32425
 
32426
  def __eq__(self, other):
32427
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32428
 
32429
  def __ne__(self, other):
32430
    return not (self == other)
13136 amit.gupta 32431
 
32432
class checkServices_args:
32433
  """
32434
  Attributes:
32435
   - lines
32436
  """
32437
 
32438
  thrift_spec = (
32439
    None, # 0
32440
    (1, TType.MAP, 'lines', (TType.I64,None,TType.MAP,(TType.STRING,None,TType.I64,None)), None, ), # 1
32441
  )
32442
 
32443
  def __init__(self, lines=None,):
32444
    self.lines = lines
32445
 
32446
  def read(self, iprot):
32447
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32448
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32449
      return
32450
    iprot.readStructBegin()
32451
    while True:
32452
      (fname, ftype, fid) = iprot.readFieldBegin()
32453
      if ftype == TType.STOP:
32454
        break
32455
      if fid == 1:
32456
        if ftype == TType.MAP:
32457
          self.lines = {}
13493 amit.gupta 32458
          (_ktype810, _vtype811, _size809 ) = iprot.readMapBegin() 
32459
          for _i813 in xrange(_size809):
32460
            _key814 = iprot.readI64();
32461
            _val815 = {}
32462
            (_ktype817, _vtype818, _size816 ) = iprot.readMapBegin() 
32463
            for _i820 in xrange(_size816):
32464
              _key821 = iprot.readString();
32465
              _val822 = iprot.readI64();
32466
              _val815[_key821] = _val822
13136 amit.gupta 32467
            iprot.readMapEnd()
13493 amit.gupta 32468
            self.lines[_key814] = _val815
13136 amit.gupta 32469
          iprot.readMapEnd()
32470
        else:
32471
          iprot.skip(ftype)
32472
      else:
32473
        iprot.skip(ftype)
32474
      iprot.readFieldEnd()
32475
    iprot.readStructEnd()
32476
 
32477
  def write(self, oprot):
32478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32480
      return
32481
    oprot.writeStructBegin('checkServices_args')
32482
    if self.lines is not None:
32483
      oprot.writeFieldBegin('lines', TType.MAP, 1)
32484
      oprot.writeMapBegin(TType.I64, TType.MAP, len(self.lines))
13493 amit.gupta 32485
      for kiter823,viter824 in self.lines.items():
32486
        oprot.writeI64(kiter823)
32487
        oprot.writeMapBegin(TType.STRING, TType.I64, len(viter824))
32488
        for kiter825,viter826 in viter824.items():
32489
          oprot.writeString(kiter825)
32490
          oprot.writeI64(viter826)
13136 amit.gupta 32491
        oprot.writeMapEnd()
32492
      oprot.writeMapEnd()
32493
      oprot.writeFieldEnd()
32494
    oprot.writeFieldStop()
32495
    oprot.writeStructEnd()
32496
 
32497
  def validate(self):
32498
    return
32499
 
32500
 
32501
  def __repr__(self):
32502
    L = ['%s=%r' % (key, value)
32503
      for key, value in self.__dict__.iteritems()]
32504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32505
 
32506
  def __eq__(self, other):
32507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32508
 
32509
  def __ne__(self, other):
32510
    return not (self == other)
32511
 
32512
class checkServices_result:
32513
  """
32514
  Attributes:
32515
   - success
32516
   - cex
32517
  """
32518
 
32519
  thrift_spec = (
32520
    (0, TType.MAP, 'success', (TType.I64,None,TType.MAP,(TType.STRING,None,TType.I64,None)), None, ), # 0
32521
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
32522
  )
32523
 
32524
  def __init__(self, success=None, cex=None,):
32525
    self.success = success
32526
    self.cex = cex
32527
 
32528
  def read(self, iprot):
32529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32531
      return
32532
    iprot.readStructBegin()
32533
    while True:
32534
      (fname, ftype, fid) = iprot.readFieldBegin()
32535
      if ftype == TType.STOP:
32536
        break
32537
      if fid == 0:
32538
        if ftype == TType.MAP:
32539
          self.success = {}
13493 amit.gupta 32540
          (_ktype828, _vtype829, _size827 ) = iprot.readMapBegin() 
32541
          for _i831 in xrange(_size827):
32542
            _key832 = iprot.readI64();
32543
            _val833 = {}
32544
            (_ktype835, _vtype836, _size834 ) = iprot.readMapBegin() 
32545
            for _i838 in xrange(_size834):
32546
              _key839 = iprot.readString();
32547
              _val840 = iprot.readI64();
32548
              _val833[_key839] = _val840
13136 amit.gupta 32549
            iprot.readMapEnd()
13493 amit.gupta 32550
            self.success[_key832] = _val833
13136 amit.gupta 32551
          iprot.readMapEnd()
32552
        else:
32553
          iprot.skip(ftype)
32554
      elif fid == 1:
32555
        if ftype == TType.STRUCT:
32556
          self.cex = CatalogServiceException()
32557
          self.cex.read(iprot)
32558
        else:
32559
          iprot.skip(ftype)
32560
      else:
32561
        iprot.skip(ftype)
32562
      iprot.readFieldEnd()
32563
    iprot.readStructEnd()
32564
 
32565
  def write(self, oprot):
32566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32568
      return
32569
    oprot.writeStructBegin('checkServices_result')
32570
    if self.success is not None:
32571
      oprot.writeFieldBegin('success', TType.MAP, 0)
32572
      oprot.writeMapBegin(TType.I64, TType.MAP, len(self.success))
13493 amit.gupta 32573
      for kiter841,viter842 in self.success.items():
32574
        oprot.writeI64(kiter841)
32575
        oprot.writeMapBegin(TType.STRING, TType.I64, len(viter842))
32576
        for kiter843,viter844 in viter842.items():
32577
          oprot.writeString(kiter843)
32578
          oprot.writeI64(viter844)
13136 amit.gupta 32579
        oprot.writeMapEnd()
32580
      oprot.writeMapEnd()
32581
      oprot.writeFieldEnd()
32582
    if self.cex is not None:
32583
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
32584
      self.cex.write(oprot)
32585
      oprot.writeFieldEnd()
32586
    oprot.writeFieldStop()
32587
    oprot.writeStructEnd()
32588
 
32589
  def validate(self):
32590
    return
32591
 
32592
 
32593
  def __repr__(self):
32594
    L = ['%s=%r' % (key, value)
32595
      for key, value in self.__dict__.iteritems()]
32596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32597
 
32598
  def __eq__(self, other):
32599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32600
 
32601
  def __ne__(self, other):
32602
    return not (self == other)