Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
5944 mandeep.dh 1
#
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
8
import shop2020.thriftpy.generic.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
12
from thrift.protocol import TBinaryProtocol, TProtocol
13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def addItem(self, item):
21
    """
22
    Availability and inventory attributes
23
 
24
    Parameters:
25
     - item
26
    """
27
    pass
28
 
29
  def updateItem(self, item):
30
    """
31
    Parameters:
32
     - item
33
    """
34
    pass
35
 
36
  def isActive(self, itemId):
37
    """
38
    Checks if the item given to the corresponding itemId is active. If it's active,
39
    whether it's risky and if it's risky, its inventory position.
40
 
41
    Parameters:
42
     - itemId
43
    """
44
    pass
45
 
7438 amit.gupta 46
  def getItemsStatus(self, itemIds):
47
    """
48
    Parameters:
49
     - itemIds
50
    """
51
    pass
52
 
5944 mandeep.dh 53
  def getItemStatusDescription(self, itemId):
54
    """
55
    Parameters:
56
     - itemId
57
    """
58
    pass
59
 
60
  def startItemOn(self, item_id, timestamp):
61
    """
62
    Parameters:
63
     - item_id
64
     - timestamp
65
    """
66
    pass
67
 
68
  def retireItemOn(self, item_id, timestamp):
69
    """
70
    Parameters:
71
     - item_id
72
     - timestamp
73
    """
74
    pass
75
 
76
  def changeItemStatus(self, item_id, timestamp, newstatus):
77
    """
78
    Parameters:
79
     - item_id
80
     - timestamp
81
     - newstatus
82
    """
83
    pass
84
 
85
  def getItem(self, item_id):
86
    """
87
    Parameters:
88
     - item_id
89
    """
90
    pass
91
 
92
  def getItemsByCatalogId(self, catalog_item_id):
93
    """
94
    Parameters:
95
     - catalog_item_id
96
    """
97
    pass
98
 
99
  def getValidItemsByCatalogId(self, catalog_item_id):
100
    """
101
    Parameters:
102
     - catalog_item_id
103
    """
104
    pass
105
 
106
  def getAllItems(self, isActive):
107
    """
108
    Parameters:
109
     - isActive
110
    """
111
    pass
112
 
113
  def getAllItemsByStatus(self, itemStatus):
114
    """
115
    Parameters:
116
     - itemStatus
117
    """
118
    pass
119
 
9253 rajveer 120
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 121
    """
122
    Parameters:
123
     - entityId
124
     - category
125
     - brand
126
     - modelName
127
     - modelNumber
9253 rajveer 128
     - isAndroid
5944 mandeep.dh 129
    """
130
    pass
131
 
12567 amit.gupta 132
  def getVatRates(self, itemId, categoryId):
133
    """
134
    Parameters:
135
     - itemId
136
     - categoryId
137
    """
138
    pass
139
 
5944 mandeep.dh 140
  def getAllItemsInRange(self, offset, limit):
141
    """
142
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
143
 
144
    Parameters:
145
     - offset
146
     - limit
147
    """
148
    pass
149
 
150
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
151
    """
152
    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.
153
 
154
    Parameters:
155
     - itemStatus
156
     - offset
157
     - limit
158
    """
159
    pass
160
 
161
  def getItemCountByStatus(self, useStatus, itemStatus):
162
    """
163
    Gets a count of all items by status
164
 
165
    Parameters:
166
     - useStatus
167
     - itemStatus
168
    """
169
    pass
170
 
171
  def getBestSellers(self, ):
172
    pass
173
 
174
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
175
    """
176
    Parameters:
177
     - beginIndex
178
     - totalItems
179
     - brand
180
     - category
181
    """
182
    pass
183
 
184
  def getBestSellersCount(self, ):
185
    pass
186
 
187
  def getBestDeals(self, ):
188
    pass
189
 
190
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
191
    """
192
    Parameters:
193
     - beginIndex
194
     - totalItems
195
     - brand
196
     - category
197
    """
198
    pass
199
 
200
  def getBestDealsCount(self, ):
201
    pass
202
 
203
  def getComingSoon(self, ):
204
    pass
205
 
206
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
207
    """
208
    Parameters:
209
     - beginIndex
210
     - totalItems
211
     - brand
212
     - category
213
    """
214
    pass
215
 
216
  def getComingSoonCount(self, ):
217
    pass
218
 
219
  def getLatestArrivals(self, ):
220
    """
221
    Returns a list of items sorted in the descending order by start date.
222
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
223
    """
224
    pass
225
 
226
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
227
    """
228
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
229
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
230
 
231
    Parameters:
232
     - beginIndex
233
     - totalItems
234
     - brand
235
     - categories
236
    """
237
    pass
238
 
239
  def getLatestArrivalsCount(self, ):
240
    """
241
    Get the total number of latest arrivals we are willing to show.
242
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
243
    """
244
    pass
245
 
246
  def generateNewEntityID(self, ):
247
    pass
248
 
249
  def addCategory(self, category):
250
    """
251
    All category related functions
252
 
253
    Parameters:
254
     - category
255
    """
256
    pass
257
 
258
  def getCategory(self, id):
259
    """
260
    Parameters:
261
     - id
262
    """
263
    pass
264
 
265
  def getAllCategories(self, ):
266
    pass
267
 
268
  def getAllSimilarItems(self, itemId):
269
    """
270
    Returns the list of similar items.
271
 
272
    Parameters:
273
     - itemId
274
    """
275
    pass
276
 
277
  def addSimilarItem(self, itemId, catalogItemId):
278
    """
279
    Adds similar item.
280
 
281
    Parameters:
282
     - itemId
283
     - catalogItemId
284
    """
285
    pass
286
 
6512 kshitij.so 287
  def addTag(self, displayName, itemId):
288
    """
289
    Tag Related
290
 
291
    Parameters:
292
     - displayName
293
     - itemId
294
    """
295
    pass
296
 
297
  def deleteEntityTag(self, displayName, itemId):
298
    """
299
    Parameters:
300
     - displayName
301
     - itemId
302
    """
303
    pass
304
 
305
  def deleteTag(self, displayName):
306
    """
307
    Parameters:
308
     - displayName
309
    """
310
    pass
311
 
312
  def getAllTags(self, ):
313
    pass
314
 
315
  def getAllEntitiesByTagName(self, displayName):
316
    """
317
    Parameters:
318
     - displayName
319
    """
320
    pass
321
 
6845 amit.gupta 322
  def getAllEntityTags(self, ):
323
    pass
324
 
8590 kshitij.so 325
  def addBanner(self, bannerCongregate):
6850 kshitij.so 326
    """
8579 kshitij.so 327
    Banner Related
328
 
6850 kshitij.so 329
    Parameters:
8590 kshitij.so 330
     - bannerCongregate
6850 kshitij.so 331
    """
332
    pass
333
 
8579 kshitij.so 334
  def updateBanner(self, banner):
335
    """
336
    Parameters:
337
     - banner
338
    """
339
    pass
340
 
6850 kshitij.so 341
  def getAllBanners(self, ):
342
    pass
343
 
9155 kshitij.so 344
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 345
    """
346
    Parameters:
347
     - bannerName
9155 kshitij.so 348
     - bannerType
6850 kshitij.so 349
    """
350
    pass
351
 
9155 kshitij.so 352
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 353
    """
354
    Parameters:
355
     - bannerName
9155 kshitij.so 356
     - bannerType
6850 kshitij.so 357
    """
358
    pass
359
 
360
  def getActiveBanners(self, ):
361
    pass
362
 
8579 kshitij.so 363
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 364
    """
365
    Parameters:
8579 kshitij.so 366
     - bannerMaps
6849 kshitij.so 367
    """
368
    pass
369
 
8579 kshitij.so 370
  def updateBannerMap(self, bannerMap):
371
    """
372
    Parameters:
373
     - bannerMap
374
    """
375
    pass
376
 
6849 kshitij.so 377
  def deleteBannerMap(self, bannerName):
378
    """
379
    Parameters:
380
     - bannerName
381
    """
382
    pass
383
 
9155 kshitij.so 384
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 385
    """
386
    Parameters:
387
     - bannerName
9155 kshitij.so 388
     - bannerType
6849 kshitij.so 389
    """
390
    pass
391
 
8579 kshitij.so 392
  def addBannerUri(self, bannerUriMappings):
393
    """
394
    Parameters:
395
     - bannerUriMappings
396
    """
397
    pass
398
 
9155 kshitij.so 399
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 400
    """
401
    Parameters:
402
     - bannerName
9155 kshitij.so 403
     - bannerType
8579 kshitij.so 404
    """
405
    pass
406
 
407
  def addCampaign(self, campaign):
408
    """
409
    Parameters:
410
     - campaign
411
    """
412
    pass
413
 
414
  def getCampaigns(self, campaignName):
415
    """
416
    Parameters:
417
     - campaignName
418
    """
419
    pass
420
 
421
  def deleteCampaign(self, campaignId):
422
    """
423
    Parameters:
424
     - campaignId
425
    """
426
    pass
427
 
428
  def getAllCampaigns(self, ):
429
    pass
430
 
9155 kshitij.so 431
  def getActiveBannersForMobileSite(self, ):
432
    pass
433
 
5944 mandeep.dh 434
  def deleteSimilarItem(self, itemId, catalogItemId):
435
    """
436
    Delete similar item.
437
 
438
    Parameters:
439
     - itemId
440
     - catalogItemId
441
    """
442
    pass
443
 
444
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
445
    """
446
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
447
    If yes, returns the itemId else returns 0
448
 
449
    Parameters:
450
     - brand
451
     - modelNumber
452
     - modelName
453
     - color
454
    """
455
    pass
456
 
457
  def validateRiskyStatus(self, itemId):
458
    """
459
    Check wether item is risky and change status if inventory is not available for risky items
460
 
461
    Parameters:
462
     - itemId
463
    """
464
    pass
465
 
466
  def changeItemRiskyFlag(self, itemId, risky):
467
    """
468
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
469
 
470
    Parameters:
471
     - itemId
472
     - risky
473
    """
474
    pass
475
 
476
  def getItemsByRiskyFlag(self, ):
477
    """
478
    Returns list of items marked as risky.
479
    """
480
    pass
481
 
482
  def getItemsForMasterSheet(self, category, brand):
483
    """
484
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
485
 
486
    Parameters:
487
     - category
488
     - brand
489
    """
490
    pass
491
 
492
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
493
    """
494
    Returns list of catalog ids of items with same similarity index as of the given itemId
495
 
496
    Parameters:
497
     - beginIndex
498
     - totalItems
499
     - itemId
500
    """
501
    pass
502
 
503
  def addProductNotification(self, itemId, email):
504
    """
505
    Add user requests for out of stock items. Once user will ask for notify me an entry will
506
 
507
    Parameters:
508
     - itemId
509
     - email
510
    """
511
    pass
512
 
513
  def sendProductNotifications(self, ):
514
    """
515
    Send the product notifications to the users for items which has stock.
516
    """
517
    pass
518
 
519
  def getAllBrandsByCategory(self, categoryId):
520
    """
521
    Returns list of brand names for a given category Id
522
 
523
    Parameters:
524
     - categoryId
525
    """
526
    pass
527
 
528
  def getAllBrands(self, ):
529
    """
530
    Returns list of brand names
531
    """
532
    pass
533
 
534
  def getAllSources(self, ):
535
    """
536
    Return list of all sources
537
    """
538
    pass
539
 
540
  def getItemPricingBySource(self, itemId, sourceId):
541
    """
542
    Returns the pricing information of an item. If no information is found, exception will be thrown.
543
 
544
    Parameters:
545
     - itemId
546
     - sourceId
547
    """
548
    pass
549
 
550
  def addSourceItemPricing(self, sourceItemPricing):
551
    """
552
    Adds prices to be displayed corresponding to the item if user comes from a source.
553
    If item is not found or source is not found, it will throw exception.
554
 
555
    Parameters:
556
     - sourceItemPricing
557
    """
558
    pass
559
 
560
  def getAllSourcePricing(self, itemId):
561
    """
562
    Returns the list of source pricing information of an item.
563
    Raises an exception if item not found corresponding to itemId
564
 
565
    Parameters:
566
     - itemId
567
    """
568
    pass
569
 
570
  def getItemForSource(self, item_id, sourceId):
571
    """
572
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
573
 
574
    Parameters:
575
     - item_id
576
     - sourceId
577
    """
578
    pass
579
 
580
  def searchItemsInRange(self, searchTerms, offset, limit):
581
    """
582
    Searches items matching the the given terms in the catalog and returns results within the specified range.
583
 
584
    Parameters:
585
     - searchTerms
586
     - offset
587
     - limit
588
    """
589
    pass
590
 
591
  def getSearchResultCount(self, searchTerms):
592
    """
593
    Gets the count of search results for the given search terms so that the user can go through all the pages.
594
 
595
    Parameters:
596
     - searchTerms
597
    """
598
    pass
599
 
600
  def getProductNotifications(self, startDateTime):
601
    """
602
    Returns a list of product notifications added after a supplied datetime
603
 
604
    Parameters:
605
     - startDateTime
606
    """
607
    pass
608
 
7897 amar.kumar 609
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 610
    """
611
    Returns a list of count of requests for product notification against each item
612
 
613
    Parameters:
614
     - startDateTime
7897 amar.kumar 615
     - categoryId
5944 mandeep.dh 616
    """
617
    pass
618
 
619
  def addAuthorizationLog(self, itemId, username, reason):
620
    """
621
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
622
 
623
    Parameters:
624
     - itemId
625
     - username
626
     - reason
627
    """
628
    pass
629
 
630
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
631
    """
632
    Parameters:
633
     - catalog_item_id
634
     - voucherType
635
     - voucherAmount
636
    """
637
    pass
638
 
639
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
640
    """
641
    Parameters:
642
     - catalog_item_id
643
     - voucherType
644
    """
645
    pass
646
 
647
  def getVoucherAmount(self, itemId, voucherType):
648
    """
649
    Parameters:
650
     - itemId
651
     - voucherType
652
    """
653
    pass
654
 
655
  def getAllItemVouchers(self, itemId):
656
    """
657
    Parameters:
658
     - itemId
659
    """
660
    pass
661
 
662
  def isValidCatalogItemId(self, catalog_item_id):
663
    """
664
    Parameters:
665
     - catalog_item_id
666
    """
667
    pass
668
 
7330 amit.gupta 669
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 670
    """
671
    Parameters:
672
     - itemId
7330 amit.gupta 673
     - stateId
6039 amit.gupta 674
     - price
675
    """
676
    pass
5944 mandeep.dh 677
 
6039 amit.gupta 678
  def getVatAmountForItem(self, itemId, price):
679
    """
680
    Parameters:
681
     - itemId
682
     - price
683
    """
684
    pass
685
 
6531 vikram.rag 686
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
687
    """
688
    Parameters:
689
     - offset
690
     - limit
691
    """
692
    pass
6039 amit.gupta 693
 
6821 amar.kumar 694
  def getAllAliveItems(self, ):
695
    pass
696
 
6921 anupam.sin 697
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 698
    """
699
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 700
 
6805 anupam.sin 701
    Parameters:
702
     - itemId
6921 anupam.sin 703
     - price
6805 anupam.sin 704
     - insurerId
705
     - quantity
706
    """
707
    pass
708
 
709
  def getInsurer(self, insurerId):
710
    """
711
    Parameters:
712
     - insurerId
713
    """
714
    pass
715
 
6838 vikram.rag 716
  def getAllInsurers(self, ):
717
    pass
6805 anupam.sin 718
 
6962 rajveer 719
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
720
    """
721
    Parameters:
722
     - insurerId
723
     - amount
724
    """
725
    pass
6838 vikram.rag 726
 
7190 amar.kumar 727
  def getFreebieForItem(self, itemId):
728
    """
729
    Parameters:
730
     - itemId
731
    """
732
    pass
6962 rajveer 733
 
7190 amar.kumar 734
  def addOrUpdateFreebieForItem(self, freebieItem):
735
    """
736
    Parameters:
737
     - freebieItem
738
    """
739
    pass
740
 
7272 amit.gupta 741
  def addOrUpdateBrandInfo(self, brandInfo):
742
    """
743
    Parameters:
744
     - brandInfo
745
    """
746
    pass
747
 
748
  def getBrandInfo(self, ):
749
    pass
750
 
7256 rajveer 751
  def getStorePricing(self, itemId):
752
    """
753
    Parameters:
754
     - itemId
755
    """
756
    pass
7190 amar.kumar 757
 
7306 rajveer 758
  def getStorePricings(self, itemIds):
759
    """
760
    Parameters:
761
     - itemIds
762
    """
763
    pass
764
 
7382 rajveer 765
  def updateStorePricing(self, sp, allColors):
7265 rajveer 766
    """
767
    Parameters:
768
     - sp
7382 rajveer 769
     - allColors
7265 rajveer 770
    """
771
    pass
7256 rajveer 772
 
7281 kshitij.so 773
  def getAllAmazonListedItems(self, ):
774
    pass
7265 rajveer 775
 
8619 kshitij.so 776
  def searchAmazonItems(self, searchTerm, offset, limit):
777
    """
778
    Parameters:
779
     - searchTerm
780
     - offset
781
     - limit
782
    """
783
    pass
784
 
785
  def getAmazonSearchResultCount(self, searchTerm):
786
    """
787
    Parameters:
788
     - searchTerm
789
    """
790
    pass
791
 
792
  def getCountForAmazonlistedItems(self, ):
793
    pass
794
 
7281 kshitij.so 795
  def getAmazonItemDetails(self, itemId):
796
    """
797
    Parameters:
798
     - itemId
799
    """
800
    pass
801
 
8168 kshitij.so 802
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 803
    """
804
    Parameters:
8168 kshitij.so 805
     - amazonlisted
7281 kshitij.so 806
    """
807
    pass
808
 
809
  def addAmazonItem(self, amazonlisted):
810
    """
811
    Parameters:
812
     - amazonlisted
813
    """
814
    pass
815
 
7291 vikram.rag 816
  def getAsinItems(self, ):
817
    pass
7281 kshitij.so 818
 
7291 vikram.rag 819
  def getAllFbaListedItems(self, ):
820
    pass
821
 
822
  def getAllNonFbaListedItems(self, ):
823
    pass
824
 
7460 kshitij.so 825
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
826
    """
827
    Parameters:
828
     - itemId
829
     - holdInventory
830
     - defaultInventory
831
    """
832
    pass
7291 vikram.rag 833
 
7770 kshitij.so 834
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
835
    """
836
    Parameters:
837
     - type
838
     - sku
839
     - timestamp
840
    """
841
    pass
7460 kshitij.so 842
 
7897 amar.kumar 843
  def getAllParentCategories(self, ):
844
    pass
7770 kshitij.so 845
 
7977 kshitij.so 846
  def addPageViewEvent(self, pageViewEvents):
847
    """
848
    Parameters:
849
     - pageViewEvents
850
    """
851
    pass
7897 amar.kumar 852
 
7977 kshitij.so 853
  def addCartEvent(self, cartEvents):
854
    """
855
    Parameters:
856
     - cartEvents
857
    """
858
    pass
859
 
8182 amar.kumar 860
  def addEbayItem(self, ebayItem):
861
    """
862
    Parameters:
863
     - ebayItem
864
    """
865
    pass
866
 
867
  def getEbayItem(self, listingId):
868
    """
869
    Parameters:
870
     - listingId
871
    """
872
    pass
873
 
874
  def updateEbayItem(self, ebayItem):
875
    """
876
    Parameters:
877
     - ebayItem
878
    """
879
    pass
880
 
8139 kshitij.so 881
  def getAmazonListedItems(self, offset, limit):
882
    """
883
    Parameters:
884
     - offset
885
     - limit
886
    """
887
    pass
7977 kshitij.so 888
 
8168 kshitij.so 889
  def updateAmazonAttributesInBulk(self, amazonlisted):
890
    """
891
    Parameters:
892
     - amazonlisted
893
    """
894
    pass
8139 kshitij.so 895
 
8379 vikram.rag 896
  def getAllItemstoListOnFba(self, ):
897
    pass
8168 kshitij.so 898
 
8379 vikram.rag 899
  def getAllItemstoListOnNonFba(self, ):
900
    pass
901
 
8619 kshitij.so 902
  def updateAsin(self, item):
903
    """
904
    Parameters:
905
     - item
906
    """
907
    pass
8616 vikram.rag 908
 
8739 vikram.rag 909
  def addOrUpdateSnapdealItem(self, snapdealitem):
910
    """
911
    Parameters:
912
     - snapdealitem
913
    """
914
    pass
8619 kshitij.so 915
 
8739 vikram.rag 916
  def getSnapdealItem(self, item_id):
917
    """
918
    Parameters:
919
     - item_id
920
    """
921
    pass
922
 
9242 kshitij.so 923
  def getSnapdealItemDetails(self, item_id):
924
    """
925
    Parameters:
926
     - item_id
927
    """
928
    pass
929
 
8739 vikram.rag 930
  def getAllSnapdealItems(self, ):
931
    pass
932
 
9242 kshitij.so 933
  def getSnapdealItems(self, offset, limit):
934
    """
935
    Parameters:
936
     - offset
937
     - limit
938
    """
939
    pass
8739 vikram.rag 940
 
9242 kshitij.so 941
  def searchSnapdealItems(self, searchTerm, offset, limit):
942
    """
943
    Parameters:
944
     - searchTerm
945
     - offset
946
     - limit
947
    """
948
    pass
949
 
950
  def getCountForSnapdealItems(self, ):
951
    pass
952
 
953
  def getSnapdealSearchResultCount(self, searchTerm):
954
    """
955
    Parameters:
956
     - searchTerm
957
    """
958
    pass
959
 
9299 kshitij.so 960
  def getPrefferedInsurerForItem(self, itemId, insurerType):
961
    """
962
    Parameters:
963
     - itemId
964
     - insurerType
965
    """
966
    pass
9242 kshitij.so 967
 
9456 vikram.rag 968
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
969
    """
970
    Parameters:
971
     - skuAtSnapdeal
972
    """
973
    pass
9299 kshitij.so 974
 
9621 manish.sha 975
  def getProductFeedSubmit(self, catalogItemId):
976
    """
977
    Parameters:
978
     - catalogItemId
979
    """
980
    pass
9456 vikram.rag 981
 
9621 manish.sha 982
  def addProductFeedSubmit(self, productFeedSubmit):
983
    """
984
    Parameters:
985
     - productFeedSubmit
986
    """
987
    pass
988
 
989
  def updateProductFeedSubmit(self, productFeedSubmit):
990
    """
991
    Parameters:
992
     - productFeedSubmit
993
    """
994
    pass
995
 
996
  def deleteProductFeedSubmit(self, catalogItemId):
997
    """
998
    Parameters:
999
     - catalogItemId
1000
    """
1001
    pass
1002
 
1003
  def getAllProductFeedSubmit(self, ):
1004
    pass
1005
 
9724 kshitij.so 1006
  def getMarketplacedetailsForItem(self, itemId, sourceId):
1007
    """
1008
    Parameters:
1009
     - itemId
1010
     - sourceId
1011
    """
1012
    pass
9621 manish.sha 1013
 
9724 kshitij.so 1014
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
1015
    """
1016
    Parameters:
1017
     - marketPlaceItem
1018
    """
1019
    pass
1020
 
9779 kshitij.so 1021
  def getCostingForMarketplace(self, source, item_id):
1022
    """
1023
    Parameters:
1024
     - source
1025
     - item_id
1026
    """
1027
    pass
1028
 
9776 vikram.rag 1029
  def getMarketPlaceItemsForPriceUpdate(self, source):
1030
    """
1031
    Parameters:
1032
     - source
1033
    """
1034
    pass
9724 kshitij.so 1035
 
9816 kshitij.so 1036
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 1037
    """
1038
    Parameters:
1039
     - skulist
1040
     - timestamp
9816 kshitij.so 1041
     - source
9776 vikram.rag 1042
    """
1043
    pass
1044
 
9861 rajveer 1045
  def updateItemHoldInventory(self, itemHoldMap):
1046
    """
1047
    Parameters:
1048
     - itemHoldMap
1049
    """
1050
    pass
9776 vikram.rag 1051
 
9895 vikram.rag 1052
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
1053
    """
1054
    Parameters:
1055
     - item_id
1056
     - vendor_id
1057
     - nlc
1058
    """
1059
    pass
9861 rajveer 1060
 
9945 vikram.rag 1061
  def getAllFlipkartItems(self, ):
1062
    pass
9895 vikram.rag 1063
 
10097 kshitij.so 1064
  def addOrUpdateFlipkartItem(self, flipkartitem):
1065
    """
1066
    Parameters:
1067
     - flipkartitem
1068
    """
1069
    pass
9945 vikram.rag 1070
 
10097 kshitij.so 1071
  def getFlipkartItem(self, item_id):
1072
    """
1073
    Parameters:
1074
     - item_id
1075
    """
1076
    pass
1077
 
1078
  def getFlipkartItemDetails(self, item_id):
1079
    """
1080
    Parameters:
1081
     - item_id
1082
    """
1083
    pass
1084
 
1085
  def getFlipkartItems(self, offset, limit):
1086
    """
1087
    Parameters:
1088
     - offset
1089
     - limit
1090
    """
1091
    pass
1092
 
1093
  def searchFlipkartItems(self, searchTerm, offset, limit):
1094
    """
1095
    Parameters:
1096
     - searchTerm
1097
     - offset
1098
     - limit
1099
    """
1100
    pass
1101
 
1102
  def getCountForFlipkartItems(self, ):
1103
    pass
1104
 
1105
  def getFlipkartSearchResultCount(self, searchTerm):
1106
    """
1107
    Parameters:
1108
     - searchTerm
1109
    """
1110
    pass
1111
 
1112
  def getAllFkItems(self, ):
1113
    pass
1114
 
10140 vikram.rag 1115
  def getFlipkartItemBySkyAtFlipkart(self, sku):
1116
    """
1117
    Parameters:
1118
     - sku
1119
    """
1120
    pass
10097 kshitij.so 1121
 
11015 kshitij.so 1122
  def getMarketplaceHistory(self, source, offset, itemId):
1123
    """
1124
    Parameters:
1125
     - source
1126
     - offset
1127
     - itemId
1128
    """
1129
    pass
1130
 
10909 vikram.rag 1131
  def getAllFbbListedItems(self, ):
1132
    pass
10140 vikram.rag 1133
 
10924 vikram.rag 1134
  def getAllFbbPricingItems(self, ):
1135
    pass
10909 vikram.rag 1136
 
11015 kshitij.so 1137
  def getCountForMarketplaceHistory(self, source, itemId):
1138
    """
1139
    Parameters:
1140
     - source
1141
     - itemId
1142
    """
1143
    pass
10924 vikram.rag 1144
 
11015 kshitij.so 1145
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
1146
    """
1147
    Parameters:
1148
     - source
1149
     - startDate
1150
     - endDate
1151
     - offset
1152
     - limit
1153
     - itemId
1154
    """
1155
    pass
1156
 
11531 vikram.rag 1157
  def getPrivateDealDetails(self, item_id):
1158
    """
1159
    Parameters:
1160
     - item_id
1161
    """
1162
    pass
11015 kshitij.so 1163
 
11531 vikram.rag 1164
  def getPrivateDealItems(self, offset, limit):
1165
    """
1166
    Parameters:
1167
     - offset
1168
     - limit
1169
    """
1170
    pass
1171
 
11653 amit.gupta 1172
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
1173
    """
1174
    Parameters:
1175
     - itemIds
1176
     - daysDelta
1177
    """
11592 amit.gupta 1178
    pass
1179
 
11531 vikram.rag 1180
  def addOrUpdatePrivateDeal(self, privateDeal):
1181
    """
1182
    Parameters:
1183
     - privateDeal
1184
    """
1185
    pass
1186
 
11635 vikram.rag 1187
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
1188
    """
1189
    Parameters:
1190
     - beginIndex
1191
     - totalItems
1192
    """
1193
    pass
11531 vikram.rag 1194
 
11645 amit.gupta 1195
  def getPrivateDealsCount(self, ):
1196
    pass
11635 vikram.rag 1197
 
11905 kshitij.so 1198
  def getAmazonOutSyncItems(self, item_id):
1199
    """
1200
    Parameters:
1201
     - item_id
1202
    """
1203
    pass
11645 amit.gupta 1204
 
11905 kshitij.so 1205
  def getAllPrivateDealsComparison(self, ):
1206
    pass
1207
 
12133 kshitij.so 1208
  def getAllSnapdealMarketplaceItem(self, ):
1209
    pass
11905 kshitij.so 1210
 
12133 kshitij.so 1211
  def getAllFlipkartMarketplaceItem(self, ):
1212
    pass
1213
 
12243 kshitij.so 1214
  def addCompetitorScraping(self, competitorPricingMap):
1215
    """
1216
    Parameters:
1217
     - competitorPricingMap
1218
    """
1219
    pass
12133 kshitij.so 1220
 
12243 kshitij.so 1221
  def getPreviousCompetitorScraping(self, delta):
1222
    """
1223
    Parameters:
1224
     - delta
1225
    """
1226
    pass
1227
 
12256 kshitij.so 1228
  def getUploadResultById(self, uploadId):
1229
    """
1230
    Parameters:
1231
     - uploadId
1232
    """
1233
    pass
12243 kshitij.so 1234
 
12363 kshitij.so 1235
  def addAmazonPromotion(self, amazonPromotions):
1236
    """
1237
    Parameters:
1238
     - amazonPromotions
1239
    """
1240
    pass
12256 kshitij.so 1241
 
12363 kshitij.so 1242
  def getAmazonPromotion(self, startDate, endDate):
1243
    """
1244
    Parameters:
1245
     - startDate
1246
     - endDate
1247
    """
1248
    pass
1249
 
1250
  def updateAmazonPromotion(self, amazonPromotions):
1251
    """
1252
    Parameters:
1253
     - amazonPromotions
1254
    """
1255
    pass
1256
 
12567 amit.gupta 1257
  def markPartiallyActive(self, itemId, categoryId):
1258
    """
1259
    Parameters:
1260
     - itemId
1261
     - categoryId
1262
    """
1263
    pass
12363 kshitij.so 1264
 
12567 amit.gupta 1265
  def updateItemStateVat(self, itemId, statevat):
1266
    """
1267
    Parameters:
1268
     - itemId
1269
     - statevat
1270
    """
1271
    pass
1272
 
12620 amit.gupta 1273
  def getExAffiliateItemInfo(self, ):
1274
    pass
12567 amit.gupta 1275
 
12888 kshitij.so 1276
  def getAllItemstoListOnFbg(self, ):
1277
    pass
12620 amit.gupta 1278
 
12892 kshitij.so 1279
  def getAllFbgListedItems(self, ):
1280
    pass
12888 kshitij.so 1281
 
13136 amit.gupta 1282
  def checkServices(self, lines):
1283
    """
1284
    Parameters:
1285
     - lines
1286
    """
1287
    pass
12892 kshitij.so 1288
 
13136 amit.gupta 1289
 
5944 mandeep.dh 1290
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1291
  def __init__(self, iprot, oprot=None):
1292
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1293
 
1294
  def addItem(self, item):
1295
    """
1296
    Availability and inventory attributes
1297
 
1298
    Parameters:
1299
     - item
1300
    """
1301
    self.send_addItem(item)
1302
    return self.recv_addItem()
1303
 
1304
  def send_addItem(self, item):
1305
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1306
    args = addItem_args()
1307
    args.item = item
1308
    args.write(self._oprot)
1309
    self._oprot.writeMessageEnd()
1310
    self._oprot.trans.flush()
1311
 
1312
  def recv_addItem(self, ):
1313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1314
    if mtype == TMessageType.EXCEPTION:
1315
      x = TApplicationException()
1316
      x.read(self._iprot)
1317
      self._iprot.readMessageEnd()
1318
      raise x
1319
    result = addItem_result()
1320
    result.read(self._iprot)
1321
    self._iprot.readMessageEnd()
1322
    if result.success is not None:
1323
      return result.success
1324
    if result.cex is not None:
1325
      raise result.cex
1326
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1327
 
1328
  def updateItem(self, item):
1329
    """
1330
    Parameters:
1331
     - item
1332
    """
1333
    self.send_updateItem(item)
1334
    return self.recv_updateItem()
1335
 
1336
  def send_updateItem(self, item):
1337
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1338
    args = updateItem_args()
1339
    args.item = item
1340
    args.write(self._oprot)
1341
    self._oprot.writeMessageEnd()
1342
    self._oprot.trans.flush()
1343
 
1344
  def recv_updateItem(self, ):
1345
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1346
    if mtype == TMessageType.EXCEPTION:
1347
      x = TApplicationException()
1348
      x.read(self._iprot)
1349
      self._iprot.readMessageEnd()
1350
      raise x
1351
    result = updateItem_result()
1352
    result.read(self._iprot)
1353
    self._iprot.readMessageEnd()
1354
    if result.success is not None:
1355
      return result.success
1356
    if result.cex is not None:
1357
      raise result.cex
1358
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1359
 
1360
  def isActive(self, itemId):
1361
    """
1362
    Checks if the item given to the corresponding itemId is active. If it's active,
1363
    whether it's risky and if it's risky, its inventory position.
1364
 
1365
    Parameters:
1366
     - itemId
1367
    """
1368
    self.send_isActive(itemId)
1369
    return self.recv_isActive()
1370
 
1371
  def send_isActive(self, itemId):
1372
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1373
    args = isActive_args()
1374
    args.itemId = itemId
1375
    args.write(self._oprot)
1376
    self._oprot.writeMessageEnd()
1377
    self._oprot.trans.flush()
1378
 
1379
  def recv_isActive(self, ):
1380
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1381
    if mtype == TMessageType.EXCEPTION:
1382
      x = TApplicationException()
1383
      x.read(self._iprot)
1384
      self._iprot.readMessageEnd()
1385
      raise x
1386
    result = isActive_result()
1387
    result.read(self._iprot)
1388
    self._iprot.readMessageEnd()
1389
    if result.success is not None:
1390
      return result.success
1391
    if result.isex is not None:
1392
      raise result.isex
1393
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1394
 
7438 amit.gupta 1395
  def getItemsStatus(self, itemIds):
1396
    """
1397
    Parameters:
1398
     - itemIds
1399
    """
1400
    self.send_getItemsStatus(itemIds)
1401
    return self.recv_getItemsStatus()
1402
 
1403
  def send_getItemsStatus(self, itemIds):
1404
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1405
    args = getItemsStatus_args()
1406
    args.itemIds = itemIds
1407
    args.write(self._oprot)
1408
    self._oprot.writeMessageEnd()
1409
    self._oprot.trans.flush()
1410
 
1411
  def recv_getItemsStatus(self, ):
1412
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1413
    if mtype == TMessageType.EXCEPTION:
1414
      x = TApplicationException()
1415
      x.read(self._iprot)
1416
      self._iprot.readMessageEnd()
1417
      raise x
1418
    result = getItemsStatus_result()
1419
    result.read(self._iprot)
1420
    self._iprot.readMessageEnd()
1421
    if result.success is not None:
1422
      return result.success
1423
    if result.isex is not None:
1424
      raise result.isex
1425
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1426
 
5944 mandeep.dh 1427
  def getItemStatusDescription(self, itemId):
1428
    """
1429
    Parameters:
1430
     - itemId
1431
    """
1432
    self.send_getItemStatusDescription(itemId)
1433
    return self.recv_getItemStatusDescription()
1434
 
1435
  def send_getItemStatusDescription(self, itemId):
1436
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1437
    args = getItemStatusDescription_args()
1438
    args.itemId = itemId
1439
    args.write(self._oprot)
1440
    self._oprot.writeMessageEnd()
1441
    self._oprot.trans.flush()
1442
 
1443
  def recv_getItemStatusDescription(self, ):
1444
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1445
    if mtype == TMessageType.EXCEPTION:
1446
      x = TApplicationException()
1447
      x.read(self._iprot)
1448
      self._iprot.readMessageEnd()
1449
      raise x
1450
    result = getItemStatusDescription_result()
1451
    result.read(self._iprot)
1452
    self._iprot.readMessageEnd()
1453
    if result.success is not None:
1454
      return result.success
1455
    if result.isex is not None:
1456
      raise result.isex
1457
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1458
 
1459
  def startItemOn(self, item_id, timestamp):
1460
    """
1461
    Parameters:
1462
     - item_id
1463
     - timestamp
1464
    """
1465
    self.send_startItemOn(item_id, timestamp)
1466
    self.recv_startItemOn()
1467
 
1468
  def send_startItemOn(self, item_id, timestamp):
1469
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1470
    args = startItemOn_args()
1471
    args.item_id = item_id
1472
    args.timestamp = timestamp
1473
    args.write(self._oprot)
1474
    self._oprot.writeMessageEnd()
1475
    self._oprot.trans.flush()
1476
 
1477
  def recv_startItemOn(self, ):
1478
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1479
    if mtype == TMessageType.EXCEPTION:
1480
      x = TApplicationException()
1481
      x.read(self._iprot)
1482
      self._iprot.readMessageEnd()
1483
      raise x
1484
    result = startItemOn_result()
1485
    result.read(self._iprot)
1486
    self._iprot.readMessageEnd()
1487
    if result.cex is not None:
1488
      raise result.cex
1489
    return
1490
 
1491
  def retireItemOn(self, item_id, timestamp):
1492
    """
1493
    Parameters:
1494
     - item_id
1495
     - timestamp
1496
    """
1497
    self.send_retireItemOn(item_id, timestamp)
1498
    self.recv_retireItemOn()
1499
 
1500
  def send_retireItemOn(self, item_id, timestamp):
1501
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1502
    args = retireItemOn_args()
1503
    args.item_id = item_id
1504
    args.timestamp = timestamp
1505
    args.write(self._oprot)
1506
    self._oprot.writeMessageEnd()
1507
    self._oprot.trans.flush()
1508
 
1509
  def recv_retireItemOn(self, ):
1510
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1511
    if mtype == TMessageType.EXCEPTION:
1512
      x = TApplicationException()
1513
      x.read(self._iprot)
1514
      self._iprot.readMessageEnd()
1515
      raise x
1516
    result = retireItemOn_result()
1517
    result.read(self._iprot)
1518
    self._iprot.readMessageEnd()
1519
    if result.cex is not None:
1520
      raise result.cex
1521
    return
1522
 
1523
  def changeItemStatus(self, item_id, timestamp, newstatus):
1524
    """
1525
    Parameters:
1526
     - item_id
1527
     - timestamp
1528
     - newstatus
1529
    """
1530
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1531
    self.recv_changeItemStatus()
1532
 
1533
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1534
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1535
    args = changeItemStatus_args()
1536
    args.item_id = item_id
1537
    args.timestamp = timestamp
1538
    args.newstatus = newstatus
1539
    args.write(self._oprot)
1540
    self._oprot.writeMessageEnd()
1541
    self._oprot.trans.flush()
1542
 
1543
  def recv_changeItemStatus(self, ):
1544
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1545
    if mtype == TMessageType.EXCEPTION:
1546
      x = TApplicationException()
1547
      x.read(self._iprot)
1548
      self._iprot.readMessageEnd()
1549
      raise x
1550
    result = changeItemStatus_result()
1551
    result.read(self._iprot)
1552
    self._iprot.readMessageEnd()
1553
    if result.cex is not None:
1554
      raise result.cex
1555
    return
1556
 
1557
  def getItem(self, item_id):
1558
    """
1559
    Parameters:
1560
     - item_id
1561
    """
1562
    self.send_getItem(item_id)
1563
    return self.recv_getItem()
1564
 
1565
  def send_getItem(self, item_id):
1566
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1567
    args = getItem_args()
1568
    args.item_id = item_id
1569
    args.write(self._oprot)
1570
    self._oprot.writeMessageEnd()
1571
    self._oprot.trans.flush()
1572
 
1573
  def recv_getItem(self, ):
1574
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1575
    if mtype == TMessageType.EXCEPTION:
1576
      x = TApplicationException()
1577
      x.read(self._iprot)
1578
      self._iprot.readMessageEnd()
1579
      raise x
1580
    result = getItem_result()
1581
    result.read(self._iprot)
1582
    self._iprot.readMessageEnd()
1583
    if result.success is not None:
1584
      return result.success
1585
    if result.cex is not None:
1586
      raise result.cex
1587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1588
 
1589
  def getItemsByCatalogId(self, catalog_item_id):
1590
    """
1591
    Parameters:
1592
     - catalog_item_id
1593
    """
1594
    self.send_getItemsByCatalogId(catalog_item_id)
1595
    return self.recv_getItemsByCatalogId()
1596
 
1597
  def send_getItemsByCatalogId(self, catalog_item_id):
1598
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1599
    args = getItemsByCatalogId_args()
1600
    args.catalog_item_id = catalog_item_id
1601
    args.write(self._oprot)
1602
    self._oprot.writeMessageEnd()
1603
    self._oprot.trans.flush()
1604
 
1605
  def recv_getItemsByCatalogId(self, ):
1606
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1607
    if mtype == TMessageType.EXCEPTION:
1608
      x = TApplicationException()
1609
      x.read(self._iprot)
1610
      self._iprot.readMessageEnd()
1611
      raise x
1612
    result = getItemsByCatalogId_result()
1613
    result.read(self._iprot)
1614
    self._iprot.readMessageEnd()
1615
    if result.success is not None:
1616
      return result.success
1617
    if result.cex is not None:
1618
      raise result.cex
1619
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1620
 
1621
  def getValidItemsByCatalogId(self, catalog_item_id):
1622
    """
1623
    Parameters:
1624
     - catalog_item_id
1625
    """
1626
    self.send_getValidItemsByCatalogId(catalog_item_id)
1627
    return self.recv_getValidItemsByCatalogId()
1628
 
1629
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1630
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1631
    args = getValidItemsByCatalogId_args()
1632
    args.catalog_item_id = catalog_item_id
1633
    args.write(self._oprot)
1634
    self._oprot.writeMessageEnd()
1635
    self._oprot.trans.flush()
1636
 
1637
  def recv_getValidItemsByCatalogId(self, ):
1638
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1639
    if mtype == TMessageType.EXCEPTION:
1640
      x = TApplicationException()
1641
      x.read(self._iprot)
1642
      self._iprot.readMessageEnd()
1643
      raise x
1644
    result = getValidItemsByCatalogId_result()
1645
    result.read(self._iprot)
1646
    self._iprot.readMessageEnd()
1647
    if result.success is not None:
1648
      return result.success
1649
    if result.cex is not None:
1650
      raise result.cex
1651
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1652
 
1653
  def getAllItems(self, isActive):
1654
    """
1655
    Parameters:
1656
     - isActive
1657
    """
1658
    self.send_getAllItems(isActive)
1659
    return self.recv_getAllItems()
1660
 
1661
  def send_getAllItems(self, isActive):
1662
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1663
    args = getAllItems_args()
1664
    args.isActive = isActive
1665
    args.write(self._oprot)
1666
    self._oprot.writeMessageEnd()
1667
    self._oprot.trans.flush()
1668
 
1669
  def recv_getAllItems(self, ):
1670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1671
    if mtype == TMessageType.EXCEPTION:
1672
      x = TApplicationException()
1673
      x.read(self._iprot)
1674
      self._iprot.readMessageEnd()
1675
      raise x
1676
    result = getAllItems_result()
1677
    result.read(self._iprot)
1678
    self._iprot.readMessageEnd()
1679
    if result.success is not None:
1680
      return result.success
1681
    if result.cex is not None:
1682
      raise result.cex
1683
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1684
 
1685
  def getAllItemsByStatus(self, itemStatus):
1686
    """
1687
    Parameters:
1688
     - itemStatus
1689
    """
1690
    self.send_getAllItemsByStatus(itemStatus)
1691
    return self.recv_getAllItemsByStatus()
1692
 
1693
  def send_getAllItemsByStatus(self, itemStatus):
1694
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1695
    args = getAllItemsByStatus_args()
1696
    args.itemStatus = itemStatus
1697
    args.write(self._oprot)
1698
    self._oprot.writeMessageEnd()
1699
    self._oprot.trans.flush()
1700
 
1701
  def recv_getAllItemsByStatus(self, ):
1702
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1703
    if mtype == TMessageType.EXCEPTION:
1704
      x = TApplicationException()
1705
      x.read(self._iprot)
1706
      self._iprot.readMessageEnd()
1707
      raise x
1708
    result = getAllItemsByStatus_result()
1709
    result.read(self._iprot)
1710
    self._iprot.readMessageEnd()
1711
    if result.success is not None:
1712
      return result.success
1713
    if result.cex is not None:
1714
      raise result.cex
1715
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1716
 
9253 rajveer 1717
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1718
    """
1719
    Parameters:
1720
     - entityId
1721
     - category
1722
     - brand
1723
     - modelName
1724
     - modelNumber
9253 rajveer 1725
     - isAndroid
5944 mandeep.dh 1726
    """
9253 rajveer 1727
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1728
    return self.recv_markItemAsContentComplete()
1729
 
9253 rajveer 1730
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1731
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1732
    args = markItemAsContentComplete_args()
1733
    args.entityId = entityId
1734
    args.category = category
1735
    args.brand = brand
1736
    args.modelName = modelName
1737
    args.modelNumber = modelNumber
9253 rajveer 1738
    args.isAndroid = isAndroid
5944 mandeep.dh 1739
    args.write(self._oprot)
1740
    self._oprot.writeMessageEnd()
1741
    self._oprot.trans.flush()
1742
 
1743
  def recv_markItemAsContentComplete(self, ):
1744
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1745
    if mtype == TMessageType.EXCEPTION:
1746
      x = TApplicationException()
1747
      x.read(self._iprot)
1748
      self._iprot.readMessageEnd()
1749
      raise x
1750
    result = markItemAsContentComplete_result()
1751
    result.read(self._iprot)
1752
    self._iprot.readMessageEnd()
1753
    if result.success is not None:
1754
      return result.success
1755
    if result.cex is not None:
1756
      raise result.cex
1757
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1758
 
12567 amit.gupta 1759
  def getVatRates(self, itemId, categoryId):
1760
    """
1761
    Parameters:
1762
     - itemId
1763
     - categoryId
1764
    """
1765
    self.send_getVatRates(itemId, categoryId)
1766
    return self.recv_getVatRates()
1767
 
1768
  def send_getVatRates(self, itemId, categoryId):
1769
    self._oprot.writeMessageBegin('getVatRates', TMessageType.CALL, self._seqid)
1770
    args = getVatRates_args()
1771
    args.itemId = itemId
1772
    args.categoryId = categoryId
1773
    args.write(self._oprot)
1774
    self._oprot.writeMessageEnd()
1775
    self._oprot.trans.flush()
1776
 
1777
  def recv_getVatRates(self, ):
1778
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1779
    if mtype == TMessageType.EXCEPTION:
1780
      x = TApplicationException()
1781
      x.read(self._iprot)
1782
      self._iprot.readMessageEnd()
1783
      raise x
1784
    result = getVatRates_result()
1785
    result.read(self._iprot)
1786
    self._iprot.readMessageEnd()
1787
    if result.success is not None:
1788
      return result.success
1789
    if result.cex is not None:
1790
      raise result.cex
1791
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatRates failed: unknown result");
1792
 
5944 mandeep.dh 1793
  def getAllItemsInRange(self, offset, limit):
1794
    """
1795
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1796
 
1797
    Parameters:
1798
     - offset
1799
     - limit
1800
    """
1801
    self.send_getAllItemsInRange(offset, limit)
1802
    return self.recv_getAllItemsInRange()
1803
 
1804
  def send_getAllItemsInRange(self, offset, limit):
1805
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1806
    args = getAllItemsInRange_args()
1807
    args.offset = offset
1808
    args.limit = limit
1809
    args.write(self._oprot)
1810
    self._oprot.writeMessageEnd()
1811
    self._oprot.trans.flush()
1812
 
1813
  def recv_getAllItemsInRange(self, ):
1814
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1815
    if mtype == TMessageType.EXCEPTION:
1816
      x = TApplicationException()
1817
      x.read(self._iprot)
1818
      self._iprot.readMessageEnd()
1819
      raise x
1820
    result = getAllItemsInRange_result()
1821
    result.read(self._iprot)
1822
    self._iprot.readMessageEnd()
1823
    if result.success is not None:
1824
      return result.success
1825
    if result.cex is not None:
1826
      raise result.cex
1827
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1828
 
1829
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1830
    """
1831
    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.
1832
 
1833
    Parameters:
1834
     - itemStatus
1835
     - offset
1836
     - limit
1837
    """
1838
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1839
    return self.recv_getAllItemsByStatusInRange()
1840
 
1841
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1842
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1843
    args = getAllItemsByStatusInRange_args()
1844
    args.itemStatus = itemStatus
1845
    args.offset = offset
1846
    args.limit = limit
1847
    args.write(self._oprot)
1848
    self._oprot.writeMessageEnd()
1849
    self._oprot.trans.flush()
1850
 
1851
  def recv_getAllItemsByStatusInRange(self, ):
1852
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1853
    if mtype == TMessageType.EXCEPTION:
1854
      x = TApplicationException()
1855
      x.read(self._iprot)
1856
      self._iprot.readMessageEnd()
1857
      raise x
1858
    result = getAllItemsByStatusInRange_result()
1859
    result.read(self._iprot)
1860
    self._iprot.readMessageEnd()
1861
    if result.success is not None:
1862
      return result.success
1863
    if result.cex is not None:
1864
      raise result.cex
1865
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1866
 
1867
  def getItemCountByStatus(self, useStatus, itemStatus):
1868
    """
1869
    Gets a count of all items by status
1870
 
1871
    Parameters:
1872
     - useStatus
1873
     - itemStatus
1874
    """
1875
    self.send_getItemCountByStatus(useStatus, itemStatus)
1876
    return self.recv_getItemCountByStatus()
1877
 
1878
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1879
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1880
    args = getItemCountByStatus_args()
1881
    args.useStatus = useStatus
1882
    args.itemStatus = itemStatus
1883
    args.write(self._oprot)
1884
    self._oprot.writeMessageEnd()
1885
    self._oprot.trans.flush()
1886
 
1887
  def recv_getItemCountByStatus(self, ):
1888
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1889
    if mtype == TMessageType.EXCEPTION:
1890
      x = TApplicationException()
1891
      x.read(self._iprot)
1892
      self._iprot.readMessageEnd()
1893
      raise x
1894
    result = getItemCountByStatus_result()
1895
    result.read(self._iprot)
1896
    self._iprot.readMessageEnd()
1897
    if result.success is not None:
1898
      return result.success
1899
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1900
 
1901
  def getBestSellers(self, ):
1902
    self.send_getBestSellers()
1903
    return self.recv_getBestSellers()
1904
 
1905
  def send_getBestSellers(self, ):
1906
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1907
    args = getBestSellers_args()
1908
    args.write(self._oprot)
1909
    self._oprot.writeMessageEnd()
1910
    self._oprot.trans.flush()
1911
 
1912
  def recv_getBestSellers(self, ):
1913
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1914
    if mtype == TMessageType.EXCEPTION:
1915
      x = TApplicationException()
1916
      x.read(self._iprot)
1917
      self._iprot.readMessageEnd()
1918
      raise x
1919
    result = getBestSellers_result()
1920
    result.read(self._iprot)
1921
    self._iprot.readMessageEnd()
1922
    if result.success is not None:
1923
      return result.success
1924
    if result.isex is not None:
1925
      raise result.isex
1926
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1927
 
1928
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1929
    """
1930
    Parameters:
1931
     - beginIndex
1932
     - totalItems
1933
     - brand
1934
     - category
1935
    """
1936
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1937
    return self.recv_getBestSellersCatalogIds()
1938
 
1939
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1940
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1941
    args = getBestSellersCatalogIds_args()
1942
    args.beginIndex = beginIndex
1943
    args.totalItems = totalItems
1944
    args.brand = brand
1945
    args.category = category
1946
    args.write(self._oprot)
1947
    self._oprot.writeMessageEnd()
1948
    self._oprot.trans.flush()
1949
 
1950
  def recv_getBestSellersCatalogIds(self, ):
1951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1952
    if mtype == TMessageType.EXCEPTION:
1953
      x = TApplicationException()
1954
      x.read(self._iprot)
1955
      self._iprot.readMessageEnd()
1956
      raise x
1957
    result = getBestSellersCatalogIds_result()
1958
    result.read(self._iprot)
1959
    self._iprot.readMessageEnd()
1960
    if result.success is not None:
1961
      return result.success
1962
    if result.cex is not None:
1963
      raise result.cex
1964
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1965
 
1966
  def getBestSellersCount(self, ):
1967
    self.send_getBestSellersCount()
1968
    return self.recv_getBestSellersCount()
1969
 
1970
  def send_getBestSellersCount(self, ):
1971
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1972
    args = getBestSellersCount_args()
1973
    args.write(self._oprot)
1974
    self._oprot.writeMessageEnd()
1975
    self._oprot.trans.flush()
1976
 
1977
  def recv_getBestSellersCount(self, ):
1978
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1979
    if mtype == TMessageType.EXCEPTION:
1980
      x = TApplicationException()
1981
      x.read(self._iprot)
1982
      self._iprot.readMessageEnd()
1983
      raise x
1984
    result = getBestSellersCount_result()
1985
    result.read(self._iprot)
1986
    self._iprot.readMessageEnd()
1987
    if result.success is not None:
1988
      return result.success
1989
    if result.cex is not None:
1990
      raise result.cex
1991
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1992
 
1993
  def getBestDeals(self, ):
1994
    self.send_getBestDeals()
1995
    return self.recv_getBestDeals()
1996
 
1997
  def send_getBestDeals(self, ):
1998
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1999
    args = getBestDeals_args()
2000
    args.write(self._oprot)
2001
    self._oprot.writeMessageEnd()
2002
    self._oprot.trans.flush()
2003
 
2004
  def recv_getBestDeals(self, ):
2005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2006
    if mtype == TMessageType.EXCEPTION:
2007
      x = TApplicationException()
2008
      x.read(self._iprot)
2009
      self._iprot.readMessageEnd()
2010
      raise x
2011
    result = getBestDeals_result()
2012
    result.read(self._iprot)
2013
    self._iprot.readMessageEnd()
2014
    if result.success is not None:
2015
      return result.success
2016
    if result.isex is not None:
2017
      raise result.isex
2018
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
2019
 
2020
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2021
    """
2022
    Parameters:
2023
     - beginIndex
2024
     - totalItems
2025
     - brand
2026
     - category
2027
    """
2028
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
2029
    return self.recv_getBestDealsCatalogIds()
2030
 
2031
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2032
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
2033
    args = getBestDealsCatalogIds_args()
2034
    args.beginIndex = beginIndex
2035
    args.totalItems = totalItems
2036
    args.brand = brand
2037
    args.category = category
2038
    args.write(self._oprot)
2039
    self._oprot.writeMessageEnd()
2040
    self._oprot.trans.flush()
2041
 
2042
  def recv_getBestDealsCatalogIds(self, ):
2043
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2044
    if mtype == TMessageType.EXCEPTION:
2045
      x = TApplicationException()
2046
      x.read(self._iprot)
2047
      self._iprot.readMessageEnd()
2048
      raise x
2049
    result = getBestDealsCatalogIds_result()
2050
    result.read(self._iprot)
2051
    self._iprot.readMessageEnd()
2052
    if result.success is not None:
2053
      return result.success
2054
    if result.cex is not None:
2055
      raise result.cex
2056
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
2057
 
2058
  def getBestDealsCount(self, ):
2059
    self.send_getBestDealsCount()
2060
    return self.recv_getBestDealsCount()
2061
 
2062
  def send_getBestDealsCount(self, ):
2063
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
2064
    args = getBestDealsCount_args()
2065
    args.write(self._oprot)
2066
    self._oprot.writeMessageEnd()
2067
    self._oprot.trans.flush()
2068
 
2069
  def recv_getBestDealsCount(self, ):
2070
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2071
    if mtype == TMessageType.EXCEPTION:
2072
      x = TApplicationException()
2073
      x.read(self._iprot)
2074
      self._iprot.readMessageEnd()
2075
      raise x
2076
    result = getBestDealsCount_result()
2077
    result.read(self._iprot)
2078
    self._iprot.readMessageEnd()
2079
    if result.success is not None:
2080
      return result.success
2081
    if result.cex is not None:
2082
      raise result.cex
2083
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
2084
 
2085
  def getComingSoon(self, ):
2086
    self.send_getComingSoon()
2087
    return self.recv_getComingSoon()
2088
 
2089
  def send_getComingSoon(self, ):
2090
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
2091
    args = getComingSoon_args()
2092
    args.write(self._oprot)
2093
    self._oprot.writeMessageEnd()
2094
    self._oprot.trans.flush()
2095
 
2096
  def recv_getComingSoon(self, ):
2097
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2098
    if mtype == TMessageType.EXCEPTION:
2099
      x = TApplicationException()
2100
      x.read(self._iprot)
2101
      self._iprot.readMessageEnd()
2102
      raise x
2103
    result = getComingSoon_result()
2104
    result.read(self._iprot)
2105
    self._iprot.readMessageEnd()
2106
    if result.success is not None:
2107
      return result.success
2108
    if result.isex is not None:
2109
      raise result.isex
2110
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
2111
 
2112
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2113
    """
2114
    Parameters:
2115
     - beginIndex
2116
     - totalItems
2117
     - brand
2118
     - category
2119
    """
2120
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
2121
    return self.recv_getComingSoonCatalogIds()
2122
 
2123
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2124
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
2125
    args = getComingSoonCatalogIds_args()
2126
    args.beginIndex = beginIndex
2127
    args.totalItems = totalItems
2128
    args.brand = brand
2129
    args.category = category
2130
    args.write(self._oprot)
2131
    self._oprot.writeMessageEnd()
2132
    self._oprot.trans.flush()
2133
 
2134
  def recv_getComingSoonCatalogIds(self, ):
2135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2136
    if mtype == TMessageType.EXCEPTION:
2137
      x = TApplicationException()
2138
      x.read(self._iprot)
2139
      self._iprot.readMessageEnd()
2140
      raise x
2141
    result = getComingSoonCatalogIds_result()
2142
    result.read(self._iprot)
2143
    self._iprot.readMessageEnd()
2144
    if result.success is not None:
2145
      return result.success
2146
    if result.cex is not None:
2147
      raise result.cex
2148
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
2149
 
2150
  def getComingSoonCount(self, ):
2151
    self.send_getComingSoonCount()
2152
    return self.recv_getComingSoonCount()
2153
 
2154
  def send_getComingSoonCount(self, ):
2155
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
2156
    args = getComingSoonCount_args()
2157
    args.write(self._oprot)
2158
    self._oprot.writeMessageEnd()
2159
    self._oprot.trans.flush()
2160
 
2161
  def recv_getComingSoonCount(self, ):
2162
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2163
    if mtype == TMessageType.EXCEPTION:
2164
      x = TApplicationException()
2165
      x.read(self._iprot)
2166
      self._iprot.readMessageEnd()
2167
      raise x
2168
    result = getComingSoonCount_result()
2169
    result.read(self._iprot)
2170
    self._iprot.readMessageEnd()
2171
    if result.success is not None:
2172
      return result.success
2173
    if result.cex is not None:
2174
      raise result.cex
2175
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
2176
 
2177
  def getLatestArrivals(self, ):
2178
    """
2179
    Returns a list of items sorted in the descending order by start date.
2180
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
2181
    """
2182
    self.send_getLatestArrivals()
2183
    return self.recv_getLatestArrivals()
2184
 
2185
  def send_getLatestArrivals(self, ):
2186
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
2187
    args = getLatestArrivals_args()
2188
    args.write(self._oprot)
2189
    self._oprot.writeMessageEnd()
2190
    self._oprot.trans.flush()
2191
 
2192
  def recv_getLatestArrivals(self, ):
2193
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2194
    if mtype == TMessageType.EXCEPTION:
2195
      x = TApplicationException()
2196
      x.read(self._iprot)
2197
      self._iprot.readMessageEnd()
2198
      raise x
2199
    result = getLatestArrivals_result()
2200
    result.read(self._iprot)
2201
    self._iprot.readMessageEnd()
2202
    if result.success is not None:
2203
      return result.success
2204
    if result.isex is not None:
2205
      raise result.isex
2206
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2207
 
2208
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2209
    """
2210
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2211
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2212
 
2213
    Parameters:
2214
     - beginIndex
2215
     - totalItems
2216
     - brand
2217
     - categories
2218
    """
2219
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2220
    return self.recv_getLatestArrivalsCatalogIds()
2221
 
2222
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2223
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2224
    args = getLatestArrivalsCatalogIds_args()
2225
    args.beginIndex = beginIndex
2226
    args.totalItems = totalItems
2227
    args.brand = brand
2228
    args.categories = categories
2229
    args.write(self._oprot)
2230
    self._oprot.writeMessageEnd()
2231
    self._oprot.trans.flush()
2232
 
2233
  def recv_getLatestArrivalsCatalogIds(self, ):
2234
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2235
    if mtype == TMessageType.EXCEPTION:
2236
      x = TApplicationException()
2237
      x.read(self._iprot)
2238
      self._iprot.readMessageEnd()
2239
      raise x
2240
    result = getLatestArrivalsCatalogIds_result()
2241
    result.read(self._iprot)
2242
    self._iprot.readMessageEnd()
2243
    if result.success is not None:
2244
      return result.success
2245
    if result.cex is not None:
2246
      raise result.cex
2247
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2248
 
2249
  def getLatestArrivalsCount(self, ):
2250
    """
2251
    Get the total number of latest arrivals we are willing to show.
2252
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2253
    """
2254
    self.send_getLatestArrivalsCount()
2255
    return self.recv_getLatestArrivalsCount()
2256
 
2257
  def send_getLatestArrivalsCount(self, ):
2258
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2259
    args = getLatestArrivalsCount_args()
2260
    args.write(self._oprot)
2261
    self._oprot.writeMessageEnd()
2262
    self._oprot.trans.flush()
2263
 
2264
  def recv_getLatestArrivalsCount(self, ):
2265
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2266
    if mtype == TMessageType.EXCEPTION:
2267
      x = TApplicationException()
2268
      x.read(self._iprot)
2269
      self._iprot.readMessageEnd()
2270
      raise x
2271
    result = getLatestArrivalsCount_result()
2272
    result.read(self._iprot)
2273
    self._iprot.readMessageEnd()
2274
    if result.success is not None:
2275
      return result.success
2276
    if result.cex is not None:
2277
      raise result.cex
2278
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2279
 
2280
  def generateNewEntityID(self, ):
2281
    self.send_generateNewEntityID()
2282
    return self.recv_generateNewEntityID()
2283
 
2284
  def send_generateNewEntityID(self, ):
2285
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2286
    args = generateNewEntityID_args()
2287
    args.write(self._oprot)
2288
    self._oprot.writeMessageEnd()
2289
    self._oprot.trans.flush()
2290
 
2291
  def recv_generateNewEntityID(self, ):
2292
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2293
    if mtype == TMessageType.EXCEPTION:
2294
      x = TApplicationException()
2295
      x.read(self._iprot)
2296
      self._iprot.readMessageEnd()
2297
      raise x
2298
    result = generateNewEntityID_result()
2299
    result.read(self._iprot)
2300
    self._iprot.readMessageEnd()
2301
    if result.success is not None:
2302
      return result.success
2303
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2304
 
2305
  def addCategory(self, category):
2306
    """
2307
    All category related functions
2308
 
2309
    Parameters:
2310
     - category
2311
    """
2312
    self.send_addCategory(category)
2313
    return self.recv_addCategory()
2314
 
2315
  def send_addCategory(self, category):
2316
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2317
    args = addCategory_args()
2318
    args.category = category
2319
    args.write(self._oprot)
2320
    self._oprot.writeMessageEnd()
2321
    self._oprot.trans.flush()
2322
 
2323
  def recv_addCategory(self, ):
2324
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2325
    if mtype == TMessageType.EXCEPTION:
2326
      x = TApplicationException()
2327
      x.read(self._iprot)
2328
      self._iprot.readMessageEnd()
2329
      raise x
2330
    result = addCategory_result()
2331
    result.read(self._iprot)
2332
    self._iprot.readMessageEnd()
2333
    if result.success is not None:
2334
      return result.success
2335
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2336
 
2337
  def getCategory(self, id):
2338
    """
2339
    Parameters:
2340
     - id
2341
    """
2342
    self.send_getCategory(id)
2343
    return self.recv_getCategory()
2344
 
2345
  def send_getCategory(self, id):
2346
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2347
    args = getCategory_args()
2348
    args.id = id
2349
    args.write(self._oprot)
2350
    self._oprot.writeMessageEnd()
2351
    self._oprot.trans.flush()
2352
 
2353
  def recv_getCategory(self, ):
2354
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2355
    if mtype == TMessageType.EXCEPTION:
2356
      x = TApplicationException()
2357
      x.read(self._iprot)
2358
      self._iprot.readMessageEnd()
2359
      raise x
2360
    result = getCategory_result()
2361
    result.read(self._iprot)
2362
    self._iprot.readMessageEnd()
2363
    if result.success is not None:
2364
      return result.success
2365
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2366
 
2367
  def getAllCategories(self, ):
2368
    self.send_getAllCategories()
2369
    return self.recv_getAllCategories()
2370
 
2371
  def send_getAllCategories(self, ):
2372
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2373
    args = getAllCategories_args()
2374
    args.write(self._oprot)
2375
    self._oprot.writeMessageEnd()
2376
    self._oprot.trans.flush()
2377
 
2378
  def recv_getAllCategories(self, ):
2379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2380
    if mtype == TMessageType.EXCEPTION:
2381
      x = TApplicationException()
2382
      x.read(self._iprot)
2383
      self._iprot.readMessageEnd()
2384
      raise x
2385
    result = getAllCategories_result()
2386
    result.read(self._iprot)
2387
    self._iprot.readMessageEnd()
2388
    if result.success is not None:
2389
      return result.success
2390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2391
 
2392
  def getAllSimilarItems(self, itemId):
2393
    """
2394
    Returns the list of similar items.
2395
 
2396
    Parameters:
2397
     - itemId
2398
    """
2399
    self.send_getAllSimilarItems(itemId)
2400
    return self.recv_getAllSimilarItems()
2401
 
2402
  def send_getAllSimilarItems(self, itemId):
2403
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2404
    args = getAllSimilarItems_args()
2405
    args.itemId = itemId
2406
    args.write(self._oprot)
2407
    self._oprot.writeMessageEnd()
2408
    self._oprot.trans.flush()
2409
 
2410
  def recv_getAllSimilarItems(self, ):
2411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2412
    if mtype == TMessageType.EXCEPTION:
2413
      x = TApplicationException()
2414
      x.read(self._iprot)
2415
      self._iprot.readMessageEnd()
2416
      raise x
2417
    result = getAllSimilarItems_result()
2418
    result.read(self._iprot)
2419
    self._iprot.readMessageEnd()
2420
    if result.success is not None:
2421
      return result.success
2422
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2423
 
2424
  def addSimilarItem(self, itemId, catalogItemId):
2425
    """
2426
    Adds similar item.
2427
 
2428
    Parameters:
2429
     - itemId
2430
     - catalogItemId
2431
    """
2432
    self.send_addSimilarItem(itemId, catalogItemId)
2433
    return self.recv_addSimilarItem()
2434
 
2435
  def send_addSimilarItem(self, itemId, catalogItemId):
2436
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2437
    args = addSimilarItem_args()
2438
    args.itemId = itemId
2439
    args.catalogItemId = catalogItemId
2440
    args.write(self._oprot)
2441
    self._oprot.writeMessageEnd()
2442
    self._oprot.trans.flush()
2443
 
2444
  def recv_addSimilarItem(self, ):
2445
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2446
    if mtype == TMessageType.EXCEPTION:
2447
      x = TApplicationException()
2448
      x.read(self._iprot)
2449
      self._iprot.readMessageEnd()
2450
      raise x
2451
    result = addSimilarItem_result()
2452
    result.read(self._iprot)
2453
    self._iprot.readMessageEnd()
2454
    if result.success is not None:
2455
      return result.success
2456
    if result.cex is not None:
2457
      raise result.cex
2458
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2459
 
6512 kshitij.so 2460
  def addTag(self, displayName, itemId):
2461
    """
2462
    Tag Related
2463
 
2464
    Parameters:
2465
     - displayName
2466
     - itemId
2467
    """
2468
    self.send_addTag(displayName, itemId)
2469
    return self.recv_addTag()
2470
 
2471
  def send_addTag(self, displayName, itemId):
2472
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2473
    args = addTag_args()
2474
    args.displayName = displayName
2475
    args.itemId = itemId
2476
    args.write(self._oprot)
2477
    self._oprot.writeMessageEnd()
2478
    self._oprot.trans.flush()
2479
 
2480
  def recv_addTag(self, ):
2481
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2482
    if mtype == TMessageType.EXCEPTION:
2483
      x = TApplicationException()
2484
      x.read(self._iprot)
2485
      self._iprot.readMessageEnd()
2486
      raise x
2487
    result = addTag_result()
2488
    result.read(self._iprot)
2489
    self._iprot.readMessageEnd()
2490
    if result.success is not None:
2491
      return result.success
2492
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2493
 
2494
  def deleteEntityTag(self, displayName, itemId):
2495
    """
2496
    Parameters:
2497
     - displayName
2498
     - itemId
2499
    """
2500
    self.send_deleteEntityTag(displayName, itemId)
2501
    return self.recv_deleteEntityTag()
2502
 
2503
  def send_deleteEntityTag(self, displayName, itemId):
2504
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2505
    args = deleteEntityTag_args()
2506
    args.displayName = displayName
2507
    args.itemId = itemId
2508
    args.write(self._oprot)
2509
    self._oprot.writeMessageEnd()
2510
    self._oprot.trans.flush()
2511
 
2512
  def recv_deleteEntityTag(self, ):
2513
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2514
    if mtype == TMessageType.EXCEPTION:
2515
      x = TApplicationException()
2516
      x.read(self._iprot)
2517
      self._iprot.readMessageEnd()
2518
      raise x
2519
    result = deleteEntityTag_result()
2520
    result.read(self._iprot)
2521
    self._iprot.readMessageEnd()
2522
    if result.success is not None:
2523
      return result.success
2524
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2525
 
2526
  def deleteTag(self, displayName):
2527
    """
2528
    Parameters:
2529
     - displayName
2530
    """
2531
    self.send_deleteTag(displayName)
2532
    return self.recv_deleteTag()
2533
 
2534
  def send_deleteTag(self, displayName):
2535
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2536
    args = deleteTag_args()
2537
    args.displayName = displayName
2538
    args.write(self._oprot)
2539
    self._oprot.writeMessageEnd()
2540
    self._oprot.trans.flush()
2541
 
2542
  def recv_deleteTag(self, ):
2543
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2544
    if mtype == TMessageType.EXCEPTION:
2545
      x = TApplicationException()
2546
      x.read(self._iprot)
2547
      self._iprot.readMessageEnd()
2548
      raise x
2549
    result = deleteTag_result()
2550
    result.read(self._iprot)
2551
    self._iprot.readMessageEnd()
2552
    if result.success is not None:
2553
      return result.success
2554
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2555
 
2556
  def getAllTags(self, ):
2557
    self.send_getAllTags()
2558
    return self.recv_getAllTags()
2559
 
2560
  def send_getAllTags(self, ):
2561
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2562
    args = getAllTags_args()
2563
    args.write(self._oprot)
2564
    self._oprot.writeMessageEnd()
2565
    self._oprot.trans.flush()
2566
 
2567
  def recv_getAllTags(self, ):
2568
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2569
    if mtype == TMessageType.EXCEPTION:
2570
      x = TApplicationException()
2571
      x.read(self._iprot)
2572
      self._iprot.readMessageEnd()
2573
      raise x
2574
    result = getAllTags_result()
2575
    result.read(self._iprot)
2576
    self._iprot.readMessageEnd()
2577
    if result.success is not None:
2578
      return result.success
2579
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2580
 
2581
  def getAllEntitiesByTagName(self, displayName):
2582
    """
2583
    Parameters:
2584
     - displayName
2585
    """
2586
    self.send_getAllEntitiesByTagName(displayName)
2587
    return self.recv_getAllEntitiesByTagName()
2588
 
2589
  def send_getAllEntitiesByTagName(self, displayName):
2590
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2591
    args = getAllEntitiesByTagName_args()
2592
    args.displayName = displayName
2593
    args.write(self._oprot)
2594
    self._oprot.writeMessageEnd()
2595
    self._oprot.trans.flush()
2596
 
2597
  def recv_getAllEntitiesByTagName(self, ):
2598
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2599
    if mtype == TMessageType.EXCEPTION:
2600
      x = TApplicationException()
2601
      x.read(self._iprot)
2602
      self._iprot.readMessageEnd()
2603
      raise x
2604
    result = getAllEntitiesByTagName_result()
2605
    result.read(self._iprot)
2606
    self._iprot.readMessageEnd()
2607
    if result.success is not None:
2608
      return result.success
2609
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2610
 
6845 amit.gupta 2611
  def getAllEntityTags(self, ):
2612
    self.send_getAllEntityTags()
2613
    return self.recv_getAllEntityTags()
2614
 
2615
  def send_getAllEntityTags(self, ):
2616
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2617
    args = getAllEntityTags_args()
2618
    args.write(self._oprot)
2619
    self._oprot.writeMessageEnd()
2620
    self._oprot.trans.flush()
2621
 
2622
  def recv_getAllEntityTags(self, ):
2623
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2624
    if mtype == TMessageType.EXCEPTION:
2625
      x = TApplicationException()
2626
      x.read(self._iprot)
2627
      self._iprot.readMessageEnd()
2628
      raise x
2629
    result = getAllEntityTags_result()
2630
    result.read(self._iprot)
2631
    self._iprot.readMessageEnd()
2632
    if result.success is not None:
2633
      return result.success
2634
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2635
 
8590 kshitij.so 2636
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2637
    """
8579 kshitij.so 2638
    Banner Related
2639
 
6850 kshitij.so 2640
    Parameters:
8590 kshitij.so 2641
     - bannerCongregate
6850 kshitij.so 2642
    """
8590 kshitij.so 2643
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2644
    return self.recv_addBanner()
6850 kshitij.so 2645
 
8590 kshitij.so 2646
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2647
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2648
    args = addBanner_args()
8590 kshitij.so 2649
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2650
    args.write(self._oprot)
2651
    self._oprot.writeMessageEnd()
2652
    self._oprot.trans.flush()
2653
 
2654
  def recv_addBanner(self, ):
2655
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2656
    if mtype == TMessageType.EXCEPTION:
2657
      x = TApplicationException()
2658
      x.read(self._iprot)
2659
      self._iprot.readMessageEnd()
2660
      raise x
2661
    result = addBanner_result()
2662
    result.read(self._iprot)
2663
    self._iprot.readMessageEnd()
10097 kshitij.so 2664
    if result.success is not None:
2665
      return result.success
2666
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2667
 
8579 kshitij.so 2668
  def updateBanner(self, banner):
2669
    """
2670
    Parameters:
2671
     - banner
2672
    """
2673
    self.send_updateBanner(banner)
2674
    return self.recv_updateBanner()
2675
 
2676
  def send_updateBanner(self, banner):
2677
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2678
    args = updateBanner_args()
2679
    args.banner = banner
2680
    args.write(self._oprot)
2681
    self._oprot.writeMessageEnd()
2682
    self._oprot.trans.flush()
2683
 
2684
  def recv_updateBanner(self, ):
2685
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2686
    if mtype == TMessageType.EXCEPTION:
2687
      x = TApplicationException()
2688
      x.read(self._iprot)
2689
      self._iprot.readMessageEnd()
2690
      raise x
2691
    result = updateBanner_result()
2692
    result.read(self._iprot)
2693
    self._iprot.readMessageEnd()
2694
    if result.success is not None:
2695
      return result.success
2696
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2697
 
6850 kshitij.so 2698
  def getAllBanners(self, ):
2699
    self.send_getAllBanners()
2700
    return self.recv_getAllBanners()
2701
 
2702
  def send_getAllBanners(self, ):
2703
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2704
    args = getAllBanners_args()
2705
    args.write(self._oprot)
2706
    self._oprot.writeMessageEnd()
2707
    self._oprot.trans.flush()
2708
 
2709
  def recv_getAllBanners(self, ):
2710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2711
    if mtype == TMessageType.EXCEPTION:
2712
      x = TApplicationException()
2713
      x.read(self._iprot)
2714
      self._iprot.readMessageEnd()
2715
      raise x
2716
    result = getAllBanners_result()
2717
    result.read(self._iprot)
2718
    self._iprot.readMessageEnd()
2719
    if result.success is not None:
2720
      return result.success
2721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2722
 
9155 kshitij.so 2723
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2724
    """
2725
    Parameters:
2726
     - bannerName
9155 kshitij.so 2727
     - bannerType
6850 kshitij.so 2728
    """
9155 kshitij.so 2729
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2730
    return self.recv_deleteBanner()
2731
 
9155 kshitij.so 2732
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2733
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2734
    args = deleteBanner_args()
2735
    args.bannerName = bannerName
9155 kshitij.so 2736
    args.bannerType = bannerType
6850 kshitij.so 2737
    args.write(self._oprot)
2738
    self._oprot.writeMessageEnd()
2739
    self._oprot.trans.flush()
2740
 
2741
  def recv_deleteBanner(self, ):
2742
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2743
    if mtype == TMessageType.EXCEPTION:
2744
      x = TApplicationException()
2745
      x.read(self._iprot)
2746
      self._iprot.readMessageEnd()
2747
      raise x
2748
    result = deleteBanner_result()
2749
    result.read(self._iprot)
2750
    self._iprot.readMessageEnd()
2751
    if result.success is not None:
2752
      return result.success
2753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2754
 
9155 kshitij.so 2755
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2756
    """
2757
    Parameters:
2758
     - bannerName
9155 kshitij.so 2759
     - bannerType
6850 kshitij.so 2760
    """
9155 kshitij.so 2761
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2762
    return self.recv_getBannerDetails()
2763
 
9155 kshitij.so 2764
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2765
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2766
    args = getBannerDetails_args()
2767
    args.bannerName = bannerName
9155 kshitij.so 2768
    args.bannerType = bannerType
6850 kshitij.so 2769
    args.write(self._oprot)
2770
    self._oprot.writeMessageEnd()
2771
    self._oprot.trans.flush()
2772
 
2773
  def recv_getBannerDetails(self, ):
2774
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2775
    if mtype == TMessageType.EXCEPTION:
2776
      x = TApplicationException()
2777
      x.read(self._iprot)
2778
      self._iprot.readMessageEnd()
2779
      raise x
2780
    result = getBannerDetails_result()
2781
    result.read(self._iprot)
2782
    self._iprot.readMessageEnd()
2783
    if result.success is not None:
2784
      return result.success
2785
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2786
 
2787
  def getActiveBanners(self, ):
2788
    self.send_getActiveBanners()
2789
    return self.recv_getActiveBanners()
2790
 
2791
  def send_getActiveBanners(self, ):
2792
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2793
    args = getActiveBanners_args()
2794
    args.write(self._oprot)
2795
    self._oprot.writeMessageEnd()
2796
    self._oprot.trans.flush()
2797
 
2798
  def recv_getActiveBanners(self, ):
2799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2800
    if mtype == TMessageType.EXCEPTION:
2801
      x = TApplicationException()
2802
      x.read(self._iprot)
2803
      self._iprot.readMessageEnd()
2804
      raise x
2805
    result = getActiveBanners_result()
2806
    result.read(self._iprot)
2807
    self._iprot.readMessageEnd()
2808
    if result.success is not None:
2809
      return result.success
2810
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2811
 
8579 kshitij.so 2812
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2813
    """
2814
    Parameters:
8579 kshitij.so 2815
     - bannerMaps
6849 kshitij.so 2816
    """
8579 kshitij.so 2817
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2818
    return self.recv_addBannerMap()
2819
 
8579 kshitij.so 2820
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2821
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2822
    args = addBannerMap_args()
8579 kshitij.so 2823
    args.bannerMaps = bannerMaps
6849 kshitij.so 2824
    args.write(self._oprot)
2825
    self._oprot.writeMessageEnd()
2826
    self._oprot.trans.flush()
2827
 
2828
  def recv_addBannerMap(self, ):
2829
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2830
    if mtype == TMessageType.EXCEPTION:
2831
      x = TApplicationException()
2832
      x.read(self._iprot)
2833
      self._iprot.readMessageEnd()
2834
      raise x
2835
    result = addBannerMap_result()
2836
    result.read(self._iprot)
2837
    self._iprot.readMessageEnd()
2838
    if result.success is not None:
2839
      return result.success
2840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2841
 
8579 kshitij.so 2842
  def updateBannerMap(self, bannerMap):
2843
    """
2844
    Parameters:
2845
     - bannerMap
2846
    """
2847
    self.send_updateBannerMap(bannerMap)
2848
    return self.recv_updateBannerMap()
2849
 
2850
  def send_updateBannerMap(self, bannerMap):
2851
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2852
    args = updateBannerMap_args()
2853
    args.bannerMap = bannerMap
2854
    args.write(self._oprot)
2855
    self._oprot.writeMessageEnd()
2856
    self._oprot.trans.flush()
2857
 
2858
  def recv_updateBannerMap(self, ):
2859
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2860
    if mtype == TMessageType.EXCEPTION:
2861
      x = TApplicationException()
2862
      x.read(self._iprot)
2863
      self._iprot.readMessageEnd()
2864
      raise x
2865
    result = updateBannerMap_result()
2866
    result.read(self._iprot)
2867
    self._iprot.readMessageEnd()
2868
    if result.success is not None:
2869
      return result.success
2870
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2871
 
6849 kshitij.so 2872
  def deleteBannerMap(self, bannerName):
2873
    """
2874
    Parameters:
2875
     - bannerName
2876
    """
2877
    self.send_deleteBannerMap(bannerName)
2878
    return self.recv_deleteBannerMap()
2879
 
2880
  def send_deleteBannerMap(self, bannerName):
2881
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2882
    args = deleteBannerMap_args()
2883
    args.bannerName = bannerName
2884
    args.write(self._oprot)
2885
    self._oprot.writeMessageEnd()
2886
    self._oprot.trans.flush()
2887
 
2888
  def recv_deleteBannerMap(self, ):
2889
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2890
    if mtype == TMessageType.EXCEPTION:
2891
      x = TApplicationException()
2892
      x.read(self._iprot)
2893
      self._iprot.readMessageEnd()
2894
      raise x
2895
    result = deleteBannerMap_result()
2896
    result.read(self._iprot)
2897
    self._iprot.readMessageEnd()
2898
    if result.success is not None:
2899
      return result.success
2900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2901
 
9155 kshitij.so 2902
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2903
    """
2904
    Parameters:
2905
     - bannerName
9155 kshitij.so 2906
     - bannerType
6849 kshitij.so 2907
    """
9155 kshitij.so 2908
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2909
    return self.recv_getBannerMapDetails()
2910
 
9155 kshitij.so 2911
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2912
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2913
    args = getBannerMapDetails_args()
2914
    args.bannerName = bannerName
9155 kshitij.so 2915
    args.bannerType = bannerType
6849 kshitij.so 2916
    args.write(self._oprot)
2917
    self._oprot.writeMessageEnd()
2918
    self._oprot.trans.flush()
2919
 
2920
  def recv_getBannerMapDetails(self, ):
2921
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2922
    if mtype == TMessageType.EXCEPTION:
2923
      x = TApplicationException()
2924
      x.read(self._iprot)
2925
      self._iprot.readMessageEnd()
2926
      raise x
2927
    result = getBannerMapDetails_result()
2928
    result.read(self._iprot)
2929
    self._iprot.readMessageEnd()
2930
    if result.success is not None:
2931
      return result.success
2932
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2933
 
8579 kshitij.so 2934
  def addBannerUri(self, bannerUriMappings):
2935
    """
2936
    Parameters:
2937
     - bannerUriMappings
2938
    """
2939
    self.send_addBannerUri(bannerUriMappings)
2940
    self.recv_addBannerUri()
2941
 
2942
  def send_addBannerUri(self, bannerUriMappings):
2943
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2944
    args = addBannerUri_args()
2945
    args.bannerUriMappings = bannerUriMappings
2946
    args.write(self._oprot)
2947
    self._oprot.writeMessageEnd()
2948
    self._oprot.trans.flush()
2949
 
2950
  def recv_addBannerUri(self, ):
2951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2952
    if mtype == TMessageType.EXCEPTION:
2953
      x = TApplicationException()
2954
      x.read(self._iprot)
2955
      self._iprot.readMessageEnd()
2956
      raise x
2957
    result = addBannerUri_result()
2958
    result.read(self._iprot)
2959
    self._iprot.readMessageEnd()
2960
    return
2961
 
9155 kshitij.so 2962
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2963
    """
2964
    Parameters:
2965
     - bannerName
9155 kshitij.so 2966
     - bannerType
8579 kshitij.so 2967
    """
9155 kshitij.so 2968
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2969
    return self.recv_getUriMapping()
2970
 
9155 kshitij.so 2971
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2972
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2973
    args = getUriMapping_args()
2974
    args.bannerName = bannerName
9155 kshitij.so 2975
    args.bannerType = bannerType
8579 kshitij.so 2976
    args.write(self._oprot)
2977
    self._oprot.writeMessageEnd()
2978
    self._oprot.trans.flush()
2979
 
2980
  def recv_getUriMapping(self, ):
2981
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2982
    if mtype == TMessageType.EXCEPTION:
2983
      x = TApplicationException()
2984
      x.read(self._iprot)
2985
      self._iprot.readMessageEnd()
2986
      raise x
2987
    result = getUriMapping_result()
2988
    result.read(self._iprot)
2989
    self._iprot.readMessageEnd()
2990
    if result.success is not None:
2991
      return result.success
2992
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2993
 
2994
  def addCampaign(self, campaign):
2995
    """
2996
    Parameters:
2997
     - campaign
2998
    """
2999
    self.send_addCampaign(campaign)
3000
    self.recv_addCampaign()
3001
 
3002
  def send_addCampaign(self, campaign):
3003
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
3004
    args = addCampaign_args()
3005
    args.campaign = campaign
3006
    args.write(self._oprot)
3007
    self._oprot.writeMessageEnd()
3008
    self._oprot.trans.flush()
3009
 
3010
  def recv_addCampaign(self, ):
3011
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3012
    if mtype == TMessageType.EXCEPTION:
3013
      x = TApplicationException()
3014
      x.read(self._iprot)
3015
      self._iprot.readMessageEnd()
3016
      raise x
3017
    result = addCampaign_result()
3018
    result.read(self._iprot)
3019
    self._iprot.readMessageEnd()
3020
    return
3021
 
3022
  def getCampaigns(self, campaignName):
3023
    """
3024
    Parameters:
3025
     - campaignName
3026
    """
3027
    self.send_getCampaigns(campaignName)
3028
    return self.recv_getCampaigns()
3029
 
3030
  def send_getCampaigns(self, campaignName):
3031
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
3032
    args = getCampaigns_args()
3033
    args.campaignName = campaignName
3034
    args.write(self._oprot)
3035
    self._oprot.writeMessageEnd()
3036
    self._oprot.trans.flush()
3037
 
3038
  def recv_getCampaigns(self, ):
3039
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3040
    if mtype == TMessageType.EXCEPTION:
3041
      x = TApplicationException()
3042
      x.read(self._iprot)
3043
      self._iprot.readMessageEnd()
3044
      raise x
3045
    result = getCampaigns_result()
3046
    result.read(self._iprot)
3047
    self._iprot.readMessageEnd()
3048
    if result.success is not None:
3049
      return result.success
3050
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
3051
 
3052
  def deleteCampaign(self, campaignId):
3053
    """
3054
    Parameters:
3055
     - campaignId
3056
    """
3057
    self.send_deleteCampaign(campaignId)
3058
    self.recv_deleteCampaign()
3059
 
3060
  def send_deleteCampaign(self, campaignId):
3061
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
3062
    args = deleteCampaign_args()
3063
    args.campaignId = campaignId
3064
    args.write(self._oprot)
3065
    self._oprot.writeMessageEnd()
3066
    self._oprot.trans.flush()
3067
 
3068
  def recv_deleteCampaign(self, ):
3069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3070
    if mtype == TMessageType.EXCEPTION:
3071
      x = TApplicationException()
3072
      x.read(self._iprot)
3073
      self._iprot.readMessageEnd()
3074
      raise x
3075
    result = deleteCampaign_result()
3076
    result.read(self._iprot)
3077
    self._iprot.readMessageEnd()
3078
    return
3079
 
3080
  def getAllCampaigns(self, ):
3081
    self.send_getAllCampaigns()
3082
    return self.recv_getAllCampaigns()
3083
 
3084
  def send_getAllCampaigns(self, ):
3085
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
3086
    args = getAllCampaigns_args()
3087
    args.write(self._oprot)
3088
    self._oprot.writeMessageEnd()
3089
    self._oprot.trans.flush()
3090
 
3091
  def recv_getAllCampaigns(self, ):
3092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3093
    if mtype == TMessageType.EXCEPTION:
3094
      x = TApplicationException()
3095
      x.read(self._iprot)
3096
      self._iprot.readMessageEnd()
3097
      raise x
3098
    result = getAllCampaigns_result()
3099
    result.read(self._iprot)
3100
    self._iprot.readMessageEnd()
3101
    if result.success is not None:
3102
      return result.success
3103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
3104
 
9155 kshitij.so 3105
  def getActiveBannersForMobileSite(self, ):
3106
    self.send_getActiveBannersForMobileSite()
3107
    return self.recv_getActiveBannersForMobileSite()
3108
 
3109
  def send_getActiveBannersForMobileSite(self, ):
3110
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
3111
    args = getActiveBannersForMobileSite_args()
3112
    args.write(self._oprot)
3113
    self._oprot.writeMessageEnd()
3114
    self._oprot.trans.flush()
3115
 
3116
  def recv_getActiveBannersForMobileSite(self, ):
3117
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3118
    if mtype == TMessageType.EXCEPTION:
3119
      x = TApplicationException()
3120
      x.read(self._iprot)
3121
      self._iprot.readMessageEnd()
3122
      raise x
3123
    result = getActiveBannersForMobileSite_result()
3124
    result.read(self._iprot)
3125
    self._iprot.readMessageEnd()
3126
    if result.success is not None:
3127
      return result.success
3128
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
3129
 
5944 mandeep.dh 3130
  def deleteSimilarItem(self, itemId, catalogItemId):
3131
    """
3132
    Delete similar item.
3133
 
3134
    Parameters:
3135
     - itemId
3136
     - catalogItemId
3137
    """
3138
    self.send_deleteSimilarItem(itemId, catalogItemId)
3139
    return self.recv_deleteSimilarItem()
3140
 
3141
  def send_deleteSimilarItem(self, itemId, catalogItemId):
3142
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
3143
    args = deleteSimilarItem_args()
3144
    args.itemId = itemId
3145
    args.catalogItemId = catalogItemId
3146
    args.write(self._oprot)
3147
    self._oprot.writeMessageEnd()
3148
    self._oprot.trans.flush()
3149
 
3150
  def recv_deleteSimilarItem(self, ):
3151
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3152
    if mtype == TMessageType.EXCEPTION:
3153
      x = TApplicationException()
3154
      x.read(self._iprot)
3155
      self._iprot.readMessageEnd()
3156
      raise x
3157
    result = deleteSimilarItem_result()
3158
    result.read(self._iprot)
3159
    self._iprot.readMessageEnd()
3160
    if result.success is not None:
3161
      return result.success
3162
    if result.cex is not None:
3163
      raise result.cex
3164
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
3165
 
3166
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
3167
    """
3168
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
3169
    If yes, returns the itemId else returns 0
3170
 
3171
    Parameters:
3172
     - brand
3173
     - modelNumber
3174
     - modelName
3175
     - color
3176
    """
3177
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
3178
    return self.recv_checkSimilarItem()
3179
 
3180
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
3181
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
3182
    args = checkSimilarItem_args()
3183
    args.brand = brand
3184
    args.modelNumber = modelNumber
3185
    args.modelName = modelName
3186
    args.color = color
3187
    args.write(self._oprot)
3188
    self._oprot.writeMessageEnd()
3189
    self._oprot.trans.flush()
3190
 
3191
  def recv_checkSimilarItem(self, ):
3192
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3193
    if mtype == TMessageType.EXCEPTION:
3194
      x = TApplicationException()
3195
      x.read(self._iprot)
3196
      self._iprot.readMessageEnd()
3197
      raise x
3198
    result = checkSimilarItem_result()
3199
    result.read(self._iprot)
3200
    self._iprot.readMessageEnd()
3201
    if result.success is not None:
3202
      return result.success
3203
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
3204
 
3205
  def validateRiskyStatus(self, itemId):
3206
    """
3207
    Check wether item is risky and change status if inventory is not available for risky items
3208
 
3209
    Parameters:
3210
     - itemId
3211
    """
3212
    self.send_validateRiskyStatus(itemId)
3213
    self.recv_validateRiskyStatus()
3214
 
3215
  def send_validateRiskyStatus(self, itemId):
3216
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3217
    args = validateRiskyStatus_args()
3218
    args.itemId = itemId
3219
    args.write(self._oprot)
3220
    self._oprot.writeMessageEnd()
3221
    self._oprot.trans.flush()
3222
 
3223
  def recv_validateRiskyStatus(self, ):
3224
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3225
    if mtype == TMessageType.EXCEPTION:
3226
      x = TApplicationException()
3227
      x.read(self._iprot)
3228
      self._iprot.readMessageEnd()
3229
      raise x
3230
    result = validateRiskyStatus_result()
3231
    result.read(self._iprot)
3232
    self._iprot.readMessageEnd()
3233
    return
3234
 
3235
  def changeItemRiskyFlag(self, itemId, risky):
3236
    """
3237
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3238
 
3239
    Parameters:
3240
     - itemId
3241
     - risky
3242
    """
3243
    self.send_changeItemRiskyFlag(itemId, risky)
3244
    self.recv_changeItemRiskyFlag()
3245
 
3246
  def send_changeItemRiskyFlag(self, itemId, risky):
3247
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3248
    args = changeItemRiskyFlag_args()
3249
    args.itemId = itemId
3250
    args.risky = risky
3251
    args.write(self._oprot)
3252
    self._oprot.writeMessageEnd()
3253
    self._oprot.trans.flush()
3254
 
3255
  def recv_changeItemRiskyFlag(self, ):
3256
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3257
    if mtype == TMessageType.EXCEPTION:
3258
      x = TApplicationException()
3259
      x.read(self._iprot)
3260
      self._iprot.readMessageEnd()
3261
      raise x
3262
    result = changeItemRiskyFlag_result()
3263
    result.read(self._iprot)
3264
    self._iprot.readMessageEnd()
3265
    return
3266
 
3267
  def getItemsByRiskyFlag(self, ):
3268
    """
3269
    Returns list of items marked as risky.
3270
    """
3271
    self.send_getItemsByRiskyFlag()
3272
    return self.recv_getItemsByRiskyFlag()
3273
 
3274
  def send_getItemsByRiskyFlag(self, ):
3275
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3276
    args = getItemsByRiskyFlag_args()
3277
    args.write(self._oprot)
3278
    self._oprot.writeMessageEnd()
3279
    self._oprot.trans.flush()
3280
 
3281
  def recv_getItemsByRiskyFlag(self, ):
3282
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3283
    if mtype == TMessageType.EXCEPTION:
3284
      x = TApplicationException()
3285
      x.read(self._iprot)
3286
      self._iprot.readMessageEnd()
3287
      raise x
3288
    result = getItemsByRiskyFlag_result()
3289
    result.read(self._iprot)
3290
    self._iprot.readMessageEnd()
3291
    if result.success is not None:
3292
      return result.success
3293
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3294
 
3295
  def getItemsForMasterSheet(self, category, brand):
3296
    """
3297
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3298
 
3299
    Parameters:
3300
     - category
3301
     - brand
3302
    """
3303
    self.send_getItemsForMasterSheet(category, brand)
3304
    return self.recv_getItemsForMasterSheet()
3305
 
3306
  def send_getItemsForMasterSheet(self, category, brand):
3307
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3308
    args = getItemsForMasterSheet_args()
3309
    args.category = category
3310
    args.brand = brand
3311
    args.write(self._oprot)
3312
    self._oprot.writeMessageEnd()
3313
    self._oprot.trans.flush()
3314
 
3315
  def recv_getItemsForMasterSheet(self, ):
3316
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3317
    if mtype == TMessageType.EXCEPTION:
3318
      x = TApplicationException()
3319
      x.read(self._iprot)
3320
      self._iprot.readMessageEnd()
3321
      raise x
3322
    result = getItemsForMasterSheet_result()
3323
    result.read(self._iprot)
3324
    self._iprot.readMessageEnd()
3325
    if result.success is not None:
3326
      return result.success
3327
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3328
 
3329
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3330
    """
3331
    Returns list of catalog ids of items with same similarity index as of the given itemId
3332
 
3333
    Parameters:
3334
     - beginIndex
3335
     - totalItems
3336
     - itemId
3337
    """
3338
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3339
    return self.recv_getSimilarItemsCatalogIds()
3340
 
3341
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3342
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3343
    args = getSimilarItemsCatalogIds_args()
3344
    args.beginIndex = beginIndex
3345
    args.totalItems = totalItems
3346
    args.itemId = itemId
3347
    args.write(self._oprot)
3348
    self._oprot.writeMessageEnd()
3349
    self._oprot.trans.flush()
3350
 
3351
  def recv_getSimilarItemsCatalogIds(self, ):
3352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3353
    if mtype == TMessageType.EXCEPTION:
3354
      x = TApplicationException()
3355
      x.read(self._iprot)
3356
      self._iprot.readMessageEnd()
3357
      raise x
3358
    result = getSimilarItemsCatalogIds_result()
3359
    result.read(self._iprot)
3360
    self._iprot.readMessageEnd()
3361
    if result.success is not None:
3362
      return result.success
3363
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3364
 
3365
  def addProductNotification(self, itemId, email):
3366
    """
3367
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3368
 
3369
    Parameters:
3370
     - itemId
3371
     - email
3372
    """
3373
    self.send_addProductNotification(itemId, email)
3374
    return self.recv_addProductNotification()
3375
 
3376
  def send_addProductNotification(self, itemId, email):
3377
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3378
    args = addProductNotification_args()
3379
    args.itemId = itemId
3380
    args.email = email
3381
    args.write(self._oprot)
3382
    self._oprot.writeMessageEnd()
3383
    self._oprot.trans.flush()
3384
 
3385
  def recv_addProductNotification(self, ):
3386
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3387
    if mtype == TMessageType.EXCEPTION:
3388
      x = TApplicationException()
3389
      x.read(self._iprot)
3390
      self._iprot.readMessageEnd()
3391
      raise x
3392
    result = addProductNotification_result()
3393
    result.read(self._iprot)
3394
    self._iprot.readMessageEnd()
3395
    if result.success is not None:
3396
      return result.success
3397
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3398
 
3399
  def sendProductNotifications(self, ):
3400
    """
3401
    Send the product notifications to the users for items which has stock.
3402
    """
3403
    self.send_sendProductNotifications()
3404
    return self.recv_sendProductNotifications()
3405
 
3406
  def send_sendProductNotifications(self, ):
3407
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3408
    args = sendProductNotifications_args()
3409
    args.write(self._oprot)
3410
    self._oprot.writeMessageEnd()
3411
    self._oprot.trans.flush()
3412
 
3413
  def recv_sendProductNotifications(self, ):
3414
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3415
    if mtype == TMessageType.EXCEPTION:
3416
      x = TApplicationException()
3417
      x.read(self._iprot)
3418
      self._iprot.readMessageEnd()
3419
      raise x
3420
    result = sendProductNotifications_result()
3421
    result.read(self._iprot)
3422
    self._iprot.readMessageEnd()
3423
    if result.success is not None:
3424
      return result.success
3425
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3426
 
3427
  def getAllBrandsByCategory(self, categoryId):
3428
    """
3429
    Returns list of brand names for a given category Id
3430
 
3431
    Parameters:
3432
     - categoryId
3433
    """
3434
    self.send_getAllBrandsByCategory(categoryId)
3435
    return self.recv_getAllBrandsByCategory()
3436
 
3437
  def send_getAllBrandsByCategory(self, categoryId):
3438
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3439
    args = getAllBrandsByCategory_args()
3440
    args.categoryId = categoryId
3441
    args.write(self._oprot)
3442
    self._oprot.writeMessageEnd()
3443
    self._oprot.trans.flush()
3444
 
3445
  def recv_getAllBrandsByCategory(self, ):
3446
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3447
    if mtype == TMessageType.EXCEPTION:
3448
      x = TApplicationException()
3449
      x.read(self._iprot)
3450
      self._iprot.readMessageEnd()
3451
      raise x
3452
    result = getAllBrandsByCategory_result()
3453
    result.read(self._iprot)
3454
    self._iprot.readMessageEnd()
3455
    if result.success is not None:
3456
      return result.success
3457
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3458
 
3459
  def getAllBrands(self, ):
3460
    """
3461
    Returns list of brand names
3462
    """
3463
    self.send_getAllBrands()
3464
    return self.recv_getAllBrands()
3465
 
3466
  def send_getAllBrands(self, ):
3467
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3468
    args = getAllBrands_args()
3469
    args.write(self._oprot)
3470
    self._oprot.writeMessageEnd()
3471
    self._oprot.trans.flush()
3472
 
3473
  def recv_getAllBrands(self, ):
3474
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3475
    if mtype == TMessageType.EXCEPTION:
3476
      x = TApplicationException()
3477
      x.read(self._iprot)
3478
      self._iprot.readMessageEnd()
3479
      raise x
3480
    result = getAllBrands_result()
3481
    result.read(self._iprot)
3482
    self._iprot.readMessageEnd()
3483
    if result.success is not None:
3484
      return result.success
3485
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3486
 
3487
  def getAllSources(self, ):
3488
    """
3489
    Return list of all sources
3490
    """
3491
    self.send_getAllSources()
3492
    return self.recv_getAllSources()
3493
 
3494
  def send_getAllSources(self, ):
3495
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3496
    args = getAllSources_args()
3497
    args.write(self._oprot)
3498
    self._oprot.writeMessageEnd()
3499
    self._oprot.trans.flush()
3500
 
3501
  def recv_getAllSources(self, ):
3502
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3503
    if mtype == TMessageType.EXCEPTION:
3504
      x = TApplicationException()
3505
      x.read(self._iprot)
3506
      self._iprot.readMessageEnd()
3507
      raise x
3508
    result = getAllSources_result()
3509
    result.read(self._iprot)
3510
    self._iprot.readMessageEnd()
3511
    if result.success is not None:
3512
      return result.success
3513
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3514
 
3515
  def getItemPricingBySource(self, itemId, sourceId):
3516
    """
3517
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3518
 
3519
    Parameters:
3520
     - itemId
3521
     - sourceId
3522
    """
3523
    self.send_getItemPricingBySource(itemId, sourceId)
3524
    return self.recv_getItemPricingBySource()
3525
 
3526
  def send_getItemPricingBySource(self, itemId, sourceId):
3527
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3528
    args = getItemPricingBySource_args()
3529
    args.itemId = itemId
3530
    args.sourceId = sourceId
3531
    args.write(self._oprot)
3532
    self._oprot.writeMessageEnd()
3533
    self._oprot.trans.flush()
3534
 
3535
  def recv_getItemPricingBySource(self, ):
3536
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3537
    if mtype == TMessageType.EXCEPTION:
3538
      x = TApplicationException()
3539
      x.read(self._iprot)
3540
      self._iprot.readMessageEnd()
3541
      raise x
3542
    result = getItemPricingBySource_result()
3543
    result.read(self._iprot)
3544
    self._iprot.readMessageEnd()
3545
    if result.success is not None:
3546
      return result.success
3547
    if result.cex is not None:
3548
      raise result.cex
3549
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3550
 
3551
  def addSourceItemPricing(self, sourceItemPricing):
3552
    """
3553
    Adds prices to be displayed corresponding to the item if user comes from a source.
3554
    If item is not found or source is not found, it will throw exception.
3555
 
3556
    Parameters:
3557
     - sourceItemPricing
3558
    """
3559
    self.send_addSourceItemPricing(sourceItemPricing)
3560
    self.recv_addSourceItemPricing()
3561
 
3562
  def send_addSourceItemPricing(self, sourceItemPricing):
3563
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3564
    args = addSourceItemPricing_args()
3565
    args.sourceItemPricing = sourceItemPricing
3566
    args.write(self._oprot)
3567
    self._oprot.writeMessageEnd()
3568
    self._oprot.trans.flush()
3569
 
3570
  def recv_addSourceItemPricing(self, ):
3571
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3572
    if mtype == TMessageType.EXCEPTION:
3573
      x = TApplicationException()
3574
      x.read(self._iprot)
3575
      self._iprot.readMessageEnd()
3576
      raise x
3577
    result = addSourceItemPricing_result()
3578
    result.read(self._iprot)
3579
    self._iprot.readMessageEnd()
3580
    if result.cex is not None:
3581
      raise result.cex
3582
    return
3583
 
3584
  def getAllSourcePricing(self, itemId):
3585
    """
3586
    Returns the list of source pricing information of an item.
3587
    Raises an exception if item not found corresponding to itemId
3588
 
3589
    Parameters:
3590
     - itemId
3591
    """
3592
    self.send_getAllSourcePricing(itemId)
3593
    return self.recv_getAllSourcePricing()
3594
 
3595
  def send_getAllSourcePricing(self, itemId):
3596
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3597
    args = getAllSourcePricing_args()
3598
    args.itemId = itemId
3599
    args.write(self._oprot)
3600
    self._oprot.writeMessageEnd()
3601
    self._oprot.trans.flush()
3602
 
3603
  def recv_getAllSourcePricing(self, ):
3604
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3605
    if mtype == TMessageType.EXCEPTION:
3606
      x = TApplicationException()
3607
      x.read(self._iprot)
3608
      self._iprot.readMessageEnd()
3609
      raise x
3610
    result = getAllSourcePricing_result()
3611
    result.read(self._iprot)
3612
    self._iprot.readMessageEnd()
3613
    if result.success is not None:
3614
      return result.success
3615
    if result.cex is not None:
3616
      raise result.cex
3617
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3618
 
3619
  def getItemForSource(self, item_id, sourceId):
3620
    """
3621
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3622
 
3623
    Parameters:
3624
     - item_id
3625
     - sourceId
3626
    """
3627
    self.send_getItemForSource(item_id, sourceId)
3628
    return self.recv_getItemForSource()
3629
 
3630
  def send_getItemForSource(self, item_id, sourceId):
3631
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3632
    args = getItemForSource_args()
3633
    args.item_id = item_id
3634
    args.sourceId = sourceId
3635
    args.write(self._oprot)
3636
    self._oprot.writeMessageEnd()
3637
    self._oprot.trans.flush()
3638
 
3639
  def recv_getItemForSource(self, ):
3640
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3641
    if mtype == TMessageType.EXCEPTION:
3642
      x = TApplicationException()
3643
      x.read(self._iprot)
3644
      self._iprot.readMessageEnd()
3645
      raise x
3646
    result = getItemForSource_result()
3647
    result.read(self._iprot)
3648
    self._iprot.readMessageEnd()
3649
    if result.success is not None:
3650
      return result.success
3651
    if result.cex is not None:
3652
      raise result.cex
3653
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3654
 
3655
  def searchItemsInRange(self, searchTerms, offset, limit):
3656
    """
3657
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3658
 
3659
    Parameters:
3660
     - searchTerms
3661
     - offset
3662
     - limit
3663
    """
3664
    self.send_searchItemsInRange(searchTerms, offset, limit)
3665
    return self.recv_searchItemsInRange()
3666
 
3667
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3668
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3669
    args = searchItemsInRange_args()
3670
    args.searchTerms = searchTerms
3671
    args.offset = offset
3672
    args.limit = limit
3673
    args.write(self._oprot)
3674
    self._oprot.writeMessageEnd()
3675
    self._oprot.trans.flush()
3676
 
3677
  def recv_searchItemsInRange(self, ):
3678
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3679
    if mtype == TMessageType.EXCEPTION:
3680
      x = TApplicationException()
3681
      x.read(self._iprot)
3682
      self._iprot.readMessageEnd()
3683
      raise x
3684
    result = searchItemsInRange_result()
3685
    result.read(self._iprot)
3686
    self._iprot.readMessageEnd()
3687
    if result.success is not None:
3688
      return result.success
3689
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3690
 
3691
  def getSearchResultCount(self, searchTerms):
3692
    """
3693
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3694
 
3695
    Parameters:
3696
     - searchTerms
3697
    """
3698
    self.send_getSearchResultCount(searchTerms)
3699
    return self.recv_getSearchResultCount()
3700
 
3701
  def send_getSearchResultCount(self, searchTerms):
3702
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3703
    args = getSearchResultCount_args()
3704
    args.searchTerms = searchTerms
3705
    args.write(self._oprot)
3706
    self._oprot.writeMessageEnd()
3707
    self._oprot.trans.flush()
3708
 
3709
  def recv_getSearchResultCount(self, ):
3710
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3711
    if mtype == TMessageType.EXCEPTION:
3712
      x = TApplicationException()
3713
      x.read(self._iprot)
3714
      self._iprot.readMessageEnd()
3715
      raise x
3716
    result = getSearchResultCount_result()
3717
    result.read(self._iprot)
3718
    self._iprot.readMessageEnd()
3719
    if result.success is not None:
3720
      return result.success
3721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3722
 
3723
  def getProductNotifications(self, startDateTime):
3724
    """
3725
    Returns a list of product notifications added after a supplied datetime
3726
 
3727
    Parameters:
3728
     - startDateTime
3729
    """
3730
    self.send_getProductNotifications(startDateTime)
3731
    return self.recv_getProductNotifications()
3732
 
3733
  def send_getProductNotifications(self, startDateTime):
3734
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3735
    args = getProductNotifications_args()
3736
    args.startDateTime = startDateTime
3737
    args.write(self._oprot)
3738
    self._oprot.writeMessageEnd()
3739
    self._oprot.trans.flush()
3740
 
3741
  def recv_getProductNotifications(self, ):
3742
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3743
    if mtype == TMessageType.EXCEPTION:
3744
      x = TApplicationException()
3745
      x.read(self._iprot)
3746
      self._iprot.readMessageEnd()
3747
      raise x
3748
    result = getProductNotifications_result()
3749
    result.read(self._iprot)
3750
    self._iprot.readMessageEnd()
3751
    if result.success is not None:
3752
      return result.success
3753
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3754
 
7897 amar.kumar 3755
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3756
    """
3757
    Returns a list of count of requests for product notification against each item
3758
 
3759
    Parameters:
3760
     - startDateTime
7897 amar.kumar 3761
     - categoryId
5944 mandeep.dh 3762
    """
7897 amar.kumar 3763
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3764
    return self.recv_getProductNotificationRequestCount()
3765
 
7897 amar.kumar 3766
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3767
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3768
    args = getProductNotificationRequestCount_args()
3769
    args.startDateTime = startDateTime
7897 amar.kumar 3770
    args.categoryId = categoryId
5944 mandeep.dh 3771
    args.write(self._oprot)
3772
    self._oprot.writeMessageEnd()
3773
    self._oprot.trans.flush()
3774
 
3775
  def recv_getProductNotificationRequestCount(self, ):
3776
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3777
    if mtype == TMessageType.EXCEPTION:
3778
      x = TApplicationException()
3779
      x.read(self._iprot)
3780
      self._iprot.readMessageEnd()
3781
      raise x
3782
    result = getProductNotificationRequestCount_result()
3783
    result.read(self._iprot)
3784
    self._iprot.readMessageEnd()
3785
    if result.success is not None:
3786
      return result.success
3787
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3788
 
3789
  def addAuthorizationLog(self, itemId, username, reason):
3790
    """
3791
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3792
 
3793
    Parameters:
3794
     - itemId
3795
     - username
3796
     - reason
3797
    """
3798
    self.send_addAuthorizationLog(itemId, username, reason)
3799
    return self.recv_addAuthorizationLog()
3800
 
3801
  def send_addAuthorizationLog(self, itemId, username, reason):
3802
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3803
    args = addAuthorizationLog_args()
3804
    args.itemId = itemId
3805
    args.username = username
3806
    args.reason = reason
3807
    args.write(self._oprot)
3808
    self._oprot.writeMessageEnd()
3809
    self._oprot.trans.flush()
3810
 
3811
  def recv_addAuthorizationLog(self, ):
3812
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3813
    if mtype == TMessageType.EXCEPTION:
3814
      x = TApplicationException()
3815
      x.read(self._iprot)
3816
      self._iprot.readMessageEnd()
3817
      raise x
3818
    result = addAuthorizationLog_result()
3819
    result.read(self._iprot)
3820
    self._iprot.readMessageEnd()
3821
    if result.success is not None:
3822
      return result.success
3823
    if result.cex is not None:
3824
      raise result.cex
3825
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3826
 
3827
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3828
    """
3829
    Parameters:
3830
     - catalog_item_id
3831
     - voucherType
3832
     - voucherAmount
3833
    """
3834
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3835
    return self.recv_addupdateVoucherForItem()
3836
 
3837
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3838
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3839
    args = addupdateVoucherForItem_args()
3840
    args.catalog_item_id = catalog_item_id
3841
    args.voucherType = voucherType
3842
    args.voucherAmount = voucherAmount
3843
    args.write(self._oprot)
3844
    self._oprot.writeMessageEnd()
3845
    self._oprot.trans.flush()
3846
 
3847
  def recv_addupdateVoucherForItem(self, ):
3848
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3849
    if mtype == TMessageType.EXCEPTION:
3850
      x = TApplicationException()
3851
      x.read(self._iprot)
3852
      self._iprot.readMessageEnd()
3853
      raise x
3854
    result = addupdateVoucherForItem_result()
3855
    result.read(self._iprot)
3856
    self._iprot.readMessageEnd()
3857
    if result.success is not None:
3858
      return result.success
3859
    if result.cex is not None:
3860
      raise result.cex
3861
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3862
 
3863
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3864
    """
3865
    Parameters:
3866
     - catalog_item_id
3867
     - voucherType
3868
    """
3869
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3870
    return self.recv_deleteVoucherForItem()
3871
 
3872
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3873
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3874
    args = deleteVoucherForItem_args()
3875
    args.catalog_item_id = catalog_item_id
3876
    args.voucherType = voucherType
3877
    args.write(self._oprot)
3878
    self._oprot.writeMessageEnd()
3879
    self._oprot.trans.flush()
3880
 
3881
  def recv_deleteVoucherForItem(self, ):
3882
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3883
    if mtype == TMessageType.EXCEPTION:
3884
      x = TApplicationException()
3885
      x.read(self._iprot)
3886
      self._iprot.readMessageEnd()
3887
      raise x
3888
    result = deleteVoucherForItem_result()
3889
    result.read(self._iprot)
3890
    self._iprot.readMessageEnd()
3891
    if result.success is not None:
3892
      return result.success
3893
    if result.cex is not None:
3894
      raise result.cex
3895
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3896
 
3897
  def getVoucherAmount(self, itemId, voucherType):
3898
    """
3899
    Parameters:
3900
     - itemId
3901
     - voucherType
3902
    """
3903
    self.send_getVoucherAmount(itemId, voucherType)
3904
    return self.recv_getVoucherAmount()
3905
 
3906
  def send_getVoucherAmount(self, itemId, voucherType):
3907
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3908
    args = getVoucherAmount_args()
3909
    args.itemId = itemId
3910
    args.voucherType = voucherType
3911
    args.write(self._oprot)
3912
    self._oprot.writeMessageEnd()
3913
    self._oprot.trans.flush()
3914
 
3915
  def recv_getVoucherAmount(self, ):
3916
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3917
    if mtype == TMessageType.EXCEPTION:
3918
      x = TApplicationException()
3919
      x.read(self._iprot)
3920
      self._iprot.readMessageEnd()
3921
      raise x
3922
    result = getVoucherAmount_result()
3923
    result.read(self._iprot)
3924
    self._iprot.readMessageEnd()
3925
    if result.success is not None:
3926
      return result.success
3927
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3928
 
3929
  def getAllItemVouchers(self, itemId):
3930
    """
3931
    Parameters:
3932
     - itemId
3933
    """
3934
    self.send_getAllItemVouchers(itemId)
3935
    return self.recv_getAllItemVouchers()
3936
 
3937
  def send_getAllItemVouchers(self, itemId):
3938
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3939
    args = getAllItemVouchers_args()
3940
    args.itemId = itemId
3941
    args.write(self._oprot)
3942
    self._oprot.writeMessageEnd()
3943
    self._oprot.trans.flush()
3944
 
3945
  def recv_getAllItemVouchers(self, ):
3946
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3947
    if mtype == TMessageType.EXCEPTION:
3948
      x = TApplicationException()
3949
      x.read(self._iprot)
3950
      self._iprot.readMessageEnd()
3951
      raise x
3952
    result = getAllItemVouchers_result()
3953
    result.read(self._iprot)
3954
    self._iprot.readMessageEnd()
3955
    if result.success is not None:
3956
      return result.success
3957
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3958
 
3959
  def isValidCatalogItemId(self, catalog_item_id):
3960
    """
3961
    Parameters:
3962
     - catalog_item_id
3963
    """
3964
    self.send_isValidCatalogItemId(catalog_item_id)
3965
    return self.recv_isValidCatalogItemId()
3966
 
3967
  def send_isValidCatalogItemId(self, catalog_item_id):
3968
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3969
    args = isValidCatalogItemId_args()
3970
    args.catalog_item_id = catalog_item_id
3971
    args.write(self._oprot)
3972
    self._oprot.writeMessageEnd()
3973
    self._oprot.trans.flush()
3974
 
3975
  def recv_isValidCatalogItemId(self, ):
3976
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3977
    if mtype == TMessageType.EXCEPTION:
3978
      x = TApplicationException()
3979
      x.read(self._iprot)
3980
      self._iprot.readMessageEnd()
3981
      raise x
3982
    result = isValidCatalogItemId_result()
3983
    result.read(self._iprot)
3984
    self._iprot.readMessageEnd()
3985
    if result.success is not None:
3986
      return result.success
3987
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3988
 
7330 amit.gupta 3989
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3990
    """
3991
    Parameters:
3992
     - itemId
7330 amit.gupta 3993
     - stateId
6039 amit.gupta 3994
     - price
3995
    """
7330 amit.gupta 3996
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3997
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3998
 
7330 amit.gupta 3999
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 4000
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
4001
    args = getVatPercentageForItem_args()
4002
    args.itemId = itemId
7330 amit.gupta 4003
    args.stateId = stateId
6039 amit.gupta 4004
    args.price = price
4005
    args.write(self._oprot)
4006
    self._oprot.writeMessageEnd()
4007
    self._oprot.trans.flush()
4008
 
4009
  def recv_getVatPercentageForItem(self, ):
4010
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4011
    if mtype == TMessageType.EXCEPTION:
4012
      x = TApplicationException()
4013
      x.read(self._iprot)
4014
      self._iprot.readMessageEnd()
4015
      raise x
4016
    result = getVatPercentageForItem_result()
4017
    result.read(self._iprot)
4018
    self._iprot.readMessageEnd()
4019
    if result.success is not None:
4020
      return result.success
7340 amit.gupta 4021
    if result.cex is not None:
4022
      raise result.cex
6039 amit.gupta 4023
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
4024
 
4025
  def getVatAmountForItem(self, itemId, price):
4026
    """
4027
    Parameters:
4028
     - itemId
4029
     - price
4030
    """
4031
    self.send_getVatAmountForItem(itemId, price)
4032
    return self.recv_getVatAmountForItem()
4033
 
4034
  def send_getVatAmountForItem(self, itemId, price):
4035
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
4036
    args = getVatAmountForItem_args()
4037
    args.itemId = itemId
4038
    args.price = price
4039
    args.write(self._oprot)
4040
    self._oprot.writeMessageEnd()
4041
    self._oprot.trans.flush()
4042
 
4043
  def recv_getVatAmountForItem(self, ):
4044
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4045
    if mtype == TMessageType.EXCEPTION:
4046
      x = TApplicationException()
4047
      x.read(self._iprot)
4048
      self._iprot.readMessageEnd()
4049
      raise x
4050
    result = getVatAmountForItem_result()
4051
    result.read(self._iprot)
4052
    self._iprot.readMessageEnd()
4053
    if result.success is not None:
4054
      return result.success
4055
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
4056
 
6531 vikram.rag 4057
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4058
    """
4059
    Parameters:
4060
     - offset
4061
     - limit
4062
    """
4063
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
4064
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 4065
 
6531 vikram.rag 4066
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4067
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
4068
    args = getAllIgnoredInventoryUpdateItemsList_args()
4069
    args.offset = offset
4070
    args.limit = limit
4071
    args.write(self._oprot)
4072
    self._oprot.writeMessageEnd()
4073
    self._oprot.trans.flush()
4074
 
4075
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
4076
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4077
    if mtype == TMessageType.EXCEPTION:
4078
      x = TApplicationException()
4079
      x.read(self._iprot)
4080
      self._iprot.readMessageEnd()
4081
      raise x
4082
    result = getAllIgnoredInventoryUpdateItemsList_result()
4083
    result.read(self._iprot)
4084
    self._iprot.readMessageEnd()
4085
    if result.success is not None:
4086
      return result.success
4087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
4088
 
6821 amar.kumar 4089
  def getAllAliveItems(self, ):
4090
    self.send_getAllAliveItems()
4091
    return self.recv_getAllAliveItems()
4092
 
4093
  def send_getAllAliveItems(self, ):
4094
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
4095
    args = getAllAliveItems_args()
4096
    args.write(self._oprot)
4097
    self._oprot.writeMessageEnd()
4098
    self._oprot.trans.flush()
4099
 
4100
  def recv_getAllAliveItems(self, ):
4101
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4102
    if mtype == TMessageType.EXCEPTION:
4103
      x = TApplicationException()
4104
      x.read(self._iprot)
4105
      self._iprot.readMessageEnd()
4106
      raise x
4107
    result = getAllAliveItems_result()
4108
    result.read(self._iprot)
4109
    self._iprot.readMessageEnd()
4110
    if result.success is not None:
4111
      return result.success
4112
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
4113
 
6921 anupam.sin 4114
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4115
    """
4116
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 4117
 
6805 anupam.sin 4118
    Parameters:
4119
     - itemId
6921 anupam.sin 4120
     - price
6805 anupam.sin 4121
     - insurerId
4122
     - quantity
4123
    """
6921 anupam.sin 4124
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 4125
    return self.recv_getInsuranceAmount()
4126
 
6921 anupam.sin 4127
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4128
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
4129
    args = getInsuranceAmount_args()
4130
    args.itemId = itemId
6921 anupam.sin 4131
    args.price = price
6805 anupam.sin 4132
    args.insurerId = insurerId
4133
    args.quantity = quantity
4134
    args.write(self._oprot)
4135
    self._oprot.writeMessageEnd()
4136
    self._oprot.trans.flush()
4137
 
4138
  def recv_getInsuranceAmount(self, ):
4139
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4140
    if mtype == TMessageType.EXCEPTION:
4141
      x = TApplicationException()
4142
      x.read(self._iprot)
4143
      self._iprot.readMessageEnd()
4144
      raise x
4145
    result = getInsuranceAmount_result()
4146
    result.read(self._iprot)
4147
    self._iprot.readMessageEnd()
4148
    if result.success is not None:
4149
      return result.success
4150
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
4151
 
4152
  def getInsurer(self, insurerId):
4153
    """
4154
    Parameters:
4155
     - insurerId
4156
    """
4157
    self.send_getInsurer(insurerId)
4158
    return self.recv_getInsurer()
4159
 
4160
  def send_getInsurer(self, insurerId):
4161
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
4162
    args = getInsurer_args()
4163
    args.insurerId = insurerId
4164
    args.write(self._oprot)
4165
    self._oprot.writeMessageEnd()
4166
    self._oprot.trans.flush()
4167
 
4168
  def recv_getInsurer(self, ):
4169
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4170
    if mtype == TMessageType.EXCEPTION:
4171
      x = TApplicationException()
4172
      x.read(self._iprot)
4173
      self._iprot.readMessageEnd()
4174
      raise x
4175
    result = getInsurer_result()
4176
    result.read(self._iprot)
4177
    self._iprot.readMessageEnd()
4178
    if result.success is not None:
4179
      return result.success
4180
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
4181
 
6838 vikram.rag 4182
  def getAllInsurers(self, ):
4183
    self.send_getAllInsurers()
4184
    return self.recv_getAllInsurers()
6805 anupam.sin 4185
 
6838 vikram.rag 4186
  def send_getAllInsurers(self, ):
4187
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
4188
    args = getAllInsurers_args()
4189
    args.write(self._oprot)
4190
    self._oprot.writeMessageEnd()
4191
    self._oprot.trans.flush()
4192
 
4193
  def recv_getAllInsurers(self, ):
4194
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4195
    if mtype == TMessageType.EXCEPTION:
4196
      x = TApplicationException()
4197
      x.read(self._iprot)
4198
      self._iprot.readMessageEnd()
4199
      raise x
4200
    result = getAllInsurers_result()
4201
    result.read(self._iprot)
4202
    self._iprot.readMessageEnd()
4203
    if result.success is not None:
4204
      return result.success
4205
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4206
 
6962 rajveer 4207
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4208
    """
4209
    Parameters:
4210
     - insurerId
4211
     - amount
4212
    """
4213
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4214
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4215
 
6962 rajveer 4216
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4217
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4218
    args = updateInsuranceDeclaredAmount_args()
4219
    args.insurerId = insurerId
4220
    args.amount = amount
4221
    args.write(self._oprot)
4222
    self._oprot.writeMessageEnd()
4223
    self._oprot.trans.flush()
4224
 
4225
  def recv_updateInsuranceDeclaredAmount(self, ):
4226
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4227
    if mtype == TMessageType.EXCEPTION:
4228
      x = TApplicationException()
4229
      x.read(self._iprot)
4230
      self._iprot.readMessageEnd()
4231
      raise x
4232
    result = updateInsuranceDeclaredAmount_result()
4233
    result.read(self._iprot)
4234
    self._iprot.readMessageEnd()
4235
    return
4236
 
7190 amar.kumar 4237
  def getFreebieForItem(self, itemId):
4238
    """
4239
    Parameters:
4240
     - itemId
4241
    """
4242
    self.send_getFreebieForItem(itemId)
4243
    return self.recv_getFreebieForItem()
6962 rajveer 4244
 
7190 amar.kumar 4245
  def send_getFreebieForItem(self, itemId):
4246
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4247
    args = getFreebieForItem_args()
4248
    args.itemId = itemId
4249
    args.write(self._oprot)
4250
    self._oprot.writeMessageEnd()
4251
    self._oprot.trans.flush()
4252
 
4253
  def recv_getFreebieForItem(self, ):
4254
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4255
    if mtype == TMessageType.EXCEPTION:
4256
      x = TApplicationException()
4257
      x.read(self._iprot)
4258
      self._iprot.readMessageEnd()
4259
      raise x
4260
    result = getFreebieForItem_result()
4261
    result.read(self._iprot)
4262
    self._iprot.readMessageEnd()
4263
    if result.success is not None:
4264
      return result.success
4265
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4266
 
4267
  def addOrUpdateFreebieForItem(self, freebieItem):
4268
    """
4269
    Parameters:
4270
     - freebieItem
4271
    """
4272
    self.send_addOrUpdateFreebieForItem(freebieItem)
4273
    self.recv_addOrUpdateFreebieForItem()
4274
 
4275
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4276
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4277
    args = addOrUpdateFreebieForItem_args()
4278
    args.freebieItem = freebieItem
4279
    args.write(self._oprot)
4280
    self._oprot.writeMessageEnd()
4281
    self._oprot.trans.flush()
4282
 
4283
  def recv_addOrUpdateFreebieForItem(self, ):
4284
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4285
    if mtype == TMessageType.EXCEPTION:
4286
      x = TApplicationException()
4287
      x.read(self._iprot)
4288
      self._iprot.readMessageEnd()
4289
      raise x
4290
    result = addOrUpdateFreebieForItem_result()
4291
    result.read(self._iprot)
4292
    self._iprot.readMessageEnd()
4293
    return
4294
 
7272 amit.gupta 4295
  def addOrUpdateBrandInfo(self, brandInfo):
4296
    """
4297
    Parameters:
4298
     - brandInfo
4299
    """
4300
    self.send_addOrUpdateBrandInfo(brandInfo)
4301
    self.recv_addOrUpdateBrandInfo()
4302
 
4303
  def send_addOrUpdateBrandInfo(self, brandInfo):
4304
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4305
    args = addOrUpdateBrandInfo_args()
4306
    args.brandInfo = brandInfo
4307
    args.write(self._oprot)
4308
    self._oprot.writeMessageEnd()
4309
    self._oprot.trans.flush()
4310
 
4311
  def recv_addOrUpdateBrandInfo(self, ):
4312
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4313
    if mtype == TMessageType.EXCEPTION:
4314
      x = TApplicationException()
4315
      x.read(self._iprot)
4316
      self._iprot.readMessageEnd()
4317
      raise x
4318
    result = addOrUpdateBrandInfo_result()
4319
    result.read(self._iprot)
4320
    self._iprot.readMessageEnd()
4321
    return
4322
 
4323
  def getBrandInfo(self, ):
4324
    self.send_getBrandInfo()
4325
    return self.recv_getBrandInfo()
4326
 
4327
  def send_getBrandInfo(self, ):
4328
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4329
    args = getBrandInfo_args()
4330
    args.write(self._oprot)
4331
    self._oprot.writeMessageEnd()
4332
    self._oprot.trans.flush()
4333
 
4334
  def recv_getBrandInfo(self, ):
4335
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4336
    if mtype == TMessageType.EXCEPTION:
4337
      x = TApplicationException()
4338
      x.read(self._iprot)
4339
      self._iprot.readMessageEnd()
4340
      raise x
4341
    result = getBrandInfo_result()
4342
    result.read(self._iprot)
4343
    self._iprot.readMessageEnd()
4344
    if result.success is not None:
4345
      return result.success
4346
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4347
 
7256 rajveer 4348
  def getStorePricing(self, itemId):
4349
    """
4350
    Parameters:
4351
     - itemId
4352
    """
4353
    self.send_getStorePricing(itemId)
4354
    return self.recv_getStorePricing()
7190 amar.kumar 4355
 
7256 rajveer 4356
  def send_getStorePricing(self, itemId):
4357
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4358
    args = getStorePricing_args()
4359
    args.itemId = itemId
4360
    args.write(self._oprot)
4361
    self._oprot.writeMessageEnd()
4362
    self._oprot.trans.flush()
4363
 
4364
  def recv_getStorePricing(self, ):
4365
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4366
    if mtype == TMessageType.EXCEPTION:
4367
      x = TApplicationException()
4368
      x.read(self._iprot)
4369
      self._iprot.readMessageEnd()
4370
      raise x
4371
    result = getStorePricing_result()
4372
    result.read(self._iprot)
4373
    self._iprot.readMessageEnd()
4374
    if result.success is not None:
4375
      return result.success
4376
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4377
 
7306 rajveer 4378
  def getStorePricings(self, itemIds):
4379
    """
4380
    Parameters:
4381
     - itemIds
4382
    """
4383
    self.send_getStorePricings(itemIds)
4384
    return self.recv_getStorePricings()
4385
 
4386
  def send_getStorePricings(self, itemIds):
4387
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4388
    args = getStorePricings_args()
4389
    args.itemIds = itemIds
4390
    args.write(self._oprot)
4391
    self._oprot.writeMessageEnd()
4392
    self._oprot.trans.flush()
4393
 
4394
  def recv_getStorePricings(self, ):
4395
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4396
    if mtype == TMessageType.EXCEPTION:
4397
      x = TApplicationException()
4398
      x.read(self._iprot)
4399
      self._iprot.readMessageEnd()
4400
      raise x
4401
    result = getStorePricings_result()
4402
    result.read(self._iprot)
4403
    self._iprot.readMessageEnd()
4404
    if result.success is not None:
4405
      return result.success
4406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4407
 
7382 rajveer 4408
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4409
    """
4410
    Parameters:
4411
     - sp
7382 rajveer 4412
     - allColors
7265 rajveer 4413
    """
7382 rajveer 4414
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4415
    self.recv_updateStorePricing()
7256 rajveer 4416
 
7382 rajveer 4417
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4418
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4419
    args = updateStorePricing_args()
4420
    args.sp = sp
7382 rajveer 4421
    args.allColors = allColors
7265 rajveer 4422
    args.write(self._oprot)
4423
    self._oprot.writeMessageEnd()
4424
    self._oprot.trans.flush()
4425
 
4426
  def recv_updateStorePricing(self, ):
4427
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4428
    if mtype == TMessageType.EXCEPTION:
4429
      x = TApplicationException()
4430
      x.read(self._iprot)
4431
      self._iprot.readMessageEnd()
4432
      raise x
4433
    result = updateStorePricing_result()
4434
    result.read(self._iprot)
4435
    self._iprot.readMessageEnd()
4436
    return
4437
 
7281 kshitij.so 4438
  def getAllAmazonListedItems(self, ):
4439
    self.send_getAllAmazonListedItems()
4440
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4441
 
7281 kshitij.so 4442
  def send_getAllAmazonListedItems(self, ):
4443
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4444
    args = getAllAmazonListedItems_args()
4445
    args.write(self._oprot)
4446
    self._oprot.writeMessageEnd()
4447
    self._oprot.trans.flush()
4448
 
4449
  def recv_getAllAmazonListedItems(self, ):
4450
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4451
    if mtype == TMessageType.EXCEPTION:
4452
      x = TApplicationException()
4453
      x.read(self._iprot)
4454
      self._iprot.readMessageEnd()
4455
      raise x
4456
    result = getAllAmazonListedItems_result()
4457
    result.read(self._iprot)
4458
    self._iprot.readMessageEnd()
4459
    if result.success is not None:
4460
      return result.success
4461
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4462
 
8619 kshitij.so 4463
  def searchAmazonItems(self, searchTerm, offset, limit):
4464
    """
4465
    Parameters:
4466
     - searchTerm
4467
     - offset
4468
     - limit
4469
    """
4470
    self.send_searchAmazonItems(searchTerm, offset, limit)
4471
    return self.recv_searchAmazonItems()
4472
 
4473
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4474
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4475
    args = searchAmazonItems_args()
4476
    args.searchTerm = searchTerm
4477
    args.offset = offset
4478
    args.limit = limit
4479
    args.write(self._oprot)
4480
    self._oprot.writeMessageEnd()
4481
    self._oprot.trans.flush()
4482
 
4483
  def recv_searchAmazonItems(self, ):
4484
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4485
    if mtype == TMessageType.EXCEPTION:
4486
      x = TApplicationException()
4487
      x.read(self._iprot)
4488
      self._iprot.readMessageEnd()
4489
      raise x
4490
    result = searchAmazonItems_result()
4491
    result.read(self._iprot)
4492
    self._iprot.readMessageEnd()
4493
    if result.success is not None:
4494
      return result.success
4495
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4496
 
4497
  def getAmazonSearchResultCount(self, searchTerm):
4498
    """
4499
    Parameters:
4500
     - searchTerm
4501
    """
4502
    self.send_getAmazonSearchResultCount(searchTerm)
4503
    return self.recv_getAmazonSearchResultCount()
4504
 
4505
  def send_getAmazonSearchResultCount(self, searchTerm):
4506
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4507
    args = getAmazonSearchResultCount_args()
4508
    args.searchTerm = searchTerm
4509
    args.write(self._oprot)
4510
    self._oprot.writeMessageEnd()
4511
    self._oprot.trans.flush()
4512
 
4513
  def recv_getAmazonSearchResultCount(self, ):
4514
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4515
    if mtype == TMessageType.EXCEPTION:
4516
      x = TApplicationException()
4517
      x.read(self._iprot)
4518
      self._iprot.readMessageEnd()
4519
      raise x
4520
    result = getAmazonSearchResultCount_result()
4521
    result.read(self._iprot)
4522
    self._iprot.readMessageEnd()
4523
    if result.success is not None:
4524
      return result.success
4525
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4526
 
4527
  def getCountForAmazonlistedItems(self, ):
4528
    self.send_getCountForAmazonlistedItems()
4529
    return self.recv_getCountForAmazonlistedItems()
4530
 
4531
  def send_getCountForAmazonlistedItems(self, ):
4532
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4533
    args = getCountForAmazonlistedItems_args()
4534
    args.write(self._oprot)
4535
    self._oprot.writeMessageEnd()
4536
    self._oprot.trans.flush()
4537
 
4538
  def recv_getCountForAmazonlistedItems(self, ):
4539
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4540
    if mtype == TMessageType.EXCEPTION:
4541
      x = TApplicationException()
4542
      x.read(self._iprot)
4543
      self._iprot.readMessageEnd()
4544
      raise x
4545
    result = getCountForAmazonlistedItems_result()
4546
    result.read(self._iprot)
4547
    self._iprot.readMessageEnd()
4548
    if result.success is not None:
4549
      return result.success
4550
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4551
 
7281 kshitij.so 4552
  def getAmazonItemDetails(self, itemId):
4553
    """
4554
    Parameters:
4555
     - itemId
4556
    """
4557
    self.send_getAmazonItemDetails(itemId)
4558
    return self.recv_getAmazonItemDetails()
4559
 
4560
  def send_getAmazonItemDetails(self, itemId):
4561
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4562
    args = getAmazonItemDetails_args()
4563
    args.itemId = itemId
4564
    args.write(self._oprot)
4565
    self._oprot.writeMessageEnd()
4566
    self._oprot.trans.flush()
4567
 
4568
  def recv_getAmazonItemDetails(self, ):
4569
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4570
    if mtype == TMessageType.EXCEPTION:
4571
      x = TApplicationException()
4572
      x.read(self._iprot)
4573
      self._iprot.readMessageEnd()
4574
      raise x
4575
    result = getAmazonItemDetails_result()
4576
    result.read(self._iprot)
4577
    self._iprot.readMessageEnd()
4578
    if result.success is not None:
4579
      return result.success
4580
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4581
 
8168 kshitij.so 4582
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4583
    """
4584
    Parameters:
8168 kshitij.so 4585
     - amazonlisted
7281 kshitij.so 4586
    """
8168 kshitij.so 4587
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4588
    self.recv_updateAmazonItemDetails()
4589
 
8168 kshitij.so 4590
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4591
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4592
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4593
    args.amazonlisted = amazonlisted
7281 kshitij.so 4594
    args.write(self._oprot)
4595
    self._oprot.writeMessageEnd()
4596
    self._oprot.trans.flush()
4597
 
4598
  def recv_updateAmazonItemDetails(self, ):
4599
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4600
    if mtype == TMessageType.EXCEPTION:
4601
      x = TApplicationException()
4602
      x.read(self._iprot)
4603
      self._iprot.readMessageEnd()
4604
      raise x
4605
    result = updateAmazonItemDetails_result()
4606
    result.read(self._iprot)
4607
    self._iprot.readMessageEnd()
4608
    return
4609
 
4610
  def addAmazonItem(self, amazonlisted):
4611
    """
4612
    Parameters:
4613
     - amazonlisted
4614
    """
4615
    self.send_addAmazonItem(amazonlisted)
4616
    self.recv_addAmazonItem()
4617
 
4618
  def send_addAmazonItem(self, amazonlisted):
4619
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4620
    args = addAmazonItem_args()
4621
    args.amazonlisted = amazonlisted
4622
    args.write(self._oprot)
4623
    self._oprot.writeMessageEnd()
4624
    self._oprot.trans.flush()
4625
 
4626
  def recv_addAmazonItem(self, ):
4627
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4628
    if mtype == TMessageType.EXCEPTION:
4629
      x = TApplicationException()
4630
      x.read(self._iprot)
4631
      self._iprot.readMessageEnd()
4632
      raise x
4633
    result = addAmazonItem_result()
4634
    result.read(self._iprot)
4635
    self._iprot.readMessageEnd()
4636
    return
4637
 
7291 vikram.rag 4638
  def getAsinItems(self, ):
4639
    self.send_getAsinItems()
4640
    return self.recv_getAsinItems()
7281 kshitij.so 4641
 
7291 vikram.rag 4642
  def send_getAsinItems(self, ):
4643
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4644
    args = getAsinItems_args()
4645
    args.write(self._oprot)
4646
    self._oprot.writeMessageEnd()
4647
    self._oprot.trans.flush()
4648
 
4649
  def recv_getAsinItems(self, ):
4650
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4651
    if mtype == TMessageType.EXCEPTION:
4652
      x = TApplicationException()
4653
      x.read(self._iprot)
4654
      self._iprot.readMessageEnd()
4655
      raise x
4656
    result = getAsinItems_result()
4657
    result.read(self._iprot)
4658
    self._iprot.readMessageEnd()
4659
    if result.success is not None:
4660
      return result.success
4661
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4662
 
4663
  def getAllFbaListedItems(self, ):
4664
    self.send_getAllFbaListedItems()
4665
    return self.recv_getAllFbaListedItems()
4666
 
4667
  def send_getAllFbaListedItems(self, ):
4668
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4669
    args = getAllFbaListedItems_args()
4670
    args.write(self._oprot)
4671
    self._oprot.writeMessageEnd()
4672
    self._oprot.trans.flush()
4673
 
4674
  def recv_getAllFbaListedItems(self, ):
4675
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4676
    if mtype == TMessageType.EXCEPTION:
4677
      x = TApplicationException()
4678
      x.read(self._iprot)
4679
      self._iprot.readMessageEnd()
4680
      raise x
4681
    result = getAllFbaListedItems_result()
4682
    result.read(self._iprot)
4683
    self._iprot.readMessageEnd()
4684
    if result.success is not None:
4685
      return result.success
4686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4687
 
4688
  def getAllNonFbaListedItems(self, ):
4689
    self.send_getAllNonFbaListedItems()
4690
    return self.recv_getAllNonFbaListedItems()
4691
 
4692
  def send_getAllNonFbaListedItems(self, ):
4693
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4694
    args = getAllNonFbaListedItems_args()
4695
    args.write(self._oprot)
4696
    self._oprot.writeMessageEnd()
4697
    self._oprot.trans.flush()
4698
 
4699
  def recv_getAllNonFbaListedItems(self, ):
4700
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4701
    if mtype == TMessageType.EXCEPTION:
4702
      x = TApplicationException()
4703
      x.read(self._iprot)
4704
      self._iprot.readMessageEnd()
4705
      raise x
4706
    result = getAllNonFbaListedItems_result()
4707
    result.read(self._iprot)
4708
    self._iprot.readMessageEnd()
4709
    if result.success is not None:
4710
      return result.success
4711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4712
 
7460 kshitij.so 4713
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4714
    """
4715
    Parameters:
4716
     - itemId
4717
     - holdInventory
4718
     - defaultInventory
4719
    """
4720
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4721
    return self.recv_updateItemInventory()
7291 vikram.rag 4722
 
7460 kshitij.so 4723
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4724
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4725
    args = updateItemInventory_args()
4726
    args.itemId = itemId
4727
    args.holdInventory = holdInventory
4728
    args.defaultInventory = defaultInventory
4729
    args.write(self._oprot)
4730
    self._oprot.writeMessageEnd()
4731
    self._oprot.trans.flush()
4732
 
4733
  def recv_updateItemInventory(self, ):
4734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4735
    if mtype == TMessageType.EXCEPTION:
4736
      x = TApplicationException()
4737
      x.read(self._iprot)
4738
      self._iprot.readMessageEnd()
4739
      raise x
4740
    result = updateItemInventory_result()
4741
    result.read(self._iprot)
4742
    self._iprot.readMessageEnd()
4743
    if result.success is not None:
4744
      return result.success
4745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4746
 
7770 kshitij.so 4747
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4748
    """
4749
    Parameters:
4750
     - type
4751
     - sku
4752
     - timestamp
4753
    """
4754
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4755
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4756
 
7770 kshitij.so 4757
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4758
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4759
    args = updateTimestampForAmazonFeeds_args()
4760
    args.type = type
4761
    args.sku = sku
4762
    args.timestamp = timestamp
4763
    args.write(self._oprot)
4764
    self._oprot.writeMessageEnd()
4765
    self._oprot.trans.flush()
4766
 
4767
  def recv_updateTimestampForAmazonFeeds(self, ):
4768
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4769
    if mtype == TMessageType.EXCEPTION:
4770
      x = TApplicationException()
4771
      x.read(self._iprot)
4772
      self._iprot.readMessageEnd()
4773
      raise x
4774
    result = updateTimestampForAmazonFeeds_result()
4775
    result.read(self._iprot)
4776
    self._iprot.readMessageEnd()
4777
    if result.success is not None:
4778
      return result.success
4779
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4780
 
7897 amar.kumar 4781
  def getAllParentCategories(self, ):
4782
    self.send_getAllParentCategories()
4783
    return self.recv_getAllParentCategories()
7770 kshitij.so 4784
 
7897 amar.kumar 4785
  def send_getAllParentCategories(self, ):
4786
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4787
    args = getAllParentCategories_args()
4788
    args.write(self._oprot)
4789
    self._oprot.writeMessageEnd()
4790
    self._oprot.trans.flush()
4791
 
4792
  def recv_getAllParentCategories(self, ):
4793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4794
    if mtype == TMessageType.EXCEPTION:
4795
      x = TApplicationException()
4796
      x.read(self._iprot)
4797
      self._iprot.readMessageEnd()
4798
      raise x
4799
    result = getAllParentCategories_result()
4800
    result.read(self._iprot)
4801
    self._iprot.readMessageEnd()
4802
    if result.success is not None:
4803
      return result.success
4804
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4805
 
7977 kshitij.so 4806
  def addPageViewEvent(self, pageViewEvents):
4807
    """
4808
    Parameters:
4809
     - pageViewEvents
4810
    """
4811
    self.send_addPageViewEvent(pageViewEvents)
4812
    self.recv_addPageViewEvent()
7897 amar.kumar 4813
 
7977 kshitij.so 4814
  def send_addPageViewEvent(self, pageViewEvents):
4815
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4816
    args = addPageViewEvent_args()
4817
    args.pageViewEvents = pageViewEvents
4818
    args.write(self._oprot)
4819
    self._oprot.writeMessageEnd()
4820
    self._oprot.trans.flush()
4821
 
4822
  def recv_addPageViewEvent(self, ):
4823
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4824
    if mtype == TMessageType.EXCEPTION:
4825
      x = TApplicationException()
4826
      x.read(self._iprot)
4827
      self._iprot.readMessageEnd()
4828
      raise x
4829
    result = addPageViewEvent_result()
4830
    result.read(self._iprot)
4831
    self._iprot.readMessageEnd()
4832
    return
4833
 
4834
  def addCartEvent(self, cartEvents):
4835
    """
4836
    Parameters:
4837
     - cartEvents
4838
    """
4839
    self.send_addCartEvent(cartEvents)
4840
    self.recv_addCartEvent()
4841
 
4842
  def send_addCartEvent(self, cartEvents):
4843
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4844
    args = addCartEvent_args()
4845
    args.cartEvents = cartEvents
4846
    args.write(self._oprot)
4847
    self._oprot.writeMessageEnd()
4848
    self._oprot.trans.flush()
4849
 
4850
  def recv_addCartEvent(self, ):
4851
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4852
    if mtype == TMessageType.EXCEPTION:
4853
      x = TApplicationException()
4854
      x.read(self._iprot)
4855
      self._iprot.readMessageEnd()
4856
      raise x
4857
    result = addCartEvent_result()
4858
    result.read(self._iprot)
4859
    self._iprot.readMessageEnd()
4860
    return
4861
 
8182 amar.kumar 4862
  def addEbayItem(self, ebayItem):
4863
    """
4864
    Parameters:
4865
     - ebayItem
4866
    """
4867
    self.send_addEbayItem(ebayItem)
4868
    self.recv_addEbayItem()
4869
 
4870
  def send_addEbayItem(self, ebayItem):
4871
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4872
    args = addEbayItem_args()
4873
    args.ebayItem = ebayItem
4874
    args.write(self._oprot)
4875
    self._oprot.writeMessageEnd()
4876
    self._oprot.trans.flush()
4877
 
4878
  def recv_addEbayItem(self, ):
4879
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4880
    if mtype == TMessageType.EXCEPTION:
4881
      x = TApplicationException()
4882
      x.read(self._iprot)
4883
      self._iprot.readMessageEnd()
4884
      raise x
4885
    result = addEbayItem_result()
4886
    result.read(self._iprot)
4887
    self._iprot.readMessageEnd()
4888
    return
4889
 
4890
  def getEbayItem(self, listingId):
4891
    """
4892
    Parameters:
4893
     - listingId
4894
    """
4895
    self.send_getEbayItem(listingId)
4896
    return self.recv_getEbayItem()
4897
 
4898
  def send_getEbayItem(self, listingId):
4899
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4900
    args = getEbayItem_args()
4901
    args.listingId = listingId
4902
    args.write(self._oprot)
4903
    self._oprot.writeMessageEnd()
4904
    self._oprot.trans.flush()
4905
 
4906
  def recv_getEbayItem(self, ):
4907
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4908
    if mtype == TMessageType.EXCEPTION:
4909
      x = TApplicationException()
4910
      x.read(self._iprot)
4911
      self._iprot.readMessageEnd()
4912
      raise x
4913
    result = getEbayItem_result()
4914
    result.read(self._iprot)
4915
    self._iprot.readMessageEnd()
4916
    if result.success is not None:
4917
      return result.success
4918
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4919
 
4920
  def updateEbayItem(self, ebayItem):
4921
    """
4922
    Parameters:
4923
     - ebayItem
4924
    """
4925
    self.send_updateEbayItem(ebayItem)
4926
    self.recv_updateEbayItem()
4927
 
4928
  def send_updateEbayItem(self, ebayItem):
4929
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4930
    args = updateEbayItem_args()
4931
    args.ebayItem = ebayItem
4932
    args.write(self._oprot)
4933
    self._oprot.writeMessageEnd()
4934
    self._oprot.trans.flush()
4935
 
4936
  def recv_updateEbayItem(self, ):
4937
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4938
    if mtype == TMessageType.EXCEPTION:
4939
      x = TApplicationException()
4940
      x.read(self._iprot)
4941
      self._iprot.readMessageEnd()
4942
      raise x
4943
    result = updateEbayItem_result()
4944
    result.read(self._iprot)
4945
    self._iprot.readMessageEnd()
4946
    return
4947
 
8139 kshitij.so 4948
  def getAmazonListedItems(self, offset, limit):
4949
    """
4950
    Parameters:
4951
     - offset
4952
     - limit
4953
    """
4954
    self.send_getAmazonListedItems(offset, limit)
4955
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4956
 
8139 kshitij.so 4957
  def send_getAmazonListedItems(self, offset, limit):
4958
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4959
    args = getAmazonListedItems_args()
4960
    args.offset = offset
4961
    args.limit = limit
4962
    args.write(self._oprot)
4963
    self._oprot.writeMessageEnd()
4964
    self._oprot.trans.flush()
4965
 
4966
  def recv_getAmazonListedItems(self, ):
4967
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4968
    if mtype == TMessageType.EXCEPTION:
4969
      x = TApplicationException()
4970
      x.read(self._iprot)
4971
      self._iprot.readMessageEnd()
4972
      raise x
4973
    result = getAmazonListedItems_result()
4974
    result.read(self._iprot)
4975
    self._iprot.readMessageEnd()
4976
    if result.success is not None:
4977
      return result.success
4978
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4979
 
8168 kshitij.so 4980
  def updateAmazonAttributesInBulk(self, amazonlisted):
4981
    """
4982
    Parameters:
4983
     - amazonlisted
4984
    """
4985
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4986
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4987
 
8168 kshitij.so 4988
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4989
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4990
    args = updateAmazonAttributesInBulk_args()
4991
    args.amazonlisted = amazonlisted
4992
    args.write(self._oprot)
4993
    self._oprot.writeMessageEnd()
4994
    self._oprot.trans.flush()
4995
 
4996
  def recv_updateAmazonAttributesInBulk(self, ):
4997
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4998
    if mtype == TMessageType.EXCEPTION:
4999
      x = TApplicationException()
5000
      x.read(self._iprot)
5001
      self._iprot.readMessageEnd()
5002
      raise x
5003
    result = updateAmazonAttributesInBulk_result()
5004
    result.read(self._iprot)
5005
    self._iprot.readMessageEnd()
5006
    if result.success is not None:
5007
      return result.success
5008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
5009
 
8379 vikram.rag 5010
  def getAllItemstoListOnFba(self, ):
5011
    self.send_getAllItemstoListOnFba()
5012
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 5013
 
8379 vikram.rag 5014
  def send_getAllItemstoListOnFba(self, ):
5015
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
5016
    args = getAllItemstoListOnFba_args()
5017
    args.write(self._oprot)
5018
    self._oprot.writeMessageEnd()
5019
    self._oprot.trans.flush()
5020
 
5021
  def recv_getAllItemstoListOnFba(self, ):
5022
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5023
    if mtype == TMessageType.EXCEPTION:
5024
      x = TApplicationException()
5025
      x.read(self._iprot)
5026
      self._iprot.readMessageEnd()
5027
      raise x
5028
    result = getAllItemstoListOnFba_result()
5029
    result.read(self._iprot)
5030
    self._iprot.readMessageEnd()
5031
    if result.success is not None:
5032
      return result.success
5033
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
5034
 
5035
  def getAllItemstoListOnNonFba(self, ):
5036
    self.send_getAllItemstoListOnNonFba()
5037
    return self.recv_getAllItemstoListOnNonFba()
5038
 
5039
  def send_getAllItemstoListOnNonFba(self, ):
5040
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
5041
    args = getAllItemstoListOnNonFba_args()
5042
    args.write(self._oprot)
5043
    self._oprot.writeMessageEnd()
5044
    self._oprot.trans.flush()
5045
 
5046
  def recv_getAllItemstoListOnNonFba(self, ):
5047
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5048
    if mtype == TMessageType.EXCEPTION:
5049
      x = TApplicationException()
5050
      x.read(self._iprot)
5051
      self._iprot.readMessageEnd()
5052
      raise x
5053
    result = getAllItemstoListOnNonFba_result()
5054
    result.read(self._iprot)
5055
    self._iprot.readMessageEnd()
5056
    if result.success is not None:
5057
      return result.success
5058
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
5059
 
8619 kshitij.so 5060
  def updateAsin(self, item):
5061
    """
5062
    Parameters:
5063
     - item
5064
    """
5065
    self.send_updateAsin(item)
5066
    self.recv_updateAsin()
8616 vikram.rag 5067
 
8619 kshitij.so 5068
  def send_updateAsin(self, item):
5069
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
5070
    args = updateAsin_args()
5071
    args.item = item
5072
    args.write(self._oprot)
5073
    self._oprot.writeMessageEnd()
5074
    self._oprot.trans.flush()
5075
 
5076
  def recv_updateAsin(self, ):
5077
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5078
    if mtype == TMessageType.EXCEPTION:
5079
      x = TApplicationException()
5080
      x.read(self._iprot)
5081
      self._iprot.readMessageEnd()
5082
      raise x
5083
    result = updateAsin_result()
5084
    result.read(self._iprot)
5085
    self._iprot.readMessageEnd()
5086
    return
5087
 
8739 vikram.rag 5088
  def addOrUpdateSnapdealItem(self, snapdealitem):
5089
    """
5090
    Parameters:
5091
     - snapdealitem
5092
    """
5093
    self.send_addOrUpdateSnapdealItem(snapdealitem)
5094
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 5095
 
8739 vikram.rag 5096
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
5097
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
5098
    args = addOrUpdateSnapdealItem_args()
5099
    args.snapdealitem = snapdealitem
5100
    args.write(self._oprot)
5101
    self._oprot.writeMessageEnd()
5102
    self._oprot.trans.flush()
5103
 
5104
  def recv_addOrUpdateSnapdealItem(self, ):
5105
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5106
    if mtype == TMessageType.EXCEPTION:
5107
      x = TApplicationException()
5108
      x.read(self._iprot)
5109
      self._iprot.readMessageEnd()
5110
      raise x
5111
    result = addOrUpdateSnapdealItem_result()
5112
    result.read(self._iprot)
5113
    self._iprot.readMessageEnd()
5114
    if result.success is not None:
5115
      return result.success
5116
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
5117
 
5118
  def getSnapdealItem(self, item_id):
5119
    """
5120
    Parameters:
5121
     - item_id
5122
    """
5123
    self.send_getSnapdealItem(item_id)
5124
    return self.recv_getSnapdealItem()
5125
 
5126
  def send_getSnapdealItem(self, item_id):
5127
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
5128
    args = getSnapdealItem_args()
5129
    args.item_id = item_id
5130
    args.write(self._oprot)
5131
    self._oprot.writeMessageEnd()
5132
    self._oprot.trans.flush()
5133
 
5134
  def recv_getSnapdealItem(self, ):
5135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5136
    if mtype == TMessageType.EXCEPTION:
5137
      x = TApplicationException()
5138
      x.read(self._iprot)
5139
      self._iprot.readMessageEnd()
5140
      raise x
5141
    result = getSnapdealItem_result()
5142
    result.read(self._iprot)
5143
    self._iprot.readMessageEnd()
5144
    if result.success is not None:
5145
      return result.success
5146
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
5147
 
9242 kshitij.so 5148
  def getSnapdealItemDetails(self, item_id):
5149
    """
5150
    Parameters:
5151
     - item_id
5152
    """
5153
    self.send_getSnapdealItemDetails(item_id)
5154
    return self.recv_getSnapdealItemDetails()
5155
 
5156
  def send_getSnapdealItemDetails(self, item_id):
5157
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
5158
    args = getSnapdealItemDetails_args()
5159
    args.item_id = item_id
5160
    args.write(self._oprot)
5161
    self._oprot.writeMessageEnd()
5162
    self._oprot.trans.flush()
5163
 
5164
  def recv_getSnapdealItemDetails(self, ):
5165
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5166
    if mtype == TMessageType.EXCEPTION:
5167
      x = TApplicationException()
5168
      x.read(self._iprot)
5169
      self._iprot.readMessageEnd()
5170
      raise x
5171
    result = getSnapdealItemDetails_result()
5172
    result.read(self._iprot)
5173
    self._iprot.readMessageEnd()
5174
    if result.success is not None:
5175
      return result.success
5176
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
5177
 
8739 vikram.rag 5178
  def getAllSnapdealItems(self, ):
5179
    self.send_getAllSnapdealItems()
5180
    return self.recv_getAllSnapdealItems()
5181
 
5182
  def send_getAllSnapdealItems(self, ):
5183
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
5184
    args = getAllSnapdealItems_args()
5185
    args.write(self._oprot)
5186
    self._oprot.writeMessageEnd()
5187
    self._oprot.trans.flush()
5188
 
5189
  def recv_getAllSnapdealItems(self, ):
5190
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5191
    if mtype == TMessageType.EXCEPTION:
5192
      x = TApplicationException()
5193
      x.read(self._iprot)
5194
      self._iprot.readMessageEnd()
5195
      raise x
5196
    result = getAllSnapdealItems_result()
5197
    result.read(self._iprot)
5198
    self._iprot.readMessageEnd()
5199
    if result.success is not None:
5200
      return result.success
5201
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
5202
 
9242 kshitij.so 5203
  def getSnapdealItems(self, offset, limit):
5204
    """
5205
    Parameters:
5206
     - offset
5207
     - limit
5208
    """
5209
    self.send_getSnapdealItems(offset, limit)
5210
    return self.recv_getSnapdealItems()
8739 vikram.rag 5211
 
9242 kshitij.so 5212
  def send_getSnapdealItems(self, offset, limit):
5213
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5214
    args = getSnapdealItems_args()
5215
    args.offset = offset
5216
    args.limit = limit
5217
    args.write(self._oprot)
5218
    self._oprot.writeMessageEnd()
5219
    self._oprot.trans.flush()
5220
 
5221
  def recv_getSnapdealItems(self, ):
5222
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5223
    if mtype == TMessageType.EXCEPTION:
5224
      x = TApplicationException()
5225
      x.read(self._iprot)
5226
      self._iprot.readMessageEnd()
5227
      raise x
5228
    result = getSnapdealItems_result()
5229
    result.read(self._iprot)
5230
    self._iprot.readMessageEnd()
5231
    if result.success is not None:
5232
      return result.success
5233
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5234
 
5235
  def searchSnapdealItems(self, searchTerm, offset, limit):
5236
    """
5237
    Parameters:
5238
     - searchTerm
5239
     - offset
5240
     - limit
5241
    """
5242
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5243
    return self.recv_searchSnapdealItems()
5244
 
5245
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5246
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5247
    args = searchSnapdealItems_args()
5248
    args.searchTerm = searchTerm
5249
    args.offset = offset
5250
    args.limit = limit
5251
    args.write(self._oprot)
5252
    self._oprot.writeMessageEnd()
5253
    self._oprot.trans.flush()
5254
 
5255
  def recv_searchSnapdealItems(self, ):
5256
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5257
    if mtype == TMessageType.EXCEPTION:
5258
      x = TApplicationException()
5259
      x.read(self._iprot)
5260
      self._iprot.readMessageEnd()
5261
      raise x
5262
    result = searchSnapdealItems_result()
5263
    result.read(self._iprot)
5264
    self._iprot.readMessageEnd()
5265
    if result.success is not None:
5266
      return result.success
5267
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5268
 
5269
  def getCountForSnapdealItems(self, ):
5270
    self.send_getCountForSnapdealItems()
5271
    return self.recv_getCountForSnapdealItems()
5272
 
5273
  def send_getCountForSnapdealItems(self, ):
5274
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5275
    args = getCountForSnapdealItems_args()
5276
    args.write(self._oprot)
5277
    self._oprot.writeMessageEnd()
5278
    self._oprot.trans.flush()
5279
 
5280
  def recv_getCountForSnapdealItems(self, ):
5281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5282
    if mtype == TMessageType.EXCEPTION:
5283
      x = TApplicationException()
5284
      x.read(self._iprot)
5285
      self._iprot.readMessageEnd()
5286
      raise x
5287
    result = getCountForSnapdealItems_result()
5288
    result.read(self._iprot)
5289
    self._iprot.readMessageEnd()
5290
    if result.success is not None:
5291
      return result.success
5292
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5293
 
5294
  def getSnapdealSearchResultCount(self, searchTerm):
5295
    """
5296
    Parameters:
5297
     - searchTerm
5298
    """
5299
    self.send_getSnapdealSearchResultCount(searchTerm)
5300
    return self.recv_getSnapdealSearchResultCount()
5301
 
5302
  def send_getSnapdealSearchResultCount(self, searchTerm):
5303
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5304
    args = getSnapdealSearchResultCount_args()
5305
    args.searchTerm = searchTerm
5306
    args.write(self._oprot)
5307
    self._oprot.writeMessageEnd()
5308
    self._oprot.trans.flush()
5309
 
5310
  def recv_getSnapdealSearchResultCount(self, ):
5311
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5312
    if mtype == TMessageType.EXCEPTION:
5313
      x = TApplicationException()
5314
      x.read(self._iprot)
5315
      self._iprot.readMessageEnd()
5316
      raise x
5317
    result = getSnapdealSearchResultCount_result()
5318
    result.read(self._iprot)
5319
    self._iprot.readMessageEnd()
5320
    if result.success is not None:
5321
      return result.success
5322
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5323
 
9299 kshitij.so 5324
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5325
    """
5326
    Parameters:
5327
     - itemId
5328
     - insurerType
5329
    """
5330
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5331
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5332
 
9299 kshitij.so 5333
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5334
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5335
    args = getPrefferedInsurerForItem_args()
5336
    args.itemId = itemId
5337
    args.insurerType = insurerType
5338
    args.write(self._oprot)
5339
    self._oprot.writeMessageEnd()
5340
    self._oprot.trans.flush()
5341
 
5342
  def recv_getPrefferedInsurerForItem(self, ):
5343
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5344
    if mtype == TMessageType.EXCEPTION:
5345
      x = TApplicationException()
5346
      x.read(self._iprot)
5347
      self._iprot.readMessageEnd()
5348
      raise x
5349
    result = getPrefferedInsurerForItem_result()
5350
    result.read(self._iprot)
5351
    self._iprot.readMessageEnd()
5352
    if result.success is not None:
5353
      return result.success
5354
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5355
 
9456 vikram.rag 5356
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5357
    """
5358
    Parameters:
5359
     - skuAtSnapdeal
5360
    """
5361
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5362
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5363
 
9456 vikram.rag 5364
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5365
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5366
    args = getSnapdealItembySkuAtSnapdeal_args()
5367
    args.skuAtSnapdeal = skuAtSnapdeal
5368
    args.write(self._oprot)
5369
    self._oprot.writeMessageEnd()
5370
    self._oprot.trans.flush()
5371
 
5372
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5373
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5374
    if mtype == TMessageType.EXCEPTION:
5375
      x = TApplicationException()
5376
      x.read(self._iprot)
5377
      self._iprot.readMessageEnd()
5378
      raise x
5379
    result = getSnapdealItembySkuAtSnapdeal_result()
5380
    result.read(self._iprot)
5381
    self._iprot.readMessageEnd()
5382
    if result.success is not None:
5383
      return result.success
5384
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5385
 
9621 manish.sha 5386
  def getProductFeedSubmit(self, catalogItemId):
5387
    """
5388
    Parameters:
5389
     - catalogItemId
5390
    """
5391
    self.send_getProductFeedSubmit(catalogItemId)
5392
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5393
 
9621 manish.sha 5394
  def send_getProductFeedSubmit(self, catalogItemId):
5395
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5396
    args = getProductFeedSubmit_args()
5397
    args.catalogItemId = catalogItemId
5398
    args.write(self._oprot)
5399
    self._oprot.writeMessageEnd()
5400
    self._oprot.trans.flush()
5401
 
5402
  def recv_getProductFeedSubmit(self, ):
5403
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5404
    if mtype == TMessageType.EXCEPTION:
5405
      x = TApplicationException()
5406
      x.read(self._iprot)
5407
      self._iprot.readMessageEnd()
5408
      raise x
5409
    result = getProductFeedSubmit_result()
5410
    result.read(self._iprot)
5411
    self._iprot.readMessageEnd()
5412
    if result.success is not None:
5413
      return result.success
5414
    if result.cex is not None:
5415
      raise result.cex
5416
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5417
 
5418
  def addProductFeedSubmit(self, productFeedSubmit):
5419
    """
5420
    Parameters:
5421
     - productFeedSubmit
5422
    """
5423
    self.send_addProductFeedSubmit(productFeedSubmit)
5424
    return self.recv_addProductFeedSubmit()
5425
 
5426
  def send_addProductFeedSubmit(self, productFeedSubmit):
5427
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5428
    args = addProductFeedSubmit_args()
5429
    args.productFeedSubmit = productFeedSubmit
5430
    args.write(self._oprot)
5431
    self._oprot.writeMessageEnd()
5432
    self._oprot.trans.flush()
5433
 
5434
  def recv_addProductFeedSubmit(self, ):
5435
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5436
    if mtype == TMessageType.EXCEPTION:
5437
      x = TApplicationException()
5438
      x.read(self._iprot)
5439
      self._iprot.readMessageEnd()
5440
      raise x
5441
    result = addProductFeedSubmit_result()
5442
    result.read(self._iprot)
5443
    self._iprot.readMessageEnd()
5444
    if result.success is not None:
5445
      return result.success
5446
    if result.cex is not None:
5447
      raise result.cex
5448
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5449
 
5450
  def updateProductFeedSubmit(self, productFeedSubmit):
5451
    """
5452
    Parameters:
5453
     - productFeedSubmit
5454
    """
5455
    self.send_updateProductFeedSubmit(productFeedSubmit)
5456
    return self.recv_updateProductFeedSubmit()
5457
 
5458
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5459
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5460
    args = updateProductFeedSubmit_args()
5461
    args.productFeedSubmit = productFeedSubmit
5462
    args.write(self._oprot)
5463
    self._oprot.writeMessageEnd()
5464
    self._oprot.trans.flush()
5465
 
5466
  def recv_updateProductFeedSubmit(self, ):
5467
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5468
    if mtype == TMessageType.EXCEPTION:
5469
      x = TApplicationException()
5470
      x.read(self._iprot)
5471
      self._iprot.readMessageEnd()
5472
      raise x
5473
    result = updateProductFeedSubmit_result()
5474
    result.read(self._iprot)
5475
    self._iprot.readMessageEnd()
5476
    if result.success is not None:
5477
      return result.success
5478
    if result.cex is not None:
5479
      raise result.cex
5480
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5481
 
5482
  def deleteProductFeedSubmit(self, catalogItemId):
5483
    """
5484
    Parameters:
5485
     - catalogItemId
5486
    """
5487
    self.send_deleteProductFeedSubmit(catalogItemId)
5488
    return self.recv_deleteProductFeedSubmit()
5489
 
5490
  def send_deleteProductFeedSubmit(self, catalogItemId):
5491
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5492
    args = deleteProductFeedSubmit_args()
5493
    args.catalogItemId = catalogItemId
5494
    args.write(self._oprot)
5495
    self._oprot.writeMessageEnd()
5496
    self._oprot.trans.flush()
5497
 
5498
  def recv_deleteProductFeedSubmit(self, ):
5499
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5500
    if mtype == TMessageType.EXCEPTION:
5501
      x = TApplicationException()
5502
      x.read(self._iprot)
5503
      self._iprot.readMessageEnd()
5504
      raise x
5505
    result = deleteProductFeedSubmit_result()
5506
    result.read(self._iprot)
5507
    self._iprot.readMessageEnd()
5508
    if result.success is not None:
5509
      return result.success
5510
    if result.cex is not None:
5511
      raise result.cex
5512
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5513
 
5514
  def getAllProductFeedSubmit(self, ):
5515
    self.send_getAllProductFeedSubmit()
5516
    return self.recv_getAllProductFeedSubmit()
5517
 
5518
  def send_getAllProductFeedSubmit(self, ):
5519
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5520
    args = getAllProductFeedSubmit_args()
5521
    args.write(self._oprot)
5522
    self._oprot.writeMessageEnd()
5523
    self._oprot.trans.flush()
5524
 
5525
  def recv_getAllProductFeedSubmit(self, ):
5526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5527
    if mtype == TMessageType.EXCEPTION:
5528
      x = TApplicationException()
5529
      x.read(self._iprot)
5530
      self._iprot.readMessageEnd()
5531
      raise x
5532
    result = getAllProductFeedSubmit_result()
5533
    result.read(self._iprot)
5534
    self._iprot.readMessageEnd()
5535
    if result.success is not None:
5536
      return result.success
5537
    if result.cex is not None:
5538
      raise result.cex
5539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5540
 
9724 kshitij.so 5541
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5542
    """
5543
    Parameters:
5544
     - itemId
5545
     - sourceId
5546
    """
5547
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5548
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5549
 
9724 kshitij.so 5550
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5551
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5552
    args = getMarketplacedetailsForItem_args()
5553
    args.itemId = itemId
5554
    args.sourceId = sourceId
5555
    args.write(self._oprot)
5556
    self._oprot.writeMessageEnd()
5557
    self._oprot.trans.flush()
5558
 
5559
  def recv_getMarketplacedetailsForItem(self, ):
5560
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5561
    if mtype == TMessageType.EXCEPTION:
5562
      x = TApplicationException()
5563
      x.read(self._iprot)
5564
      self._iprot.readMessageEnd()
5565
      raise x
5566
    result = getMarketplacedetailsForItem_result()
5567
    result.read(self._iprot)
5568
    self._iprot.readMessageEnd()
5569
    if result.success is not None:
5570
      return result.success
5571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5572
 
5573
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5574
    """
5575
    Parameters:
5576
     - marketPlaceItem
5577
    """
5578
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5579
    return self.recv_updateMarketplaceAttributesForItem()
5580
 
5581
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5582
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5583
    args = updateMarketplaceAttributesForItem_args()
5584
    args.marketPlaceItem = marketPlaceItem
5585
    args.write(self._oprot)
5586
    self._oprot.writeMessageEnd()
5587
    self._oprot.trans.flush()
5588
 
5589
  def recv_updateMarketplaceAttributesForItem(self, ):
5590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5591
    if mtype == TMessageType.EXCEPTION:
5592
      x = TApplicationException()
5593
      x.read(self._iprot)
5594
      self._iprot.readMessageEnd()
5595
      raise x
5596
    result = updateMarketplaceAttributesForItem_result()
5597
    result.read(self._iprot)
5598
    self._iprot.readMessageEnd()
5599
    if result.success is not None:
5600
      return result.success
5601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5602
 
9779 kshitij.so 5603
  def getCostingForMarketplace(self, source, item_id):
5604
    """
5605
    Parameters:
5606
     - source
5607
     - item_id
5608
    """
5609
    self.send_getCostingForMarketplace(source, item_id)
5610
    return self.recv_getCostingForMarketplace()
5611
 
5612
  def send_getCostingForMarketplace(self, source, item_id):
5613
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5614
    args = getCostingForMarketplace_args()
5615
    args.source = source
5616
    args.item_id = item_id
5617
    args.write(self._oprot)
5618
    self._oprot.writeMessageEnd()
5619
    self._oprot.trans.flush()
5620
 
5621
  def recv_getCostingForMarketplace(self, ):
5622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5623
    if mtype == TMessageType.EXCEPTION:
5624
      x = TApplicationException()
5625
      x.read(self._iprot)
5626
      self._iprot.readMessageEnd()
5627
      raise x
5628
    result = getCostingForMarketplace_result()
5629
    result.read(self._iprot)
5630
    self._iprot.readMessageEnd()
5631
    if result.success is not None:
5632
      return result.success
5633
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5634
 
9776 vikram.rag 5635
  def getMarketPlaceItemsForPriceUpdate(self, source):
5636
    """
5637
    Parameters:
5638
     - source
5639
    """
5640
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5641
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5642
 
9776 vikram.rag 5643
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5644
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5645
    args = getMarketPlaceItemsForPriceUpdate_args()
5646
    args.source = source
5647
    args.write(self._oprot)
5648
    self._oprot.writeMessageEnd()
5649
    self._oprot.trans.flush()
5650
 
5651
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5652
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5653
    if mtype == TMessageType.EXCEPTION:
5654
      x = TApplicationException()
5655
      x.read(self._iprot)
5656
      self._iprot.readMessageEnd()
5657
      raise x
5658
    result = getMarketPlaceItemsForPriceUpdate_result()
5659
    result.read(self._iprot)
5660
    self._iprot.readMessageEnd()
5661
    if result.success is not None:
5662
      return result.success
5663
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5664
 
9816 kshitij.so 5665
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5666
    """
5667
    Parameters:
5668
     - skulist
5669
     - timestamp
9816 kshitij.so 5670
     - source
9776 vikram.rag 5671
    """
9816 kshitij.so 5672
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5673
    self.recv_updateMarketPlacePriceUpdateStatus()
5674
 
9816 kshitij.so 5675
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5676
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5677
    args = updateMarketPlacePriceUpdateStatus_args()
5678
    args.skulist = skulist
5679
    args.timestamp = timestamp
9816 kshitij.so 5680
    args.source = source
9776 vikram.rag 5681
    args.write(self._oprot)
5682
    self._oprot.writeMessageEnd()
5683
    self._oprot.trans.flush()
5684
 
5685
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5686
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5687
    if mtype == TMessageType.EXCEPTION:
5688
      x = TApplicationException()
5689
      x.read(self._iprot)
5690
      self._iprot.readMessageEnd()
5691
      raise x
5692
    result = updateMarketPlacePriceUpdateStatus_result()
5693
    result.read(self._iprot)
5694
    self._iprot.readMessageEnd()
5695
    return
5696
 
9861 rajveer 5697
  def updateItemHoldInventory(self, itemHoldMap):
5698
    """
5699
    Parameters:
5700
     - itemHoldMap
5701
    """
5702
    self.send_updateItemHoldInventory(itemHoldMap)
5703
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5704
 
9861 rajveer 5705
  def send_updateItemHoldInventory(self, itemHoldMap):
5706
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5707
    args = updateItemHoldInventory_args()
5708
    args.itemHoldMap = itemHoldMap
5709
    args.write(self._oprot)
5710
    self._oprot.writeMessageEnd()
5711
    self._oprot.trans.flush()
5712
 
5713
  def recv_updateItemHoldInventory(self, ):
5714
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5715
    if mtype == TMessageType.EXCEPTION:
5716
      x = TApplicationException()
5717
      x.read(self._iprot)
5718
      self._iprot.readMessageEnd()
5719
      raise x
5720
    result = updateItemHoldInventory_result()
5721
    result.read(self._iprot)
5722
    self._iprot.readMessageEnd()
5723
    return
5724
 
9895 vikram.rag 5725
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5726
    """
5727
    Parameters:
5728
     - item_id
5729
     - vendor_id
5730
     - nlc
5731
    """
5732
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5733
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5734
 
9895 vikram.rag 5735
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5736
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5737
    args = updateNlcAtMarketplaces_args()
5738
    args.item_id = item_id
5739
    args.vendor_id = vendor_id
5740
    args.nlc = nlc
5741
    args.write(self._oprot)
5742
    self._oprot.writeMessageEnd()
5743
    self._oprot.trans.flush()
5744
 
5745
  def recv_updateNlcAtMarketplaces(self, ):
5746
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5747
    if mtype == TMessageType.EXCEPTION:
5748
      x = TApplicationException()
5749
      x.read(self._iprot)
5750
      self._iprot.readMessageEnd()
5751
      raise x
5752
    result = updateNlcAtMarketplaces_result()
5753
    result.read(self._iprot)
5754
    self._iprot.readMessageEnd()
5755
    return
5756
 
9945 vikram.rag 5757
  def getAllFlipkartItems(self, ):
5758
    self.send_getAllFlipkartItems()
5759
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5760
 
9945 vikram.rag 5761
  def send_getAllFlipkartItems(self, ):
5762
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5763
    args = getAllFlipkartItems_args()
5764
    args.write(self._oprot)
5765
    self._oprot.writeMessageEnd()
5766
    self._oprot.trans.flush()
5767
 
5768
  def recv_getAllFlipkartItems(self, ):
5769
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5770
    if mtype == TMessageType.EXCEPTION:
5771
      x = TApplicationException()
5772
      x.read(self._iprot)
5773
      self._iprot.readMessageEnd()
5774
      raise x
5775
    result = getAllFlipkartItems_result()
5776
    result.read(self._iprot)
5777
    self._iprot.readMessageEnd()
5778
    if result.success is not None:
5779
      return result.success
5780
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5781
 
10097 kshitij.so 5782
  def addOrUpdateFlipkartItem(self, flipkartitem):
5783
    """
5784
    Parameters:
5785
     - flipkartitem
5786
    """
5787
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5788
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5789
 
10097 kshitij.so 5790
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5791
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5792
    args = addOrUpdateFlipkartItem_args()
5793
    args.flipkartitem = flipkartitem
5794
    args.write(self._oprot)
5795
    self._oprot.writeMessageEnd()
5796
    self._oprot.trans.flush()
5797
 
5798
  def recv_addOrUpdateFlipkartItem(self, ):
5799
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5800
    if mtype == TMessageType.EXCEPTION:
5801
      x = TApplicationException()
5802
      x.read(self._iprot)
5803
      self._iprot.readMessageEnd()
5804
      raise x
5805
    result = addOrUpdateFlipkartItem_result()
5806
    result.read(self._iprot)
5807
    self._iprot.readMessageEnd()
5808
    if result.success is not None:
5809
      return result.success
5810
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5811
 
5812
  def getFlipkartItem(self, item_id):
5813
    """
5814
    Parameters:
5815
     - item_id
5816
    """
5817
    self.send_getFlipkartItem(item_id)
5818
    return self.recv_getFlipkartItem()
5819
 
5820
  def send_getFlipkartItem(self, item_id):
5821
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5822
    args = getFlipkartItem_args()
5823
    args.item_id = item_id
5824
    args.write(self._oprot)
5825
    self._oprot.writeMessageEnd()
5826
    self._oprot.trans.flush()
5827
 
5828
  def recv_getFlipkartItem(self, ):
5829
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5830
    if mtype == TMessageType.EXCEPTION:
5831
      x = TApplicationException()
5832
      x.read(self._iprot)
5833
      self._iprot.readMessageEnd()
5834
      raise x
5835
    result = getFlipkartItem_result()
5836
    result.read(self._iprot)
5837
    self._iprot.readMessageEnd()
5838
    if result.success is not None:
5839
      return result.success
5840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5841
 
5842
  def getFlipkartItemDetails(self, item_id):
5843
    """
5844
    Parameters:
5845
     - item_id
5846
    """
5847
    self.send_getFlipkartItemDetails(item_id)
5848
    return self.recv_getFlipkartItemDetails()
5849
 
5850
  def send_getFlipkartItemDetails(self, item_id):
5851
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5852
    args = getFlipkartItemDetails_args()
5853
    args.item_id = item_id
5854
    args.write(self._oprot)
5855
    self._oprot.writeMessageEnd()
5856
    self._oprot.trans.flush()
5857
 
5858
  def recv_getFlipkartItemDetails(self, ):
5859
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5860
    if mtype == TMessageType.EXCEPTION:
5861
      x = TApplicationException()
5862
      x.read(self._iprot)
5863
      self._iprot.readMessageEnd()
5864
      raise x
5865
    result = getFlipkartItemDetails_result()
5866
    result.read(self._iprot)
5867
    self._iprot.readMessageEnd()
5868
    if result.success is not None:
5869
      return result.success
5870
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5871
 
5872
  def getFlipkartItems(self, offset, limit):
5873
    """
5874
    Parameters:
5875
     - offset
5876
     - limit
5877
    """
5878
    self.send_getFlipkartItems(offset, limit)
5879
    return self.recv_getFlipkartItems()
5880
 
5881
  def send_getFlipkartItems(self, offset, limit):
5882
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5883
    args = getFlipkartItems_args()
5884
    args.offset = offset
5885
    args.limit = limit
5886
    args.write(self._oprot)
5887
    self._oprot.writeMessageEnd()
5888
    self._oprot.trans.flush()
5889
 
5890
  def recv_getFlipkartItems(self, ):
5891
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5892
    if mtype == TMessageType.EXCEPTION:
5893
      x = TApplicationException()
5894
      x.read(self._iprot)
5895
      self._iprot.readMessageEnd()
5896
      raise x
5897
    result = getFlipkartItems_result()
5898
    result.read(self._iprot)
5899
    self._iprot.readMessageEnd()
5900
    if result.success is not None:
5901
      return result.success
5902
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5903
 
5904
  def searchFlipkartItems(self, searchTerm, offset, limit):
5905
    """
5906
    Parameters:
5907
     - searchTerm
5908
     - offset
5909
     - limit
5910
    """
5911
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5912
    return self.recv_searchFlipkartItems()
5913
 
5914
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5915
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5916
    args = searchFlipkartItems_args()
5917
    args.searchTerm = searchTerm
5918
    args.offset = offset
5919
    args.limit = limit
5920
    args.write(self._oprot)
5921
    self._oprot.writeMessageEnd()
5922
    self._oprot.trans.flush()
5923
 
5924
  def recv_searchFlipkartItems(self, ):
5925
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5926
    if mtype == TMessageType.EXCEPTION:
5927
      x = TApplicationException()
5928
      x.read(self._iprot)
5929
      self._iprot.readMessageEnd()
5930
      raise x
5931
    result = searchFlipkartItems_result()
5932
    result.read(self._iprot)
5933
    self._iprot.readMessageEnd()
5934
    if result.success is not None:
5935
      return result.success
5936
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5937
 
5938
  def getCountForFlipkartItems(self, ):
5939
    self.send_getCountForFlipkartItems()
5940
    return self.recv_getCountForFlipkartItems()
5941
 
5942
  def send_getCountForFlipkartItems(self, ):
5943
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5944
    args = getCountForFlipkartItems_args()
5945
    args.write(self._oprot)
5946
    self._oprot.writeMessageEnd()
5947
    self._oprot.trans.flush()
5948
 
5949
  def recv_getCountForFlipkartItems(self, ):
5950
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5951
    if mtype == TMessageType.EXCEPTION:
5952
      x = TApplicationException()
5953
      x.read(self._iprot)
5954
      self._iprot.readMessageEnd()
5955
      raise x
5956
    result = getCountForFlipkartItems_result()
5957
    result.read(self._iprot)
5958
    self._iprot.readMessageEnd()
5959
    if result.success is not None:
5960
      return result.success
5961
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
5962
 
5963
  def getFlipkartSearchResultCount(self, searchTerm):
5964
    """
5965
    Parameters:
5966
     - searchTerm
5967
    """
5968
    self.send_getFlipkartSearchResultCount(searchTerm)
5969
    return self.recv_getFlipkartSearchResultCount()
5970
 
5971
  def send_getFlipkartSearchResultCount(self, searchTerm):
5972
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
5973
    args = getFlipkartSearchResultCount_args()
5974
    args.searchTerm = searchTerm
5975
    args.write(self._oprot)
5976
    self._oprot.writeMessageEnd()
5977
    self._oprot.trans.flush()
5978
 
5979
  def recv_getFlipkartSearchResultCount(self, ):
5980
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5981
    if mtype == TMessageType.EXCEPTION:
5982
      x = TApplicationException()
5983
      x.read(self._iprot)
5984
      self._iprot.readMessageEnd()
5985
      raise x
5986
    result = getFlipkartSearchResultCount_result()
5987
    result.read(self._iprot)
5988
    self._iprot.readMessageEnd()
5989
    if result.success is not None:
5990
      return result.success
5991
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
5992
 
5993
  def getAllFkItems(self, ):
5994
    self.send_getAllFkItems()
5995
    return self.recv_getAllFkItems()
5996
 
5997
  def send_getAllFkItems(self, ):
5998
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
5999
    args = getAllFkItems_args()
6000
    args.write(self._oprot)
6001
    self._oprot.writeMessageEnd()
6002
    self._oprot.trans.flush()
6003
 
6004
  def recv_getAllFkItems(self, ):
6005
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6006
    if mtype == TMessageType.EXCEPTION:
6007
      x = TApplicationException()
6008
      x.read(self._iprot)
6009
      self._iprot.readMessageEnd()
6010
      raise x
6011
    result = getAllFkItems_result()
6012
    result.read(self._iprot)
6013
    self._iprot.readMessageEnd()
6014
    if result.success is not None:
6015
      return result.success
6016
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
6017
 
10140 vikram.rag 6018
  def getFlipkartItemBySkyAtFlipkart(self, sku):
6019
    """
6020
    Parameters:
6021
     - sku
6022
    """
6023
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
6024
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 6025
 
10140 vikram.rag 6026
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
6027
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
6028
    args = getFlipkartItemBySkyAtFlipkart_args()
6029
    args.sku = sku
6030
    args.write(self._oprot)
6031
    self._oprot.writeMessageEnd()
6032
    self._oprot.trans.flush()
6033
 
6034
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
6035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6036
    if mtype == TMessageType.EXCEPTION:
6037
      x = TApplicationException()
6038
      x.read(self._iprot)
6039
      self._iprot.readMessageEnd()
6040
      raise x
6041
    result = getFlipkartItemBySkyAtFlipkart_result()
6042
    result.read(self._iprot)
6043
    self._iprot.readMessageEnd()
6044
    if result.success is not None:
6045
      return result.success
6046
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
6047
 
11015 kshitij.so 6048
  def getMarketplaceHistory(self, source, offset, itemId):
6049
    """
6050
    Parameters:
6051
     - source
6052
     - offset
6053
     - itemId
6054
    """
6055
    self.send_getMarketplaceHistory(source, offset, itemId)
6056
    return self.recv_getMarketplaceHistory()
6057
 
6058
  def send_getMarketplaceHistory(self, source, offset, itemId):
6059
    self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)
6060
    args = getMarketplaceHistory_args()
6061
    args.source = source
6062
    args.offset = offset
6063
    args.itemId = itemId
6064
    args.write(self._oprot)
6065
    self._oprot.writeMessageEnd()
6066
    self._oprot.trans.flush()
6067
 
6068
  def recv_getMarketplaceHistory(self, ):
6069
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6070
    if mtype == TMessageType.EXCEPTION:
6071
      x = TApplicationException()
6072
      x.read(self._iprot)
6073
      self._iprot.readMessageEnd()
6074
      raise x
6075
    result = getMarketplaceHistory_result()
6076
    result.read(self._iprot)
6077
    self._iprot.readMessageEnd()
6078
    if result.success is not None:
6079
      return result.success
6080
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
6081
 
10909 vikram.rag 6082
  def getAllFbbListedItems(self, ):
6083
    self.send_getAllFbbListedItems()
6084
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 6085
 
10909 vikram.rag 6086
  def send_getAllFbbListedItems(self, ):
6087
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
6088
    args = getAllFbbListedItems_args()
6089
    args.write(self._oprot)
6090
    self._oprot.writeMessageEnd()
6091
    self._oprot.trans.flush()
6092
 
6093
  def recv_getAllFbbListedItems(self, ):
6094
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6095
    if mtype == TMessageType.EXCEPTION:
6096
      x = TApplicationException()
6097
      x.read(self._iprot)
6098
      self._iprot.readMessageEnd()
6099
      raise x
6100
    result = getAllFbbListedItems_result()
6101
    result.read(self._iprot)
6102
    self._iprot.readMessageEnd()
6103
    if result.success is not None:
6104
      return result.success
6105
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
6106
 
10924 vikram.rag 6107
  def getAllFbbPricingItems(self, ):
6108
    self.send_getAllFbbPricingItems()
6109
    return self.recv_getAllFbbPricingItems()
10909 vikram.rag 6110
 
10924 vikram.rag 6111
  def send_getAllFbbPricingItems(self, ):
6112
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
6113
    args = getAllFbbPricingItems_args()
6114
    args.write(self._oprot)
6115
    self._oprot.writeMessageEnd()
6116
    self._oprot.trans.flush()
6117
 
6118
  def recv_getAllFbbPricingItems(self, ):
6119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6120
    if mtype == TMessageType.EXCEPTION:
6121
      x = TApplicationException()
6122
      x.read(self._iprot)
6123
      self._iprot.readMessageEnd()
6124
      raise x
6125
    result = getAllFbbPricingItems_result()
6126
    result.read(self._iprot)
6127
    self._iprot.readMessageEnd()
6128
    if result.success is not None:
6129
      return result.success
6130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
6131
 
11015 kshitij.so 6132
  def getCountForMarketplaceHistory(self, source, itemId):
6133
    """
6134
    Parameters:
6135
     - source
6136
     - itemId
6137
    """
6138
    self.send_getCountForMarketplaceHistory(source, itemId)
6139
    return self.recv_getCountForMarketplaceHistory()
10924 vikram.rag 6140
 
11015 kshitij.so 6141
  def send_getCountForMarketplaceHistory(self, source, itemId):
6142
    self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)
6143
    args = getCountForMarketplaceHistory_args()
6144
    args.source = source
6145
    args.itemId = itemId
6146
    args.write(self._oprot)
6147
    self._oprot.writeMessageEnd()
6148
    self._oprot.trans.flush()
6149
 
6150
  def recv_getCountForMarketplaceHistory(self, ):
6151
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6152
    if mtype == TMessageType.EXCEPTION:
6153
      x = TApplicationException()
6154
      x.read(self._iprot)
6155
      self._iprot.readMessageEnd()
6156
      raise x
6157
    result = getCountForMarketplaceHistory_result()
6158
    result.read(self._iprot)
6159
    self._iprot.readMessageEnd()
6160
    if result.success is not None:
6161
      return result.success
6162
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");
6163
 
6164
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6165
    """
6166
    Parameters:
6167
     - source
6168
     - startDate
6169
     - endDate
6170
     - offset
6171
     - limit
6172
     - itemId
6173
    """
6174
    self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)
6175
    return self.recv_getMarketplaceHistoryByDate()
6176
 
6177
  def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6178
    self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)
6179
    args = getMarketplaceHistoryByDate_args()
6180
    args.source = source
6181
    args.startDate = startDate
6182
    args.endDate = endDate
6183
    args.offset = offset
6184
    args.limit = limit
6185
    args.itemId = itemId
6186
    args.write(self._oprot)
6187
    self._oprot.writeMessageEnd()
6188
    self._oprot.trans.flush()
6189
 
6190
  def recv_getMarketplaceHistoryByDate(self, ):
6191
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6192
    if mtype == TMessageType.EXCEPTION:
6193
      x = TApplicationException()
6194
      x.read(self._iprot)
6195
      self._iprot.readMessageEnd()
6196
      raise x
6197
    result = getMarketplaceHistoryByDate_result()
6198
    result.read(self._iprot)
6199
    self._iprot.readMessageEnd()
6200
    if result.success is not None:
6201
      return result.success
6202
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6203
 
11531 vikram.rag 6204
  def getPrivateDealDetails(self, item_id):
6205
    """
6206
    Parameters:
6207
     - item_id
6208
    """
6209
    self.send_getPrivateDealDetails(item_id)
6210
    return self.recv_getPrivateDealDetails()
11015 kshitij.so 6211
 
11531 vikram.rag 6212
  def send_getPrivateDealDetails(self, item_id):
6213
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
6214
    args = getPrivateDealDetails_args()
6215
    args.item_id = item_id
6216
    args.write(self._oprot)
6217
    self._oprot.writeMessageEnd()
6218
    self._oprot.trans.flush()
6219
 
6220
  def recv_getPrivateDealDetails(self, ):
6221
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6222
    if mtype == TMessageType.EXCEPTION:
6223
      x = TApplicationException()
6224
      x.read(self._iprot)
6225
      self._iprot.readMessageEnd()
6226
      raise x
6227
    result = getPrivateDealDetails_result()
6228
    result.read(self._iprot)
6229
    self._iprot.readMessageEnd()
6230
    if result.success is not None:
6231
      return result.success
6232
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
6233
 
6234
  def getPrivateDealItems(self, offset, limit):
6235
    """
6236
    Parameters:
6237
     - offset
6238
     - limit
6239
    """
6240
    self.send_getPrivateDealItems(offset, limit)
6241
    return self.recv_getPrivateDealItems()
6242
 
6243
  def send_getPrivateDealItems(self, offset, limit):
6244
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
6245
    args = getPrivateDealItems_args()
6246
    args.offset = offset
6247
    args.limit = limit
6248
    args.write(self._oprot)
6249
    self._oprot.writeMessageEnd()
6250
    self._oprot.trans.flush()
6251
 
6252
  def recv_getPrivateDealItems(self, ):
6253
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6254
    if mtype == TMessageType.EXCEPTION:
6255
      x = TApplicationException()
6256
      x.read(self._iprot)
6257
      self._iprot.readMessageEnd()
6258
      raise x
6259
    result = getPrivateDealItems_result()
6260
    result.read(self._iprot)
6261
    self._iprot.readMessageEnd()
6262
    if result.success is not None:
6263
      return result.success
6264
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
6265
 
11653 amit.gupta 6266
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
6267
    """
6268
    Parameters:
6269
     - itemIds
6270
     - daysDelta
6271
    """
6272
    self.send_getAllActivePrivateDeals(itemIds, daysDelta)
11592 amit.gupta 6273
    return self.recv_getAllActivePrivateDeals()
6274
 
11653 amit.gupta 6275
  def send_getAllActivePrivateDeals(self, itemIds, daysDelta):
11592 amit.gupta 6276
    self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)
6277
    args = getAllActivePrivateDeals_args()
11653 amit.gupta 6278
    args.itemIds = itemIds
6279
    args.daysDelta = daysDelta
11592 amit.gupta 6280
    args.write(self._oprot)
6281
    self._oprot.writeMessageEnd()
6282
    self._oprot.trans.flush()
6283
 
6284
  def recv_getAllActivePrivateDeals(self, ):
6285
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6286
    if mtype == TMessageType.EXCEPTION:
6287
      x = TApplicationException()
6288
      x.read(self._iprot)
6289
      self._iprot.readMessageEnd()
6290
      raise x
6291
    result = getAllActivePrivateDeals_result()
6292
    result.read(self._iprot)
6293
    self._iprot.readMessageEnd()
6294
    if result.success is not None:
6295
      return result.success
6296
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
6297
 
11531 vikram.rag 6298
  def addOrUpdatePrivateDeal(self, privateDeal):
6299
    """
6300
    Parameters:
6301
     - privateDeal
6302
    """
6303
    self.send_addOrUpdatePrivateDeal(privateDeal)
6304
    return self.recv_addOrUpdatePrivateDeal()
6305
 
6306
  def send_addOrUpdatePrivateDeal(self, privateDeal):
6307
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
6308
    args = addOrUpdatePrivateDeal_args()
6309
    args.privateDeal = privateDeal
6310
    args.write(self._oprot)
6311
    self._oprot.writeMessageEnd()
6312
    self._oprot.trans.flush()
6313
 
6314
  def recv_addOrUpdatePrivateDeal(self, ):
6315
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6316
    if mtype == TMessageType.EXCEPTION:
6317
      x = TApplicationException()
6318
      x.read(self._iprot)
6319
      self._iprot.readMessageEnd()
6320
      raise x
6321
    result = addOrUpdatePrivateDeal_result()
6322
    result.read(self._iprot)
6323
    self._iprot.readMessageEnd()
6324
    if result.success is not None:
6325
      return result.success
6326
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
6327
 
11635 vikram.rag 6328
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6329
    """
6330
    Parameters:
6331
     - beginIndex
6332
     - totalItems
6333
    """
6334
    self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)
6335
    return self.recv_getPrivateDealsCatalogIds()
11531 vikram.rag 6336
 
11635 vikram.rag 6337
  def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6338
    self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)
6339
    args = getPrivateDealsCatalogIds_args()
6340
    args.beginIndex = beginIndex
6341
    args.totalItems = totalItems
6342
    args.write(self._oprot)
6343
    self._oprot.writeMessageEnd()
6344
    self._oprot.trans.flush()
6345
 
6346
  def recv_getPrivateDealsCatalogIds(self, ):
6347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6348
    if mtype == TMessageType.EXCEPTION:
6349
      x = TApplicationException()
6350
      x.read(self._iprot)
6351
      self._iprot.readMessageEnd()
6352
      raise x
6353
    result = getPrivateDealsCatalogIds_result()
6354
    result.read(self._iprot)
6355
    self._iprot.readMessageEnd()
6356
    if result.success is not None:
6357
      return result.success
6358
    if result.cex is not None:
6359
      raise result.cex
6360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
6361
 
11645 amit.gupta 6362
  def getPrivateDealsCount(self, ):
6363
    self.send_getPrivateDealsCount()
6364
    return self.recv_getPrivateDealsCount()
11635 vikram.rag 6365
 
11645 amit.gupta 6366
  def send_getPrivateDealsCount(self, ):
6367
    self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)
6368
    args = getPrivateDealsCount_args()
6369
    args.write(self._oprot)
6370
    self._oprot.writeMessageEnd()
6371
    self._oprot.trans.flush()
6372
 
6373
  def recv_getPrivateDealsCount(self, ):
6374
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6375
    if mtype == TMessageType.EXCEPTION:
6376
      x = TApplicationException()
6377
      x.read(self._iprot)
6378
      self._iprot.readMessageEnd()
6379
      raise x
6380
    result = getPrivateDealsCount_result()
6381
    result.read(self._iprot)
6382
    self._iprot.readMessageEnd()
6383
    if result.success is not None:
6384
      return result.success
6385
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
6386
 
11905 kshitij.so 6387
  def getAmazonOutSyncItems(self, item_id):
6388
    """
6389
    Parameters:
6390
     - item_id
6391
    """
6392
    self.send_getAmazonOutSyncItems(item_id)
6393
    return self.recv_getAmazonOutSyncItems()
11645 amit.gupta 6394
 
11905 kshitij.so 6395
  def send_getAmazonOutSyncItems(self, item_id):
6396
    self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)
6397
    args = getAmazonOutSyncItems_args()
6398
    args.item_id = item_id
6399
    args.write(self._oprot)
6400
    self._oprot.writeMessageEnd()
6401
    self._oprot.trans.flush()
6402
 
6403
  def recv_getAmazonOutSyncItems(self, ):
6404
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6405
    if mtype == TMessageType.EXCEPTION:
6406
      x = TApplicationException()
6407
      x.read(self._iprot)
6408
      self._iprot.readMessageEnd()
6409
      raise x
6410
    result = getAmazonOutSyncItems_result()
6411
    result.read(self._iprot)
6412
    self._iprot.readMessageEnd()
6413
    if result.success is not None:
6414
      return result.success
6415
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
6416
 
6417
  def getAllPrivateDealsComparison(self, ):
6418
    self.send_getAllPrivateDealsComparison()
6419
    return self.recv_getAllPrivateDealsComparison()
6420
 
6421
  def send_getAllPrivateDealsComparison(self, ):
6422
    self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)
6423
    args = getAllPrivateDealsComparison_args()
6424
    args.write(self._oprot)
6425
    self._oprot.writeMessageEnd()
6426
    self._oprot.trans.flush()
6427
 
6428
  def recv_getAllPrivateDealsComparison(self, ):
6429
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6430
    if mtype == TMessageType.EXCEPTION:
6431
      x = TApplicationException()
6432
      x.read(self._iprot)
6433
      self._iprot.readMessageEnd()
6434
      raise x
6435
    result = getAllPrivateDealsComparison_result()
6436
    result.read(self._iprot)
6437
    self._iprot.readMessageEnd()
6438
    if result.success is not None:
6439
      return result.success
6440
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
6441
 
12133 kshitij.so 6442
  def getAllSnapdealMarketplaceItem(self, ):
6443
    self.send_getAllSnapdealMarketplaceItem()
6444
    return self.recv_getAllSnapdealMarketplaceItem()
11905 kshitij.so 6445
 
12133 kshitij.so 6446
  def send_getAllSnapdealMarketplaceItem(self, ):
6447
    self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)
6448
    args = getAllSnapdealMarketplaceItem_args()
6449
    args.write(self._oprot)
6450
    self._oprot.writeMessageEnd()
6451
    self._oprot.trans.flush()
6452
 
6453
  def recv_getAllSnapdealMarketplaceItem(self, ):
6454
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6455
    if mtype == TMessageType.EXCEPTION:
6456
      x = TApplicationException()
6457
      x.read(self._iprot)
6458
      self._iprot.readMessageEnd()
6459
      raise x
6460
    result = getAllSnapdealMarketplaceItem_result()
6461
    result.read(self._iprot)
6462
    self._iprot.readMessageEnd()
6463
    if result.success is not None:
6464
      return result.success
6465
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
6466
 
6467
  def getAllFlipkartMarketplaceItem(self, ):
6468
    self.send_getAllFlipkartMarketplaceItem()
6469
    return self.recv_getAllFlipkartMarketplaceItem()
6470
 
6471
  def send_getAllFlipkartMarketplaceItem(self, ):
6472
    self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)
6473
    args = getAllFlipkartMarketplaceItem_args()
6474
    args.write(self._oprot)
6475
    self._oprot.writeMessageEnd()
6476
    self._oprot.trans.flush()
6477
 
6478
  def recv_getAllFlipkartMarketplaceItem(self, ):
6479
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6480
    if mtype == TMessageType.EXCEPTION:
6481
      x = TApplicationException()
6482
      x.read(self._iprot)
6483
      self._iprot.readMessageEnd()
6484
      raise x
6485
    result = getAllFlipkartMarketplaceItem_result()
6486
    result.read(self._iprot)
6487
    self._iprot.readMessageEnd()
6488
    if result.success is not None:
6489
      return result.success
6490
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
6491
 
12243 kshitij.so 6492
  def addCompetitorScraping(self, competitorPricingMap):
6493
    """
6494
    Parameters:
6495
     - competitorPricingMap
6496
    """
6497
    self.send_addCompetitorScraping(competitorPricingMap)
6498
    self.recv_addCompetitorScraping()
12133 kshitij.so 6499
 
12243 kshitij.so 6500
  def send_addCompetitorScraping(self, competitorPricingMap):
6501
    self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)
6502
    args = addCompetitorScraping_args()
6503
    args.competitorPricingMap = competitorPricingMap
6504
    args.write(self._oprot)
6505
    self._oprot.writeMessageEnd()
6506
    self._oprot.trans.flush()
6507
 
6508
  def recv_addCompetitorScraping(self, ):
6509
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6510
    if mtype == TMessageType.EXCEPTION:
6511
      x = TApplicationException()
6512
      x.read(self._iprot)
6513
      self._iprot.readMessageEnd()
6514
      raise x
6515
    result = addCompetitorScraping_result()
6516
    result.read(self._iprot)
6517
    self._iprot.readMessageEnd()
6518
    return
6519
 
6520
  def getPreviousCompetitorScraping(self, delta):
6521
    """
6522
    Parameters:
6523
     - delta
6524
    """
6525
    self.send_getPreviousCompetitorScraping(delta)
6526
    return self.recv_getPreviousCompetitorScraping()
6527
 
6528
  def send_getPreviousCompetitorScraping(self, delta):
6529
    self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)
6530
    args = getPreviousCompetitorScraping_args()
6531
    args.delta = delta
6532
    args.write(self._oprot)
6533
    self._oprot.writeMessageEnd()
6534
    self._oprot.trans.flush()
6535
 
6536
  def recv_getPreviousCompetitorScraping(self, ):
6537
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6538
    if mtype == TMessageType.EXCEPTION:
6539
      x = TApplicationException()
6540
      x.read(self._iprot)
6541
      self._iprot.readMessageEnd()
6542
      raise x
6543
    result = getPreviousCompetitorScraping_result()
6544
    result.read(self._iprot)
6545
    self._iprot.readMessageEnd()
6546
    if result.success is not None:
6547
      return result.success
6548
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
6549
 
12256 kshitij.so 6550
  def getUploadResultById(self, uploadId):
6551
    """
6552
    Parameters:
6553
     - uploadId
6554
    """
6555
    self.send_getUploadResultById(uploadId)
6556
    return self.recv_getUploadResultById()
12243 kshitij.so 6557
 
12256 kshitij.so 6558
  def send_getUploadResultById(self, uploadId):
6559
    self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)
6560
    args = getUploadResultById_args()
6561
    args.uploadId = uploadId
6562
    args.write(self._oprot)
6563
    self._oprot.writeMessageEnd()
6564
    self._oprot.trans.flush()
6565
 
6566
  def recv_getUploadResultById(self, ):
6567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6568
    if mtype == TMessageType.EXCEPTION:
6569
      x = TApplicationException()
6570
      x.read(self._iprot)
6571
      self._iprot.readMessageEnd()
6572
      raise x
6573
    result = getUploadResultById_result()
6574
    result.read(self._iprot)
6575
    self._iprot.readMessageEnd()
6576
    if result.success is not None:
6577
      return result.success
6578
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6579
 
12363 kshitij.so 6580
  def addAmazonPromotion(self, amazonPromotions):
6581
    """
6582
    Parameters:
6583
     - amazonPromotions
6584
    """
6585
    self.send_addAmazonPromotion(amazonPromotions)
6586
    return self.recv_addAmazonPromotion()
12256 kshitij.so 6587
 
12363 kshitij.so 6588
  def send_addAmazonPromotion(self, amazonPromotions):
6589
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
6590
    args = addAmazonPromotion_args()
6591
    args.amazonPromotions = amazonPromotions
6592
    args.write(self._oprot)
6593
    self._oprot.writeMessageEnd()
6594
    self._oprot.trans.flush()
6595
 
6596
  def recv_addAmazonPromotion(self, ):
6597
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6598
    if mtype == TMessageType.EXCEPTION:
6599
      x = TApplicationException()
6600
      x.read(self._iprot)
6601
      self._iprot.readMessageEnd()
6602
      raise x
6603
    result = addAmazonPromotion_result()
6604
    result.read(self._iprot)
6605
    self._iprot.readMessageEnd()
6606
    if result.success is not None:
6607
      return result.success
12947 kshitij.so 6608
    if result.cex is not None:
6609
      raise result.cex
12363 kshitij.so 6610
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
6611
 
6612
  def getAmazonPromotion(self, startDate, endDate):
6613
    """
6614
    Parameters:
6615
     - startDate
6616
     - endDate
6617
    """
6618
    self.send_getAmazonPromotion(startDate, endDate)
6619
    return self.recv_getAmazonPromotion()
6620
 
6621
  def send_getAmazonPromotion(self, startDate, endDate):
6622
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
6623
    args = getAmazonPromotion_args()
6624
    args.startDate = startDate
6625
    args.endDate = endDate
6626
    args.write(self._oprot)
6627
    self._oprot.writeMessageEnd()
6628
    self._oprot.trans.flush()
6629
 
6630
  def recv_getAmazonPromotion(self, ):
6631
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6632
    if mtype == TMessageType.EXCEPTION:
6633
      x = TApplicationException()
6634
      x.read(self._iprot)
6635
      self._iprot.readMessageEnd()
6636
      raise x
6637
    result = getAmazonPromotion_result()
6638
    result.read(self._iprot)
6639
    self._iprot.readMessageEnd()
6640
    if result.success is not None:
6641
      return result.success
6642
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
6643
 
6644
  def updateAmazonPromotion(self, amazonPromotions):
6645
    """
6646
    Parameters:
6647
     - amazonPromotions
6648
    """
6649
    self.send_updateAmazonPromotion(amazonPromotions)
6650
    return self.recv_updateAmazonPromotion()
6651
 
6652
  def send_updateAmazonPromotion(self, amazonPromotions):
6653
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
6654
    args = updateAmazonPromotion_args()
6655
    args.amazonPromotions = amazonPromotions
6656
    args.write(self._oprot)
6657
    self._oprot.writeMessageEnd()
6658
    self._oprot.trans.flush()
6659
 
6660
  def recv_updateAmazonPromotion(self, ):
6661
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6662
    if mtype == TMessageType.EXCEPTION:
6663
      x = TApplicationException()
6664
      x.read(self._iprot)
6665
      self._iprot.readMessageEnd()
6666
      raise x
6667
    result = updateAmazonPromotion_result()
6668
    result.read(self._iprot)
6669
    self._iprot.readMessageEnd()
6670
    if result.success is not None:
6671
      return result.success
6672
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
6673
 
12567 amit.gupta 6674
  def markPartiallyActive(self, itemId, categoryId):
6675
    """
6676
    Parameters:
6677
     - itemId
6678
     - categoryId
6679
    """
6680
    self.send_markPartiallyActive(itemId, categoryId)
6681
    return self.recv_markPartiallyActive()
12363 kshitij.so 6682
 
12567 amit.gupta 6683
  def send_markPartiallyActive(self, itemId, categoryId):
6684
    self._oprot.writeMessageBegin('markPartiallyActive', TMessageType.CALL, self._seqid)
6685
    args = markPartiallyActive_args()
6686
    args.itemId = itemId
6687
    args.categoryId = categoryId
6688
    args.write(self._oprot)
6689
    self._oprot.writeMessageEnd()
6690
    self._oprot.trans.flush()
6691
 
6692
  def recv_markPartiallyActive(self, ):
6693
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6694
    if mtype == TMessageType.EXCEPTION:
6695
      x = TApplicationException()
6696
      x.read(self._iprot)
6697
      self._iprot.readMessageEnd()
6698
      raise x
6699
    result = markPartiallyActive_result()
6700
    result.read(self._iprot)
6701
    self._iprot.readMessageEnd()
6702
    if result.success is not None:
6703
      return result.success
6704
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");
6705
 
6706
  def updateItemStateVat(self, itemId, statevat):
6707
    """
6708
    Parameters:
6709
     - itemId
6710
     - statevat
6711
    """
6712
    self.send_updateItemStateVat(itemId, statevat)
6713
    return self.recv_updateItemStateVat()
6714
 
6715
  def send_updateItemStateVat(self, itemId, statevat):
6716
    self._oprot.writeMessageBegin('updateItemStateVat', TMessageType.CALL, self._seqid)
6717
    args = updateItemStateVat_args()
6718
    args.itemId = itemId
6719
    args.statevat = statevat
6720
    args.write(self._oprot)
6721
    self._oprot.writeMessageEnd()
6722
    self._oprot.trans.flush()
6723
 
6724
  def recv_updateItemStateVat(self, ):
6725
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6726
    if mtype == TMessageType.EXCEPTION:
6727
      x = TApplicationException()
6728
      x.read(self._iprot)
6729
      self._iprot.readMessageEnd()
6730
      raise x
6731
    result = updateItemStateVat_result()
6732
    result.read(self._iprot)
6733
    self._iprot.readMessageEnd()
6734
    if result.success is not None:
6735
      return result.success
6736
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6737
 
12620 amit.gupta 6738
  def getExAffiliateItemInfo(self, ):
6739
    self.send_getExAffiliateItemInfo()
6740
    return self.recv_getExAffiliateItemInfo()
12567 amit.gupta 6741
 
12620 amit.gupta 6742
  def send_getExAffiliateItemInfo(self, ):
6743
    self._oprot.writeMessageBegin('getExAffiliateItemInfo', TMessageType.CALL, self._seqid)
6744
    args = getExAffiliateItemInfo_args()
6745
    args.write(self._oprot)
6746
    self._oprot.writeMessageEnd()
6747
    self._oprot.trans.flush()
6748
 
6749
  def recv_getExAffiliateItemInfo(self, ):
6750
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6751
    if mtype == TMessageType.EXCEPTION:
6752
      x = TApplicationException()
6753
      x.read(self._iprot)
6754
      self._iprot.readMessageEnd()
6755
      raise x
6756
    result = getExAffiliateItemInfo_result()
6757
    result.read(self._iprot)
6758
    self._iprot.readMessageEnd()
6759
    if result.success is not None:
6760
      return result.success
6761
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
6762
 
12888 kshitij.so 6763
  def getAllItemstoListOnFbg(self, ):
6764
    self.send_getAllItemstoListOnFbg()
6765
    return self.recv_getAllItemstoListOnFbg()
12620 amit.gupta 6766
 
12888 kshitij.so 6767
  def send_getAllItemstoListOnFbg(self, ):
6768
    self._oprot.writeMessageBegin('getAllItemstoListOnFbg', TMessageType.CALL, self._seqid)
6769
    args = getAllItemstoListOnFbg_args()
6770
    args.write(self._oprot)
6771
    self._oprot.writeMessageEnd()
6772
    self._oprot.trans.flush()
6773
 
6774
  def recv_getAllItemstoListOnFbg(self, ):
6775
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6776
    if mtype == TMessageType.EXCEPTION:
6777
      x = TApplicationException()
6778
      x.read(self._iprot)
6779
      self._iprot.readMessageEnd()
6780
      raise x
6781
    result = getAllItemstoListOnFbg_result()
6782
    result.read(self._iprot)
6783
    self._iprot.readMessageEnd()
6784
    if result.success is not None:
6785
      return result.success
6786
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
6787
 
12892 kshitij.so 6788
  def getAllFbgListedItems(self, ):
6789
    self.send_getAllFbgListedItems()
6790
    return self.recv_getAllFbgListedItems()
12888 kshitij.so 6791
 
12892 kshitij.so 6792
  def send_getAllFbgListedItems(self, ):
6793
    self._oprot.writeMessageBegin('getAllFbgListedItems', TMessageType.CALL, self._seqid)
6794
    args = getAllFbgListedItems_args()
6795
    args.write(self._oprot)
6796
    self._oprot.writeMessageEnd()
6797
    self._oprot.trans.flush()
6798
 
6799
  def recv_getAllFbgListedItems(self, ):
6800
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6801
    if mtype == TMessageType.EXCEPTION:
6802
      x = TApplicationException()
6803
      x.read(self._iprot)
6804
      self._iprot.readMessageEnd()
6805
      raise x
6806
    result = getAllFbgListedItems_result()
6807
    result.read(self._iprot)
6808
    self._iprot.readMessageEnd()
6809
    if result.success is not None:
6810
      return result.success
6811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbgListedItems failed: unknown result");
6812
 
13136 amit.gupta 6813
  def checkServices(self, lines):
6814
    """
6815
    Parameters:
6816
     - lines
6817
    """
6818
    self.send_checkServices(lines)
6819
    return self.recv_checkServices()
12892 kshitij.so 6820
 
13136 amit.gupta 6821
  def send_checkServices(self, lines):
6822
    self._oprot.writeMessageBegin('checkServices', TMessageType.CALL, self._seqid)
6823
    args = checkServices_args()
6824
    args.lines = lines
6825
    args.write(self._oprot)
6826
    self._oprot.writeMessageEnd()
6827
    self._oprot.trans.flush()
6828
 
6829
  def recv_checkServices(self, ):
6830
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6831
    if mtype == TMessageType.EXCEPTION:
6832
      x = TApplicationException()
6833
      x.read(self._iprot)
6834
      self._iprot.readMessageEnd()
6835
      raise x
6836
    result = checkServices_result()
6837
    result.read(self._iprot)
6838
    self._iprot.readMessageEnd()
6839
    if result.success is not None:
6840
      return result.success
6841
    if result.cex is not None:
6842
      raise result.cex
6843
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkServices failed: unknown result");
6844
 
6845
 
5944 mandeep.dh 6846
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6847
  def __init__(self, handler):
6848
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6849
    self._processMap["addItem"] = Processor.process_addItem
6850
    self._processMap["updateItem"] = Processor.process_updateItem
6851
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 6852
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 6853
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
6854
    self._processMap["startItemOn"] = Processor.process_startItemOn
6855
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
6856
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
6857
    self._processMap["getItem"] = Processor.process_getItem
6858
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
6859
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
6860
    self._processMap["getAllItems"] = Processor.process_getAllItems
6861
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
6862
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
12567 amit.gupta 6863
    self._processMap["getVatRates"] = Processor.process_getVatRates
5944 mandeep.dh 6864
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
6865
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
6866
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
6867
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
6868
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
6869
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
6870
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
6871
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
6872
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
6873
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
6874
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
6875
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
6876
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
6877
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
6878
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
6879
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
6880
    self._processMap["addCategory"] = Processor.process_addCategory
6881
    self._processMap["getCategory"] = Processor.process_getCategory
6882
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
6883
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
6884
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 6885
    self._processMap["addTag"] = Processor.process_addTag
6886
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
6887
    self._processMap["deleteTag"] = Processor.process_deleteTag
6888
    self._processMap["getAllTags"] = Processor.process_getAllTags
6889
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 6890
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 6891
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 6892
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 6893
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
6894
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
6895
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
6896
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 6897
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 6898
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 6899
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
6900
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 6901
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
6902
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
6903
    self._processMap["addCampaign"] = Processor.process_addCampaign
6904
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
6905
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
6906
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 6907
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 6908
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
6909
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
6910
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
6911
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
6912
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
6913
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
6914
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
6915
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
6916
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
6917
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
6918
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
6919
    self._processMap["getAllSources"] = Processor.process_getAllSources
6920
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
6921
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
6922
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
6923
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
6924
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
6925
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
6926
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
6927
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
6928
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
6929
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
6930
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
6931
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
6932
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
6933
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 6934
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
6935
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 6936
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 6937
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 6938
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
6939
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 6940
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 6941
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 6942
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
6943
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 6944
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
6945
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 6946
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 6947
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 6948
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 6949
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 6950
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
6951
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
6952
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 6953
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
6954
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
6955
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 6956
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
6957
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
6958
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 6959
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 6960
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 6961
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 6962
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
6963
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 6964
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
6965
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
6966
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 6967
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 6968
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 6969
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
6970
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 6971
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 6972
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
6973
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 6974
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 6975
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 6976
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
6977
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
6978
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
6979
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 6980
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 6981
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 6982
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
6983
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
6984
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
6985
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
6986
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 6987
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
6988
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 6989
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 6990
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
6991
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 6992
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 6993
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 6994
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 6995
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
6996
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
6997
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
6998
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
6999
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
7000
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
7001
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
7002
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 7003
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
11015 kshitij.so 7004
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
10909 vikram.rag 7005
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
10924 vikram.rag 7006
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
11015 kshitij.so 7007
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
7008
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
11531 vikram.rag 7009
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
7010
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
11592 amit.gupta 7011
    self._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDeals
11531 vikram.rag 7012
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
11635 vikram.rag 7013
    self._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIds
11645 amit.gupta 7014
    self._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCount
11905 kshitij.so 7015
    self._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItems
7016
    self._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparison
12133 kshitij.so 7017
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
7018
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
12243 kshitij.so 7019
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
7020
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
12256 kshitij.so 7021
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
12363 kshitij.so 7022
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
7023
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
7024
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
12567 amit.gupta 7025
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
7026
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
12620 amit.gupta 7027
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
12888 kshitij.so 7028
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
12892 kshitij.so 7029
    self._processMap["getAllFbgListedItems"] = Processor.process_getAllFbgListedItems
13136 amit.gupta 7030
    self._processMap["checkServices"] = Processor.process_checkServices
5944 mandeep.dh 7031
 
7032
  def process(self, iprot, oprot):
7033
    (name, type, seqid) = iprot.readMessageBegin()
7034
    if name not in self._processMap:
7035
      iprot.skip(TType.STRUCT)
7036
      iprot.readMessageEnd()
7037
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
7038
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
7039
      x.write(oprot)
7040
      oprot.writeMessageEnd()
7041
      oprot.trans.flush()
7042
      return
7043
    else:
7044
      self._processMap[name](self, seqid, iprot, oprot)
7045
    return True
7046
 
7047
  def process_addItem(self, seqid, iprot, oprot):
7048
    args = addItem_args()
7049
    args.read(iprot)
7050
    iprot.readMessageEnd()
7051
    result = addItem_result()
7052
    try:
7053
      result.success = self._handler.addItem(args.item)
7054
    except CatalogServiceException, cex:
7055
      result.cex = cex
7056
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
7057
    result.write(oprot)
7058
    oprot.writeMessageEnd()
7059
    oprot.trans.flush()
7060
 
7061
  def process_updateItem(self, seqid, iprot, oprot):
7062
    args = updateItem_args()
7063
    args.read(iprot)
7064
    iprot.readMessageEnd()
7065
    result = updateItem_result()
7066
    try:
7067
      result.success = self._handler.updateItem(args.item)
7068
    except CatalogServiceException, cex:
7069
      result.cex = cex
7070
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
7071
    result.write(oprot)
7072
    oprot.writeMessageEnd()
7073
    oprot.trans.flush()
7074
 
7075
  def process_isActive(self, seqid, iprot, oprot):
7076
    args = isActive_args()
7077
    args.read(iprot)
7078
    iprot.readMessageEnd()
7079
    result = isActive_result()
7080
    try:
7081
      result.success = self._handler.isActive(args.itemId)
7082
    except CatalogServiceException, isex:
7083
      result.isex = isex
7084
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
7085
    result.write(oprot)
7086
    oprot.writeMessageEnd()
7087
    oprot.trans.flush()
7088
 
7438 amit.gupta 7089
  def process_getItemsStatus(self, seqid, iprot, oprot):
7090
    args = getItemsStatus_args()
7091
    args.read(iprot)
7092
    iprot.readMessageEnd()
7093
    result = getItemsStatus_result()
7094
    try:
7095
      result.success = self._handler.getItemsStatus(args.itemIds)
7096
    except CatalogServiceException, isex:
7097
      result.isex = isex
7098
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
7099
    result.write(oprot)
7100
    oprot.writeMessageEnd()
7101
    oprot.trans.flush()
7102
 
5944 mandeep.dh 7103
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
7104
    args = getItemStatusDescription_args()
7105
    args.read(iprot)
7106
    iprot.readMessageEnd()
7107
    result = getItemStatusDescription_result()
7108
    try:
7109
      result.success = self._handler.getItemStatusDescription(args.itemId)
7110
    except CatalogServiceException, isex:
7111
      result.isex = isex
7112
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
7113
    result.write(oprot)
7114
    oprot.writeMessageEnd()
7115
    oprot.trans.flush()
7116
 
7117
  def process_startItemOn(self, seqid, iprot, oprot):
7118
    args = startItemOn_args()
7119
    args.read(iprot)
7120
    iprot.readMessageEnd()
7121
    result = startItemOn_result()
7122
    try:
7123
      self._handler.startItemOn(args.item_id, args.timestamp)
7124
    except CatalogServiceException, cex:
7125
      result.cex = cex
7126
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
7127
    result.write(oprot)
7128
    oprot.writeMessageEnd()
7129
    oprot.trans.flush()
7130
 
7131
  def process_retireItemOn(self, seqid, iprot, oprot):
7132
    args = retireItemOn_args()
7133
    args.read(iprot)
7134
    iprot.readMessageEnd()
7135
    result = retireItemOn_result()
7136
    try:
7137
      self._handler.retireItemOn(args.item_id, args.timestamp)
7138
    except CatalogServiceException, cex:
7139
      result.cex = cex
7140
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
7141
    result.write(oprot)
7142
    oprot.writeMessageEnd()
7143
    oprot.trans.flush()
7144
 
7145
  def process_changeItemStatus(self, seqid, iprot, oprot):
7146
    args = changeItemStatus_args()
7147
    args.read(iprot)
7148
    iprot.readMessageEnd()
7149
    result = changeItemStatus_result()
7150
    try:
7151
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
7152
    except CatalogServiceException, cex:
7153
      result.cex = cex
7154
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
7155
    result.write(oprot)
7156
    oprot.writeMessageEnd()
7157
    oprot.trans.flush()
7158
 
7159
  def process_getItem(self, seqid, iprot, oprot):
7160
    args = getItem_args()
7161
    args.read(iprot)
7162
    iprot.readMessageEnd()
7163
    result = getItem_result()
7164
    try:
7165
      result.success = self._handler.getItem(args.item_id)
7166
    except CatalogServiceException, cex:
7167
      result.cex = cex
7168
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
7169
    result.write(oprot)
7170
    oprot.writeMessageEnd()
7171
    oprot.trans.flush()
7172
 
7173
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
7174
    args = getItemsByCatalogId_args()
7175
    args.read(iprot)
7176
    iprot.readMessageEnd()
7177
    result = getItemsByCatalogId_result()
7178
    try:
7179
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
7180
    except CatalogServiceException, cex:
7181
      result.cex = cex
7182
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
7183
    result.write(oprot)
7184
    oprot.writeMessageEnd()
7185
    oprot.trans.flush()
7186
 
7187
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
7188
    args = getValidItemsByCatalogId_args()
7189
    args.read(iprot)
7190
    iprot.readMessageEnd()
7191
    result = getValidItemsByCatalogId_result()
7192
    try:
7193
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
7194
    except CatalogServiceException, cex:
7195
      result.cex = cex
7196
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
7197
    result.write(oprot)
7198
    oprot.writeMessageEnd()
7199
    oprot.trans.flush()
7200
 
7201
  def process_getAllItems(self, seqid, iprot, oprot):
7202
    args = getAllItems_args()
7203
    args.read(iprot)
7204
    iprot.readMessageEnd()
7205
    result = getAllItems_result()
7206
    try:
7207
      result.success = self._handler.getAllItems(args.isActive)
7208
    except CatalogServiceException, cex:
7209
      result.cex = cex
7210
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
7211
    result.write(oprot)
7212
    oprot.writeMessageEnd()
7213
    oprot.trans.flush()
7214
 
7215
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
7216
    args = getAllItemsByStatus_args()
7217
    args.read(iprot)
7218
    iprot.readMessageEnd()
7219
    result = getAllItemsByStatus_result()
7220
    try:
7221
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
7222
    except CatalogServiceException, cex:
7223
      result.cex = cex
7224
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
7225
    result.write(oprot)
7226
    oprot.writeMessageEnd()
7227
    oprot.trans.flush()
7228
 
7229
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
7230
    args = markItemAsContentComplete_args()
7231
    args.read(iprot)
7232
    iprot.readMessageEnd()
7233
    result = markItemAsContentComplete_result()
7234
    try:
9253 rajveer 7235
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 7236
    except CatalogServiceException, cex:
7237
      result.cex = cex
7238
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
7239
    result.write(oprot)
7240
    oprot.writeMessageEnd()
7241
    oprot.trans.flush()
7242
 
12567 amit.gupta 7243
  def process_getVatRates(self, seqid, iprot, oprot):
7244
    args = getVatRates_args()
7245
    args.read(iprot)
7246
    iprot.readMessageEnd()
7247
    result = getVatRates_result()
7248
    try:
7249
      result.success = self._handler.getVatRates(args.itemId, args.categoryId)
7250
    except CatalogServiceException, cex:
7251
      result.cex = cex
7252
    oprot.writeMessageBegin("getVatRates", TMessageType.REPLY, seqid)
7253
    result.write(oprot)
7254
    oprot.writeMessageEnd()
7255
    oprot.trans.flush()
7256
 
5944 mandeep.dh 7257
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
7258
    args = getAllItemsInRange_args()
7259
    args.read(iprot)
7260
    iprot.readMessageEnd()
7261
    result = getAllItemsInRange_result()
7262
    try:
7263
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
7264
    except CatalogServiceException, cex:
7265
      result.cex = cex
7266
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
7267
    result.write(oprot)
7268
    oprot.writeMessageEnd()
7269
    oprot.trans.flush()
7270
 
7271
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
7272
    args = getAllItemsByStatusInRange_args()
7273
    args.read(iprot)
7274
    iprot.readMessageEnd()
7275
    result = getAllItemsByStatusInRange_result()
7276
    try:
7277
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
7278
    except CatalogServiceException, cex:
7279
      result.cex = cex
7280
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
7281
    result.write(oprot)
7282
    oprot.writeMessageEnd()
7283
    oprot.trans.flush()
7284
 
7285
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
7286
    args = getItemCountByStatus_args()
7287
    args.read(iprot)
7288
    iprot.readMessageEnd()
7289
    result = getItemCountByStatus_result()
7290
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
7291
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
7292
    result.write(oprot)
7293
    oprot.writeMessageEnd()
7294
    oprot.trans.flush()
7295
 
7296
  def process_getBestSellers(self, seqid, iprot, oprot):
7297
    args = getBestSellers_args()
7298
    args.read(iprot)
7299
    iprot.readMessageEnd()
7300
    result = getBestSellers_result()
7301
    try:
7302
      result.success = self._handler.getBestSellers()
7303
    except CatalogServiceException, isex:
7304
      result.isex = isex
7305
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
7306
    result.write(oprot)
7307
    oprot.writeMessageEnd()
7308
    oprot.trans.flush()
7309
 
7310
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
7311
    args = getBestSellersCatalogIds_args()
7312
    args.read(iprot)
7313
    iprot.readMessageEnd()
7314
    result = getBestSellersCatalogIds_result()
7315
    try:
7316
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7317
    except CatalogServiceException, cex:
7318
      result.cex = cex
7319
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
7320
    result.write(oprot)
7321
    oprot.writeMessageEnd()
7322
    oprot.trans.flush()
7323
 
7324
  def process_getBestSellersCount(self, seqid, iprot, oprot):
7325
    args = getBestSellersCount_args()
7326
    args.read(iprot)
7327
    iprot.readMessageEnd()
7328
    result = getBestSellersCount_result()
7329
    try:
7330
      result.success = self._handler.getBestSellersCount()
7331
    except CatalogServiceException, cex:
7332
      result.cex = cex
7333
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
7334
    result.write(oprot)
7335
    oprot.writeMessageEnd()
7336
    oprot.trans.flush()
7337
 
7338
  def process_getBestDeals(self, seqid, iprot, oprot):
7339
    args = getBestDeals_args()
7340
    args.read(iprot)
7341
    iprot.readMessageEnd()
7342
    result = getBestDeals_result()
7343
    try:
7344
      result.success = self._handler.getBestDeals()
7345
    except CatalogServiceException, isex:
7346
      result.isex = isex
7347
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
7348
    result.write(oprot)
7349
    oprot.writeMessageEnd()
7350
    oprot.trans.flush()
7351
 
7352
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
7353
    args = getBestDealsCatalogIds_args()
7354
    args.read(iprot)
7355
    iprot.readMessageEnd()
7356
    result = getBestDealsCatalogIds_result()
7357
    try:
7358
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7359
    except CatalogServiceException, cex:
7360
      result.cex = cex
7361
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
7362
    result.write(oprot)
7363
    oprot.writeMessageEnd()
7364
    oprot.trans.flush()
7365
 
7366
  def process_getBestDealsCount(self, seqid, iprot, oprot):
7367
    args = getBestDealsCount_args()
7368
    args.read(iprot)
7369
    iprot.readMessageEnd()
7370
    result = getBestDealsCount_result()
7371
    try:
7372
      result.success = self._handler.getBestDealsCount()
7373
    except CatalogServiceException, cex:
7374
      result.cex = cex
7375
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
7376
    result.write(oprot)
7377
    oprot.writeMessageEnd()
7378
    oprot.trans.flush()
7379
 
7380
  def process_getComingSoon(self, seqid, iprot, oprot):
7381
    args = getComingSoon_args()
7382
    args.read(iprot)
7383
    iprot.readMessageEnd()
7384
    result = getComingSoon_result()
7385
    try:
7386
      result.success = self._handler.getComingSoon()
7387
    except CatalogServiceException, isex:
7388
      result.isex = isex
7389
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
7390
    result.write(oprot)
7391
    oprot.writeMessageEnd()
7392
    oprot.trans.flush()
7393
 
7394
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
7395
    args = getComingSoonCatalogIds_args()
7396
    args.read(iprot)
7397
    iprot.readMessageEnd()
7398
    result = getComingSoonCatalogIds_result()
7399
    try:
7400
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7401
    except CatalogServiceException, cex:
7402
      result.cex = cex
7403
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
7404
    result.write(oprot)
7405
    oprot.writeMessageEnd()
7406
    oprot.trans.flush()
7407
 
7408
  def process_getComingSoonCount(self, seqid, iprot, oprot):
7409
    args = getComingSoonCount_args()
7410
    args.read(iprot)
7411
    iprot.readMessageEnd()
7412
    result = getComingSoonCount_result()
7413
    try:
7414
      result.success = self._handler.getComingSoonCount()
7415
    except CatalogServiceException, cex:
7416
      result.cex = cex
7417
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
7418
    result.write(oprot)
7419
    oprot.writeMessageEnd()
7420
    oprot.trans.flush()
7421
 
7422
  def process_getLatestArrivals(self, seqid, iprot, oprot):
7423
    args = getLatestArrivals_args()
7424
    args.read(iprot)
7425
    iprot.readMessageEnd()
7426
    result = getLatestArrivals_result()
7427
    try:
7428
      result.success = self._handler.getLatestArrivals()
7429
    except CatalogServiceException, isex:
7430
      result.isex = isex
7431
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
7432
    result.write(oprot)
7433
    oprot.writeMessageEnd()
7434
    oprot.trans.flush()
7435
 
7436
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
7437
    args = getLatestArrivalsCatalogIds_args()
7438
    args.read(iprot)
7439
    iprot.readMessageEnd()
7440
    result = getLatestArrivalsCatalogIds_result()
7441
    try:
7442
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
7443
    except CatalogServiceException, cex:
7444
      result.cex = cex
7445
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
7446
    result.write(oprot)
7447
    oprot.writeMessageEnd()
7448
    oprot.trans.flush()
7449
 
7450
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
7451
    args = getLatestArrivalsCount_args()
7452
    args.read(iprot)
7453
    iprot.readMessageEnd()
7454
    result = getLatestArrivalsCount_result()
7455
    try:
7456
      result.success = self._handler.getLatestArrivalsCount()
7457
    except CatalogServiceException, cex:
7458
      result.cex = cex
7459
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
7460
    result.write(oprot)
7461
    oprot.writeMessageEnd()
7462
    oprot.trans.flush()
7463
 
7464
  def process_generateNewEntityID(self, seqid, iprot, oprot):
7465
    args = generateNewEntityID_args()
7466
    args.read(iprot)
7467
    iprot.readMessageEnd()
7468
    result = generateNewEntityID_result()
7469
    result.success = self._handler.generateNewEntityID()
7470
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
7471
    result.write(oprot)
7472
    oprot.writeMessageEnd()
7473
    oprot.trans.flush()
7474
 
7475
  def process_addCategory(self, seqid, iprot, oprot):
7476
    args = addCategory_args()
7477
    args.read(iprot)
7478
    iprot.readMessageEnd()
7479
    result = addCategory_result()
7480
    result.success = self._handler.addCategory(args.category)
7481
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
7482
    result.write(oprot)
7483
    oprot.writeMessageEnd()
7484
    oprot.trans.flush()
7485
 
7486
  def process_getCategory(self, seqid, iprot, oprot):
7487
    args = getCategory_args()
7488
    args.read(iprot)
7489
    iprot.readMessageEnd()
7490
    result = getCategory_result()
7491
    result.success = self._handler.getCategory(args.id)
7492
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
7493
    result.write(oprot)
7494
    oprot.writeMessageEnd()
7495
    oprot.trans.flush()
7496
 
7497
  def process_getAllCategories(self, seqid, iprot, oprot):
7498
    args = getAllCategories_args()
7499
    args.read(iprot)
7500
    iprot.readMessageEnd()
7501
    result = getAllCategories_result()
7502
    result.success = self._handler.getAllCategories()
7503
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
7504
    result.write(oprot)
7505
    oprot.writeMessageEnd()
7506
    oprot.trans.flush()
7507
 
7508
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
7509
    args = getAllSimilarItems_args()
7510
    args.read(iprot)
7511
    iprot.readMessageEnd()
7512
    result = getAllSimilarItems_result()
7513
    result.success = self._handler.getAllSimilarItems(args.itemId)
7514
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
7515
    result.write(oprot)
7516
    oprot.writeMessageEnd()
7517
    oprot.trans.flush()
7518
 
7519
  def process_addSimilarItem(self, seqid, iprot, oprot):
7520
    args = addSimilarItem_args()
7521
    args.read(iprot)
7522
    iprot.readMessageEnd()
7523
    result = addSimilarItem_result()
7524
    try:
7525
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
7526
    except CatalogServiceException, cex:
7527
      result.cex = cex
7528
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
7529
    result.write(oprot)
7530
    oprot.writeMessageEnd()
7531
    oprot.trans.flush()
7532
 
6512 kshitij.so 7533
  def process_addTag(self, seqid, iprot, oprot):
7534
    args = addTag_args()
7535
    args.read(iprot)
7536
    iprot.readMessageEnd()
7537
    result = addTag_result()
7538
    result.success = self._handler.addTag(args.displayName, args.itemId)
7539
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
7540
    result.write(oprot)
7541
    oprot.writeMessageEnd()
7542
    oprot.trans.flush()
7543
 
7544
  def process_deleteEntityTag(self, seqid, iprot, oprot):
7545
    args = deleteEntityTag_args()
7546
    args.read(iprot)
7547
    iprot.readMessageEnd()
7548
    result = deleteEntityTag_result()
7549
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
7550
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
7551
    result.write(oprot)
7552
    oprot.writeMessageEnd()
7553
    oprot.trans.flush()
7554
 
7555
  def process_deleteTag(self, seqid, iprot, oprot):
7556
    args = deleteTag_args()
7557
    args.read(iprot)
7558
    iprot.readMessageEnd()
7559
    result = deleteTag_result()
7560
    result.success = self._handler.deleteTag(args.displayName)
7561
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
7562
    result.write(oprot)
7563
    oprot.writeMessageEnd()
7564
    oprot.trans.flush()
7565
 
7566
  def process_getAllTags(self, seqid, iprot, oprot):
7567
    args = getAllTags_args()
7568
    args.read(iprot)
7569
    iprot.readMessageEnd()
7570
    result = getAllTags_result()
7571
    result.success = self._handler.getAllTags()
7572
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
7573
    result.write(oprot)
7574
    oprot.writeMessageEnd()
7575
    oprot.trans.flush()
7576
 
7577
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
7578
    args = getAllEntitiesByTagName_args()
7579
    args.read(iprot)
7580
    iprot.readMessageEnd()
7581
    result = getAllEntitiesByTagName_result()
7582
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
7583
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
7584
    result.write(oprot)
7585
    oprot.writeMessageEnd()
7586
    oprot.trans.flush()
7587
 
6845 amit.gupta 7588
  def process_getAllEntityTags(self, seqid, iprot, oprot):
7589
    args = getAllEntityTags_args()
7590
    args.read(iprot)
7591
    iprot.readMessageEnd()
7592
    result = getAllEntityTags_result()
7593
    result.success = self._handler.getAllEntityTags()
7594
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
7595
    result.write(oprot)
7596
    oprot.writeMessageEnd()
7597
    oprot.trans.flush()
7598
 
6850 kshitij.so 7599
  def process_addBanner(self, seqid, iprot, oprot):
7600
    args = addBanner_args()
7601
    args.read(iprot)
7602
    iprot.readMessageEnd()
7603
    result = addBanner_result()
10097 kshitij.so 7604
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 7605
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
7606
    result.write(oprot)
7607
    oprot.writeMessageEnd()
7608
    oprot.trans.flush()
7609
 
8579 kshitij.so 7610
  def process_updateBanner(self, seqid, iprot, oprot):
7611
    args = updateBanner_args()
7612
    args.read(iprot)
7613
    iprot.readMessageEnd()
7614
    result = updateBanner_result()
7615
    result.success = self._handler.updateBanner(args.banner)
7616
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
7617
    result.write(oprot)
7618
    oprot.writeMessageEnd()
7619
    oprot.trans.flush()
7620
 
6850 kshitij.so 7621
  def process_getAllBanners(self, seqid, iprot, oprot):
7622
    args = getAllBanners_args()
7623
    args.read(iprot)
7624
    iprot.readMessageEnd()
7625
    result = getAllBanners_result()
7626
    result.success = self._handler.getAllBanners()
7627
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
7628
    result.write(oprot)
7629
    oprot.writeMessageEnd()
7630
    oprot.trans.flush()
7631
 
7632
  def process_deleteBanner(self, seqid, iprot, oprot):
7633
    args = deleteBanner_args()
7634
    args.read(iprot)
7635
    iprot.readMessageEnd()
7636
    result = deleteBanner_result()
9155 kshitij.so 7637
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 7638
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
7639
    result.write(oprot)
7640
    oprot.writeMessageEnd()
7641
    oprot.trans.flush()
7642
 
7643
  def process_getBannerDetails(self, seqid, iprot, oprot):
7644
    args = getBannerDetails_args()
7645
    args.read(iprot)
7646
    iprot.readMessageEnd()
7647
    result = getBannerDetails_result()
9155 kshitij.so 7648
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 7649
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
7650
    result.write(oprot)
7651
    oprot.writeMessageEnd()
7652
    oprot.trans.flush()
7653
 
7654
  def process_getActiveBanners(self, seqid, iprot, oprot):
7655
    args = getActiveBanners_args()
7656
    args.read(iprot)
7657
    iprot.readMessageEnd()
7658
    result = getActiveBanners_result()
7659
    result.success = self._handler.getActiveBanners()
7660
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
7661
    result.write(oprot)
7662
    oprot.writeMessageEnd()
7663
    oprot.trans.flush()
7664
 
6849 kshitij.so 7665
  def process_addBannerMap(self, seqid, iprot, oprot):
7666
    args = addBannerMap_args()
7667
    args.read(iprot)
7668
    iprot.readMessageEnd()
7669
    result = addBannerMap_result()
8579 kshitij.so 7670
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 7671
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
7672
    result.write(oprot)
7673
    oprot.writeMessageEnd()
7674
    oprot.trans.flush()
7675
 
8579 kshitij.so 7676
  def process_updateBannerMap(self, seqid, iprot, oprot):
7677
    args = updateBannerMap_args()
7678
    args.read(iprot)
7679
    iprot.readMessageEnd()
7680
    result = updateBannerMap_result()
7681
    result.success = self._handler.updateBannerMap(args.bannerMap)
7682
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
7683
    result.write(oprot)
7684
    oprot.writeMessageEnd()
7685
    oprot.trans.flush()
7686
 
6849 kshitij.so 7687
  def process_deleteBannerMap(self, seqid, iprot, oprot):
7688
    args = deleteBannerMap_args()
7689
    args.read(iprot)
7690
    iprot.readMessageEnd()
7691
    result = deleteBannerMap_result()
7692
    result.success = self._handler.deleteBannerMap(args.bannerName)
7693
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
7694
    result.write(oprot)
7695
    oprot.writeMessageEnd()
7696
    oprot.trans.flush()
7697
 
7698
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
7699
    args = getBannerMapDetails_args()
7700
    args.read(iprot)
7701
    iprot.readMessageEnd()
7702
    result = getBannerMapDetails_result()
9155 kshitij.so 7703
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 7704
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
7705
    result.write(oprot)
7706
    oprot.writeMessageEnd()
7707
    oprot.trans.flush()
7708
 
8579 kshitij.so 7709
  def process_addBannerUri(self, seqid, iprot, oprot):
7710
    args = addBannerUri_args()
7711
    args.read(iprot)
7712
    iprot.readMessageEnd()
7713
    result = addBannerUri_result()
7714
    self._handler.addBannerUri(args.bannerUriMappings)
7715
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
7716
    result.write(oprot)
7717
    oprot.writeMessageEnd()
7718
    oprot.trans.flush()
7719
 
7720
  def process_getUriMapping(self, seqid, iprot, oprot):
7721
    args = getUriMapping_args()
7722
    args.read(iprot)
7723
    iprot.readMessageEnd()
7724
    result = getUriMapping_result()
9155 kshitij.so 7725
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 7726
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
7727
    result.write(oprot)
7728
    oprot.writeMessageEnd()
7729
    oprot.trans.flush()
7730
 
7731
  def process_addCampaign(self, seqid, iprot, oprot):
7732
    args = addCampaign_args()
7733
    args.read(iprot)
7734
    iprot.readMessageEnd()
7735
    result = addCampaign_result()
7736
    self._handler.addCampaign(args.campaign)
7737
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
7738
    result.write(oprot)
7739
    oprot.writeMessageEnd()
7740
    oprot.trans.flush()
7741
 
7742
  def process_getCampaigns(self, seqid, iprot, oprot):
7743
    args = getCampaigns_args()
7744
    args.read(iprot)
7745
    iprot.readMessageEnd()
7746
    result = getCampaigns_result()
7747
    result.success = self._handler.getCampaigns(args.campaignName)
7748
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
7749
    result.write(oprot)
7750
    oprot.writeMessageEnd()
7751
    oprot.trans.flush()
7752
 
7753
  def process_deleteCampaign(self, seqid, iprot, oprot):
7754
    args = deleteCampaign_args()
7755
    args.read(iprot)
7756
    iprot.readMessageEnd()
7757
    result = deleteCampaign_result()
7758
    self._handler.deleteCampaign(args.campaignId)
7759
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
7760
    result.write(oprot)
7761
    oprot.writeMessageEnd()
7762
    oprot.trans.flush()
7763
 
7764
  def process_getAllCampaigns(self, seqid, iprot, oprot):
7765
    args = getAllCampaigns_args()
7766
    args.read(iprot)
7767
    iprot.readMessageEnd()
7768
    result = getAllCampaigns_result()
7769
    result.success = self._handler.getAllCampaigns()
7770
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
7771
    result.write(oprot)
7772
    oprot.writeMessageEnd()
7773
    oprot.trans.flush()
7774
 
9155 kshitij.so 7775
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
7776
    args = getActiveBannersForMobileSite_args()
7777
    args.read(iprot)
7778
    iprot.readMessageEnd()
7779
    result = getActiveBannersForMobileSite_result()
7780
    result.success = self._handler.getActiveBannersForMobileSite()
7781
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
7782
    result.write(oprot)
7783
    oprot.writeMessageEnd()
7784
    oprot.trans.flush()
7785
 
5944 mandeep.dh 7786
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
7787
    args = deleteSimilarItem_args()
7788
    args.read(iprot)
7789
    iprot.readMessageEnd()
7790
    result = deleteSimilarItem_result()
7791
    try:
7792
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
7793
    except CatalogServiceException, cex:
7794
      result.cex = cex
7795
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
7796
    result.write(oprot)
7797
    oprot.writeMessageEnd()
7798
    oprot.trans.flush()
7799
 
7800
  def process_checkSimilarItem(self, seqid, iprot, oprot):
7801
    args = checkSimilarItem_args()
7802
    args.read(iprot)
7803
    iprot.readMessageEnd()
7804
    result = checkSimilarItem_result()
7805
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
7806
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
7807
    result.write(oprot)
7808
    oprot.writeMessageEnd()
7809
    oprot.trans.flush()
7810
 
7811
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
7812
    args = validateRiskyStatus_args()
7813
    args.read(iprot)
7814
    iprot.readMessageEnd()
7815
    result = validateRiskyStatus_result()
7816
    self._handler.validateRiskyStatus(args.itemId)
7817
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
7818
    result.write(oprot)
7819
    oprot.writeMessageEnd()
7820
    oprot.trans.flush()
7821
 
7822
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
7823
    args = changeItemRiskyFlag_args()
7824
    args.read(iprot)
7825
    iprot.readMessageEnd()
7826
    result = changeItemRiskyFlag_result()
7827
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
7828
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
7829
    result.write(oprot)
7830
    oprot.writeMessageEnd()
7831
    oprot.trans.flush()
7832
 
7833
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
7834
    args = getItemsByRiskyFlag_args()
7835
    args.read(iprot)
7836
    iprot.readMessageEnd()
7837
    result = getItemsByRiskyFlag_result()
7838
    result.success = self._handler.getItemsByRiskyFlag()
7839
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
7840
    result.write(oprot)
7841
    oprot.writeMessageEnd()
7842
    oprot.trans.flush()
7843
 
7844
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
7845
    args = getItemsForMasterSheet_args()
7846
    args.read(iprot)
7847
    iprot.readMessageEnd()
7848
    result = getItemsForMasterSheet_result()
7849
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
7850
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
7851
    result.write(oprot)
7852
    oprot.writeMessageEnd()
7853
    oprot.trans.flush()
7854
 
7855
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
7856
    args = getSimilarItemsCatalogIds_args()
7857
    args.read(iprot)
7858
    iprot.readMessageEnd()
7859
    result = getSimilarItemsCatalogIds_result()
7860
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
7861
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
7862
    result.write(oprot)
7863
    oprot.writeMessageEnd()
7864
    oprot.trans.flush()
7865
 
7866
  def process_addProductNotification(self, seqid, iprot, oprot):
7867
    args = addProductNotification_args()
7868
    args.read(iprot)
7869
    iprot.readMessageEnd()
7870
    result = addProductNotification_result()
7871
    result.success = self._handler.addProductNotification(args.itemId, args.email)
7872
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
7873
    result.write(oprot)
7874
    oprot.writeMessageEnd()
7875
    oprot.trans.flush()
7876
 
7877
  def process_sendProductNotifications(self, seqid, iprot, oprot):
7878
    args = sendProductNotifications_args()
7879
    args.read(iprot)
7880
    iprot.readMessageEnd()
7881
    result = sendProductNotifications_result()
7882
    result.success = self._handler.sendProductNotifications()
7883
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
7884
    result.write(oprot)
7885
    oprot.writeMessageEnd()
7886
    oprot.trans.flush()
7887
 
7888
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
7889
    args = getAllBrandsByCategory_args()
7890
    args.read(iprot)
7891
    iprot.readMessageEnd()
7892
    result = getAllBrandsByCategory_result()
7893
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
7894
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
7895
    result.write(oprot)
7896
    oprot.writeMessageEnd()
7897
    oprot.trans.flush()
7898
 
7899
  def process_getAllBrands(self, seqid, iprot, oprot):
7900
    args = getAllBrands_args()
7901
    args.read(iprot)
7902
    iprot.readMessageEnd()
7903
    result = getAllBrands_result()
7904
    result.success = self._handler.getAllBrands()
7905
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
7906
    result.write(oprot)
7907
    oprot.writeMessageEnd()
7908
    oprot.trans.flush()
7909
 
7910
  def process_getAllSources(self, seqid, iprot, oprot):
7911
    args = getAllSources_args()
7912
    args.read(iprot)
7913
    iprot.readMessageEnd()
7914
    result = getAllSources_result()
7915
    result.success = self._handler.getAllSources()
7916
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
7917
    result.write(oprot)
7918
    oprot.writeMessageEnd()
7919
    oprot.trans.flush()
7920
 
7921
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
7922
    args = getItemPricingBySource_args()
7923
    args.read(iprot)
7924
    iprot.readMessageEnd()
7925
    result = getItemPricingBySource_result()
7926
    try:
7927
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
7928
    except CatalogServiceException, cex:
7929
      result.cex = cex
7930
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
7931
    result.write(oprot)
7932
    oprot.writeMessageEnd()
7933
    oprot.trans.flush()
7934
 
7935
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
7936
    args = addSourceItemPricing_args()
7937
    args.read(iprot)
7938
    iprot.readMessageEnd()
7939
    result = addSourceItemPricing_result()
7940
    try:
7941
      self._handler.addSourceItemPricing(args.sourceItemPricing)
7942
    except CatalogServiceException, cex:
7943
      result.cex = cex
7944
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
7945
    result.write(oprot)
7946
    oprot.writeMessageEnd()
7947
    oprot.trans.flush()
7948
 
7949
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
7950
    args = getAllSourcePricing_args()
7951
    args.read(iprot)
7952
    iprot.readMessageEnd()
7953
    result = getAllSourcePricing_result()
7954
    try:
7955
      result.success = self._handler.getAllSourcePricing(args.itemId)
7956
    except CatalogServiceException, cex:
7957
      result.cex = cex
7958
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
7959
    result.write(oprot)
7960
    oprot.writeMessageEnd()
7961
    oprot.trans.flush()
7962
 
7963
  def process_getItemForSource(self, seqid, iprot, oprot):
7964
    args = getItemForSource_args()
7965
    args.read(iprot)
7966
    iprot.readMessageEnd()
7967
    result = getItemForSource_result()
7968
    try:
7969
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
7970
    except CatalogServiceException, cex:
7971
      result.cex = cex
7972
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
7973
    result.write(oprot)
7974
    oprot.writeMessageEnd()
7975
    oprot.trans.flush()
7976
 
7977
  def process_searchItemsInRange(self, seqid, iprot, oprot):
7978
    args = searchItemsInRange_args()
7979
    args.read(iprot)
7980
    iprot.readMessageEnd()
7981
    result = searchItemsInRange_result()
7982
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
7983
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
7984
    result.write(oprot)
7985
    oprot.writeMessageEnd()
7986
    oprot.trans.flush()
7987
 
7988
  def process_getSearchResultCount(self, seqid, iprot, oprot):
7989
    args = getSearchResultCount_args()
7990
    args.read(iprot)
7991
    iprot.readMessageEnd()
7992
    result = getSearchResultCount_result()
7993
    result.success = self._handler.getSearchResultCount(args.searchTerms)
7994
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
7995
    result.write(oprot)
7996
    oprot.writeMessageEnd()
7997
    oprot.trans.flush()
7998
 
7999
  def process_getProductNotifications(self, seqid, iprot, oprot):
8000
    args = getProductNotifications_args()
8001
    args.read(iprot)
8002
    iprot.readMessageEnd()
8003
    result = getProductNotifications_result()
8004
    result.success = self._handler.getProductNotifications(args.startDateTime)
8005
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
8006
    result.write(oprot)
8007
    oprot.writeMessageEnd()
8008
    oprot.trans.flush()
8009
 
8010
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
8011
    args = getProductNotificationRequestCount_args()
8012
    args.read(iprot)
8013
    iprot.readMessageEnd()
8014
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 8015
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 8016
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
8017
    result.write(oprot)
8018
    oprot.writeMessageEnd()
8019
    oprot.trans.flush()
8020
 
8021
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
8022
    args = addAuthorizationLog_args()
8023
    args.read(iprot)
8024
    iprot.readMessageEnd()
8025
    result = addAuthorizationLog_result()
8026
    try:
8027
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
8028
    except CatalogServiceException, cex:
8029
      result.cex = cex
8030
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
8031
    result.write(oprot)
8032
    oprot.writeMessageEnd()
8033
    oprot.trans.flush()
8034
 
8035
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
8036
    args = addupdateVoucherForItem_args()
8037
    args.read(iprot)
8038
    iprot.readMessageEnd()
8039
    result = addupdateVoucherForItem_result()
8040
    try:
8041
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
8042
    except CatalogServiceException, cex:
8043
      result.cex = cex
8044
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
8045
    result.write(oprot)
8046
    oprot.writeMessageEnd()
8047
    oprot.trans.flush()
8048
 
8049
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
8050
    args = deleteVoucherForItem_args()
8051
    args.read(iprot)
8052
    iprot.readMessageEnd()
8053
    result = deleteVoucherForItem_result()
8054
    try:
8055
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
8056
    except CatalogServiceException, cex:
8057
      result.cex = cex
8058
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
8059
    result.write(oprot)
8060
    oprot.writeMessageEnd()
8061
    oprot.trans.flush()
8062
 
8063
  def process_getVoucherAmount(self, seqid, iprot, oprot):
8064
    args = getVoucherAmount_args()
8065
    args.read(iprot)
8066
    iprot.readMessageEnd()
8067
    result = getVoucherAmount_result()
8068
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
8069
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
8070
    result.write(oprot)
8071
    oprot.writeMessageEnd()
8072
    oprot.trans.flush()
8073
 
8074
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
8075
    args = getAllItemVouchers_args()
8076
    args.read(iprot)
8077
    iprot.readMessageEnd()
8078
    result = getAllItemVouchers_result()
8079
    result.success = self._handler.getAllItemVouchers(args.itemId)
8080
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
8081
    result.write(oprot)
8082
    oprot.writeMessageEnd()
8083
    oprot.trans.flush()
8084
 
8085
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
8086
    args = isValidCatalogItemId_args()
8087
    args.read(iprot)
8088
    iprot.readMessageEnd()
8089
    result = isValidCatalogItemId_result()
8090
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
8091
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
8092
    result.write(oprot)
8093
    oprot.writeMessageEnd()
8094
    oprot.trans.flush()
8095
 
6039 amit.gupta 8096
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
8097
    args = getVatPercentageForItem_args()
8098
    args.read(iprot)
8099
    iprot.readMessageEnd()
8100
    result = getVatPercentageForItem_result()
7340 amit.gupta 8101
    try:
8102
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
8103
    except CatalogServiceException, cex:
8104
      result.cex = cex
6039 amit.gupta 8105
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
8106
    result.write(oprot)
8107
    oprot.writeMessageEnd()
8108
    oprot.trans.flush()
5944 mandeep.dh 8109
 
6039 amit.gupta 8110
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
8111
    args = getVatAmountForItem_args()
8112
    args.read(iprot)
8113
    iprot.readMessageEnd()
8114
    result = getVatAmountForItem_result()
8115
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
8116
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
8117
    result.write(oprot)
8118
    oprot.writeMessageEnd()
8119
    oprot.trans.flush()
8120
 
6531 vikram.rag 8121
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
8122
    args = getAllIgnoredInventoryUpdateItemsList_args()
8123
    args.read(iprot)
8124
    iprot.readMessageEnd()
8125
    result = getAllIgnoredInventoryUpdateItemsList_result()
8126
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
8127
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
8128
    result.write(oprot)
8129
    oprot.writeMessageEnd()
8130
    oprot.trans.flush()
6039 amit.gupta 8131
 
6821 amar.kumar 8132
  def process_getAllAliveItems(self, seqid, iprot, oprot):
8133
    args = getAllAliveItems_args()
8134
    args.read(iprot)
8135
    iprot.readMessageEnd()
8136
    result = getAllAliveItems_result()
8137
    result.success = self._handler.getAllAliveItems()
8138
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
8139
    result.write(oprot)
8140
    oprot.writeMessageEnd()
8141
    oprot.trans.flush()
8142
 
6805 anupam.sin 8143
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
8144
    args = getInsuranceAmount_args()
8145
    args.read(iprot)
8146
    iprot.readMessageEnd()
8147
    result = getInsuranceAmount_result()
6921 anupam.sin 8148
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 8149
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
8150
    result.write(oprot)
8151
    oprot.writeMessageEnd()
8152
    oprot.trans.flush()
6531 vikram.rag 8153
 
6805 anupam.sin 8154
  def process_getInsurer(self, seqid, iprot, oprot):
8155
    args = getInsurer_args()
8156
    args.read(iprot)
8157
    iprot.readMessageEnd()
8158
    result = getInsurer_result()
8159
    result.success = self._handler.getInsurer(args.insurerId)
8160
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
8161
    result.write(oprot)
8162
    oprot.writeMessageEnd()
8163
    oprot.trans.flush()
8164
 
6838 vikram.rag 8165
  def process_getAllInsurers(self, seqid, iprot, oprot):
8166
    args = getAllInsurers_args()
8167
    args.read(iprot)
8168
    iprot.readMessageEnd()
8169
    result = getAllInsurers_result()
8170
    result.success = self._handler.getAllInsurers()
8171
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
8172
    result.write(oprot)
8173
    oprot.writeMessageEnd()
8174
    oprot.trans.flush()
6805 anupam.sin 8175
 
6962 rajveer 8176
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
8177
    args = updateInsuranceDeclaredAmount_args()
8178
    args.read(iprot)
8179
    iprot.readMessageEnd()
8180
    result = updateInsuranceDeclaredAmount_result()
8181
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
8182
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
8183
    result.write(oprot)
8184
    oprot.writeMessageEnd()
8185
    oprot.trans.flush()
6838 vikram.rag 8186
 
7190 amar.kumar 8187
  def process_getFreebieForItem(self, seqid, iprot, oprot):
8188
    args = getFreebieForItem_args()
8189
    args.read(iprot)
8190
    iprot.readMessageEnd()
8191
    result = getFreebieForItem_result()
8192
    result.success = self._handler.getFreebieForItem(args.itemId)
8193
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
8194
    result.write(oprot)
8195
    oprot.writeMessageEnd()
8196
    oprot.trans.flush()
6962 rajveer 8197
 
7190 amar.kumar 8198
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
8199
    args = addOrUpdateFreebieForItem_args()
8200
    args.read(iprot)
8201
    iprot.readMessageEnd()
8202
    result = addOrUpdateFreebieForItem_result()
8203
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
8204
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
8205
    result.write(oprot)
8206
    oprot.writeMessageEnd()
8207
    oprot.trans.flush()
8208
 
7272 amit.gupta 8209
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
8210
    args = addOrUpdateBrandInfo_args()
8211
    args.read(iprot)
8212
    iprot.readMessageEnd()
8213
    result = addOrUpdateBrandInfo_result()
8214
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
8215
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
8216
    result.write(oprot)
8217
    oprot.writeMessageEnd()
8218
    oprot.trans.flush()
8219
 
8220
  def process_getBrandInfo(self, seqid, iprot, oprot):
8221
    args = getBrandInfo_args()
8222
    args.read(iprot)
8223
    iprot.readMessageEnd()
8224
    result = getBrandInfo_result()
8225
    result.success = self._handler.getBrandInfo()
8226
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
8227
    result.write(oprot)
8228
    oprot.writeMessageEnd()
8229
    oprot.trans.flush()
8230
 
7256 rajveer 8231
  def process_getStorePricing(self, seqid, iprot, oprot):
8232
    args = getStorePricing_args()
8233
    args.read(iprot)
8234
    iprot.readMessageEnd()
8235
    result = getStorePricing_result()
8236
    result.success = self._handler.getStorePricing(args.itemId)
8237
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
8238
    result.write(oprot)
8239
    oprot.writeMessageEnd()
8240
    oprot.trans.flush()
7190 amar.kumar 8241
 
7306 rajveer 8242
  def process_getStorePricings(self, seqid, iprot, oprot):
8243
    args = getStorePricings_args()
8244
    args.read(iprot)
8245
    iprot.readMessageEnd()
8246
    result = getStorePricings_result()
8247
    result.success = self._handler.getStorePricings(args.itemIds)
8248
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
8249
    result.write(oprot)
8250
    oprot.writeMessageEnd()
8251
    oprot.trans.flush()
8252
 
7265 rajveer 8253
  def process_updateStorePricing(self, seqid, iprot, oprot):
8254
    args = updateStorePricing_args()
8255
    args.read(iprot)
8256
    iprot.readMessageEnd()
8257
    result = updateStorePricing_result()
7382 rajveer 8258
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 8259
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
8260
    result.write(oprot)
8261
    oprot.writeMessageEnd()
8262
    oprot.trans.flush()
7256 rajveer 8263
 
7281 kshitij.so 8264
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
8265
    args = getAllAmazonListedItems_args()
8266
    args.read(iprot)
8267
    iprot.readMessageEnd()
8268
    result = getAllAmazonListedItems_result()
8269
    result.success = self._handler.getAllAmazonListedItems()
8270
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
8271
    result.write(oprot)
8272
    oprot.writeMessageEnd()
8273
    oprot.trans.flush()
7265 rajveer 8274
 
8619 kshitij.so 8275
  def process_searchAmazonItems(self, seqid, iprot, oprot):
8276
    args = searchAmazonItems_args()
8277
    args.read(iprot)
8278
    iprot.readMessageEnd()
8279
    result = searchAmazonItems_result()
8280
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
8281
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
8282
    result.write(oprot)
8283
    oprot.writeMessageEnd()
8284
    oprot.trans.flush()
8285
 
8286
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
8287
    args = getAmazonSearchResultCount_args()
8288
    args.read(iprot)
8289
    iprot.readMessageEnd()
8290
    result = getAmazonSearchResultCount_result()
8291
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
8292
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
8293
    result.write(oprot)
8294
    oprot.writeMessageEnd()
8295
    oprot.trans.flush()
8296
 
8297
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
8298
    args = getCountForAmazonlistedItems_args()
8299
    args.read(iprot)
8300
    iprot.readMessageEnd()
8301
    result = getCountForAmazonlistedItems_result()
8302
    result.success = self._handler.getCountForAmazonlistedItems()
8303
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
8304
    result.write(oprot)
8305
    oprot.writeMessageEnd()
8306
    oprot.trans.flush()
8307
 
7281 kshitij.so 8308
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
8309
    args = getAmazonItemDetails_args()
8310
    args.read(iprot)
8311
    iprot.readMessageEnd()
8312
    result = getAmazonItemDetails_result()
8313
    result.success = self._handler.getAmazonItemDetails(args.itemId)
8314
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
8315
    result.write(oprot)
8316
    oprot.writeMessageEnd()
8317
    oprot.trans.flush()
8318
 
8319
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
8320
    args = updateAmazonItemDetails_args()
8321
    args.read(iprot)
8322
    iprot.readMessageEnd()
8323
    result = updateAmazonItemDetails_result()
8168 kshitij.so 8324
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 8325
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
8326
    result.write(oprot)
8327
    oprot.writeMessageEnd()
8328
    oprot.trans.flush()
8329
 
8330
  def process_addAmazonItem(self, seqid, iprot, oprot):
8331
    args = addAmazonItem_args()
8332
    args.read(iprot)
8333
    iprot.readMessageEnd()
8334
    result = addAmazonItem_result()
8335
    self._handler.addAmazonItem(args.amazonlisted)
8336
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
8337
    result.write(oprot)
8338
    oprot.writeMessageEnd()
8339
    oprot.trans.flush()
8340
 
7291 vikram.rag 8341
  def process_getAsinItems(self, seqid, iprot, oprot):
8342
    args = getAsinItems_args()
8343
    args.read(iprot)
8344
    iprot.readMessageEnd()
8345
    result = getAsinItems_result()
8346
    result.success = self._handler.getAsinItems()
8347
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
8348
    result.write(oprot)
8349
    oprot.writeMessageEnd()
8350
    oprot.trans.flush()
7281 kshitij.so 8351
 
7291 vikram.rag 8352
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
8353
    args = getAllFbaListedItems_args()
8354
    args.read(iprot)
8355
    iprot.readMessageEnd()
8356
    result = getAllFbaListedItems_result()
8357
    result.success = self._handler.getAllFbaListedItems()
8358
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
8359
    result.write(oprot)
8360
    oprot.writeMessageEnd()
8361
    oprot.trans.flush()
8362
 
8363
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
8364
    args = getAllNonFbaListedItems_args()
8365
    args.read(iprot)
8366
    iprot.readMessageEnd()
8367
    result = getAllNonFbaListedItems_result()
8368
    result.success = self._handler.getAllNonFbaListedItems()
8369
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
8370
    result.write(oprot)
8371
    oprot.writeMessageEnd()
8372
    oprot.trans.flush()
8373
 
7460 kshitij.so 8374
  def process_updateItemInventory(self, seqid, iprot, oprot):
8375
    args = updateItemInventory_args()
8376
    args.read(iprot)
8377
    iprot.readMessageEnd()
8378
    result = updateItemInventory_result()
8379
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
8380
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
8381
    result.write(oprot)
8382
    oprot.writeMessageEnd()
8383
    oprot.trans.flush()
7291 vikram.rag 8384
 
7770 kshitij.so 8385
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
8386
    args = updateTimestampForAmazonFeeds_args()
8387
    args.read(iprot)
8388
    iprot.readMessageEnd()
8389
    result = updateTimestampForAmazonFeeds_result()
8390
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
8391
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
8392
    result.write(oprot)
8393
    oprot.writeMessageEnd()
8394
    oprot.trans.flush()
7460 kshitij.so 8395
 
7897 amar.kumar 8396
  def process_getAllParentCategories(self, seqid, iprot, oprot):
8397
    args = getAllParentCategories_args()
8398
    args.read(iprot)
8399
    iprot.readMessageEnd()
8400
    result = getAllParentCategories_result()
8401
    result.success = self._handler.getAllParentCategories()
8402
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
8403
    result.write(oprot)
8404
    oprot.writeMessageEnd()
8405
    oprot.trans.flush()
7770 kshitij.so 8406
 
7977 kshitij.so 8407
  def process_addPageViewEvent(self, seqid, iprot, oprot):
8408
    args = addPageViewEvent_args()
8409
    args.read(iprot)
8410
    iprot.readMessageEnd()
8411
    result = addPageViewEvent_result()
8412
    self._handler.addPageViewEvent(args.pageViewEvents)
8413
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
8414
    result.write(oprot)
8415
    oprot.writeMessageEnd()
8416
    oprot.trans.flush()
7897 amar.kumar 8417
 
7977 kshitij.so 8418
  def process_addCartEvent(self, seqid, iprot, oprot):
8419
    args = addCartEvent_args()
8420
    args.read(iprot)
8421
    iprot.readMessageEnd()
8422
    result = addCartEvent_result()
8423
    self._handler.addCartEvent(args.cartEvents)
8424
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
8425
    result.write(oprot)
8426
    oprot.writeMessageEnd()
8427
    oprot.trans.flush()
8428
 
8182 amar.kumar 8429
  def process_addEbayItem(self, seqid, iprot, oprot):
8430
    args = addEbayItem_args()
8431
    args.read(iprot)
8432
    iprot.readMessageEnd()
8433
    result = addEbayItem_result()
8434
    self._handler.addEbayItem(args.ebayItem)
8435
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
8436
    result.write(oprot)
8437
    oprot.writeMessageEnd()
8438
    oprot.trans.flush()
8439
 
8440
  def process_getEbayItem(self, seqid, iprot, oprot):
8441
    args = getEbayItem_args()
8442
    args.read(iprot)
8443
    iprot.readMessageEnd()
8444
    result = getEbayItem_result()
8445
    result.success = self._handler.getEbayItem(args.listingId)
8446
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
8447
    result.write(oprot)
8448
    oprot.writeMessageEnd()
8449
    oprot.trans.flush()
8450
 
8451
  def process_updateEbayItem(self, seqid, iprot, oprot):
8452
    args = updateEbayItem_args()
8453
    args.read(iprot)
8454
    iprot.readMessageEnd()
8455
    result = updateEbayItem_result()
8456
    self._handler.updateEbayItem(args.ebayItem)
8457
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
8458
    result.write(oprot)
8459
    oprot.writeMessageEnd()
8460
    oprot.trans.flush()
8461
 
8139 kshitij.so 8462
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
8463
    args = getAmazonListedItems_args()
8464
    args.read(iprot)
8465
    iprot.readMessageEnd()
8466
    result = getAmazonListedItems_result()
8467
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
8468
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
8469
    result.write(oprot)
8470
    oprot.writeMessageEnd()
8471
    oprot.trans.flush()
7977 kshitij.so 8472
 
8168 kshitij.so 8473
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
8474
    args = updateAmazonAttributesInBulk_args()
8475
    args.read(iprot)
8476
    iprot.readMessageEnd()
8477
    result = updateAmazonAttributesInBulk_result()
8478
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
8479
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
8480
    result.write(oprot)
8481
    oprot.writeMessageEnd()
8482
    oprot.trans.flush()
8139 kshitij.so 8483
 
8379 vikram.rag 8484
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
8485
    args = getAllItemstoListOnFba_args()
8486
    args.read(iprot)
8487
    iprot.readMessageEnd()
8488
    result = getAllItemstoListOnFba_result()
8489
    result.success = self._handler.getAllItemstoListOnFba()
8490
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
8491
    result.write(oprot)
8492
    oprot.writeMessageEnd()
8493
    oprot.trans.flush()
8168 kshitij.so 8494
 
8379 vikram.rag 8495
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
8496
    args = getAllItemstoListOnNonFba_args()
8497
    args.read(iprot)
8498
    iprot.readMessageEnd()
8499
    result = getAllItemstoListOnNonFba_result()
8500
    result.success = self._handler.getAllItemstoListOnNonFba()
8501
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
8502
    result.write(oprot)
8503
    oprot.writeMessageEnd()
8504
    oprot.trans.flush()
8505
 
8619 kshitij.so 8506
  def process_updateAsin(self, seqid, iprot, oprot):
8507
    args = updateAsin_args()
8508
    args.read(iprot)
8509
    iprot.readMessageEnd()
8510
    result = updateAsin_result()
8511
    self._handler.updateAsin(args.item)
8512
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
8513
    result.write(oprot)
8514
    oprot.writeMessageEnd()
8515
    oprot.trans.flush()
8616 vikram.rag 8516
 
8739 vikram.rag 8517
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
8518
    args = addOrUpdateSnapdealItem_args()
8519
    args.read(iprot)
8520
    iprot.readMessageEnd()
8521
    result = addOrUpdateSnapdealItem_result()
8522
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
8523
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
8524
    result.write(oprot)
8525
    oprot.writeMessageEnd()
8526
    oprot.trans.flush()
8619 kshitij.so 8527
 
8739 vikram.rag 8528
  def process_getSnapdealItem(self, seqid, iprot, oprot):
8529
    args = getSnapdealItem_args()
8530
    args.read(iprot)
8531
    iprot.readMessageEnd()
8532
    result = getSnapdealItem_result()
8533
    result.success = self._handler.getSnapdealItem(args.item_id)
8534
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
8535
    result.write(oprot)
8536
    oprot.writeMessageEnd()
8537
    oprot.trans.flush()
8538
 
9242 kshitij.so 8539
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
8540
    args = getSnapdealItemDetails_args()
8541
    args.read(iprot)
8542
    iprot.readMessageEnd()
8543
    result = getSnapdealItemDetails_result()
8544
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
8545
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
8546
    result.write(oprot)
8547
    oprot.writeMessageEnd()
8548
    oprot.trans.flush()
8549
 
8739 vikram.rag 8550
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
8551
    args = getAllSnapdealItems_args()
8552
    args.read(iprot)
8553
    iprot.readMessageEnd()
8554
    result = getAllSnapdealItems_result()
8555
    result.success = self._handler.getAllSnapdealItems()
8556
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
8557
    result.write(oprot)
8558
    oprot.writeMessageEnd()
8559
    oprot.trans.flush()
8560
 
9242 kshitij.so 8561
  def process_getSnapdealItems(self, seqid, iprot, oprot):
8562
    args = getSnapdealItems_args()
8563
    args.read(iprot)
8564
    iprot.readMessageEnd()
8565
    result = getSnapdealItems_result()
8566
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
8567
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
8568
    result.write(oprot)
8569
    oprot.writeMessageEnd()
8570
    oprot.trans.flush()
8739 vikram.rag 8571
 
9242 kshitij.so 8572
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
8573
    args = searchSnapdealItems_args()
8574
    args.read(iprot)
8575
    iprot.readMessageEnd()
8576
    result = searchSnapdealItems_result()
8577
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
8578
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
8579
    result.write(oprot)
8580
    oprot.writeMessageEnd()
8581
    oprot.trans.flush()
8582
 
8583
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
8584
    args = getCountForSnapdealItems_args()
8585
    args.read(iprot)
8586
    iprot.readMessageEnd()
8587
    result = getCountForSnapdealItems_result()
8588
    result.success = self._handler.getCountForSnapdealItems()
8589
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
8590
    result.write(oprot)
8591
    oprot.writeMessageEnd()
8592
    oprot.trans.flush()
8593
 
8594
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
8595
    args = getSnapdealSearchResultCount_args()
8596
    args.read(iprot)
8597
    iprot.readMessageEnd()
8598
    result = getSnapdealSearchResultCount_result()
8599
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
8600
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
8601
    result.write(oprot)
8602
    oprot.writeMessageEnd()
8603
    oprot.trans.flush()
8604
 
9299 kshitij.so 8605
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
8606
    args = getPrefferedInsurerForItem_args()
8607
    args.read(iprot)
8608
    iprot.readMessageEnd()
8609
    result = getPrefferedInsurerForItem_result()
8610
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
8611
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
8612
    result.write(oprot)
8613
    oprot.writeMessageEnd()
8614
    oprot.trans.flush()
9242 kshitij.so 8615
 
9456 vikram.rag 8616
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
8617
    args = getSnapdealItembySkuAtSnapdeal_args()
8618
    args.read(iprot)
8619
    iprot.readMessageEnd()
8620
    result = getSnapdealItembySkuAtSnapdeal_result()
8621
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
8622
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
8623
    result.write(oprot)
8624
    oprot.writeMessageEnd()
8625
    oprot.trans.flush()
9299 kshitij.so 8626
 
9621 manish.sha 8627
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
8628
    args = getProductFeedSubmit_args()
8629
    args.read(iprot)
8630
    iprot.readMessageEnd()
8631
    result = getProductFeedSubmit_result()
8632
    try:
8633
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
8634
    except CatalogServiceException, cex:
8635
      result.cex = cex
8636
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
8637
    result.write(oprot)
8638
    oprot.writeMessageEnd()
8639
    oprot.trans.flush()
9456 vikram.rag 8640
 
9621 manish.sha 8641
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
8642
    args = addProductFeedSubmit_args()
8643
    args.read(iprot)
8644
    iprot.readMessageEnd()
8645
    result = addProductFeedSubmit_result()
8646
    try:
8647
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
8648
    except CatalogServiceException, cex:
8649
      result.cex = cex
8650
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
8651
    result.write(oprot)
8652
    oprot.writeMessageEnd()
8653
    oprot.trans.flush()
8654
 
8655
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
8656
    args = updateProductFeedSubmit_args()
8657
    args.read(iprot)
8658
    iprot.readMessageEnd()
8659
    result = updateProductFeedSubmit_result()
8660
    try:
8661
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
8662
    except CatalogServiceException, cex:
8663
      result.cex = cex
8664
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
8665
    result.write(oprot)
8666
    oprot.writeMessageEnd()
8667
    oprot.trans.flush()
8668
 
8669
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
8670
    args = deleteProductFeedSubmit_args()
8671
    args.read(iprot)
8672
    iprot.readMessageEnd()
8673
    result = deleteProductFeedSubmit_result()
8674
    try:
8675
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
8676
    except CatalogServiceException, cex:
8677
      result.cex = cex
8678
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
8679
    result.write(oprot)
8680
    oprot.writeMessageEnd()
8681
    oprot.trans.flush()
8682
 
8683
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
8684
    args = getAllProductFeedSubmit_args()
8685
    args.read(iprot)
8686
    iprot.readMessageEnd()
8687
    result = getAllProductFeedSubmit_result()
8688
    try:
8689
      result.success = self._handler.getAllProductFeedSubmit()
8690
    except CatalogServiceException, cex:
8691
      result.cex = cex
8692
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
8693
    result.write(oprot)
8694
    oprot.writeMessageEnd()
8695
    oprot.trans.flush()
8696
 
9724 kshitij.so 8697
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
8698
    args = getMarketplacedetailsForItem_args()
8699
    args.read(iprot)
8700
    iprot.readMessageEnd()
8701
    result = getMarketplacedetailsForItem_result()
8702
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
8703
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
8704
    result.write(oprot)
8705
    oprot.writeMessageEnd()
8706
    oprot.trans.flush()
9621 manish.sha 8707
 
9724 kshitij.so 8708
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
8709
    args = updateMarketplaceAttributesForItem_args()
8710
    args.read(iprot)
8711
    iprot.readMessageEnd()
8712
    result = updateMarketplaceAttributesForItem_result()
8713
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
8714
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
8715
    result.write(oprot)
8716
    oprot.writeMessageEnd()
8717
    oprot.trans.flush()
8718
 
9779 kshitij.so 8719
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
8720
    args = getCostingForMarketplace_args()
8721
    args.read(iprot)
8722
    iprot.readMessageEnd()
8723
    result = getCostingForMarketplace_result()
8724
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
8725
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
8726
    result.write(oprot)
8727
    oprot.writeMessageEnd()
8728
    oprot.trans.flush()
8729
 
9776 vikram.rag 8730
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
8731
    args = getMarketPlaceItemsForPriceUpdate_args()
8732
    args.read(iprot)
8733
    iprot.readMessageEnd()
8734
    result = getMarketPlaceItemsForPriceUpdate_result()
8735
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
8736
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
8737
    result.write(oprot)
8738
    oprot.writeMessageEnd()
8739
    oprot.trans.flush()
9724 kshitij.so 8740
 
9776 vikram.rag 8741
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
8742
    args = updateMarketPlacePriceUpdateStatus_args()
8743
    args.read(iprot)
8744
    iprot.readMessageEnd()
8745
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 8746
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 8747
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
8748
    result.write(oprot)
8749
    oprot.writeMessageEnd()
8750
    oprot.trans.flush()
8751
 
9861 rajveer 8752
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
8753
    args = updateItemHoldInventory_args()
8754
    args.read(iprot)
8755
    iprot.readMessageEnd()
8756
    result = updateItemHoldInventory_result()
8757
    self._handler.updateItemHoldInventory(args.itemHoldMap)
8758
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
8759
    result.write(oprot)
8760
    oprot.writeMessageEnd()
8761
    oprot.trans.flush()
9776 vikram.rag 8762
 
9895 vikram.rag 8763
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
8764
    args = updateNlcAtMarketplaces_args()
8765
    args.read(iprot)
8766
    iprot.readMessageEnd()
8767
    result = updateNlcAtMarketplaces_result()
8768
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
8769
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
8770
    result.write(oprot)
8771
    oprot.writeMessageEnd()
8772
    oprot.trans.flush()
9861 rajveer 8773
 
9945 vikram.rag 8774
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
8775
    args = getAllFlipkartItems_args()
8776
    args.read(iprot)
8777
    iprot.readMessageEnd()
8778
    result = getAllFlipkartItems_result()
8779
    result.success = self._handler.getAllFlipkartItems()
8780
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
8781
    result.write(oprot)
8782
    oprot.writeMessageEnd()
8783
    oprot.trans.flush()
9895 vikram.rag 8784
 
10097 kshitij.so 8785
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
8786
    args = addOrUpdateFlipkartItem_args()
8787
    args.read(iprot)
8788
    iprot.readMessageEnd()
8789
    result = addOrUpdateFlipkartItem_result()
8790
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
8791
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
8792
    result.write(oprot)
8793
    oprot.writeMessageEnd()
8794
    oprot.trans.flush()
9945 vikram.rag 8795
 
10097 kshitij.so 8796
  def process_getFlipkartItem(self, seqid, iprot, oprot):
8797
    args = getFlipkartItem_args()
8798
    args.read(iprot)
8799
    iprot.readMessageEnd()
8800
    result = getFlipkartItem_result()
8801
    result.success = self._handler.getFlipkartItem(args.item_id)
8802
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
8803
    result.write(oprot)
8804
    oprot.writeMessageEnd()
8805
    oprot.trans.flush()
8806
 
8807
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
8808
    args = getFlipkartItemDetails_args()
8809
    args.read(iprot)
8810
    iprot.readMessageEnd()
8811
    result = getFlipkartItemDetails_result()
8812
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
8813
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
8814
    result.write(oprot)
8815
    oprot.writeMessageEnd()
8816
    oprot.trans.flush()
8817
 
8818
  def process_getFlipkartItems(self, seqid, iprot, oprot):
8819
    args = getFlipkartItems_args()
8820
    args.read(iprot)
8821
    iprot.readMessageEnd()
8822
    result = getFlipkartItems_result()
8823
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
8824
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
8825
    result.write(oprot)
8826
    oprot.writeMessageEnd()
8827
    oprot.trans.flush()
8828
 
8829
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
8830
    args = searchFlipkartItems_args()
8831
    args.read(iprot)
8832
    iprot.readMessageEnd()
8833
    result = searchFlipkartItems_result()
8834
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
8835
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
8836
    result.write(oprot)
8837
    oprot.writeMessageEnd()
8838
    oprot.trans.flush()
8839
 
8840
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
8841
    args = getCountForFlipkartItems_args()
8842
    args.read(iprot)
8843
    iprot.readMessageEnd()
8844
    result = getCountForFlipkartItems_result()
8845
    result.success = self._handler.getCountForFlipkartItems()
8846
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
8847
    result.write(oprot)
8848
    oprot.writeMessageEnd()
8849
    oprot.trans.flush()
8850
 
8851
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
8852
    args = getFlipkartSearchResultCount_args()
8853
    args.read(iprot)
8854
    iprot.readMessageEnd()
8855
    result = getFlipkartSearchResultCount_result()
8856
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
8857
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
8858
    result.write(oprot)
8859
    oprot.writeMessageEnd()
8860
    oprot.trans.flush()
8861
 
8862
  def process_getAllFkItems(self, seqid, iprot, oprot):
8863
    args = getAllFkItems_args()
8864
    args.read(iprot)
8865
    iprot.readMessageEnd()
8866
    result = getAllFkItems_result()
8867
    result.success = self._handler.getAllFkItems()
8868
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
8869
    result.write(oprot)
8870
    oprot.writeMessageEnd()
8871
    oprot.trans.flush()
8872
 
10140 vikram.rag 8873
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
8874
    args = getFlipkartItemBySkyAtFlipkart_args()
8875
    args.read(iprot)
8876
    iprot.readMessageEnd()
8877
    result = getFlipkartItemBySkyAtFlipkart_result()
8878
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
8879
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
8880
    result.write(oprot)
8881
    oprot.writeMessageEnd()
8882
    oprot.trans.flush()
10097 kshitij.so 8883
 
11015 kshitij.so 8884
  def process_getMarketplaceHistory(self, seqid, iprot, oprot):
8885
    args = getMarketplaceHistory_args()
8886
    args.read(iprot)
8887
    iprot.readMessageEnd()
8888
    result = getMarketplaceHistory_result()
8889
    result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)
8890
    oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)
8891
    result.write(oprot)
8892
    oprot.writeMessageEnd()
8893
    oprot.trans.flush()
8894
 
10909 vikram.rag 8895
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
8896
    args = getAllFbbListedItems_args()
8897
    args.read(iprot)
8898
    iprot.readMessageEnd()
8899
    result = getAllFbbListedItems_result()
8900
    result.success = self._handler.getAllFbbListedItems()
8901
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
8902
    result.write(oprot)
8903
    oprot.writeMessageEnd()
8904
    oprot.trans.flush()
10140 vikram.rag 8905
 
10924 vikram.rag 8906
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
8907
    args = getAllFbbPricingItems_args()
8908
    args.read(iprot)
8909
    iprot.readMessageEnd()
8910
    result = getAllFbbPricingItems_result()
8911
    result.success = self._handler.getAllFbbPricingItems()
8912
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
8913
    result.write(oprot)
8914
    oprot.writeMessageEnd()
8915
    oprot.trans.flush()
10909 vikram.rag 8916
 
11015 kshitij.so 8917
  def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):
8918
    args = getCountForMarketplaceHistory_args()
8919
    args.read(iprot)
8920
    iprot.readMessageEnd()
8921
    result = getCountForMarketplaceHistory_result()
8922
    result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)
8923
    oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)
8924
    result.write(oprot)
8925
    oprot.writeMessageEnd()
8926
    oprot.trans.flush()
10924 vikram.rag 8927
 
11015 kshitij.so 8928
  def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):
8929
    args = getMarketplaceHistoryByDate_args()
8930
    args.read(iprot)
8931
    iprot.readMessageEnd()
8932
    result = getMarketplaceHistoryByDate_result()
8933
    result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)
8934
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8935
    result.write(oprot)
8936
    oprot.writeMessageEnd()
8937
    oprot.trans.flush()
8938
 
11531 vikram.rag 8939
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
8940
    args = getPrivateDealDetails_args()
8941
    args.read(iprot)
8942
    iprot.readMessageEnd()
8943
    result = getPrivateDealDetails_result()
8944
    result.success = self._handler.getPrivateDealDetails(args.item_id)
8945
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
8946
    result.write(oprot)
8947
    oprot.writeMessageEnd()
8948
    oprot.trans.flush()
11015 kshitij.so 8949
 
11531 vikram.rag 8950
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
8951
    args = getPrivateDealItems_args()
8952
    args.read(iprot)
8953
    iprot.readMessageEnd()
8954
    result = getPrivateDealItems_result()
8955
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
8956
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
8957
    result.write(oprot)
8958
    oprot.writeMessageEnd()
8959
    oprot.trans.flush()
8960
 
11592 amit.gupta 8961
  def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):
8962
    args = getAllActivePrivateDeals_args()
8963
    args.read(iprot)
8964
    iprot.readMessageEnd()
8965
    result = getAllActivePrivateDeals_result()
11653 amit.gupta 8966
    result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)
11592 amit.gupta 8967
    oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)
8968
    result.write(oprot)
8969
    oprot.writeMessageEnd()
8970
    oprot.trans.flush()
8971
 
11531 vikram.rag 8972
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
8973
    args = addOrUpdatePrivateDeal_args()
8974
    args.read(iprot)
8975
    iprot.readMessageEnd()
8976
    result = addOrUpdatePrivateDeal_result()
8977
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
8978
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
8979
    result.write(oprot)
8980
    oprot.writeMessageEnd()
8981
    oprot.trans.flush()
8982
 
11635 vikram.rag 8983
  def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):
8984
    args = getPrivateDealsCatalogIds_args()
8985
    args.read(iprot)
8986
    iprot.readMessageEnd()
8987
    result = getPrivateDealsCatalogIds_result()
8988
    try:
8989
      result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)
8990
    except CatalogServiceException, cex:
8991
      result.cex = cex
8992
    oprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)
8993
    result.write(oprot)
8994
    oprot.writeMessageEnd()
8995
    oprot.trans.flush()
11531 vikram.rag 8996
 
11645 amit.gupta 8997
  def process_getPrivateDealsCount(self, seqid, iprot, oprot):
8998
    args = getPrivateDealsCount_args()
8999
    args.read(iprot)
9000
    iprot.readMessageEnd()
9001
    result = getPrivateDealsCount_result()
9002
    result.success = self._handler.getPrivateDealsCount()
9003
    oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)
9004
    result.write(oprot)
9005
    oprot.writeMessageEnd()
9006
    oprot.trans.flush()
11635 vikram.rag 9007
 
11905 kshitij.so 9008
  def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):
9009
    args = getAmazonOutSyncItems_args()
9010
    args.read(iprot)
9011
    iprot.readMessageEnd()
9012
    result = getAmazonOutSyncItems_result()
9013
    result.success = self._handler.getAmazonOutSyncItems(args.item_id)
9014
    oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)
9015
    result.write(oprot)
9016
    oprot.writeMessageEnd()
9017
    oprot.trans.flush()
11645 amit.gupta 9018
 
11905 kshitij.so 9019
  def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):
9020
    args = getAllPrivateDealsComparison_args()
9021
    args.read(iprot)
9022
    iprot.readMessageEnd()
9023
    result = getAllPrivateDealsComparison_result()
9024
    result.success = self._handler.getAllPrivateDealsComparison()
9025
    oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)
9026
    result.write(oprot)
9027
    oprot.writeMessageEnd()
9028
    oprot.trans.flush()
9029
 
12133 kshitij.so 9030
  def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):
9031
    args = getAllSnapdealMarketplaceItem_args()
9032
    args.read(iprot)
9033
    iprot.readMessageEnd()
9034
    result = getAllSnapdealMarketplaceItem_result()
9035
    result.success = self._handler.getAllSnapdealMarketplaceItem()
9036
    oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)
9037
    result.write(oprot)
9038
    oprot.writeMessageEnd()
9039
    oprot.trans.flush()
11905 kshitij.so 9040
 
12133 kshitij.so 9041
  def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):
9042
    args = getAllFlipkartMarketplaceItem_args()
9043
    args.read(iprot)
9044
    iprot.readMessageEnd()
9045
    result = getAllFlipkartMarketplaceItem_result()
9046
    result.success = self._handler.getAllFlipkartMarketplaceItem()
9047
    oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)
9048
    result.write(oprot)
9049
    oprot.writeMessageEnd()
9050
    oprot.trans.flush()
9051
 
12243 kshitij.so 9052
  def process_addCompetitorScraping(self, seqid, iprot, oprot):
9053
    args = addCompetitorScraping_args()
9054
    args.read(iprot)
9055
    iprot.readMessageEnd()
9056
    result = addCompetitorScraping_result()
9057
    self._handler.addCompetitorScraping(args.competitorPricingMap)
9058
    oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)
9059
    result.write(oprot)
9060
    oprot.writeMessageEnd()
9061
    oprot.trans.flush()
12133 kshitij.so 9062
 
12243 kshitij.so 9063
  def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):
9064
    args = getPreviousCompetitorScraping_args()
9065
    args.read(iprot)
9066
    iprot.readMessageEnd()
9067
    result = getPreviousCompetitorScraping_result()
9068
    result.success = self._handler.getPreviousCompetitorScraping(args.delta)
9069
    oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)
9070
    result.write(oprot)
9071
    oprot.writeMessageEnd()
9072
    oprot.trans.flush()
9073
 
12256 kshitij.so 9074
  def process_getUploadResultById(self, seqid, iprot, oprot):
9075
    args = getUploadResultById_args()
9076
    args.read(iprot)
9077
    iprot.readMessageEnd()
9078
    result = getUploadResultById_result()
9079
    result.success = self._handler.getUploadResultById(args.uploadId)
9080
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
9081
    result.write(oprot)
9082
    oprot.writeMessageEnd()
9083
    oprot.trans.flush()
12243 kshitij.so 9084
 
12363 kshitij.so 9085
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
9086
    args = addAmazonPromotion_args()
9087
    args.read(iprot)
9088
    iprot.readMessageEnd()
9089
    result = addAmazonPromotion_result()
12947 kshitij.so 9090
    try:
9091
      result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
9092
    except CatalogServiceException, cex:
9093
      result.cex = cex
12363 kshitij.so 9094
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
9095
    result.write(oprot)
9096
    oprot.writeMessageEnd()
9097
    oprot.trans.flush()
12256 kshitij.so 9098
 
12363 kshitij.so 9099
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
9100
    args = getAmazonPromotion_args()
9101
    args.read(iprot)
9102
    iprot.readMessageEnd()
9103
    result = getAmazonPromotion_result()
9104
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
9105
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
9106
    result.write(oprot)
9107
    oprot.writeMessageEnd()
9108
    oprot.trans.flush()
9109
 
9110
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
9111
    args = updateAmazonPromotion_args()
9112
    args.read(iprot)
9113
    iprot.readMessageEnd()
9114
    result = updateAmazonPromotion_result()
9115
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
9116
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
9117
    result.write(oprot)
9118
    oprot.writeMessageEnd()
9119
    oprot.trans.flush()
9120
 
12567 amit.gupta 9121
  def process_markPartiallyActive(self, seqid, iprot, oprot):
9122
    args = markPartiallyActive_args()
9123
    args.read(iprot)
9124
    iprot.readMessageEnd()
9125
    result = markPartiallyActive_result()
9126
    result.success = self._handler.markPartiallyActive(args.itemId, args.categoryId)
9127
    oprot.writeMessageBegin("markPartiallyActive", TMessageType.REPLY, seqid)
9128
    result.write(oprot)
9129
    oprot.writeMessageEnd()
9130
    oprot.trans.flush()
12363 kshitij.so 9131
 
12567 amit.gupta 9132
  def process_updateItemStateVat(self, seqid, iprot, oprot):
9133
    args = updateItemStateVat_args()
9134
    args.read(iprot)
9135
    iprot.readMessageEnd()
9136
    result = updateItemStateVat_result()
9137
    result.success = self._handler.updateItemStateVat(args.itemId, args.statevat)
9138
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9139
    result.write(oprot)
9140
    oprot.writeMessageEnd()
9141
    oprot.trans.flush()
9142
 
12620 amit.gupta 9143
  def process_getExAffiliateItemInfo(self, seqid, iprot, oprot):
9144
    args = getExAffiliateItemInfo_args()
9145
    args.read(iprot)
9146
    iprot.readMessageEnd()
9147
    result = getExAffiliateItemInfo_result()
9148
    result.success = self._handler.getExAffiliateItemInfo()
9149
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
9150
    result.write(oprot)
9151
    oprot.writeMessageEnd()
9152
    oprot.trans.flush()
12567 amit.gupta 9153
 
12888 kshitij.so 9154
  def process_getAllItemstoListOnFbg(self, seqid, iprot, oprot):
9155
    args = getAllItemstoListOnFbg_args()
9156
    args.read(iprot)
9157
    iprot.readMessageEnd()
9158
    result = getAllItemstoListOnFbg_result()
9159
    result.success = self._handler.getAllItemstoListOnFbg()
9160
    oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)
9161
    result.write(oprot)
9162
    oprot.writeMessageEnd()
9163
    oprot.trans.flush()
12620 amit.gupta 9164
 
12892 kshitij.so 9165
  def process_getAllFbgListedItems(self, seqid, iprot, oprot):
9166
    args = getAllFbgListedItems_args()
9167
    args.read(iprot)
9168
    iprot.readMessageEnd()
9169
    result = getAllFbgListedItems_result()
9170
    result.success = self._handler.getAllFbgListedItems()
9171
    oprot.writeMessageBegin("getAllFbgListedItems", TMessageType.REPLY, seqid)
9172
    result.write(oprot)
9173
    oprot.writeMessageEnd()
9174
    oprot.trans.flush()
12888 kshitij.so 9175
 
13136 amit.gupta 9176
  def process_checkServices(self, seqid, iprot, oprot):
9177
    args = checkServices_args()
9178
    args.read(iprot)
9179
    iprot.readMessageEnd()
9180
    result = checkServices_result()
9181
    try:
9182
      result.success = self._handler.checkServices(args.lines)
9183
    except CatalogServiceException, cex:
9184
      result.cex = cex
9185
    oprot.writeMessageBegin("checkServices", TMessageType.REPLY, seqid)
9186
    result.write(oprot)
9187
    oprot.writeMessageEnd()
9188
    oprot.trans.flush()
12892 kshitij.so 9189
 
13136 amit.gupta 9190
 
5944 mandeep.dh 9191
# HELPER FUNCTIONS AND STRUCTURES
9192
 
9193
class addItem_args:
9194
  """
9195
  Attributes:
9196
   - item
9197
  """
9198
 
9199
  thrift_spec = (
9200
    None, # 0
9201
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9202
  )
9203
 
9204
  def __init__(self, item=None,):
9205
    self.item = item
9206
 
9207
  def read(self, iprot):
9208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9210
      return
9211
    iprot.readStructBegin()
9212
    while True:
9213
      (fname, ftype, fid) = iprot.readFieldBegin()
9214
      if ftype == TType.STOP:
9215
        break
9216
      if fid == 1:
9217
        if ftype == TType.STRUCT:
9218
          self.item = Item()
9219
          self.item.read(iprot)
9220
        else:
9221
          iprot.skip(ftype)
9222
      else:
9223
        iprot.skip(ftype)
9224
      iprot.readFieldEnd()
9225
    iprot.readStructEnd()
9226
 
9227
  def write(self, oprot):
9228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9230
      return
9231
    oprot.writeStructBegin('addItem_args')
9232
    if self.item is not None:
9233
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9234
      self.item.write(oprot)
9235
      oprot.writeFieldEnd()
9236
    oprot.writeFieldStop()
9237
    oprot.writeStructEnd()
9238
 
9239
  def validate(self):
9240
    return
9241
 
9242
 
9243
  def __repr__(self):
9244
    L = ['%s=%r' % (key, value)
9245
      for key, value in self.__dict__.iteritems()]
9246
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9247
 
9248
  def __eq__(self, other):
9249
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9250
 
9251
  def __ne__(self, other):
9252
    return not (self == other)
9253
 
9254
class addItem_result:
9255
  """
9256
  Attributes:
9257
   - success
9258
   - cex
9259
  """
9260
 
9261
  thrift_spec = (
9262
    (0, TType.I64, 'success', None, None, ), # 0
9263
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9264
  )
9265
 
9266
  def __init__(self, success=None, cex=None,):
9267
    self.success = success
9268
    self.cex = cex
9269
 
9270
  def read(self, iprot):
9271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9273
      return
9274
    iprot.readStructBegin()
9275
    while True:
9276
      (fname, ftype, fid) = iprot.readFieldBegin()
9277
      if ftype == TType.STOP:
9278
        break
9279
      if fid == 0:
9280
        if ftype == TType.I64:
9281
          self.success = iprot.readI64();
9282
        else:
9283
          iprot.skip(ftype)
9284
      elif fid == 1:
9285
        if ftype == TType.STRUCT:
9286
          self.cex = CatalogServiceException()
9287
          self.cex.read(iprot)
9288
        else:
9289
          iprot.skip(ftype)
9290
      else:
9291
        iprot.skip(ftype)
9292
      iprot.readFieldEnd()
9293
    iprot.readStructEnd()
9294
 
9295
  def write(self, oprot):
9296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9298
      return
9299
    oprot.writeStructBegin('addItem_result')
9300
    if self.success is not None:
9301
      oprot.writeFieldBegin('success', TType.I64, 0)
9302
      oprot.writeI64(self.success)
9303
      oprot.writeFieldEnd()
9304
    if self.cex is not None:
9305
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9306
      self.cex.write(oprot)
9307
      oprot.writeFieldEnd()
9308
    oprot.writeFieldStop()
9309
    oprot.writeStructEnd()
9310
 
9311
  def validate(self):
9312
    return
9313
 
9314
 
9315
  def __repr__(self):
9316
    L = ['%s=%r' % (key, value)
9317
      for key, value in self.__dict__.iteritems()]
9318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9319
 
9320
  def __eq__(self, other):
9321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9322
 
9323
  def __ne__(self, other):
9324
    return not (self == other)
9325
 
9326
class updateItem_args:
9327
  """
9328
  Attributes:
9329
   - item
9330
  """
9331
 
9332
  thrift_spec = (
9333
    None, # 0
9334
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9335
  )
9336
 
9337
  def __init__(self, item=None,):
9338
    self.item = item
9339
 
9340
  def read(self, iprot):
9341
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9342
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9343
      return
9344
    iprot.readStructBegin()
9345
    while True:
9346
      (fname, ftype, fid) = iprot.readFieldBegin()
9347
      if ftype == TType.STOP:
9348
        break
9349
      if fid == 1:
9350
        if ftype == TType.STRUCT:
9351
          self.item = Item()
9352
          self.item.read(iprot)
9353
        else:
9354
          iprot.skip(ftype)
9355
      else:
9356
        iprot.skip(ftype)
9357
      iprot.readFieldEnd()
9358
    iprot.readStructEnd()
9359
 
9360
  def write(self, oprot):
9361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9363
      return
9364
    oprot.writeStructBegin('updateItem_args')
9365
    if self.item is not None:
9366
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9367
      self.item.write(oprot)
9368
      oprot.writeFieldEnd()
9369
    oprot.writeFieldStop()
9370
    oprot.writeStructEnd()
9371
 
9372
  def validate(self):
9373
    return
9374
 
9375
 
9376
  def __repr__(self):
9377
    L = ['%s=%r' % (key, value)
9378
      for key, value in self.__dict__.iteritems()]
9379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9380
 
9381
  def __eq__(self, other):
9382
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9383
 
9384
  def __ne__(self, other):
9385
    return not (self == other)
9386
 
9387
class updateItem_result:
9388
  """
9389
  Attributes:
9390
   - success
9391
   - cex
9392
  """
9393
 
9394
  thrift_spec = (
9395
    (0, TType.I64, 'success', None, None, ), # 0
9396
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9397
  )
9398
 
9399
  def __init__(self, success=None, cex=None,):
9400
    self.success = success
9401
    self.cex = cex
9402
 
9403
  def read(self, iprot):
9404
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9405
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9406
      return
9407
    iprot.readStructBegin()
9408
    while True:
9409
      (fname, ftype, fid) = iprot.readFieldBegin()
9410
      if ftype == TType.STOP:
9411
        break
9412
      if fid == 0:
9413
        if ftype == TType.I64:
9414
          self.success = iprot.readI64();
9415
        else:
9416
          iprot.skip(ftype)
9417
      elif fid == 1:
9418
        if ftype == TType.STRUCT:
9419
          self.cex = CatalogServiceException()
9420
          self.cex.read(iprot)
9421
        else:
9422
          iprot.skip(ftype)
9423
      else:
9424
        iprot.skip(ftype)
9425
      iprot.readFieldEnd()
9426
    iprot.readStructEnd()
9427
 
9428
  def write(self, oprot):
9429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9431
      return
9432
    oprot.writeStructBegin('updateItem_result')
9433
    if self.success is not None:
9434
      oprot.writeFieldBegin('success', TType.I64, 0)
9435
      oprot.writeI64(self.success)
9436
      oprot.writeFieldEnd()
9437
    if self.cex is not None:
9438
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9439
      self.cex.write(oprot)
9440
      oprot.writeFieldEnd()
9441
    oprot.writeFieldStop()
9442
    oprot.writeStructEnd()
9443
 
9444
  def validate(self):
9445
    return
9446
 
9447
 
9448
  def __repr__(self):
9449
    L = ['%s=%r' % (key, value)
9450
      for key, value in self.__dict__.iteritems()]
9451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9452
 
9453
  def __eq__(self, other):
9454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9455
 
9456
  def __ne__(self, other):
9457
    return not (self == other)
9458
 
9459
class isActive_args:
9460
  """
9461
  Attributes:
9462
   - itemId
9463
  """
9464
 
9465
  thrift_spec = (
9466
    None, # 0
9467
    (1, TType.I64, 'itemId', None, None, ), # 1
9468
  )
9469
 
9470
  def __init__(self, itemId=None,):
9471
    self.itemId = itemId
9472
 
9473
  def read(self, iprot):
9474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9476
      return
9477
    iprot.readStructBegin()
9478
    while True:
9479
      (fname, ftype, fid) = iprot.readFieldBegin()
9480
      if ftype == TType.STOP:
9481
        break
9482
      if fid == 1:
9483
        if ftype == TType.I64:
9484
          self.itemId = iprot.readI64();
9485
        else:
9486
          iprot.skip(ftype)
9487
      else:
9488
        iprot.skip(ftype)
9489
      iprot.readFieldEnd()
9490
    iprot.readStructEnd()
9491
 
9492
  def write(self, oprot):
9493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9495
      return
9496
    oprot.writeStructBegin('isActive_args')
9497
    if self.itemId is not None:
9498
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9499
      oprot.writeI64(self.itemId)
9500
      oprot.writeFieldEnd()
9501
    oprot.writeFieldStop()
9502
    oprot.writeStructEnd()
9503
 
9504
  def validate(self):
9505
    return
9506
 
9507
 
9508
  def __repr__(self):
9509
    L = ['%s=%r' % (key, value)
9510
      for key, value in self.__dict__.iteritems()]
9511
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9512
 
9513
  def __eq__(self, other):
9514
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9515
 
9516
  def __ne__(self, other):
9517
    return not (self == other)
9518
 
9519
class isActive_result:
9520
  """
9521
  Attributes:
9522
   - success
9523
   - isex
9524
  """
9525
 
9526
  thrift_spec = (
9527
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
9528
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9529
  )
9530
 
9531
  def __init__(self, success=None, isex=None,):
9532
    self.success = success
9533
    self.isex = isex
9534
 
9535
  def read(self, iprot):
9536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9538
      return
9539
    iprot.readStructBegin()
9540
    while True:
9541
      (fname, ftype, fid) = iprot.readFieldBegin()
9542
      if ftype == TType.STOP:
9543
        break
9544
      if fid == 0:
9545
        if ftype == TType.STRUCT:
9546
          self.success = ItemShippingInfo()
9547
          self.success.read(iprot)
9548
        else:
9549
          iprot.skip(ftype)
9550
      elif fid == 1:
9551
        if ftype == TType.STRUCT:
9552
          self.isex = CatalogServiceException()
9553
          self.isex.read(iprot)
9554
        else:
9555
          iprot.skip(ftype)
9556
      else:
9557
        iprot.skip(ftype)
9558
      iprot.readFieldEnd()
9559
    iprot.readStructEnd()
9560
 
9561
  def write(self, oprot):
9562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9564
      return
9565
    oprot.writeStructBegin('isActive_result')
9566
    if self.success is not None:
9567
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9568
      self.success.write(oprot)
9569
      oprot.writeFieldEnd()
9570
    if self.isex is not None:
9571
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9572
      self.isex.write(oprot)
9573
      oprot.writeFieldEnd()
9574
    oprot.writeFieldStop()
9575
    oprot.writeStructEnd()
9576
 
9577
  def validate(self):
9578
    return
9579
 
9580
 
9581
  def __repr__(self):
9582
    L = ['%s=%r' % (key, value)
9583
      for key, value in self.__dict__.iteritems()]
9584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9585
 
9586
  def __eq__(self, other):
9587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9588
 
9589
  def __ne__(self, other):
9590
    return not (self == other)
9591
 
7438 amit.gupta 9592
class getItemsStatus_args:
9593
  """
9594
  Attributes:
9595
   - itemIds
9596
  """
9597
 
9598
  thrift_spec = (
9599
    None, # 0
9600
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
9601
  )
9602
 
9603
  def __init__(self, itemIds=None,):
9604
    self.itemIds = itemIds
9605
 
9606
  def read(self, iprot):
9607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9609
      return
9610
    iprot.readStructBegin()
9611
    while True:
9612
      (fname, ftype, fid) = iprot.readFieldBegin()
9613
      if ftype == TType.STOP:
9614
        break
9615
      if fid == 1:
9616
        if ftype == TType.LIST:
9617
          self.itemIds = []
8590 kshitij.so 9618
          (_etype33, _size30) = iprot.readListBegin()
9619
          for _i34 in xrange(_size30):
9620
            _elem35 = iprot.readI64();
9621
            self.itemIds.append(_elem35)
7438 amit.gupta 9622
          iprot.readListEnd()
9623
        else:
9624
          iprot.skip(ftype)
9625
      else:
9626
        iprot.skip(ftype)
9627
      iprot.readFieldEnd()
9628
    iprot.readStructEnd()
9629
 
9630
  def write(self, oprot):
9631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9633
      return
9634
    oprot.writeStructBegin('getItemsStatus_args')
9635
    if self.itemIds is not None:
9636
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
9637
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 9638
      for iter36 in self.itemIds:
9639
        oprot.writeI64(iter36)
7438 amit.gupta 9640
      oprot.writeListEnd()
9641
      oprot.writeFieldEnd()
9642
    oprot.writeFieldStop()
9643
    oprot.writeStructEnd()
9644
 
9645
  def validate(self):
9646
    return
9647
 
9648
 
9649
  def __repr__(self):
9650
    L = ['%s=%r' % (key, value)
9651
      for key, value in self.__dict__.iteritems()]
9652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9653
 
9654
  def __eq__(self, other):
9655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9656
 
9657
  def __ne__(self, other):
9658
    return not (self == other)
9659
 
9660
class getItemsStatus_result:
9661
  """
9662
  Attributes:
9663
   - success
9664
   - isex
9665
  """
9666
 
9667
  thrift_spec = (
9668
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
9669
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9670
  )
9671
 
9672
  def __init__(self, success=None, isex=None,):
9673
    self.success = success
9674
    self.isex = isex
9675
 
9676
  def read(self, iprot):
9677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9679
      return
9680
    iprot.readStructBegin()
9681
    while True:
9682
      (fname, ftype, fid) = iprot.readFieldBegin()
9683
      if ftype == TType.STOP:
9684
        break
9685
      if fid == 0:
9686
        if ftype == TType.MAP:
9687
          self.success = {}
8590 kshitij.so 9688
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
9689
          for _i41 in xrange(_size37):
9690
            _key42 = iprot.readI64();
9691
            _val43 = iprot.readBool();
9692
            self.success[_key42] = _val43
7438 amit.gupta 9693
          iprot.readMapEnd()
9694
        else:
9695
          iprot.skip(ftype)
9696
      elif fid == 1:
9697
        if ftype == TType.STRUCT:
9698
          self.isex = CatalogServiceException()
9699
          self.isex.read(iprot)
9700
        else:
9701
          iprot.skip(ftype)
9702
      else:
9703
        iprot.skip(ftype)
9704
      iprot.readFieldEnd()
9705
    iprot.readStructEnd()
9706
 
9707
  def write(self, oprot):
9708
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9709
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9710
      return
9711
    oprot.writeStructBegin('getItemsStatus_result')
9712
    if self.success is not None:
9713
      oprot.writeFieldBegin('success', TType.MAP, 0)
9714
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 9715
      for kiter44,viter45 in self.success.items():
9716
        oprot.writeI64(kiter44)
9717
        oprot.writeBool(viter45)
7438 amit.gupta 9718
      oprot.writeMapEnd()
9719
      oprot.writeFieldEnd()
9720
    if self.isex is not None:
9721
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9722
      self.isex.write(oprot)
9723
      oprot.writeFieldEnd()
9724
    oprot.writeFieldStop()
9725
    oprot.writeStructEnd()
9726
 
9727
  def validate(self):
9728
    return
9729
 
9730
 
9731
  def __repr__(self):
9732
    L = ['%s=%r' % (key, value)
9733
      for key, value in self.__dict__.iteritems()]
9734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9735
 
9736
  def __eq__(self, other):
9737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9738
 
9739
  def __ne__(self, other):
9740
    return not (self == other)
9741
 
5944 mandeep.dh 9742
class getItemStatusDescription_args:
9743
  """
9744
  Attributes:
9745
   - itemId
9746
  """
9747
 
9748
  thrift_spec = (
9749
    None, # 0
9750
    (1, TType.I64, 'itemId', None, None, ), # 1
9751
  )
9752
 
9753
  def __init__(self, itemId=None,):
9754
    self.itemId = itemId
9755
 
9756
  def read(self, iprot):
9757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9759
      return
9760
    iprot.readStructBegin()
9761
    while True:
9762
      (fname, ftype, fid) = iprot.readFieldBegin()
9763
      if ftype == TType.STOP:
9764
        break
9765
      if fid == 1:
9766
        if ftype == TType.I64:
9767
          self.itemId = iprot.readI64();
9768
        else:
9769
          iprot.skip(ftype)
9770
      else:
9771
        iprot.skip(ftype)
9772
      iprot.readFieldEnd()
9773
    iprot.readStructEnd()
9774
 
9775
  def write(self, oprot):
9776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9778
      return
9779
    oprot.writeStructBegin('getItemStatusDescription_args')
9780
    if self.itemId is not None:
9781
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9782
      oprot.writeI64(self.itemId)
9783
      oprot.writeFieldEnd()
9784
    oprot.writeFieldStop()
9785
    oprot.writeStructEnd()
9786
 
9787
  def validate(self):
9788
    return
9789
 
9790
 
9791
  def __repr__(self):
9792
    L = ['%s=%r' % (key, value)
9793
      for key, value in self.__dict__.iteritems()]
9794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9795
 
9796
  def __eq__(self, other):
9797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9798
 
9799
  def __ne__(self, other):
9800
    return not (self == other)
9801
 
9802
class getItemStatusDescription_result:
9803
  """
9804
  Attributes:
9805
   - success
9806
   - isex
9807
  """
9808
 
9809
  thrift_spec = (
9810
    (0, TType.STRING, 'success', None, None, ), # 0
9811
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9812
  )
9813
 
9814
  def __init__(self, success=None, isex=None,):
9815
    self.success = success
9816
    self.isex = isex
9817
 
9818
  def read(self, iprot):
9819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9821
      return
9822
    iprot.readStructBegin()
9823
    while True:
9824
      (fname, ftype, fid) = iprot.readFieldBegin()
9825
      if ftype == TType.STOP:
9826
        break
9827
      if fid == 0:
9828
        if ftype == TType.STRING:
9829
          self.success = iprot.readString();
9830
        else:
9831
          iprot.skip(ftype)
9832
      elif fid == 1:
9833
        if ftype == TType.STRUCT:
9834
          self.isex = CatalogServiceException()
9835
          self.isex.read(iprot)
9836
        else:
9837
          iprot.skip(ftype)
9838
      else:
9839
        iprot.skip(ftype)
9840
      iprot.readFieldEnd()
9841
    iprot.readStructEnd()
9842
 
9843
  def write(self, oprot):
9844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9846
      return
9847
    oprot.writeStructBegin('getItemStatusDescription_result')
9848
    if self.success is not None:
9849
      oprot.writeFieldBegin('success', TType.STRING, 0)
9850
      oprot.writeString(self.success)
9851
      oprot.writeFieldEnd()
9852
    if self.isex is not None:
9853
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9854
      self.isex.write(oprot)
9855
      oprot.writeFieldEnd()
9856
    oprot.writeFieldStop()
9857
    oprot.writeStructEnd()
9858
 
9859
  def validate(self):
9860
    return
9861
 
9862
 
9863
  def __repr__(self):
9864
    L = ['%s=%r' % (key, value)
9865
      for key, value in self.__dict__.iteritems()]
9866
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9867
 
9868
  def __eq__(self, other):
9869
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9870
 
9871
  def __ne__(self, other):
9872
    return not (self == other)
9873
 
9874
class startItemOn_args:
9875
  """
9876
  Attributes:
9877
   - item_id
9878
   - timestamp
9879
  """
9880
 
9881
  thrift_spec = (
9882
    None, # 0
9883
    (1, TType.I64, 'item_id', None, None, ), # 1
9884
    (2, TType.I64, 'timestamp', None, None, ), # 2
9885
  )
9886
 
9887
  def __init__(self, item_id=None, timestamp=None,):
9888
    self.item_id = item_id
9889
    self.timestamp = timestamp
9890
 
9891
  def read(self, iprot):
9892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9894
      return
9895
    iprot.readStructBegin()
9896
    while True:
9897
      (fname, ftype, fid) = iprot.readFieldBegin()
9898
      if ftype == TType.STOP:
9899
        break
9900
      if fid == 1:
9901
        if ftype == TType.I64:
9902
          self.item_id = iprot.readI64();
9903
        else:
9904
          iprot.skip(ftype)
9905
      elif fid == 2:
9906
        if ftype == TType.I64:
9907
          self.timestamp = iprot.readI64();
9908
        else:
9909
          iprot.skip(ftype)
9910
      else:
9911
        iprot.skip(ftype)
9912
      iprot.readFieldEnd()
9913
    iprot.readStructEnd()
9914
 
9915
  def write(self, oprot):
9916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9918
      return
9919
    oprot.writeStructBegin('startItemOn_args')
9920
    if self.item_id is not None:
9921
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9922
      oprot.writeI64(self.item_id)
9923
      oprot.writeFieldEnd()
9924
    if self.timestamp is not None:
9925
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9926
      oprot.writeI64(self.timestamp)
9927
      oprot.writeFieldEnd()
9928
    oprot.writeFieldStop()
9929
    oprot.writeStructEnd()
9930
 
9931
  def validate(self):
9932
    return
9933
 
9934
 
9935
  def __repr__(self):
9936
    L = ['%s=%r' % (key, value)
9937
      for key, value in self.__dict__.iteritems()]
9938
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9939
 
9940
  def __eq__(self, other):
9941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9942
 
9943
  def __ne__(self, other):
9944
    return not (self == other)
9945
 
9946
class startItemOn_result:
9947
  """
9948
  Attributes:
9949
   - cex
9950
  """
9951
 
9952
  thrift_spec = (
9953
    None, # 0
9954
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9955
  )
9956
 
9957
  def __init__(self, cex=None,):
9958
    self.cex = cex
9959
 
9960
  def read(self, iprot):
9961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9963
      return
9964
    iprot.readStructBegin()
9965
    while True:
9966
      (fname, ftype, fid) = iprot.readFieldBegin()
9967
      if ftype == TType.STOP:
9968
        break
9969
      if fid == 1:
9970
        if ftype == TType.STRUCT:
9971
          self.cex = CatalogServiceException()
9972
          self.cex.read(iprot)
9973
        else:
9974
          iprot.skip(ftype)
9975
      else:
9976
        iprot.skip(ftype)
9977
      iprot.readFieldEnd()
9978
    iprot.readStructEnd()
9979
 
9980
  def write(self, oprot):
9981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9983
      return
9984
    oprot.writeStructBegin('startItemOn_result')
9985
    if self.cex is not None:
9986
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9987
      self.cex.write(oprot)
9988
      oprot.writeFieldEnd()
9989
    oprot.writeFieldStop()
9990
    oprot.writeStructEnd()
9991
 
9992
  def validate(self):
9993
    return
9994
 
9995
 
9996
  def __repr__(self):
9997
    L = ['%s=%r' % (key, value)
9998
      for key, value in self.__dict__.iteritems()]
9999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10000
 
10001
  def __eq__(self, other):
10002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10003
 
10004
  def __ne__(self, other):
10005
    return not (self == other)
10006
 
10007
class retireItemOn_args:
10008
  """
10009
  Attributes:
10010
   - item_id
10011
   - timestamp
10012
  """
10013
 
10014
  thrift_spec = (
10015
    None, # 0
10016
    (1, TType.I64, 'item_id', None, None, ), # 1
10017
    (2, TType.I64, 'timestamp', None, None, ), # 2
10018
  )
10019
 
10020
  def __init__(self, item_id=None, timestamp=None,):
10021
    self.item_id = item_id
10022
    self.timestamp = timestamp
10023
 
10024
  def read(self, iprot):
10025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10027
      return
10028
    iprot.readStructBegin()
10029
    while True:
10030
      (fname, ftype, fid) = iprot.readFieldBegin()
10031
      if ftype == TType.STOP:
10032
        break
10033
      if fid == 1:
10034
        if ftype == TType.I64:
10035
          self.item_id = iprot.readI64();
10036
        else:
10037
          iprot.skip(ftype)
10038
      elif fid == 2:
10039
        if ftype == TType.I64:
10040
          self.timestamp = iprot.readI64();
10041
        else:
10042
          iprot.skip(ftype)
10043
      else:
10044
        iprot.skip(ftype)
10045
      iprot.readFieldEnd()
10046
    iprot.readStructEnd()
10047
 
10048
  def write(self, oprot):
10049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10051
      return
10052
    oprot.writeStructBegin('retireItemOn_args')
10053
    if self.item_id is not None:
10054
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10055
      oprot.writeI64(self.item_id)
10056
      oprot.writeFieldEnd()
10057
    if self.timestamp is not None:
10058
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10059
      oprot.writeI64(self.timestamp)
10060
      oprot.writeFieldEnd()
10061
    oprot.writeFieldStop()
10062
    oprot.writeStructEnd()
10063
 
10064
  def validate(self):
10065
    return
10066
 
10067
 
10068
  def __repr__(self):
10069
    L = ['%s=%r' % (key, value)
10070
      for key, value in self.__dict__.iteritems()]
10071
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10072
 
10073
  def __eq__(self, other):
10074
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10075
 
10076
  def __ne__(self, other):
10077
    return not (self == other)
10078
 
10079
class retireItemOn_result:
10080
  """
10081
  Attributes:
10082
   - cex
10083
  """
10084
 
10085
  thrift_spec = (
10086
    None, # 0
10087
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10088
  )
10089
 
10090
  def __init__(self, cex=None,):
10091
    self.cex = cex
10092
 
10093
  def read(self, iprot):
10094
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10095
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10096
      return
10097
    iprot.readStructBegin()
10098
    while True:
10099
      (fname, ftype, fid) = iprot.readFieldBegin()
10100
      if ftype == TType.STOP:
10101
        break
10102
      if fid == 1:
10103
        if ftype == TType.STRUCT:
10104
          self.cex = CatalogServiceException()
10105
          self.cex.read(iprot)
10106
        else:
10107
          iprot.skip(ftype)
10108
      else:
10109
        iprot.skip(ftype)
10110
      iprot.readFieldEnd()
10111
    iprot.readStructEnd()
10112
 
10113
  def write(self, oprot):
10114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10116
      return
10117
    oprot.writeStructBegin('retireItemOn_result')
10118
    if self.cex is not None:
10119
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10120
      self.cex.write(oprot)
10121
      oprot.writeFieldEnd()
10122
    oprot.writeFieldStop()
10123
    oprot.writeStructEnd()
10124
 
10125
  def validate(self):
10126
    return
10127
 
10128
 
10129
  def __repr__(self):
10130
    L = ['%s=%r' % (key, value)
10131
      for key, value in self.__dict__.iteritems()]
10132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10133
 
10134
  def __eq__(self, other):
10135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10136
 
10137
  def __ne__(self, other):
10138
    return not (self == other)
10139
 
10140
class changeItemStatus_args:
10141
  """
10142
  Attributes:
10143
   - item_id
10144
   - timestamp
10145
   - newstatus
10146
  """
10147
 
10148
  thrift_spec = (
10149
    None, # 0
10150
    (1, TType.I64, 'item_id', None, None, ), # 1
10151
    (2, TType.I64, 'timestamp', None, None, ), # 2
10152
    (3, TType.I32, 'newstatus', None, None, ), # 3
10153
  )
10154
 
10155
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
10156
    self.item_id = item_id
10157
    self.timestamp = timestamp
10158
    self.newstatus = newstatus
10159
 
10160
  def read(self, iprot):
10161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10163
      return
10164
    iprot.readStructBegin()
10165
    while True:
10166
      (fname, ftype, fid) = iprot.readFieldBegin()
10167
      if ftype == TType.STOP:
10168
        break
10169
      if fid == 1:
10170
        if ftype == TType.I64:
10171
          self.item_id = iprot.readI64();
10172
        else:
10173
          iprot.skip(ftype)
10174
      elif fid == 2:
10175
        if ftype == TType.I64:
10176
          self.timestamp = iprot.readI64();
10177
        else:
10178
          iprot.skip(ftype)
10179
      elif fid == 3:
10180
        if ftype == TType.I32:
10181
          self.newstatus = iprot.readI32();
10182
        else:
10183
          iprot.skip(ftype)
10184
      else:
10185
        iprot.skip(ftype)
10186
      iprot.readFieldEnd()
10187
    iprot.readStructEnd()
10188
 
10189
  def write(self, oprot):
10190
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10191
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10192
      return
10193
    oprot.writeStructBegin('changeItemStatus_args')
10194
    if self.item_id is not None:
10195
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10196
      oprot.writeI64(self.item_id)
10197
      oprot.writeFieldEnd()
10198
    if self.timestamp is not None:
10199
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10200
      oprot.writeI64(self.timestamp)
10201
      oprot.writeFieldEnd()
10202
    if self.newstatus is not None:
10203
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
10204
      oprot.writeI32(self.newstatus)
10205
      oprot.writeFieldEnd()
10206
    oprot.writeFieldStop()
10207
    oprot.writeStructEnd()
10208
 
10209
  def validate(self):
10210
    return
10211
 
10212
 
10213
  def __repr__(self):
10214
    L = ['%s=%r' % (key, value)
10215
      for key, value in self.__dict__.iteritems()]
10216
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10217
 
10218
  def __eq__(self, other):
10219
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10220
 
10221
  def __ne__(self, other):
10222
    return not (self == other)
10223
 
10224
class changeItemStatus_result:
10225
  """
10226
  Attributes:
10227
   - cex
10228
  """
10229
 
10230
  thrift_spec = (
10231
    None, # 0
10232
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10233
  )
10234
 
10235
  def __init__(self, cex=None,):
10236
    self.cex = cex
10237
 
10238
  def read(self, iprot):
10239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10241
      return
10242
    iprot.readStructBegin()
10243
    while True:
10244
      (fname, ftype, fid) = iprot.readFieldBegin()
10245
      if ftype == TType.STOP:
10246
        break
10247
      if fid == 1:
10248
        if ftype == TType.STRUCT:
10249
          self.cex = CatalogServiceException()
10250
          self.cex.read(iprot)
10251
        else:
10252
          iprot.skip(ftype)
10253
      else:
10254
        iprot.skip(ftype)
10255
      iprot.readFieldEnd()
10256
    iprot.readStructEnd()
10257
 
10258
  def write(self, oprot):
10259
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10260
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10261
      return
10262
    oprot.writeStructBegin('changeItemStatus_result')
10263
    if self.cex is not None:
10264
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10265
      self.cex.write(oprot)
10266
      oprot.writeFieldEnd()
10267
    oprot.writeFieldStop()
10268
    oprot.writeStructEnd()
10269
 
10270
  def validate(self):
10271
    return
10272
 
10273
 
10274
  def __repr__(self):
10275
    L = ['%s=%r' % (key, value)
10276
      for key, value in self.__dict__.iteritems()]
10277
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10278
 
10279
  def __eq__(self, other):
10280
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10281
 
10282
  def __ne__(self, other):
10283
    return not (self == other)
10284
 
10285
class getItem_args:
10286
  """
10287
  Attributes:
10288
   - item_id
10289
  """
10290
 
10291
  thrift_spec = (
10292
    None, # 0
10293
    (1, TType.I64, 'item_id', None, None, ), # 1
10294
  )
10295
 
10296
  def __init__(self, item_id=None,):
10297
    self.item_id = item_id
10298
 
10299
  def read(self, iprot):
10300
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10301
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10302
      return
10303
    iprot.readStructBegin()
10304
    while True:
10305
      (fname, ftype, fid) = iprot.readFieldBegin()
10306
      if ftype == TType.STOP:
10307
        break
10308
      if fid == 1:
10309
        if ftype == TType.I64:
10310
          self.item_id = iprot.readI64();
10311
        else:
10312
          iprot.skip(ftype)
10313
      else:
10314
        iprot.skip(ftype)
10315
      iprot.readFieldEnd()
10316
    iprot.readStructEnd()
10317
 
10318
  def write(self, oprot):
10319
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10320
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10321
      return
10322
    oprot.writeStructBegin('getItem_args')
10323
    if self.item_id is not None:
10324
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10325
      oprot.writeI64(self.item_id)
10326
      oprot.writeFieldEnd()
10327
    oprot.writeFieldStop()
10328
    oprot.writeStructEnd()
10329
 
10330
  def validate(self):
10331
    return
10332
 
10333
 
10334
  def __repr__(self):
10335
    L = ['%s=%r' % (key, value)
10336
      for key, value in self.__dict__.iteritems()]
10337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10338
 
10339
  def __eq__(self, other):
10340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10341
 
10342
  def __ne__(self, other):
10343
    return not (self == other)
10344
 
10345
class getItem_result:
10346
  """
10347
  Attributes:
10348
   - success
10349
   - cex
10350
  """
10351
 
10352
  thrift_spec = (
10353
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10354
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10355
  )
10356
 
10357
  def __init__(self, success=None, cex=None,):
10358
    self.success = success
10359
    self.cex = cex
10360
 
10361
  def read(self, iprot):
10362
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10363
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10364
      return
10365
    iprot.readStructBegin()
10366
    while True:
10367
      (fname, ftype, fid) = iprot.readFieldBegin()
10368
      if ftype == TType.STOP:
10369
        break
10370
      if fid == 0:
10371
        if ftype == TType.STRUCT:
10372
          self.success = Item()
10373
          self.success.read(iprot)
10374
        else:
10375
          iprot.skip(ftype)
10376
      elif fid == 1:
10377
        if ftype == TType.STRUCT:
10378
          self.cex = CatalogServiceException()
10379
          self.cex.read(iprot)
10380
        else:
10381
          iprot.skip(ftype)
10382
      else:
10383
        iprot.skip(ftype)
10384
      iprot.readFieldEnd()
10385
    iprot.readStructEnd()
10386
 
10387
  def write(self, oprot):
10388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10390
      return
10391
    oprot.writeStructBegin('getItem_result')
10392
    if self.success is not None:
10393
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10394
      self.success.write(oprot)
10395
      oprot.writeFieldEnd()
10396
    if self.cex is not None:
10397
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10398
      self.cex.write(oprot)
10399
      oprot.writeFieldEnd()
10400
    oprot.writeFieldStop()
10401
    oprot.writeStructEnd()
10402
 
10403
  def validate(self):
10404
    return
10405
 
10406
 
10407
  def __repr__(self):
10408
    L = ['%s=%r' % (key, value)
10409
      for key, value in self.__dict__.iteritems()]
10410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10411
 
10412
  def __eq__(self, other):
10413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10414
 
10415
  def __ne__(self, other):
10416
    return not (self == other)
10417
 
10418
class getItemsByCatalogId_args:
10419
  """
10420
  Attributes:
10421
   - catalog_item_id
10422
  """
10423
 
10424
  thrift_spec = (
10425
    None, # 0
10426
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10427
  )
10428
 
10429
  def __init__(self, catalog_item_id=None,):
10430
    self.catalog_item_id = catalog_item_id
10431
 
10432
  def read(self, iprot):
10433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10435
      return
10436
    iprot.readStructBegin()
10437
    while True:
10438
      (fname, ftype, fid) = iprot.readFieldBegin()
10439
      if ftype == TType.STOP:
10440
        break
10441
      if fid == 1:
10442
        if ftype == TType.I64:
10443
          self.catalog_item_id = iprot.readI64();
10444
        else:
10445
          iprot.skip(ftype)
10446
      else:
10447
        iprot.skip(ftype)
10448
      iprot.readFieldEnd()
10449
    iprot.readStructEnd()
10450
 
10451
  def write(self, oprot):
10452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10454
      return
10455
    oprot.writeStructBegin('getItemsByCatalogId_args')
10456
    if self.catalog_item_id is not None:
10457
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10458
      oprot.writeI64(self.catalog_item_id)
10459
      oprot.writeFieldEnd()
10460
    oprot.writeFieldStop()
10461
    oprot.writeStructEnd()
10462
 
10463
  def validate(self):
10464
    return
10465
 
10466
 
10467
  def __repr__(self):
10468
    L = ['%s=%r' % (key, value)
10469
      for key, value in self.__dict__.iteritems()]
10470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10471
 
10472
  def __eq__(self, other):
10473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10474
 
10475
  def __ne__(self, other):
10476
    return not (self == other)
10477
 
10478
class getItemsByCatalogId_result:
10479
  """
10480
  Attributes:
10481
   - success
10482
   - cex
10483
  """
10484
 
10485
  thrift_spec = (
10486
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10487
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10488
  )
10489
 
10490
  def __init__(self, success=None, cex=None,):
10491
    self.success = success
10492
    self.cex = cex
10493
 
10494
  def read(self, iprot):
10495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10497
      return
10498
    iprot.readStructBegin()
10499
    while True:
10500
      (fname, ftype, fid) = iprot.readFieldBegin()
10501
      if ftype == TType.STOP:
10502
        break
10503
      if fid == 0:
10504
        if ftype == TType.LIST:
10505
          self.success = []
8590 kshitij.so 10506
          (_etype49, _size46) = iprot.readListBegin()
10507
          for _i50 in xrange(_size46):
10508
            _elem51 = Item()
10509
            _elem51.read(iprot)
10510
            self.success.append(_elem51)
5944 mandeep.dh 10511
          iprot.readListEnd()
10512
        else:
10513
          iprot.skip(ftype)
10514
      elif fid == 1:
10515
        if ftype == TType.STRUCT:
10516
          self.cex = CatalogServiceException()
10517
          self.cex.read(iprot)
10518
        else:
10519
          iprot.skip(ftype)
10520
      else:
10521
        iprot.skip(ftype)
10522
      iprot.readFieldEnd()
10523
    iprot.readStructEnd()
10524
 
10525
  def write(self, oprot):
10526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10528
      return
10529
    oprot.writeStructBegin('getItemsByCatalogId_result')
10530
    if self.success is not None:
10531
      oprot.writeFieldBegin('success', TType.LIST, 0)
10532
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10533
      for iter52 in self.success:
10534
        iter52.write(oprot)
5944 mandeep.dh 10535
      oprot.writeListEnd()
10536
      oprot.writeFieldEnd()
10537
    if self.cex is not None:
10538
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10539
      self.cex.write(oprot)
10540
      oprot.writeFieldEnd()
10541
    oprot.writeFieldStop()
10542
    oprot.writeStructEnd()
10543
 
10544
  def validate(self):
10545
    return
10546
 
10547
 
10548
  def __repr__(self):
10549
    L = ['%s=%r' % (key, value)
10550
      for key, value in self.__dict__.iteritems()]
10551
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10552
 
10553
  def __eq__(self, other):
10554
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10555
 
10556
  def __ne__(self, other):
10557
    return not (self == other)
10558
 
10559
class getValidItemsByCatalogId_args:
10560
  """
10561
  Attributes:
10562
   - catalog_item_id
10563
  """
10564
 
10565
  thrift_spec = (
10566
    None, # 0
10567
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10568
  )
10569
 
10570
  def __init__(self, catalog_item_id=None,):
10571
    self.catalog_item_id = catalog_item_id
10572
 
10573
  def read(self, iprot):
10574
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10575
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10576
      return
10577
    iprot.readStructBegin()
10578
    while True:
10579
      (fname, ftype, fid) = iprot.readFieldBegin()
10580
      if ftype == TType.STOP:
10581
        break
10582
      if fid == 1:
10583
        if ftype == TType.I64:
10584
          self.catalog_item_id = iprot.readI64();
10585
        else:
10586
          iprot.skip(ftype)
10587
      else:
10588
        iprot.skip(ftype)
10589
      iprot.readFieldEnd()
10590
    iprot.readStructEnd()
10591
 
10592
  def write(self, oprot):
10593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10595
      return
10596
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
10597
    if self.catalog_item_id is not None:
10598
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10599
      oprot.writeI64(self.catalog_item_id)
10600
      oprot.writeFieldEnd()
10601
    oprot.writeFieldStop()
10602
    oprot.writeStructEnd()
10603
 
10604
  def validate(self):
10605
    return
10606
 
10607
 
10608
  def __repr__(self):
10609
    L = ['%s=%r' % (key, value)
10610
      for key, value in self.__dict__.iteritems()]
10611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10612
 
10613
  def __eq__(self, other):
10614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10615
 
10616
  def __ne__(self, other):
10617
    return not (self == other)
10618
 
10619
class getValidItemsByCatalogId_result:
10620
  """
10621
  Attributes:
10622
   - success
10623
   - cex
10624
  """
10625
 
10626
  thrift_spec = (
10627
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10628
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10629
  )
10630
 
10631
  def __init__(self, success=None, cex=None,):
10632
    self.success = success
10633
    self.cex = cex
10634
 
10635
  def read(self, iprot):
10636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10638
      return
10639
    iprot.readStructBegin()
10640
    while True:
10641
      (fname, ftype, fid) = iprot.readFieldBegin()
10642
      if ftype == TType.STOP:
10643
        break
10644
      if fid == 0:
10645
        if ftype == TType.LIST:
10646
          self.success = []
8590 kshitij.so 10647
          (_etype56, _size53) = iprot.readListBegin()
10648
          for _i57 in xrange(_size53):
10649
            _elem58 = Item()
10650
            _elem58.read(iprot)
10651
            self.success.append(_elem58)
5944 mandeep.dh 10652
          iprot.readListEnd()
10653
        else:
10654
          iprot.skip(ftype)
10655
      elif fid == 1:
10656
        if ftype == TType.STRUCT:
10657
          self.cex = CatalogServiceException()
10658
          self.cex.read(iprot)
10659
        else:
10660
          iprot.skip(ftype)
10661
      else:
10662
        iprot.skip(ftype)
10663
      iprot.readFieldEnd()
10664
    iprot.readStructEnd()
10665
 
10666
  def write(self, oprot):
10667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10669
      return
10670
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
10671
    if self.success is not None:
10672
      oprot.writeFieldBegin('success', TType.LIST, 0)
10673
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10674
      for iter59 in self.success:
10675
        iter59.write(oprot)
5944 mandeep.dh 10676
      oprot.writeListEnd()
10677
      oprot.writeFieldEnd()
10678
    if self.cex is not None:
10679
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10680
      self.cex.write(oprot)
10681
      oprot.writeFieldEnd()
10682
    oprot.writeFieldStop()
10683
    oprot.writeStructEnd()
10684
 
10685
  def validate(self):
10686
    return
10687
 
10688
 
10689
  def __repr__(self):
10690
    L = ['%s=%r' % (key, value)
10691
      for key, value in self.__dict__.iteritems()]
10692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10693
 
10694
  def __eq__(self, other):
10695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10696
 
10697
  def __ne__(self, other):
10698
    return not (self == other)
10699
 
10700
class getAllItems_args:
10701
  """
10702
  Attributes:
10703
   - isActive
10704
  """
10705
 
10706
  thrift_spec = (
10707
    None, # 0
10708
    (1, TType.BOOL, 'isActive', None, None, ), # 1
10709
  )
10710
 
10711
  def __init__(self, isActive=None,):
10712
    self.isActive = isActive
10713
 
10714
  def read(self, iprot):
10715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10717
      return
10718
    iprot.readStructBegin()
10719
    while True:
10720
      (fname, ftype, fid) = iprot.readFieldBegin()
10721
      if ftype == TType.STOP:
10722
        break
10723
      if fid == 1:
10724
        if ftype == TType.BOOL:
10725
          self.isActive = iprot.readBool();
10726
        else:
10727
          iprot.skip(ftype)
10728
      else:
10729
        iprot.skip(ftype)
10730
      iprot.readFieldEnd()
10731
    iprot.readStructEnd()
10732
 
10733
  def write(self, oprot):
10734
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10735
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10736
      return
10737
    oprot.writeStructBegin('getAllItems_args')
10738
    if self.isActive is not None:
10739
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
10740
      oprot.writeBool(self.isActive)
10741
      oprot.writeFieldEnd()
10742
    oprot.writeFieldStop()
10743
    oprot.writeStructEnd()
10744
 
10745
  def validate(self):
10746
    return
10747
 
10748
 
10749
  def __repr__(self):
10750
    L = ['%s=%r' % (key, value)
10751
      for key, value in self.__dict__.iteritems()]
10752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10753
 
10754
  def __eq__(self, other):
10755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10756
 
10757
  def __ne__(self, other):
10758
    return not (self == other)
10759
 
10760
class getAllItems_result:
10761
  """
10762
  Attributes:
10763
   - success
10764
   - cex
10765
  """
10766
 
10767
  thrift_spec = (
10768
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10769
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10770
  )
10771
 
10772
  def __init__(self, success=None, cex=None,):
10773
    self.success = success
10774
    self.cex = cex
10775
 
10776
  def read(self, iprot):
10777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10779
      return
10780
    iprot.readStructBegin()
10781
    while True:
10782
      (fname, ftype, fid) = iprot.readFieldBegin()
10783
      if ftype == TType.STOP:
10784
        break
10785
      if fid == 0:
10786
        if ftype == TType.LIST:
10787
          self.success = []
8590 kshitij.so 10788
          (_etype63, _size60) = iprot.readListBegin()
10789
          for _i64 in xrange(_size60):
10790
            _elem65 = Item()
10791
            _elem65.read(iprot)
10792
            self.success.append(_elem65)
5944 mandeep.dh 10793
          iprot.readListEnd()
10794
        else:
10795
          iprot.skip(ftype)
10796
      elif fid == 1:
10797
        if ftype == TType.STRUCT:
10798
          self.cex = CatalogServiceException()
10799
          self.cex.read(iprot)
10800
        else:
10801
          iprot.skip(ftype)
10802
      else:
10803
        iprot.skip(ftype)
10804
      iprot.readFieldEnd()
10805
    iprot.readStructEnd()
10806
 
10807
  def write(self, oprot):
10808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10810
      return
10811
    oprot.writeStructBegin('getAllItems_result')
10812
    if self.success is not None:
10813
      oprot.writeFieldBegin('success', TType.LIST, 0)
10814
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10815
      for iter66 in self.success:
10816
        iter66.write(oprot)
5944 mandeep.dh 10817
      oprot.writeListEnd()
10818
      oprot.writeFieldEnd()
10819
    if self.cex is not None:
10820
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10821
      self.cex.write(oprot)
10822
      oprot.writeFieldEnd()
10823
    oprot.writeFieldStop()
10824
    oprot.writeStructEnd()
10825
 
10826
  def validate(self):
10827
    return
10828
 
10829
 
10830
  def __repr__(self):
10831
    L = ['%s=%r' % (key, value)
10832
      for key, value in self.__dict__.iteritems()]
10833
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10834
 
10835
  def __eq__(self, other):
10836
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10837
 
10838
  def __ne__(self, other):
10839
    return not (self == other)
10840
 
10841
class getAllItemsByStatus_args:
10842
  """
10843
  Attributes:
10844
   - itemStatus
10845
  """
10846
 
10847
  thrift_spec = (
10848
    None, # 0
10849
    (1, TType.I32, 'itemStatus', None, None, ), # 1
10850
  )
10851
 
10852
  def __init__(self, itemStatus=None,):
10853
    self.itemStatus = itemStatus
10854
 
10855
  def read(self, iprot):
10856
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10857
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10858
      return
10859
    iprot.readStructBegin()
10860
    while True:
10861
      (fname, ftype, fid) = iprot.readFieldBegin()
10862
      if ftype == TType.STOP:
10863
        break
10864
      if fid == 1:
10865
        if ftype == TType.I32:
10866
          self.itemStatus = iprot.readI32();
10867
        else:
10868
          iprot.skip(ftype)
10869
      else:
10870
        iprot.skip(ftype)
10871
      iprot.readFieldEnd()
10872
    iprot.readStructEnd()
10873
 
10874
  def write(self, oprot):
10875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10877
      return
10878
    oprot.writeStructBegin('getAllItemsByStatus_args')
10879
    if self.itemStatus is not None:
10880
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
10881
      oprot.writeI32(self.itemStatus)
10882
      oprot.writeFieldEnd()
10883
    oprot.writeFieldStop()
10884
    oprot.writeStructEnd()
10885
 
10886
  def validate(self):
10887
    return
10888
 
10889
 
10890
  def __repr__(self):
10891
    L = ['%s=%r' % (key, value)
10892
      for key, value in self.__dict__.iteritems()]
10893
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10894
 
10895
  def __eq__(self, other):
10896
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10897
 
10898
  def __ne__(self, other):
10899
    return not (self == other)
10900
 
10901
class getAllItemsByStatus_result:
10902
  """
10903
  Attributes:
10904
   - success
10905
   - cex
10906
  """
10907
 
10908
  thrift_spec = (
10909
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10910
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10911
  )
10912
 
10913
  def __init__(self, success=None, cex=None,):
10914
    self.success = success
10915
    self.cex = cex
10916
 
10917
  def read(self, iprot):
10918
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10919
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10920
      return
10921
    iprot.readStructBegin()
10922
    while True:
10923
      (fname, ftype, fid) = iprot.readFieldBegin()
10924
      if ftype == TType.STOP:
10925
        break
10926
      if fid == 0:
10927
        if ftype == TType.LIST:
10928
          self.success = []
8590 kshitij.so 10929
          (_etype70, _size67) = iprot.readListBegin()
10930
          for _i71 in xrange(_size67):
10931
            _elem72 = Item()
10932
            _elem72.read(iprot)
10933
            self.success.append(_elem72)
5944 mandeep.dh 10934
          iprot.readListEnd()
10935
        else:
10936
          iprot.skip(ftype)
10937
      elif fid == 1:
10938
        if ftype == TType.STRUCT:
10939
          self.cex = CatalogServiceException()
10940
          self.cex.read(iprot)
10941
        else:
10942
          iprot.skip(ftype)
10943
      else:
10944
        iprot.skip(ftype)
10945
      iprot.readFieldEnd()
10946
    iprot.readStructEnd()
10947
 
10948
  def write(self, oprot):
10949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10951
      return
10952
    oprot.writeStructBegin('getAllItemsByStatus_result')
10953
    if self.success is not None:
10954
      oprot.writeFieldBegin('success', TType.LIST, 0)
10955
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10956
      for iter73 in self.success:
10957
        iter73.write(oprot)
5944 mandeep.dh 10958
      oprot.writeListEnd()
10959
      oprot.writeFieldEnd()
10960
    if self.cex is not None:
10961
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10962
      self.cex.write(oprot)
10963
      oprot.writeFieldEnd()
10964
    oprot.writeFieldStop()
10965
    oprot.writeStructEnd()
10966
 
10967
  def validate(self):
10968
    return
10969
 
10970
 
10971
  def __repr__(self):
10972
    L = ['%s=%r' % (key, value)
10973
      for key, value in self.__dict__.iteritems()]
10974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10975
 
10976
  def __eq__(self, other):
10977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10978
 
10979
  def __ne__(self, other):
10980
    return not (self == other)
10981
 
10982
class markItemAsContentComplete_args:
10983
  """
10984
  Attributes:
10985
   - entityId
10986
   - category
10987
   - brand
10988
   - modelName
10989
   - modelNumber
9253 rajveer 10990
   - isAndroid
5944 mandeep.dh 10991
  """
10992
 
10993
  thrift_spec = (
10994
    None, # 0
10995
    (1, TType.I64, 'entityId', None, None, ), # 1
10996
    (2, TType.I64, 'category', None, None, ), # 2
10997
    (3, TType.STRING, 'brand', None, None, ), # 3
10998
    (4, TType.STRING, 'modelName', None, None, ), # 4
10999
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 11000
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 11001
  )
11002
 
9253 rajveer 11003
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 11004
    self.entityId = entityId
11005
    self.category = category
11006
    self.brand = brand
11007
    self.modelName = modelName
11008
    self.modelNumber = modelNumber
9253 rajveer 11009
    self.isAndroid = isAndroid
5944 mandeep.dh 11010
 
11011
  def read(self, iprot):
11012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11014
      return
11015
    iprot.readStructBegin()
11016
    while True:
11017
      (fname, ftype, fid) = iprot.readFieldBegin()
11018
      if ftype == TType.STOP:
11019
        break
11020
      if fid == 1:
11021
        if ftype == TType.I64:
11022
          self.entityId = iprot.readI64();
11023
        else:
11024
          iprot.skip(ftype)
11025
      elif fid == 2:
11026
        if ftype == TType.I64:
11027
          self.category = iprot.readI64();
11028
        else:
11029
          iprot.skip(ftype)
11030
      elif fid == 3:
11031
        if ftype == TType.STRING:
11032
          self.brand = iprot.readString();
11033
        else:
11034
          iprot.skip(ftype)
11035
      elif fid == 4:
11036
        if ftype == TType.STRING:
11037
          self.modelName = iprot.readString();
11038
        else:
11039
          iprot.skip(ftype)
11040
      elif fid == 5:
11041
        if ftype == TType.STRING:
11042
          self.modelNumber = iprot.readString();
11043
        else:
11044
          iprot.skip(ftype)
9253 rajveer 11045
      elif fid == 6:
11046
        if ftype == TType.BOOL:
11047
          self.isAndroid = iprot.readBool();
11048
        else:
11049
          iprot.skip(ftype)
5944 mandeep.dh 11050
      else:
11051
        iprot.skip(ftype)
11052
      iprot.readFieldEnd()
11053
    iprot.readStructEnd()
11054
 
11055
  def write(self, oprot):
11056
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11057
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11058
      return
11059
    oprot.writeStructBegin('markItemAsContentComplete_args')
11060
    if self.entityId is not None:
11061
      oprot.writeFieldBegin('entityId', TType.I64, 1)
11062
      oprot.writeI64(self.entityId)
11063
      oprot.writeFieldEnd()
11064
    if self.category is not None:
11065
      oprot.writeFieldBegin('category', TType.I64, 2)
11066
      oprot.writeI64(self.category)
11067
      oprot.writeFieldEnd()
11068
    if self.brand is not None:
11069
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11070
      oprot.writeString(self.brand)
11071
      oprot.writeFieldEnd()
11072
    if self.modelName is not None:
11073
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
11074
      oprot.writeString(self.modelName)
11075
      oprot.writeFieldEnd()
11076
    if self.modelNumber is not None:
11077
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
11078
      oprot.writeString(self.modelNumber)
11079
      oprot.writeFieldEnd()
9253 rajveer 11080
    if self.isAndroid is not None:
11081
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
11082
      oprot.writeBool(self.isAndroid)
11083
      oprot.writeFieldEnd()
5944 mandeep.dh 11084
    oprot.writeFieldStop()
11085
    oprot.writeStructEnd()
11086
 
11087
  def validate(self):
11088
    return
11089
 
11090
 
11091
  def __repr__(self):
11092
    L = ['%s=%r' % (key, value)
11093
      for key, value in self.__dict__.iteritems()]
11094
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11095
 
11096
  def __eq__(self, other):
11097
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11098
 
11099
  def __ne__(self, other):
11100
    return not (self == other)
11101
 
11102
class markItemAsContentComplete_result:
11103
  """
11104
  Attributes:
11105
   - success
11106
   - cex
11107
  """
11108
 
11109
  thrift_spec = (
11110
    (0, TType.BOOL, 'success', None, None, ), # 0
11111
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11112
  )
11113
 
11114
  def __init__(self, success=None, cex=None,):
11115
    self.success = success
11116
    self.cex = cex
11117
 
11118
  def read(self, iprot):
11119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11121
      return
11122
    iprot.readStructBegin()
11123
    while True:
11124
      (fname, ftype, fid) = iprot.readFieldBegin()
11125
      if ftype == TType.STOP:
11126
        break
11127
      if fid == 0:
11128
        if ftype == TType.BOOL:
11129
          self.success = iprot.readBool();
11130
        else:
11131
          iprot.skip(ftype)
11132
      elif fid == 1:
11133
        if ftype == TType.STRUCT:
11134
          self.cex = CatalogServiceException()
11135
          self.cex.read(iprot)
11136
        else:
11137
          iprot.skip(ftype)
11138
      else:
11139
        iprot.skip(ftype)
11140
      iprot.readFieldEnd()
11141
    iprot.readStructEnd()
11142
 
11143
  def write(self, oprot):
11144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11146
      return
11147
    oprot.writeStructBegin('markItemAsContentComplete_result')
11148
    if self.success is not None:
11149
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11150
      oprot.writeBool(self.success)
11151
      oprot.writeFieldEnd()
11152
    if self.cex is not None:
11153
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11154
      self.cex.write(oprot)
11155
      oprot.writeFieldEnd()
11156
    oprot.writeFieldStop()
11157
    oprot.writeStructEnd()
11158
 
11159
  def validate(self):
11160
    return
11161
 
11162
 
11163
  def __repr__(self):
11164
    L = ['%s=%r' % (key, value)
11165
      for key, value in self.__dict__.iteritems()]
11166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11167
 
11168
  def __eq__(self, other):
11169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11170
 
11171
  def __ne__(self, other):
11172
    return not (self == other)
11173
 
12567 amit.gupta 11174
class getVatRates_args:
11175
  """
11176
  Attributes:
11177
   - itemId
11178
   - categoryId
11179
  """
11180
 
11181
  thrift_spec = (
11182
    None, # 0
11183
    (1, TType.I64, 'itemId', None, None, ), # 1
11184
    (2, TType.I64, 'categoryId', None, None, ), # 2
11185
  )
11186
 
11187
  def __init__(self, itemId=None, categoryId=None,):
11188
    self.itemId = itemId
11189
    self.categoryId = categoryId
11190
 
11191
  def read(self, iprot):
11192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11194
      return
11195
    iprot.readStructBegin()
11196
    while True:
11197
      (fname, ftype, fid) = iprot.readFieldBegin()
11198
      if ftype == TType.STOP:
11199
        break
11200
      if fid == 1:
11201
        if ftype == TType.I64:
11202
          self.itemId = iprot.readI64();
11203
        else:
11204
          iprot.skip(ftype)
11205
      elif fid == 2:
11206
        if ftype == TType.I64:
11207
          self.categoryId = iprot.readI64();
11208
        else:
11209
          iprot.skip(ftype)
11210
      else:
11211
        iprot.skip(ftype)
11212
      iprot.readFieldEnd()
11213
    iprot.readStructEnd()
11214
 
11215
  def write(self, oprot):
11216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11218
      return
11219
    oprot.writeStructBegin('getVatRates_args')
11220
    if self.itemId is not None:
11221
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11222
      oprot.writeI64(self.itemId)
11223
      oprot.writeFieldEnd()
11224
    if self.categoryId is not None:
11225
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
11226
      oprot.writeI64(self.categoryId)
11227
      oprot.writeFieldEnd()
11228
    oprot.writeFieldStop()
11229
    oprot.writeStructEnd()
11230
 
11231
  def validate(self):
11232
    return
11233
 
11234
 
11235
  def __repr__(self):
11236
    L = ['%s=%r' % (key, value)
11237
      for key, value in self.__dict__.iteritems()]
11238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11239
 
11240
  def __eq__(self, other):
11241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11242
 
11243
  def __ne__(self, other):
11244
    return not (self == other)
11245
 
11246
class getVatRates_result:
11247
  """
11248
  Attributes:
11249
   - success
11250
   - cex
11251
  """
11252
 
11253
  thrift_spec = (
11254
    (0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,None), None, ), # 0
11255
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11256
  )
11257
 
11258
  def __init__(self, success=None, cex=None,):
11259
    self.success = success
11260
    self.cex = cex
11261
 
11262
  def read(self, iprot):
11263
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11264
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11265
      return
11266
    iprot.readStructBegin()
11267
    while True:
11268
      (fname, ftype, fid) = iprot.readFieldBegin()
11269
      if ftype == TType.STOP:
11270
        break
11271
      if fid == 0:
11272
        if ftype == TType.MAP:
11273
          self.success = {}
11274
          (_ktype75, _vtype76, _size74 ) = iprot.readMapBegin() 
11275
          for _i78 in xrange(_size74):
11276
            _key79 = iprot.readI64();
11277
            _val80 = iprot.readDouble();
11278
            self.success[_key79] = _val80
11279
          iprot.readMapEnd()
11280
        else:
11281
          iprot.skip(ftype)
11282
      elif fid == 1:
11283
        if ftype == TType.STRUCT:
11284
          self.cex = CatalogServiceException()
11285
          self.cex.read(iprot)
11286
        else:
11287
          iprot.skip(ftype)
11288
      else:
11289
        iprot.skip(ftype)
11290
      iprot.readFieldEnd()
11291
    iprot.readStructEnd()
11292
 
11293
  def write(self, oprot):
11294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11296
      return
11297
    oprot.writeStructBegin('getVatRates_result')
11298
    if self.success is not None:
11299
      oprot.writeFieldBegin('success', TType.MAP, 0)
11300
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
11301
      for kiter81,viter82 in self.success.items():
11302
        oprot.writeI64(kiter81)
11303
        oprot.writeDouble(viter82)
11304
      oprot.writeMapEnd()
11305
      oprot.writeFieldEnd()
11306
    if self.cex is not None:
11307
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11308
      self.cex.write(oprot)
11309
      oprot.writeFieldEnd()
11310
    oprot.writeFieldStop()
11311
    oprot.writeStructEnd()
11312
 
11313
  def validate(self):
11314
    return
11315
 
11316
 
11317
  def __repr__(self):
11318
    L = ['%s=%r' % (key, value)
11319
      for key, value in self.__dict__.iteritems()]
11320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11321
 
11322
  def __eq__(self, other):
11323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11324
 
11325
  def __ne__(self, other):
11326
    return not (self == other)
11327
 
5944 mandeep.dh 11328
class getAllItemsInRange_args:
11329
  """
11330
  Attributes:
11331
   - offset
11332
   - limit
11333
  """
11334
 
11335
  thrift_spec = (
11336
    None, # 0
11337
    (1, TType.I64, 'offset', None, None, ), # 1
11338
    (2, TType.I64, 'limit', None, None, ), # 2
11339
  )
11340
 
11341
  def __init__(self, offset=None, limit=None,):
11342
    self.offset = offset
11343
    self.limit = limit
11344
 
11345
  def read(self, iprot):
11346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11348
      return
11349
    iprot.readStructBegin()
11350
    while True:
11351
      (fname, ftype, fid) = iprot.readFieldBegin()
11352
      if ftype == TType.STOP:
11353
        break
11354
      if fid == 1:
11355
        if ftype == TType.I64:
11356
          self.offset = iprot.readI64();
11357
        else:
11358
          iprot.skip(ftype)
11359
      elif fid == 2:
11360
        if ftype == TType.I64:
11361
          self.limit = iprot.readI64();
11362
        else:
11363
          iprot.skip(ftype)
11364
      else:
11365
        iprot.skip(ftype)
11366
      iprot.readFieldEnd()
11367
    iprot.readStructEnd()
11368
 
11369
  def write(self, oprot):
11370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11372
      return
11373
    oprot.writeStructBegin('getAllItemsInRange_args')
11374
    if self.offset is not None:
11375
      oprot.writeFieldBegin('offset', TType.I64, 1)
11376
      oprot.writeI64(self.offset)
11377
      oprot.writeFieldEnd()
11378
    if self.limit is not None:
11379
      oprot.writeFieldBegin('limit', TType.I64, 2)
11380
      oprot.writeI64(self.limit)
11381
      oprot.writeFieldEnd()
11382
    oprot.writeFieldStop()
11383
    oprot.writeStructEnd()
11384
 
11385
  def validate(self):
11386
    return
11387
 
11388
 
11389
  def __repr__(self):
11390
    L = ['%s=%r' % (key, value)
11391
      for key, value in self.__dict__.iteritems()]
11392
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11393
 
11394
  def __eq__(self, other):
11395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11396
 
11397
  def __ne__(self, other):
11398
    return not (self == other)
11399
 
11400
class getAllItemsInRange_result:
11401
  """
11402
  Attributes:
11403
   - success
11404
   - cex
11405
  """
11406
 
11407
  thrift_spec = (
11408
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11409
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11410
  )
11411
 
11412
  def __init__(self, success=None, cex=None,):
11413
    self.success = success
11414
    self.cex = cex
11415
 
11416
  def read(self, iprot):
11417
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11418
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11419
      return
11420
    iprot.readStructBegin()
11421
    while True:
11422
      (fname, ftype, fid) = iprot.readFieldBegin()
11423
      if ftype == TType.STOP:
11424
        break
11425
      if fid == 0:
11426
        if ftype == TType.LIST:
11427
          self.success = []
12567 amit.gupta 11428
          (_etype86, _size83) = iprot.readListBegin()
11429
          for _i87 in xrange(_size83):
11430
            _elem88 = Item()
11431
            _elem88.read(iprot)
11432
            self.success.append(_elem88)
5944 mandeep.dh 11433
          iprot.readListEnd()
11434
        else:
11435
          iprot.skip(ftype)
11436
      elif fid == 1:
11437
        if ftype == TType.STRUCT:
11438
          self.cex = CatalogServiceException()
11439
          self.cex.read(iprot)
11440
        else:
11441
          iprot.skip(ftype)
11442
      else:
11443
        iprot.skip(ftype)
11444
      iprot.readFieldEnd()
11445
    iprot.readStructEnd()
11446
 
11447
  def write(self, oprot):
11448
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11449
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11450
      return
11451
    oprot.writeStructBegin('getAllItemsInRange_result')
11452
    if self.success is not None:
11453
      oprot.writeFieldBegin('success', TType.LIST, 0)
11454
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11455
      for iter89 in self.success:
11456
        iter89.write(oprot)
5944 mandeep.dh 11457
      oprot.writeListEnd()
11458
      oprot.writeFieldEnd()
11459
    if self.cex is not None:
11460
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11461
      self.cex.write(oprot)
11462
      oprot.writeFieldEnd()
11463
    oprot.writeFieldStop()
11464
    oprot.writeStructEnd()
11465
 
11466
  def validate(self):
11467
    return
11468
 
11469
 
11470
  def __repr__(self):
11471
    L = ['%s=%r' % (key, value)
11472
      for key, value in self.__dict__.iteritems()]
11473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11474
 
11475
  def __eq__(self, other):
11476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11477
 
11478
  def __ne__(self, other):
11479
    return not (self == other)
11480
 
11481
class getAllItemsByStatusInRange_args:
11482
  """
11483
  Attributes:
11484
   - itemStatus
11485
   - offset
11486
   - limit
11487
  """
11488
 
11489
  thrift_spec = (
11490
    None, # 0
11491
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11492
    (2, TType.I64, 'offset', None, None, ), # 2
11493
    (3, TType.I64, 'limit', None, None, ), # 3
11494
  )
11495
 
11496
  def __init__(self, itemStatus=None, offset=None, limit=None,):
11497
    self.itemStatus = itemStatus
11498
    self.offset = offset
11499
    self.limit = limit
11500
 
11501
  def read(self, iprot):
11502
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11503
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11504
      return
11505
    iprot.readStructBegin()
11506
    while True:
11507
      (fname, ftype, fid) = iprot.readFieldBegin()
11508
      if ftype == TType.STOP:
11509
        break
11510
      if fid == 1:
11511
        if ftype == TType.I32:
11512
          self.itemStatus = iprot.readI32();
11513
        else:
11514
          iprot.skip(ftype)
11515
      elif fid == 2:
11516
        if ftype == TType.I64:
11517
          self.offset = iprot.readI64();
11518
        else:
11519
          iprot.skip(ftype)
11520
      elif fid == 3:
11521
        if ftype == TType.I64:
11522
          self.limit = iprot.readI64();
11523
        else:
11524
          iprot.skip(ftype)
11525
      else:
11526
        iprot.skip(ftype)
11527
      iprot.readFieldEnd()
11528
    iprot.readStructEnd()
11529
 
11530
  def write(self, oprot):
11531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11533
      return
11534
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
11535
    if self.itemStatus is not None:
11536
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11537
      oprot.writeI32(self.itemStatus)
11538
      oprot.writeFieldEnd()
11539
    if self.offset is not None:
11540
      oprot.writeFieldBegin('offset', TType.I64, 2)
11541
      oprot.writeI64(self.offset)
11542
      oprot.writeFieldEnd()
11543
    if self.limit is not None:
11544
      oprot.writeFieldBegin('limit', TType.I64, 3)
11545
      oprot.writeI64(self.limit)
11546
      oprot.writeFieldEnd()
11547
    oprot.writeFieldStop()
11548
    oprot.writeStructEnd()
11549
 
11550
  def validate(self):
11551
    return
11552
 
11553
 
11554
  def __repr__(self):
11555
    L = ['%s=%r' % (key, value)
11556
      for key, value in self.__dict__.iteritems()]
11557
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11558
 
11559
  def __eq__(self, other):
11560
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11561
 
11562
  def __ne__(self, other):
11563
    return not (self == other)
11564
 
11565
class getAllItemsByStatusInRange_result:
11566
  """
11567
  Attributes:
11568
   - success
11569
   - cex
11570
  """
11571
 
11572
  thrift_spec = (
11573
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11574
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11575
  )
11576
 
11577
  def __init__(self, success=None, cex=None,):
11578
    self.success = success
11579
    self.cex = cex
11580
 
11581
  def read(self, iprot):
11582
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11583
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11584
      return
11585
    iprot.readStructBegin()
11586
    while True:
11587
      (fname, ftype, fid) = iprot.readFieldBegin()
11588
      if ftype == TType.STOP:
11589
        break
11590
      if fid == 0:
11591
        if ftype == TType.LIST:
11592
          self.success = []
12567 amit.gupta 11593
          (_etype93, _size90) = iprot.readListBegin()
11594
          for _i94 in xrange(_size90):
11595
            _elem95 = Item()
11596
            _elem95.read(iprot)
11597
            self.success.append(_elem95)
5944 mandeep.dh 11598
          iprot.readListEnd()
11599
        else:
11600
          iprot.skip(ftype)
11601
      elif fid == 1:
11602
        if ftype == TType.STRUCT:
11603
          self.cex = CatalogServiceException()
11604
          self.cex.read(iprot)
11605
        else:
11606
          iprot.skip(ftype)
11607
      else:
11608
        iprot.skip(ftype)
11609
      iprot.readFieldEnd()
11610
    iprot.readStructEnd()
11611
 
11612
  def write(self, oprot):
11613
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11614
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11615
      return
11616
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
11617
    if self.success is not None:
11618
      oprot.writeFieldBegin('success', TType.LIST, 0)
11619
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11620
      for iter96 in self.success:
11621
        iter96.write(oprot)
5944 mandeep.dh 11622
      oprot.writeListEnd()
11623
      oprot.writeFieldEnd()
11624
    if self.cex is not None:
11625
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11626
      self.cex.write(oprot)
11627
      oprot.writeFieldEnd()
11628
    oprot.writeFieldStop()
11629
    oprot.writeStructEnd()
11630
 
11631
  def validate(self):
11632
    return
11633
 
11634
 
11635
  def __repr__(self):
11636
    L = ['%s=%r' % (key, value)
11637
      for key, value in self.__dict__.iteritems()]
11638
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11639
 
11640
  def __eq__(self, other):
11641
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11642
 
11643
  def __ne__(self, other):
11644
    return not (self == other)
11645
 
11646
class getItemCountByStatus_args:
11647
  """
11648
  Attributes:
11649
   - useStatus
11650
   - itemStatus
11651
  """
11652
 
11653
  thrift_spec = (
11654
    None, # 0
11655
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
11656
    (2, TType.I32, 'itemStatus', None, None, ), # 2
11657
  )
11658
 
11659
  def __init__(self, useStatus=None, itemStatus=None,):
11660
    self.useStatus = useStatus
11661
    self.itemStatus = itemStatus
11662
 
11663
  def read(self, iprot):
11664
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11665
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11666
      return
11667
    iprot.readStructBegin()
11668
    while True:
11669
      (fname, ftype, fid) = iprot.readFieldBegin()
11670
      if ftype == TType.STOP:
11671
        break
11672
      if fid == 1:
11673
        if ftype == TType.BOOL:
11674
          self.useStatus = iprot.readBool();
11675
        else:
11676
          iprot.skip(ftype)
11677
      elif fid == 2:
11678
        if ftype == TType.I32:
11679
          self.itemStatus = iprot.readI32();
11680
        else:
11681
          iprot.skip(ftype)
11682
      else:
11683
        iprot.skip(ftype)
11684
      iprot.readFieldEnd()
11685
    iprot.readStructEnd()
11686
 
11687
  def write(self, oprot):
11688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11690
      return
11691
    oprot.writeStructBegin('getItemCountByStatus_args')
11692
    if self.useStatus is not None:
11693
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
11694
      oprot.writeBool(self.useStatus)
11695
      oprot.writeFieldEnd()
11696
    if self.itemStatus is not None:
11697
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
11698
      oprot.writeI32(self.itemStatus)
11699
      oprot.writeFieldEnd()
11700
    oprot.writeFieldStop()
11701
    oprot.writeStructEnd()
11702
 
11703
  def validate(self):
11704
    return
11705
 
11706
 
11707
  def __repr__(self):
11708
    L = ['%s=%r' % (key, value)
11709
      for key, value in self.__dict__.iteritems()]
11710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11711
 
11712
  def __eq__(self, other):
11713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11714
 
11715
  def __ne__(self, other):
11716
    return not (self == other)
11717
 
11718
class getItemCountByStatus_result:
11719
  """
11720
  Attributes:
11721
   - success
11722
  """
11723
 
11724
  thrift_spec = (
11725
    (0, TType.I32, 'success', None, None, ), # 0
11726
  )
11727
 
11728
  def __init__(self, success=None,):
11729
    self.success = success
11730
 
11731
  def read(self, iprot):
11732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11734
      return
11735
    iprot.readStructBegin()
11736
    while True:
11737
      (fname, ftype, fid) = iprot.readFieldBegin()
11738
      if ftype == TType.STOP:
11739
        break
11740
      if fid == 0:
11741
        if ftype == TType.I32:
11742
          self.success = iprot.readI32();
11743
        else:
11744
          iprot.skip(ftype)
11745
      else:
11746
        iprot.skip(ftype)
11747
      iprot.readFieldEnd()
11748
    iprot.readStructEnd()
11749
 
11750
  def write(self, oprot):
11751
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11752
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11753
      return
11754
    oprot.writeStructBegin('getItemCountByStatus_result')
11755
    if self.success is not None:
11756
      oprot.writeFieldBegin('success', TType.I32, 0)
11757
      oprot.writeI32(self.success)
11758
      oprot.writeFieldEnd()
11759
    oprot.writeFieldStop()
11760
    oprot.writeStructEnd()
11761
 
11762
  def validate(self):
11763
    return
11764
 
11765
 
11766
  def __repr__(self):
11767
    L = ['%s=%r' % (key, value)
11768
      for key, value in self.__dict__.iteritems()]
11769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11770
 
11771
  def __eq__(self, other):
11772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11773
 
11774
  def __ne__(self, other):
11775
    return not (self == other)
11776
 
11777
class getBestSellers_args:
11778
 
11779
  thrift_spec = (
11780
  )
11781
 
11782
  def read(self, iprot):
11783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11785
      return
11786
    iprot.readStructBegin()
11787
    while True:
11788
      (fname, ftype, fid) = iprot.readFieldBegin()
11789
      if ftype == TType.STOP:
11790
        break
11791
      else:
11792
        iprot.skip(ftype)
11793
      iprot.readFieldEnd()
11794
    iprot.readStructEnd()
11795
 
11796
  def write(self, oprot):
11797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11799
      return
11800
    oprot.writeStructBegin('getBestSellers_args')
11801
    oprot.writeFieldStop()
11802
    oprot.writeStructEnd()
11803
 
11804
  def validate(self):
11805
    return
11806
 
11807
 
11808
  def __repr__(self):
11809
    L = ['%s=%r' % (key, value)
11810
      for key, value in self.__dict__.iteritems()]
11811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11812
 
11813
  def __eq__(self, other):
11814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11815
 
11816
  def __ne__(self, other):
11817
    return not (self == other)
11818
 
11819
class getBestSellers_result:
11820
  """
11821
  Attributes:
11822
   - success
11823
   - isex
11824
  """
11825
 
11826
  thrift_spec = (
11827
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11828
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11829
  )
11830
 
11831
  def __init__(self, success=None, isex=None,):
11832
    self.success = success
11833
    self.isex = isex
11834
 
11835
  def read(self, iprot):
11836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11838
      return
11839
    iprot.readStructBegin()
11840
    while True:
11841
      (fname, ftype, fid) = iprot.readFieldBegin()
11842
      if ftype == TType.STOP:
11843
        break
11844
      if fid == 0:
11845
        if ftype == TType.LIST:
11846
          self.success = []
12567 amit.gupta 11847
          (_etype100, _size97) = iprot.readListBegin()
11848
          for _i101 in xrange(_size97):
11849
            _elem102 = Item()
11850
            _elem102.read(iprot)
11851
            self.success.append(_elem102)
5944 mandeep.dh 11852
          iprot.readListEnd()
11853
        else:
11854
          iprot.skip(ftype)
11855
      elif fid == 1:
11856
        if ftype == TType.STRUCT:
11857
          self.isex = CatalogServiceException()
11858
          self.isex.read(iprot)
11859
        else:
11860
          iprot.skip(ftype)
11861
      else:
11862
        iprot.skip(ftype)
11863
      iprot.readFieldEnd()
11864
    iprot.readStructEnd()
11865
 
11866
  def write(self, oprot):
11867
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11868
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11869
      return
11870
    oprot.writeStructBegin('getBestSellers_result')
11871
    if self.success is not None:
11872
      oprot.writeFieldBegin('success', TType.LIST, 0)
11873
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11874
      for iter103 in self.success:
11875
        iter103.write(oprot)
5944 mandeep.dh 11876
      oprot.writeListEnd()
11877
      oprot.writeFieldEnd()
11878
    if self.isex is not None:
11879
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11880
      self.isex.write(oprot)
11881
      oprot.writeFieldEnd()
11882
    oprot.writeFieldStop()
11883
    oprot.writeStructEnd()
11884
 
11885
  def validate(self):
11886
    return
11887
 
11888
 
11889
  def __repr__(self):
11890
    L = ['%s=%r' % (key, value)
11891
      for key, value in self.__dict__.iteritems()]
11892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11893
 
11894
  def __eq__(self, other):
11895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11896
 
11897
  def __ne__(self, other):
11898
    return not (self == other)
11899
 
11900
class getBestSellersCatalogIds_args:
11901
  """
11902
  Attributes:
11903
   - beginIndex
11904
   - totalItems
11905
   - brand
11906
   - category
11907
  """
11908
 
11909
  thrift_spec = (
11910
    None, # 0
11911
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11912
    (2, TType.I64, 'totalItems', None, None, ), # 2
11913
    (3, TType.STRING, 'brand', None, None, ), # 3
11914
    (4, TType.I64, 'category', None, None, ), # 4
11915
  )
11916
 
11917
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11918
    self.beginIndex = beginIndex
11919
    self.totalItems = totalItems
11920
    self.brand = brand
11921
    self.category = category
11922
 
11923
  def read(self, iprot):
11924
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11925
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11926
      return
11927
    iprot.readStructBegin()
11928
    while True:
11929
      (fname, ftype, fid) = iprot.readFieldBegin()
11930
      if ftype == TType.STOP:
11931
        break
11932
      if fid == 1:
11933
        if ftype == TType.I64:
11934
          self.beginIndex = iprot.readI64();
11935
        else:
11936
          iprot.skip(ftype)
11937
      elif fid == 2:
11938
        if ftype == TType.I64:
11939
          self.totalItems = iprot.readI64();
11940
        else:
11941
          iprot.skip(ftype)
11942
      elif fid == 3:
11943
        if ftype == TType.STRING:
11944
          self.brand = iprot.readString();
11945
        else:
11946
          iprot.skip(ftype)
11947
      elif fid == 4:
11948
        if ftype == TType.I64:
11949
          self.category = iprot.readI64();
11950
        else:
11951
          iprot.skip(ftype)
11952
      else:
11953
        iprot.skip(ftype)
11954
      iprot.readFieldEnd()
11955
    iprot.readStructEnd()
11956
 
11957
  def write(self, oprot):
11958
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11959
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11960
      return
11961
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
11962
    if self.beginIndex is not None:
11963
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11964
      oprot.writeI64(self.beginIndex)
11965
      oprot.writeFieldEnd()
11966
    if self.totalItems is not None:
11967
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11968
      oprot.writeI64(self.totalItems)
11969
      oprot.writeFieldEnd()
11970
    if self.brand is not None:
11971
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11972
      oprot.writeString(self.brand)
11973
      oprot.writeFieldEnd()
11974
    if self.category is not None:
11975
      oprot.writeFieldBegin('category', TType.I64, 4)
11976
      oprot.writeI64(self.category)
11977
      oprot.writeFieldEnd()
11978
    oprot.writeFieldStop()
11979
    oprot.writeStructEnd()
11980
 
11981
  def validate(self):
11982
    return
11983
 
11984
 
11985
  def __repr__(self):
11986
    L = ['%s=%r' % (key, value)
11987
      for key, value in self.__dict__.iteritems()]
11988
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11989
 
11990
  def __eq__(self, other):
11991
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11992
 
11993
  def __ne__(self, other):
11994
    return not (self == other)
11995
 
11996
class getBestSellersCatalogIds_result:
11997
  """
11998
  Attributes:
11999
   - success
12000
   - cex
12001
  """
12002
 
12003
  thrift_spec = (
12004
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12005
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12006
  )
12007
 
12008
  def __init__(self, success=None, cex=None,):
12009
    self.success = success
12010
    self.cex = cex
12011
 
12012
  def read(self, iprot):
12013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12015
      return
12016
    iprot.readStructBegin()
12017
    while True:
12018
      (fname, ftype, fid) = iprot.readFieldBegin()
12019
      if ftype == TType.STOP:
12020
        break
12021
      if fid == 0:
12022
        if ftype == TType.LIST:
12023
          self.success = []
12567 amit.gupta 12024
          (_etype107, _size104) = iprot.readListBegin()
12025
          for _i108 in xrange(_size104):
12026
            _elem109 = iprot.readI64();
12027
            self.success.append(_elem109)
5944 mandeep.dh 12028
          iprot.readListEnd()
12029
        else:
12030
          iprot.skip(ftype)
12031
      elif fid == 1:
12032
        if ftype == TType.STRUCT:
12033
          self.cex = CatalogServiceException()
12034
          self.cex.read(iprot)
12035
        else:
12036
          iprot.skip(ftype)
12037
      else:
12038
        iprot.skip(ftype)
12039
      iprot.readFieldEnd()
12040
    iprot.readStructEnd()
12041
 
12042
  def write(self, oprot):
12043
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12044
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12045
      return
12046
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
12047
    if self.success is not None:
12048
      oprot.writeFieldBegin('success', TType.LIST, 0)
12049
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12050
      for iter110 in self.success:
12051
        oprot.writeI64(iter110)
5944 mandeep.dh 12052
      oprot.writeListEnd()
12053
      oprot.writeFieldEnd()
12054
    if self.cex is not None:
12055
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12056
      self.cex.write(oprot)
12057
      oprot.writeFieldEnd()
12058
    oprot.writeFieldStop()
12059
    oprot.writeStructEnd()
12060
 
12061
  def validate(self):
12062
    return
12063
 
12064
 
12065
  def __repr__(self):
12066
    L = ['%s=%r' % (key, value)
12067
      for key, value in self.__dict__.iteritems()]
12068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12069
 
12070
  def __eq__(self, other):
12071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12072
 
12073
  def __ne__(self, other):
12074
    return not (self == other)
12075
 
12076
class getBestSellersCount_args:
12077
 
12078
  thrift_spec = (
12079
  )
12080
 
12081
  def read(self, iprot):
12082
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12083
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12084
      return
12085
    iprot.readStructBegin()
12086
    while True:
12087
      (fname, ftype, fid) = iprot.readFieldBegin()
12088
      if ftype == TType.STOP:
12089
        break
12090
      else:
12091
        iprot.skip(ftype)
12092
      iprot.readFieldEnd()
12093
    iprot.readStructEnd()
12094
 
12095
  def write(self, oprot):
12096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12098
      return
12099
    oprot.writeStructBegin('getBestSellersCount_args')
12100
    oprot.writeFieldStop()
12101
    oprot.writeStructEnd()
12102
 
12103
  def validate(self):
12104
    return
12105
 
12106
 
12107
  def __repr__(self):
12108
    L = ['%s=%r' % (key, value)
12109
      for key, value in self.__dict__.iteritems()]
12110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12111
 
12112
  def __eq__(self, other):
12113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12114
 
12115
  def __ne__(self, other):
12116
    return not (self == other)
12117
 
12118
class getBestSellersCount_result:
12119
  """
12120
  Attributes:
12121
   - success
12122
   - cex
12123
  """
12124
 
12125
  thrift_spec = (
12126
    (0, TType.I64, 'success', None, None, ), # 0
12127
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12128
  )
12129
 
12130
  def __init__(self, success=None, cex=None,):
12131
    self.success = success
12132
    self.cex = cex
12133
 
12134
  def read(self, iprot):
12135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12137
      return
12138
    iprot.readStructBegin()
12139
    while True:
12140
      (fname, ftype, fid) = iprot.readFieldBegin()
12141
      if ftype == TType.STOP:
12142
        break
12143
      if fid == 0:
12144
        if ftype == TType.I64:
12145
          self.success = iprot.readI64();
12146
        else:
12147
          iprot.skip(ftype)
12148
      elif fid == 1:
12149
        if ftype == TType.STRUCT:
12150
          self.cex = CatalogServiceException()
12151
          self.cex.read(iprot)
12152
        else:
12153
          iprot.skip(ftype)
12154
      else:
12155
        iprot.skip(ftype)
12156
      iprot.readFieldEnd()
12157
    iprot.readStructEnd()
12158
 
12159
  def write(self, oprot):
12160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12162
      return
12163
    oprot.writeStructBegin('getBestSellersCount_result')
12164
    if self.success is not None:
12165
      oprot.writeFieldBegin('success', TType.I64, 0)
12166
      oprot.writeI64(self.success)
12167
      oprot.writeFieldEnd()
12168
    if self.cex is not None:
12169
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12170
      self.cex.write(oprot)
12171
      oprot.writeFieldEnd()
12172
    oprot.writeFieldStop()
12173
    oprot.writeStructEnd()
12174
 
12175
  def validate(self):
12176
    return
12177
 
12178
 
12179
  def __repr__(self):
12180
    L = ['%s=%r' % (key, value)
12181
      for key, value in self.__dict__.iteritems()]
12182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12183
 
12184
  def __eq__(self, other):
12185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12186
 
12187
  def __ne__(self, other):
12188
    return not (self == other)
12189
 
12190
class getBestDeals_args:
12191
 
12192
  thrift_spec = (
12193
  )
12194
 
12195
  def read(self, iprot):
12196
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12197
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12198
      return
12199
    iprot.readStructBegin()
12200
    while True:
12201
      (fname, ftype, fid) = iprot.readFieldBegin()
12202
      if ftype == TType.STOP:
12203
        break
12204
      else:
12205
        iprot.skip(ftype)
12206
      iprot.readFieldEnd()
12207
    iprot.readStructEnd()
12208
 
12209
  def write(self, oprot):
12210
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12211
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12212
      return
12213
    oprot.writeStructBegin('getBestDeals_args')
12214
    oprot.writeFieldStop()
12215
    oprot.writeStructEnd()
12216
 
12217
  def validate(self):
12218
    return
12219
 
12220
 
12221
  def __repr__(self):
12222
    L = ['%s=%r' % (key, value)
12223
      for key, value in self.__dict__.iteritems()]
12224
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12225
 
12226
  def __eq__(self, other):
12227
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12228
 
12229
  def __ne__(self, other):
12230
    return not (self == other)
12231
 
12232
class getBestDeals_result:
12233
  """
12234
  Attributes:
12235
   - success
12236
   - isex
12237
  """
12238
 
12239
  thrift_spec = (
12240
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12241
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12242
  )
12243
 
12244
  def __init__(self, success=None, isex=None,):
12245
    self.success = success
12246
    self.isex = isex
12247
 
12248
  def read(self, iprot):
12249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12251
      return
12252
    iprot.readStructBegin()
12253
    while True:
12254
      (fname, ftype, fid) = iprot.readFieldBegin()
12255
      if ftype == TType.STOP:
12256
        break
12257
      if fid == 0:
12258
        if ftype == TType.LIST:
12259
          self.success = []
12567 amit.gupta 12260
          (_etype114, _size111) = iprot.readListBegin()
12261
          for _i115 in xrange(_size111):
12262
            _elem116 = Item()
12263
            _elem116.read(iprot)
12264
            self.success.append(_elem116)
5944 mandeep.dh 12265
          iprot.readListEnd()
12266
        else:
12267
          iprot.skip(ftype)
12268
      elif fid == 1:
12269
        if ftype == TType.STRUCT:
12270
          self.isex = CatalogServiceException()
12271
          self.isex.read(iprot)
12272
        else:
12273
          iprot.skip(ftype)
12274
      else:
12275
        iprot.skip(ftype)
12276
      iprot.readFieldEnd()
12277
    iprot.readStructEnd()
12278
 
12279
  def write(self, oprot):
12280
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12281
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12282
      return
12283
    oprot.writeStructBegin('getBestDeals_result')
12284
    if self.success is not None:
12285
      oprot.writeFieldBegin('success', TType.LIST, 0)
12286
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12287
      for iter117 in self.success:
12288
        iter117.write(oprot)
5944 mandeep.dh 12289
      oprot.writeListEnd()
12290
      oprot.writeFieldEnd()
12291
    if self.isex is not None:
12292
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12293
      self.isex.write(oprot)
12294
      oprot.writeFieldEnd()
12295
    oprot.writeFieldStop()
12296
    oprot.writeStructEnd()
12297
 
12298
  def validate(self):
12299
    return
12300
 
12301
 
12302
  def __repr__(self):
12303
    L = ['%s=%r' % (key, value)
12304
      for key, value in self.__dict__.iteritems()]
12305
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12306
 
12307
  def __eq__(self, other):
12308
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12309
 
12310
  def __ne__(self, other):
12311
    return not (self == other)
12312
 
12313
class getBestDealsCatalogIds_args:
12314
  """
12315
  Attributes:
12316
   - beginIndex
12317
   - totalItems
12318
   - brand
12319
   - category
12320
  """
12321
 
12322
  thrift_spec = (
12323
    None, # 0
12324
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12325
    (2, TType.I64, 'totalItems', None, None, ), # 2
12326
    (3, TType.STRING, 'brand', None, None, ), # 3
12327
    (4, TType.I64, 'category', None, None, ), # 4
12328
  )
12329
 
12330
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12331
    self.beginIndex = beginIndex
12332
    self.totalItems = totalItems
12333
    self.brand = brand
12334
    self.category = category
12335
 
12336
  def read(self, iprot):
12337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12339
      return
12340
    iprot.readStructBegin()
12341
    while True:
12342
      (fname, ftype, fid) = iprot.readFieldBegin()
12343
      if ftype == TType.STOP:
12344
        break
12345
      if fid == 1:
12346
        if ftype == TType.I64:
12347
          self.beginIndex = iprot.readI64();
12348
        else:
12349
          iprot.skip(ftype)
12350
      elif fid == 2:
12351
        if ftype == TType.I64:
12352
          self.totalItems = iprot.readI64();
12353
        else:
12354
          iprot.skip(ftype)
12355
      elif fid == 3:
12356
        if ftype == TType.STRING:
12357
          self.brand = iprot.readString();
12358
        else:
12359
          iprot.skip(ftype)
12360
      elif fid == 4:
12361
        if ftype == TType.I64:
12362
          self.category = iprot.readI64();
12363
        else:
12364
          iprot.skip(ftype)
12365
      else:
12366
        iprot.skip(ftype)
12367
      iprot.readFieldEnd()
12368
    iprot.readStructEnd()
12369
 
12370
  def write(self, oprot):
12371
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12372
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12373
      return
12374
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
12375
    if self.beginIndex is not None:
12376
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12377
      oprot.writeI64(self.beginIndex)
12378
      oprot.writeFieldEnd()
12379
    if self.totalItems is not None:
12380
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12381
      oprot.writeI64(self.totalItems)
12382
      oprot.writeFieldEnd()
12383
    if self.brand is not None:
12384
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12385
      oprot.writeString(self.brand)
12386
      oprot.writeFieldEnd()
12387
    if self.category is not None:
12388
      oprot.writeFieldBegin('category', TType.I64, 4)
12389
      oprot.writeI64(self.category)
12390
      oprot.writeFieldEnd()
12391
    oprot.writeFieldStop()
12392
    oprot.writeStructEnd()
12393
 
12394
  def validate(self):
12395
    return
12396
 
12397
 
12398
  def __repr__(self):
12399
    L = ['%s=%r' % (key, value)
12400
      for key, value in self.__dict__.iteritems()]
12401
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12402
 
12403
  def __eq__(self, other):
12404
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12405
 
12406
  def __ne__(self, other):
12407
    return not (self == other)
12408
 
12409
class getBestDealsCatalogIds_result:
12410
  """
12411
  Attributes:
12412
   - success
12413
   - cex
12414
  """
12415
 
12416
  thrift_spec = (
12417
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12418
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12419
  )
12420
 
12421
  def __init__(self, success=None, cex=None,):
12422
    self.success = success
12423
    self.cex = cex
12424
 
12425
  def read(self, iprot):
12426
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12427
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12428
      return
12429
    iprot.readStructBegin()
12430
    while True:
12431
      (fname, ftype, fid) = iprot.readFieldBegin()
12432
      if ftype == TType.STOP:
12433
        break
12434
      if fid == 0:
12435
        if ftype == TType.LIST:
12436
          self.success = []
12567 amit.gupta 12437
          (_etype121, _size118) = iprot.readListBegin()
12438
          for _i122 in xrange(_size118):
12439
            _elem123 = iprot.readI64();
12440
            self.success.append(_elem123)
5944 mandeep.dh 12441
          iprot.readListEnd()
12442
        else:
12443
          iprot.skip(ftype)
12444
      elif fid == 1:
12445
        if ftype == TType.STRUCT:
12446
          self.cex = CatalogServiceException()
12447
          self.cex.read(iprot)
12448
        else:
12449
          iprot.skip(ftype)
12450
      else:
12451
        iprot.skip(ftype)
12452
      iprot.readFieldEnd()
12453
    iprot.readStructEnd()
12454
 
12455
  def write(self, oprot):
12456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12458
      return
12459
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
12460
    if self.success is not None:
12461
      oprot.writeFieldBegin('success', TType.LIST, 0)
12462
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12463
      for iter124 in self.success:
12464
        oprot.writeI64(iter124)
5944 mandeep.dh 12465
      oprot.writeListEnd()
12466
      oprot.writeFieldEnd()
12467
    if self.cex is not None:
12468
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12469
      self.cex.write(oprot)
12470
      oprot.writeFieldEnd()
12471
    oprot.writeFieldStop()
12472
    oprot.writeStructEnd()
12473
 
12474
  def validate(self):
12475
    return
12476
 
12477
 
12478
  def __repr__(self):
12479
    L = ['%s=%r' % (key, value)
12480
      for key, value in self.__dict__.iteritems()]
12481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12482
 
12483
  def __eq__(self, other):
12484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12485
 
12486
  def __ne__(self, other):
12487
    return not (self == other)
12488
 
12489
class getBestDealsCount_args:
12490
 
12491
  thrift_spec = (
12492
  )
12493
 
12494
  def read(self, iprot):
12495
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12496
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12497
      return
12498
    iprot.readStructBegin()
12499
    while True:
12500
      (fname, ftype, fid) = iprot.readFieldBegin()
12501
      if ftype == TType.STOP:
12502
        break
12503
      else:
12504
        iprot.skip(ftype)
12505
      iprot.readFieldEnd()
12506
    iprot.readStructEnd()
12507
 
12508
  def write(self, oprot):
12509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12511
      return
12512
    oprot.writeStructBegin('getBestDealsCount_args')
12513
    oprot.writeFieldStop()
12514
    oprot.writeStructEnd()
12515
 
12516
  def validate(self):
12517
    return
12518
 
12519
 
12520
  def __repr__(self):
12521
    L = ['%s=%r' % (key, value)
12522
      for key, value in self.__dict__.iteritems()]
12523
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12524
 
12525
  def __eq__(self, other):
12526
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12527
 
12528
  def __ne__(self, other):
12529
    return not (self == other)
12530
 
12531
class getBestDealsCount_result:
12532
  """
12533
  Attributes:
12534
   - success
12535
   - cex
12536
  """
12537
 
12538
  thrift_spec = (
12539
    (0, TType.I64, 'success', None, None, ), # 0
12540
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12541
  )
12542
 
12543
  def __init__(self, success=None, cex=None,):
12544
    self.success = success
12545
    self.cex = cex
12546
 
12547
  def read(self, iprot):
12548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12550
      return
12551
    iprot.readStructBegin()
12552
    while True:
12553
      (fname, ftype, fid) = iprot.readFieldBegin()
12554
      if ftype == TType.STOP:
12555
        break
12556
      if fid == 0:
12557
        if ftype == TType.I64:
12558
          self.success = iprot.readI64();
12559
        else:
12560
          iprot.skip(ftype)
12561
      elif fid == 1:
12562
        if ftype == TType.STRUCT:
12563
          self.cex = CatalogServiceException()
12564
          self.cex.read(iprot)
12565
        else:
12566
          iprot.skip(ftype)
12567
      else:
12568
        iprot.skip(ftype)
12569
      iprot.readFieldEnd()
12570
    iprot.readStructEnd()
12571
 
12572
  def write(self, oprot):
12573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12575
      return
12576
    oprot.writeStructBegin('getBestDealsCount_result')
12577
    if self.success is not None:
12578
      oprot.writeFieldBegin('success', TType.I64, 0)
12579
      oprot.writeI64(self.success)
12580
      oprot.writeFieldEnd()
12581
    if self.cex is not None:
12582
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12583
      self.cex.write(oprot)
12584
      oprot.writeFieldEnd()
12585
    oprot.writeFieldStop()
12586
    oprot.writeStructEnd()
12587
 
12588
  def validate(self):
12589
    return
12590
 
12591
 
12592
  def __repr__(self):
12593
    L = ['%s=%r' % (key, value)
12594
      for key, value in self.__dict__.iteritems()]
12595
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12596
 
12597
  def __eq__(self, other):
12598
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12599
 
12600
  def __ne__(self, other):
12601
    return not (self == other)
12602
 
12603
class getComingSoon_args:
12604
 
12605
  thrift_spec = (
12606
  )
12607
 
12608
  def read(self, iprot):
12609
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12610
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12611
      return
12612
    iprot.readStructBegin()
12613
    while True:
12614
      (fname, ftype, fid) = iprot.readFieldBegin()
12615
      if ftype == TType.STOP:
12616
        break
12617
      else:
12618
        iprot.skip(ftype)
12619
      iprot.readFieldEnd()
12620
    iprot.readStructEnd()
12621
 
12622
  def write(self, oprot):
12623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12625
      return
12626
    oprot.writeStructBegin('getComingSoon_args')
12627
    oprot.writeFieldStop()
12628
    oprot.writeStructEnd()
12629
 
12630
  def validate(self):
12631
    return
12632
 
12633
 
12634
  def __repr__(self):
12635
    L = ['%s=%r' % (key, value)
12636
      for key, value in self.__dict__.iteritems()]
12637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12638
 
12639
  def __eq__(self, other):
12640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12641
 
12642
  def __ne__(self, other):
12643
    return not (self == other)
12644
 
12645
class getComingSoon_result:
12646
  """
12647
  Attributes:
12648
   - success
12649
   - isex
12650
  """
12651
 
12652
  thrift_spec = (
12653
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12654
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12655
  )
12656
 
12657
  def __init__(self, success=None, isex=None,):
12658
    self.success = success
12659
    self.isex = isex
12660
 
12661
  def read(self, iprot):
12662
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12663
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12664
      return
12665
    iprot.readStructBegin()
12666
    while True:
12667
      (fname, ftype, fid) = iprot.readFieldBegin()
12668
      if ftype == TType.STOP:
12669
        break
12670
      if fid == 0:
12671
        if ftype == TType.LIST:
12672
          self.success = []
12567 amit.gupta 12673
          (_etype128, _size125) = iprot.readListBegin()
12674
          for _i129 in xrange(_size125):
12675
            _elem130 = Item()
12676
            _elem130.read(iprot)
12677
            self.success.append(_elem130)
5944 mandeep.dh 12678
          iprot.readListEnd()
12679
        else:
12680
          iprot.skip(ftype)
12681
      elif fid == 1:
12682
        if ftype == TType.STRUCT:
12683
          self.isex = CatalogServiceException()
12684
          self.isex.read(iprot)
12685
        else:
12686
          iprot.skip(ftype)
12687
      else:
12688
        iprot.skip(ftype)
12689
      iprot.readFieldEnd()
12690
    iprot.readStructEnd()
12691
 
12692
  def write(self, oprot):
12693
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12694
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12695
      return
12696
    oprot.writeStructBegin('getComingSoon_result')
12697
    if self.success is not None:
12698
      oprot.writeFieldBegin('success', TType.LIST, 0)
12699
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12700
      for iter131 in self.success:
12701
        iter131.write(oprot)
5944 mandeep.dh 12702
      oprot.writeListEnd()
12703
      oprot.writeFieldEnd()
12704
    if self.isex is not None:
12705
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12706
      self.isex.write(oprot)
12707
      oprot.writeFieldEnd()
12708
    oprot.writeFieldStop()
12709
    oprot.writeStructEnd()
12710
 
12711
  def validate(self):
12712
    return
12713
 
12714
 
12715
  def __repr__(self):
12716
    L = ['%s=%r' % (key, value)
12717
      for key, value in self.__dict__.iteritems()]
12718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12719
 
12720
  def __eq__(self, other):
12721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12722
 
12723
  def __ne__(self, other):
12724
    return not (self == other)
12725
 
12726
class getComingSoonCatalogIds_args:
12727
  """
12728
  Attributes:
12729
   - beginIndex
12730
   - totalItems
12731
   - brand
12732
   - category
12733
  """
12734
 
12735
  thrift_spec = (
12736
    None, # 0
12737
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12738
    (2, TType.I64, 'totalItems', None, None, ), # 2
12739
    (3, TType.STRING, 'brand', None, None, ), # 3
12740
    (4, TType.I64, 'category', None, None, ), # 4
12741
  )
12742
 
12743
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12744
    self.beginIndex = beginIndex
12745
    self.totalItems = totalItems
12746
    self.brand = brand
12747
    self.category = category
12748
 
12749
  def read(self, iprot):
12750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12752
      return
12753
    iprot.readStructBegin()
12754
    while True:
12755
      (fname, ftype, fid) = iprot.readFieldBegin()
12756
      if ftype == TType.STOP:
12757
        break
12758
      if fid == 1:
12759
        if ftype == TType.I64:
12760
          self.beginIndex = iprot.readI64();
12761
        else:
12762
          iprot.skip(ftype)
12763
      elif fid == 2:
12764
        if ftype == TType.I64:
12765
          self.totalItems = iprot.readI64();
12766
        else:
12767
          iprot.skip(ftype)
12768
      elif fid == 3:
12769
        if ftype == TType.STRING:
12770
          self.brand = iprot.readString();
12771
        else:
12772
          iprot.skip(ftype)
12773
      elif fid == 4:
12774
        if ftype == TType.I64:
12775
          self.category = iprot.readI64();
12776
        else:
12777
          iprot.skip(ftype)
12778
      else:
12779
        iprot.skip(ftype)
12780
      iprot.readFieldEnd()
12781
    iprot.readStructEnd()
12782
 
12783
  def write(self, oprot):
12784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12786
      return
12787
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
12788
    if self.beginIndex is not None:
12789
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12790
      oprot.writeI64(self.beginIndex)
12791
      oprot.writeFieldEnd()
12792
    if self.totalItems is not None:
12793
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12794
      oprot.writeI64(self.totalItems)
12795
      oprot.writeFieldEnd()
12796
    if self.brand is not None:
12797
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12798
      oprot.writeString(self.brand)
12799
      oprot.writeFieldEnd()
12800
    if self.category is not None:
12801
      oprot.writeFieldBegin('category', TType.I64, 4)
12802
      oprot.writeI64(self.category)
12803
      oprot.writeFieldEnd()
12804
    oprot.writeFieldStop()
12805
    oprot.writeStructEnd()
12806
 
12807
  def validate(self):
12808
    return
12809
 
12810
 
12811
  def __repr__(self):
12812
    L = ['%s=%r' % (key, value)
12813
      for key, value in self.__dict__.iteritems()]
12814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12815
 
12816
  def __eq__(self, other):
12817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12818
 
12819
  def __ne__(self, other):
12820
    return not (self == other)
12821
 
12822
class getComingSoonCatalogIds_result:
12823
  """
12824
  Attributes:
12825
   - success
12826
   - cex
12827
  """
12828
 
12829
  thrift_spec = (
12830
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12831
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12832
  )
12833
 
12834
  def __init__(self, success=None, cex=None,):
12835
    self.success = success
12836
    self.cex = cex
12837
 
12838
  def read(self, iprot):
12839
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12840
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12841
      return
12842
    iprot.readStructBegin()
12843
    while True:
12844
      (fname, ftype, fid) = iprot.readFieldBegin()
12845
      if ftype == TType.STOP:
12846
        break
12847
      if fid == 0:
12848
        if ftype == TType.LIST:
12849
          self.success = []
12567 amit.gupta 12850
          (_etype135, _size132) = iprot.readListBegin()
12851
          for _i136 in xrange(_size132):
12852
            _elem137 = iprot.readI64();
12853
            self.success.append(_elem137)
5944 mandeep.dh 12854
          iprot.readListEnd()
12855
        else:
12856
          iprot.skip(ftype)
12857
      elif fid == 1:
12858
        if ftype == TType.STRUCT:
12859
          self.cex = CatalogServiceException()
12860
          self.cex.read(iprot)
12861
        else:
12862
          iprot.skip(ftype)
12863
      else:
12864
        iprot.skip(ftype)
12865
      iprot.readFieldEnd()
12866
    iprot.readStructEnd()
12867
 
12868
  def write(self, oprot):
12869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12871
      return
12872
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
12873
    if self.success is not None:
12874
      oprot.writeFieldBegin('success', TType.LIST, 0)
12875
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12876
      for iter138 in self.success:
12877
        oprot.writeI64(iter138)
5944 mandeep.dh 12878
      oprot.writeListEnd()
12879
      oprot.writeFieldEnd()
12880
    if self.cex is not None:
12881
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12882
      self.cex.write(oprot)
12883
      oprot.writeFieldEnd()
12884
    oprot.writeFieldStop()
12885
    oprot.writeStructEnd()
12886
 
12887
  def validate(self):
12888
    return
12889
 
12890
 
12891
  def __repr__(self):
12892
    L = ['%s=%r' % (key, value)
12893
      for key, value in self.__dict__.iteritems()]
12894
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12895
 
12896
  def __eq__(self, other):
12897
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12898
 
12899
  def __ne__(self, other):
12900
    return not (self == other)
12901
 
12902
class getComingSoonCount_args:
12903
 
12904
  thrift_spec = (
12905
  )
12906
 
12907
  def read(self, iprot):
12908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12910
      return
12911
    iprot.readStructBegin()
12912
    while True:
12913
      (fname, ftype, fid) = iprot.readFieldBegin()
12914
      if ftype == TType.STOP:
12915
        break
12916
      else:
12917
        iprot.skip(ftype)
12918
      iprot.readFieldEnd()
12919
    iprot.readStructEnd()
12920
 
12921
  def write(self, oprot):
12922
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12923
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12924
      return
12925
    oprot.writeStructBegin('getComingSoonCount_args')
12926
    oprot.writeFieldStop()
12927
    oprot.writeStructEnd()
12928
 
12929
  def validate(self):
12930
    return
12931
 
12932
 
12933
  def __repr__(self):
12934
    L = ['%s=%r' % (key, value)
12935
      for key, value in self.__dict__.iteritems()]
12936
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12937
 
12938
  def __eq__(self, other):
12939
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12940
 
12941
  def __ne__(self, other):
12942
    return not (self == other)
12943
 
12944
class getComingSoonCount_result:
12945
  """
12946
  Attributes:
12947
   - success
12948
   - cex
12949
  """
12950
 
12951
  thrift_spec = (
12952
    (0, TType.I64, 'success', None, None, ), # 0
12953
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12954
  )
12955
 
12956
  def __init__(self, success=None, cex=None,):
12957
    self.success = success
12958
    self.cex = cex
12959
 
12960
  def read(self, iprot):
12961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12963
      return
12964
    iprot.readStructBegin()
12965
    while True:
12966
      (fname, ftype, fid) = iprot.readFieldBegin()
12967
      if ftype == TType.STOP:
12968
        break
12969
      if fid == 0:
12970
        if ftype == TType.I64:
12971
          self.success = iprot.readI64();
12972
        else:
12973
          iprot.skip(ftype)
12974
      elif fid == 1:
12975
        if ftype == TType.STRUCT:
12976
          self.cex = CatalogServiceException()
12977
          self.cex.read(iprot)
12978
        else:
12979
          iprot.skip(ftype)
12980
      else:
12981
        iprot.skip(ftype)
12982
      iprot.readFieldEnd()
12983
    iprot.readStructEnd()
12984
 
12985
  def write(self, oprot):
12986
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12987
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12988
      return
12989
    oprot.writeStructBegin('getComingSoonCount_result')
12990
    if self.success is not None:
12991
      oprot.writeFieldBegin('success', TType.I64, 0)
12992
      oprot.writeI64(self.success)
12993
      oprot.writeFieldEnd()
12994
    if self.cex is not None:
12995
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12996
      self.cex.write(oprot)
12997
      oprot.writeFieldEnd()
12998
    oprot.writeFieldStop()
12999
    oprot.writeStructEnd()
13000
 
13001
  def validate(self):
13002
    return
13003
 
13004
 
13005
  def __repr__(self):
13006
    L = ['%s=%r' % (key, value)
13007
      for key, value in self.__dict__.iteritems()]
13008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13009
 
13010
  def __eq__(self, other):
13011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13012
 
13013
  def __ne__(self, other):
13014
    return not (self == other)
13015
 
13016
class getLatestArrivals_args:
13017
 
13018
  thrift_spec = (
13019
  )
13020
 
13021
  def read(self, iprot):
13022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13024
      return
13025
    iprot.readStructBegin()
13026
    while True:
13027
      (fname, ftype, fid) = iprot.readFieldBegin()
13028
      if ftype == TType.STOP:
13029
        break
13030
      else:
13031
        iprot.skip(ftype)
13032
      iprot.readFieldEnd()
13033
    iprot.readStructEnd()
13034
 
13035
  def write(self, oprot):
13036
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13037
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13038
      return
13039
    oprot.writeStructBegin('getLatestArrivals_args')
13040
    oprot.writeFieldStop()
13041
    oprot.writeStructEnd()
13042
 
13043
  def validate(self):
13044
    return
13045
 
13046
 
13047
  def __repr__(self):
13048
    L = ['%s=%r' % (key, value)
13049
      for key, value in self.__dict__.iteritems()]
13050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13051
 
13052
  def __eq__(self, other):
13053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13054
 
13055
  def __ne__(self, other):
13056
    return not (self == other)
13057
 
13058
class getLatestArrivals_result:
13059
  """
13060
  Attributes:
13061
   - success
13062
   - isex
13063
  """
13064
 
13065
  thrift_spec = (
13066
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13067
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13068
  )
13069
 
13070
  def __init__(self, success=None, isex=None,):
13071
    self.success = success
13072
    self.isex = isex
13073
 
13074
  def read(self, iprot):
13075
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13076
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13077
      return
13078
    iprot.readStructBegin()
13079
    while True:
13080
      (fname, ftype, fid) = iprot.readFieldBegin()
13081
      if ftype == TType.STOP:
13082
        break
13083
      if fid == 0:
13084
        if ftype == TType.LIST:
13085
          self.success = []
12567 amit.gupta 13086
          (_etype142, _size139) = iprot.readListBegin()
13087
          for _i143 in xrange(_size139):
13088
            _elem144 = Item()
13089
            _elem144.read(iprot)
13090
            self.success.append(_elem144)
5944 mandeep.dh 13091
          iprot.readListEnd()
13092
        else:
13093
          iprot.skip(ftype)
13094
      elif fid == 1:
13095
        if ftype == TType.STRUCT:
13096
          self.isex = CatalogServiceException()
13097
          self.isex.read(iprot)
13098
        else:
13099
          iprot.skip(ftype)
13100
      else:
13101
        iprot.skip(ftype)
13102
      iprot.readFieldEnd()
13103
    iprot.readStructEnd()
13104
 
13105
  def write(self, oprot):
13106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13108
      return
13109
    oprot.writeStructBegin('getLatestArrivals_result')
13110
    if self.success is not None:
13111
      oprot.writeFieldBegin('success', TType.LIST, 0)
13112
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13113
      for iter145 in self.success:
13114
        iter145.write(oprot)
5944 mandeep.dh 13115
      oprot.writeListEnd()
13116
      oprot.writeFieldEnd()
13117
    if self.isex is not None:
13118
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
13119
      self.isex.write(oprot)
13120
      oprot.writeFieldEnd()
13121
    oprot.writeFieldStop()
13122
    oprot.writeStructEnd()
13123
 
13124
  def validate(self):
13125
    return
13126
 
13127
 
13128
  def __repr__(self):
13129
    L = ['%s=%r' % (key, value)
13130
      for key, value in self.__dict__.iteritems()]
13131
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13132
 
13133
  def __eq__(self, other):
13134
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13135
 
13136
  def __ne__(self, other):
13137
    return not (self == other)
13138
 
13139
class getLatestArrivalsCatalogIds_args:
13140
  """
13141
  Attributes:
13142
   - beginIndex
13143
   - totalItems
13144
   - brand
13145
   - categories
13146
  """
13147
 
13148
  thrift_spec = (
13149
    None, # 0
13150
    (1, TType.I64, 'beginIndex', None, None, ), # 1
13151
    (2, TType.I64, 'totalItems', None, None, ), # 2
13152
    (3, TType.STRING, 'brand', None, None, ), # 3
13153
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
13154
  )
13155
 
13156
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
13157
    self.beginIndex = beginIndex
13158
    self.totalItems = totalItems
13159
    self.brand = brand
13160
    self.categories = categories
13161
 
13162
  def read(self, iprot):
13163
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13164
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13165
      return
13166
    iprot.readStructBegin()
13167
    while True:
13168
      (fname, ftype, fid) = iprot.readFieldBegin()
13169
      if ftype == TType.STOP:
13170
        break
13171
      if fid == 1:
13172
        if ftype == TType.I64:
13173
          self.beginIndex = iprot.readI64();
13174
        else:
13175
          iprot.skip(ftype)
13176
      elif fid == 2:
13177
        if ftype == TType.I64:
13178
          self.totalItems = iprot.readI64();
13179
        else:
13180
          iprot.skip(ftype)
13181
      elif fid == 3:
13182
        if ftype == TType.STRING:
13183
          self.brand = iprot.readString();
13184
        else:
13185
          iprot.skip(ftype)
13186
      elif fid == 4:
13187
        if ftype == TType.LIST:
13188
          self.categories = []
12567 amit.gupta 13189
          (_etype149, _size146) = iprot.readListBegin()
13190
          for _i150 in xrange(_size146):
13191
            _elem151 = iprot.readI64();
13192
            self.categories.append(_elem151)
5944 mandeep.dh 13193
          iprot.readListEnd()
13194
        else:
13195
          iprot.skip(ftype)
13196
      else:
13197
        iprot.skip(ftype)
13198
      iprot.readFieldEnd()
13199
    iprot.readStructEnd()
13200
 
13201
  def write(self, oprot):
13202
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13203
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13204
      return
13205
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
13206
    if self.beginIndex is not None:
13207
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
13208
      oprot.writeI64(self.beginIndex)
13209
      oprot.writeFieldEnd()
13210
    if self.totalItems is not None:
13211
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
13212
      oprot.writeI64(self.totalItems)
13213
      oprot.writeFieldEnd()
13214
    if self.brand is not None:
13215
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13216
      oprot.writeString(self.brand)
13217
      oprot.writeFieldEnd()
13218
    if self.categories is not None:
13219
      oprot.writeFieldBegin('categories', TType.LIST, 4)
13220
      oprot.writeListBegin(TType.I64, len(self.categories))
12567 amit.gupta 13221
      for iter152 in self.categories:
13222
        oprot.writeI64(iter152)
5944 mandeep.dh 13223
      oprot.writeListEnd()
13224
      oprot.writeFieldEnd()
13225
    oprot.writeFieldStop()
13226
    oprot.writeStructEnd()
13227
 
13228
  def validate(self):
13229
    return
13230
 
13231
 
13232
  def __repr__(self):
13233
    L = ['%s=%r' % (key, value)
13234
      for key, value in self.__dict__.iteritems()]
13235
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13236
 
13237
  def __eq__(self, other):
13238
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13239
 
13240
  def __ne__(self, other):
13241
    return not (self == other)
13242
 
13243
class getLatestArrivalsCatalogIds_result:
13244
  """
13245
  Attributes:
13246
   - success
13247
   - cex
13248
  """
13249
 
13250
  thrift_spec = (
13251
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13252
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13253
  )
13254
 
13255
  def __init__(self, success=None, cex=None,):
13256
    self.success = success
13257
    self.cex = cex
13258
 
13259
  def read(self, iprot):
13260
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13261
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13262
      return
13263
    iprot.readStructBegin()
13264
    while True:
13265
      (fname, ftype, fid) = iprot.readFieldBegin()
13266
      if ftype == TType.STOP:
13267
        break
13268
      if fid == 0:
13269
        if ftype == TType.LIST:
13270
          self.success = []
12567 amit.gupta 13271
          (_etype156, _size153) = iprot.readListBegin()
13272
          for _i157 in xrange(_size153):
13273
            _elem158 = iprot.readI64();
13274
            self.success.append(_elem158)
5944 mandeep.dh 13275
          iprot.readListEnd()
13276
        else:
13277
          iprot.skip(ftype)
13278
      elif fid == 1:
13279
        if ftype == TType.STRUCT:
13280
          self.cex = CatalogServiceException()
13281
          self.cex.read(iprot)
13282
        else:
13283
          iprot.skip(ftype)
13284
      else:
13285
        iprot.skip(ftype)
13286
      iprot.readFieldEnd()
13287
    iprot.readStructEnd()
13288
 
13289
  def write(self, oprot):
13290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13292
      return
13293
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
13294
    if self.success is not None:
13295
      oprot.writeFieldBegin('success', TType.LIST, 0)
13296
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 13297
      for iter159 in self.success:
13298
        oprot.writeI64(iter159)
5944 mandeep.dh 13299
      oprot.writeListEnd()
13300
      oprot.writeFieldEnd()
13301
    if self.cex is not None:
13302
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13303
      self.cex.write(oprot)
13304
      oprot.writeFieldEnd()
13305
    oprot.writeFieldStop()
13306
    oprot.writeStructEnd()
13307
 
13308
  def validate(self):
13309
    return
13310
 
13311
 
13312
  def __repr__(self):
13313
    L = ['%s=%r' % (key, value)
13314
      for key, value in self.__dict__.iteritems()]
13315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13316
 
13317
  def __eq__(self, other):
13318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13319
 
13320
  def __ne__(self, other):
13321
    return not (self == other)
13322
 
13323
class getLatestArrivalsCount_args:
13324
 
13325
  thrift_spec = (
13326
  )
13327
 
13328
  def read(self, iprot):
13329
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13330
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13331
      return
13332
    iprot.readStructBegin()
13333
    while True:
13334
      (fname, ftype, fid) = iprot.readFieldBegin()
13335
      if ftype == TType.STOP:
13336
        break
13337
      else:
13338
        iprot.skip(ftype)
13339
      iprot.readFieldEnd()
13340
    iprot.readStructEnd()
13341
 
13342
  def write(self, oprot):
13343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13345
      return
13346
    oprot.writeStructBegin('getLatestArrivalsCount_args')
13347
    oprot.writeFieldStop()
13348
    oprot.writeStructEnd()
13349
 
13350
  def validate(self):
13351
    return
13352
 
13353
 
13354
  def __repr__(self):
13355
    L = ['%s=%r' % (key, value)
13356
      for key, value in self.__dict__.iteritems()]
13357
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13358
 
13359
  def __eq__(self, other):
13360
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13361
 
13362
  def __ne__(self, other):
13363
    return not (self == other)
13364
 
13365
class getLatestArrivalsCount_result:
13366
  """
13367
  Attributes:
13368
   - success
13369
   - cex
13370
  """
13371
 
13372
  thrift_spec = (
13373
    (0, TType.I64, 'success', None, None, ), # 0
13374
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13375
  )
13376
 
13377
  def __init__(self, success=None, cex=None,):
13378
    self.success = success
13379
    self.cex = cex
13380
 
13381
  def read(self, iprot):
13382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13384
      return
13385
    iprot.readStructBegin()
13386
    while True:
13387
      (fname, ftype, fid) = iprot.readFieldBegin()
13388
      if ftype == TType.STOP:
13389
        break
13390
      if fid == 0:
13391
        if ftype == TType.I64:
13392
          self.success = iprot.readI64();
13393
        else:
13394
          iprot.skip(ftype)
13395
      elif fid == 1:
13396
        if ftype == TType.STRUCT:
13397
          self.cex = CatalogServiceException()
13398
          self.cex.read(iprot)
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('getLatestArrivalsCount_result')
13411
    if self.success is not None:
13412
      oprot.writeFieldBegin('success', TType.I64, 0)
13413
      oprot.writeI64(self.success)
13414
      oprot.writeFieldEnd()
13415
    if self.cex is not None:
13416
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13417
      self.cex.write(oprot)
13418
      oprot.writeFieldEnd()
13419
    oprot.writeFieldStop()
13420
    oprot.writeStructEnd()
13421
 
13422
  def validate(self):
13423
    return
13424
 
13425
 
13426
  def __repr__(self):
13427
    L = ['%s=%r' % (key, value)
13428
      for key, value in self.__dict__.iteritems()]
13429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13430
 
13431
  def __eq__(self, other):
13432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13433
 
13434
  def __ne__(self, other):
13435
    return not (self == other)
13436
 
13437
class generateNewEntityID_args:
13438
 
13439
  thrift_spec = (
13440
  )
13441
 
13442
  def read(self, iprot):
13443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13445
      return
13446
    iprot.readStructBegin()
13447
    while True:
13448
      (fname, ftype, fid) = iprot.readFieldBegin()
13449
      if ftype == TType.STOP:
13450
        break
13451
      else:
13452
        iprot.skip(ftype)
13453
      iprot.readFieldEnd()
13454
    iprot.readStructEnd()
13455
 
13456
  def write(self, oprot):
13457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13459
      return
13460
    oprot.writeStructBegin('generateNewEntityID_args')
13461
    oprot.writeFieldStop()
13462
    oprot.writeStructEnd()
13463
 
13464
  def validate(self):
13465
    return
13466
 
13467
 
13468
  def __repr__(self):
13469
    L = ['%s=%r' % (key, value)
13470
      for key, value in self.__dict__.iteritems()]
13471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13472
 
13473
  def __eq__(self, other):
13474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13475
 
13476
  def __ne__(self, other):
13477
    return not (self == other)
13478
 
13479
class generateNewEntityID_result:
13480
  """
13481
  Attributes:
13482
   - success
13483
  """
13484
 
13485
  thrift_spec = (
13486
    (0, TType.I64, 'success', None, None, ), # 0
13487
  )
13488
 
13489
  def __init__(self, success=None,):
13490
    self.success = success
13491
 
13492
  def read(self, iprot):
13493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13495
      return
13496
    iprot.readStructBegin()
13497
    while True:
13498
      (fname, ftype, fid) = iprot.readFieldBegin()
13499
      if ftype == TType.STOP:
13500
        break
13501
      if fid == 0:
13502
        if ftype == TType.I64:
13503
          self.success = iprot.readI64();
13504
        else:
13505
          iprot.skip(ftype)
13506
      else:
13507
        iprot.skip(ftype)
13508
      iprot.readFieldEnd()
13509
    iprot.readStructEnd()
13510
 
13511
  def write(self, oprot):
13512
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13513
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13514
      return
13515
    oprot.writeStructBegin('generateNewEntityID_result')
13516
    if self.success is not None:
13517
      oprot.writeFieldBegin('success', TType.I64, 0)
13518
      oprot.writeI64(self.success)
13519
      oprot.writeFieldEnd()
13520
    oprot.writeFieldStop()
13521
    oprot.writeStructEnd()
13522
 
13523
  def validate(self):
13524
    return
13525
 
13526
 
13527
  def __repr__(self):
13528
    L = ['%s=%r' % (key, value)
13529
      for key, value in self.__dict__.iteritems()]
13530
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13531
 
13532
  def __eq__(self, other):
13533
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13534
 
13535
  def __ne__(self, other):
13536
    return not (self == other)
13537
 
13538
class addCategory_args:
13539
  """
13540
  Attributes:
13541
   - category
13542
  """
13543
 
13544
  thrift_spec = (
13545
    None, # 0
13546
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
13547
  )
13548
 
13549
  def __init__(self, category=None,):
13550
    self.category = category
13551
 
13552
  def read(self, iprot):
13553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13555
      return
13556
    iprot.readStructBegin()
13557
    while True:
13558
      (fname, ftype, fid) = iprot.readFieldBegin()
13559
      if ftype == TType.STOP:
13560
        break
13561
      if fid == 1:
13562
        if ftype == TType.STRUCT:
13563
          self.category = Category()
13564
          self.category.read(iprot)
13565
        else:
13566
          iprot.skip(ftype)
13567
      else:
13568
        iprot.skip(ftype)
13569
      iprot.readFieldEnd()
13570
    iprot.readStructEnd()
13571
 
13572
  def write(self, oprot):
13573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13575
      return
13576
    oprot.writeStructBegin('addCategory_args')
13577
    if self.category is not None:
13578
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
13579
      self.category.write(oprot)
13580
      oprot.writeFieldEnd()
13581
    oprot.writeFieldStop()
13582
    oprot.writeStructEnd()
13583
 
13584
  def validate(self):
13585
    return
13586
 
13587
 
13588
  def __repr__(self):
13589
    L = ['%s=%r' % (key, value)
13590
      for key, value in self.__dict__.iteritems()]
13591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13592
 
13593
  def __eq__(self, other):
13594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13595
 
13596
  def __ne__(self, other):
13597
    return not (self == other)
13598
 
13599
class addCategory_result:
13600
  """
13601
  Attributes:
13602
   - success
13603
  """
13604
 
13605
  thrift_spec = (
13606
    (0, TType.BOOL, 'success', None, None, ), # 0
13607
  )
13608
 
13609
  def __init__(self, success=None,):
13610
    self.success = success
13611
 
13612
  def read(self, iprot):
13613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13615
      return
13616
    iprot.readStructBegin()
13617
    while True:
13618
      (fname, ftype, fid) = iprot.readFieldBegin()
13619
      if ftype == TType.STOP:
13620
        break
13621
      if fid == 0:
13622
        if ftype == TType.BOOL:
13623
          self.success = iprot.readBool();
13624
        else:
13625
          iprot.skip(ftype)
13626
      else:
13627
        iprot.skip(ftype)
13628
      iprot.readFieldEnd()
13629
    iprot.readStructEnd()
13630
 
13631
  def write(self, oprot):
13632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13634
      return
13635
    oprot.writeStructBegin('addCategory_result')
13636
    if self.success is not None:
13637
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13638
      oprot.writeBool(self.success)
13639
      oprot.writeFieldEnd()
13640
    oprot.writeFieldStop()
13641
    oprot.writeStructEnd()
13642
 
13643
  def validate(self):
13644
    return
13645
 
13646
 
13647
  def __repr__(self):
13648
    L = ['%s=%r' % (key, value)
13649
      for key, value in self.__dict__.iteritems()]
13650
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13651
 
13652
  def __eq__(self, other):
13653
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13654
 
13655
  def __ne__(self, other):
13656
    return not (self == other)
13657
 
13658
class getCategory_args:
13659
  """
13660
  Attributes:
13661
   - id
13662
  """
13663
 
13664
  thrift_spec = (
13665
    None, # 0
13666
    (1, TType.I64, 'id', None, None, ), # 1
13667
  )
13668
 
13669
  def __init__(self, id=None,):
13670
    self.id = id
13671
 
13672
  def read(self, iprot):
13673
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13674
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13675
      return
13676
    iprot.readStructBegin()
13677
    while True:
13678
      (fname, ftype, fid) = iprot.readFieldBegin()
13679
      if ftype == TType.STOP:
13680
        break
13681
      if fid == 1:
13682
        if ftype == TType.I64:
13683
          self.id = iprot.readI64();
13684
        else:
13685
          iprot.skip(ftype)
13686
      else:
13687
        iprot.skip(ftype)
13688
      iprot.readFieldEnd()
13689
    iprot.readStructEnd()
13690
 
13691
  def write(self, oprot):
13692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13694
      return
13695
    oprot.writeStructBegin('getCategory_args')
13696
    if self.id is not None:
13697
      oprot.writeFieldBegin('id', TType.I64, 1)
13698
      oprot.writeI64(self.id)
13699
      oprot.writeFieldEnd()
13700
    oprot.writeFieldStop()
13701
    oprot.writeStructEnd()
13702
 
13703
  def validate(self):
13704
    return
13705
 
13706
 
13707
  def __repr__(self):
13708
    L = ['%s=%r' % (key, value)
13709
      for key, value in self.__dict__.iteritems()]
13710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13711
 
13712
  def __eq__(self, other):
13713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13714
 
13715
  def __ne__(self, other):
13716
    return not (self == other)
13717
 
13718
class getCategory_result:
13719
  """
13720
  Attributes:
13721
   - success
13722
  """
13723
 
13724
  thrift_spec = (
13725
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
13726
  )
13727
 
13728
  def __init__(self, success=None,):
13729
    self.success = success
13730
 
13731
  def read(self, iprot):
13732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13734
      return
13735
    iprot.readStructBegin()
13736
    while True:
13737
      (fname, ftype, fid) = iprot.readFieldBegin()
13738
      if ftype == TType.STOP:
13739
        break
13740
      if fid == 0:
13741
        if ftype == TType.STRUCT:
13742
          self.success = Category()
13743
          self.success.read(iprot)
13744
        else:
13745
          iprot.skip(ftype)
13746
      else:
13747
        iprot.skip(ftype)
13748
      iprot.readFieldEnd()
13749
    iprot.readStructEnd()
13750
 
13751
  def write(self, oprot):
13752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13754
      return
13755
    oprot.writeStructBegin('getCategory_result')
13756
    if self.success is not None:
13757
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13758
      self.success.write(oprot)
13759
      oprot.writeFieldEnd()
13760
    oprot.writeFieldStop()
13761
    oprot.writeStructEnd()
13762
 
13763
  def validate(self):
13764
    return
13765
 
13766
 
13767
  def __repr__(self):
13768
    L = ['%s=%r' % (key, value)
13769
      for key, value in self.__dict__.iteritems()]
13770
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13771
 
13772
  def __eq__(self, other):
13773
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13774
 
13775
  def __ne__(self, other):
13776
    return not (self == other)
13777
 
13778
class getAllCategories_args:
13779
 
13780
  thrift_spec = (
13781
  )
13782
 
13783
  def read(self, iprot):
13784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13786
      return
13787
    iprot.readStructBegin()
13788
    while True:
13789
      (fname, ftype, fid) = iprot.readFieldBegin()
13790
      if ftype == TType.STOP:
13791
        break
13792
      else:
13793
        iprot.skip(ftype)
13794
      iprot.readFieldEnd()
13795
    iprot.readStructEnd()
13796
 
13797
  def write(self, oprot):
13798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13800
      return
13801
    oprot.writeStructBegin('getAllCategories_args')
13802
    oprot.writeFieldStop()
13803
    oprot.writeStructEnd()
13804
 
13805
  def validate(self):
13806
    return
13807
 
13808
 
13809
  def __repr__(self):
13810
    L = ['%s=%r' % (key, value)
13811
      for key, value in self.__dict__.iteritems()]
13812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13813
 
13814
  def __eq__(self, other):
13815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13816
 
13817
  def __ne__(self, other):
13818
    return not (self == other)
13819
 
13820
class getAllCategories_result:
13821
  """
13822
  Attributes:
13823
   - success
13824
  """
13825
 
13826
  thrift_spec = (
13827
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
13828
  )
13829
 
13830
  def __init__(self, success=None,):
13831
    self.success = success
13832
 
13833
  def read(self, iprot):
13834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13836
      return
13837
    iprot.readStructBegin()
13838
    while True:
13839
      (fname, ftype, fid) = iprot.readFieldBegin()
13840
      if ftype == TType.STOP:
13841
        break
13842
      if fid == 0:
13843
        if ftype == TType.LIST:
13844
          self.success = []
12567 amit.gupta 13845
          (_etype163, _size160) = iprot.readListBegin()
13846
          for _i164 in xrange(_size160):
13847
            _elem165 = Category()
13848
            _elem165.read(iprot)
13849
            self.success.append(_elem165)
5944 mandeep.dh 13850
          iprot.readListEnd()
13851
        else:
13852
          iprot.skip(ftype)
13853
      else:
13854
        iprot.skip(ftype)
13855
      iprot.readFieldEnd()
13856
    iprot.readStructEnd()
13857
 
13858
  def write(self, oprot):
13859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13861
      return
13862
    oprot.writeStructBegin('getAllCategories_result')
13863
    if self.success is not None:
13864
      oprot.writeFieldBegin('success', TType.LIST, 0)
13865
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13866
      for iter166 in self.success:
13867
        iter166.write(oprot)
5944 mandeep.dh 13868
      oprot.writeListEnd()
13869
      oprot.writeFieldEnd()
13870
    oprot.writeFieldStop()
13871
    oprot.writeStructEnd()
13872
 
13873
  def validate(self):
13874
    return
13875
 
13876
 
13877
  def __repr__(self):
13878
    L = ['%s=%r' % (key, value)
13879
      for key, value in self.__dict__.iteritems()]
13880
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13881
 
13882
  def __eq__(self, other):
13883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13884
 
13885
  def __ne__(self, other):
13886
    return not (self == other)
13887
 
13888
class getAllSimilarItems_args:
13889
  """
13890
  Attributes:
13891
   - itemId
13892
  """
13893
 
13894
  thrift_spec = (
13895
    None, # 0
13896
    (1, TType.I64, 'itemId', None, None, ), # 1
13897
  )
13898
 
13899
  def __init__(self, itemId=None,):
13900
    self.itemId = itemId
13901
 
13902
  def read(self, iprot):
13903
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13904
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13905
      return
13906
    iprot.readStructBegin()
13907
    while True:
13908
      (fname, ftype, fid) = iprot.readFieldBegin()
13909
      if ftype == TType.STOP:
13910
        break
13911
      if fid == 1:
13912
        if ftype == TType.I64:
13913
          self.itemId = iprot.readI64();
13914
        else:
13915
          iprot.skip(ftype)
13916
      else:
13917
        iprot.skip(ftype)
13918
      iprot.readFieldEnd()
13919
    iprot.readStructEnd()
13920
 
13921
  def write(self, oprot):
13922
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13923
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13924
      return
13925
    oprot.writeStructBegin('getAllSimilarItems_args')
13926
    if self.itemId is not None:
13927
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13928
      oprot.writeI64(self.itemId)
13929
      oprot.writeFieldEnd()
13930
    oprot.writeFieldStop()
13931
    oprot.writeStructEnd()
13932
 
13933
  def validate(self):
13934
    return
13935
 
13936
 
13937
  def __repr__(self):
13938
    L = ['%s=%r' % (key, value)
13939
      for key, value in self.__dict__.iteritems()]
13940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13941
 
13942
  def __eq__(self, other):
13943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13944
 
13945
  def __ne__(self, other):
13946
    return not (self == other)
13947
 
13948
class getAllSimilarItems_result:
13949
  """
13950
  Attributes:
13951
   - success
13952
  """
13953
 
13954
  thrift_spec = (
13955
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13956
  )
13957
 
13958
  def __init__(self, success=None,):
13959
    self.success = success
13960
 
13961
  def read(self, iprot):
13962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13964
      return
13965
    iprot.readStructBegin()
13966
    while True:
13967
      (fname, ftype, fid) = iprot.readFieldBegin()
13968
      if ftype == TType.STOP:
13969
        break
13970
      if fid == 0:
13971
        if ftype == TType.LIST:
13972
          self.success = []
12567 amit.gupta 13973
          (_etype170, _size167) = iprot.readListBegin()
13974
          for _i171 in xrange(_size167):
13975
            _elem172 = Item()
13976
            _elem172.read(iprot)
13977
            self.success.append(_elem172)
5944 mandeep.dh 13978
          iprot.readListEnd()
13979
        else:
13980
          iprot.skip(ftype)
13981
      else:
13982
        iprot.skip(ftype)
13983
      iprot.readFieldEnd()
13984
    iprot.readStructEnd()
13985
 
13986
  def write(self, oprot):
13987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13989
      return
13990
    oprot.writeStructBegin('getAllSimilarItems_result')
13991
    if self.success is not None:
13992
      oprot.writeFieldBegin('success', TType.LIST, 0)
13993
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13994
      for iter173 in self.success:
13995
        iter173.write(oprot)
5944 mandeep.dh 13996
      oprot.writeListEnd()
13997
      oprot.writeFieldEnd()
13998
    oprot.writeFieldStop()
13999
    oprot.writeStructEnd()
14000
 
14001
  def validate(self):
14002
    return
14003
 
14004
 
14005
  def __repr__(self):
14006
    L = ['%s=%r' % (key, value)
14007
      for key, value in self.__dict__.iteritems()]
14008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14009
 
14010
  def __eq__(self, other):
14011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14012
 
14013
  def __ne__(self, other):
14014
    return not (self == other)
14015
 
14016
class addSimilarItem_args:
14017
  """
14018
  Attributes:
14019
   - itemId
14020
   - catalogItemId
14021
  """
14022
 
14023
  thrift_spec = (
14024
    None, # 0
14025
    (1, TType.I64, 'itemId', None, None, ), # 1
14026
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
14027
  )
14028
 
14029
  def __init__(self, itemId=None, catalogItemId=None,):
14030
    self.itemId = itemId
14031
    self.catalogItemId = catalogItemId
14032
 
14033
  def read(self, iprot):
14034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14036
      return
14037
    iprot.readStructBegin()
14038
    while True:
14039
      (fname, ftype, fid) = iprot.readFieldBegin()
14040
      if ftype == TType.STOP:
14041
        break
14042
      if fid == 1:
14043
        if ftype == TType.I64:
14044
          self.itemId = iprot.readI64();
14045
        else:
14046
          iprot.skip(ftype)
14047
      elif fid == 2:
14048
        if ftype == TType.I64:
14049
          self.catalogItemId = iprot.readI64();
14050
        else:
14051
          iprot.skip(ftype)
14052
      else:
14053
        iprot.skip(ftype)
14054
      iprot.readFieldEnd()
14055
    iprot.readStructEnd()
14056
 
14057
  def write(self, oprot):
14058
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14059
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14060
      return
14061
    oprot.writeStructBegin('addSimilarItem_args')
14062
    if self.itemId is not None:
14063
      oprot.writeFieldBegin('itemId', TType.I64, 1)
14064
      oprot.writeI64(self.itemId)
14065
      oprot.writeFieldEnd()
14066
    if self.catalogItemId is not None:
14067
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
14068
      oprot.writeI64(self.catalogItemId)
14069
      oprot.writeFieldEnd()
14070
    oprot.writeFieldStop()
14071
    oprot.writeStructEnd()
14072
 
14073
  def validate(self):
14074
    return
14075
 
14076
 
14077
  def __repr__(self):
14078
    L = ['%s=%r' % (key, value)
14079
      for key, value in self.__dict__.iteritems()]
14080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14081
 
14082
  def __eq__(self, other):
14083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14084
 
14085
  def __ne__(self, other):
14086
    return not (self == other)
14087
 
14088
class addSimilarItem_result:
14089
  """
14090
  Attributes:
14091
   - success
14092
   - cex
14093
  """
14094
 
14095
  thrift_spec = (
14096
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
14097
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
14098
  )
14099
 
14100
  def __init__(self, success=None, cex=None,):
14101
    self.success = success
14102
    self.cex = cex
14103
 
14104
  def read(self, iprot):
14105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14107
      return
14108
    iprot.readStructBegin()
14109
    while True:
14110
      (fname, ftype, fid) = iprot.readFieldBegin()
14111
      if ftype == TType.STOP:
14112
        break
14113
      if fid == 0:
14114
        if ftype == TType.STRUCT:
14115
          self.success = Item()
14116
          self.success.read(iprot)
14117
        else:
14118
          iprot.skip(ftype)
14119
      elif fid == 1:
14120
        if ftype == TType.STRUCT:
14121
          self.cex = CatalogServiceException()
14122
          self.cex.read(iprot)
14123
        else:
14124
          iprot.skip(ftype)
14125
      else:
14126
        iprot.skip(ftype)
14127
      iprot.readFieldEnd()
14128
    iprot.readStructEnd()
14129
 
14130
  def write(self, oprot):
14131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14133
      return
14134
    oprot.writeStructBegin('addSimilarItem_result')
14135
    if self.success is not None:
14136
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
14137
      self.success.write(oprot)
14138
      oprot.writeFieldEnd()
14139
    if self.cex is not None:
14140
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
14141
      self.cex.write(oprot)
14142
      oprot.writeFieldEnd()
14143
    oprot.writeFieldStop()
14144
    oprot.writeStructEnd()
14145
 
14146
  def validate(self):
14147
    return
14148
 
14149
 
14150
  def __repr__(self):
14151
    L = ['%s=%r' % (key, value)
14152
      for key, value in self.__dict__.iteritems()]
14153
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14154
 
14155
  def __eq__(self, other):
14156
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14157
 
14158
  def __ne__(self, other):
14159
    return not (self == other)
14160
 
6512 kshitij.so 14161
class addTag_args:
14162
  """
14163
  Attributes:
14164
   - displayName
14165
   - itemId
14166
  """
14167
 
14168
  thrift_spec = (
14169
    None, # 0
14170
    (1, TType.STRING, 'displayName', None, None, ), # 1
14171
    (2, TType.I64, 'itemId', None, None, ), # 2
14172
  )
14173
 
14174
  def __init__(self, displayName=None, itemId=None,):
14175
    self.displayName = displayName
14176
    self.itemId = itemId
14177
 
14178
  def read(self, iprot):
14179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14181
      return
14182
    iprot.readStructBegin()
14183
    while True:
14184
      (fname, ftype, fid) = iprot.readFieldBegin()
14185
      if ftype == TType.STOP:
14186
        break
14187
      if fid == 1:
14188
        if ftype == TType.STRING:
14189
          self.displayName = iprot.readString();
14190
        else:
14191
          iprot.skip(ftype)
14192
      elif fid == 2:
14193
        if ftype == TType.I64:
14194
          self.itemId = iprot.readI64();
14195
        else:
14196
          iprot.skip(ftype)
14197
      else:
14198
        iprot.skip(ftype)
14199
      iprot.readFieldEnd()
14200
    iprot.readStructEnd()
14201
 
14202
  def write(self, oprot):
14203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14205
      return
14206
    oprot.writeStructBegin('addTag_args')
14207
    if self.displayName is not None:
14208
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14209
      oprot.writeString(self.displayName)
14210
      oprot.writeFieldEnd()
14211
    if self.itemId is not None:
14212
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14213
      oprot.writeI64(self.itemId)
14214
      oprot.writeFieldEnd()
14215
    oprot.writeFieldStop()
14216
    oprot.writeStructEnd()
14217
 
14218
  def validate(self):
14219
    return
14220
 
14221
 
14222
  def __repr__(self):
14223
    L = ['%s=%r' % (key, value)
14224
      for key, value in self.__dict__.iteritems()]
14225
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14226
 
14227
  def __eq__(self, other):
14228
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14229
 
14230
  def __ne__(self, other):
14231
    return not (self == other)
14232
 
14233
class addTag_result:
14234
  """
14235
  Attributes:
14236
   - success
14237
  """
14238
 
14239
  thrift_spec = (
14240
    (0, TType.BOOL, 'success', None, None, ), # 0
14241
  )
14242
 
14243
  def __init__(self, success=None,):
14244
    self.success = success
14245
 
14246
  def read(self, iprot):
14247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14249
      return
14250
    iprot.readStructBegin()
14251
    while True:
14252
      (fname, ftype, fid) = iprot.readFieldBegin()
14253
      if ftype == TType.STOP:
14254
        break
14255
      if fid == 0:
14256
        if ftype == TType.BOOL:
14257
          self.success = iprot.readBool();
14258
        else:
14259
          iprot.skip(ftype)
14260
      else:
14261
        iprot.skip(ftype)
14262
      iprot.readFieldEnd()
14263
    iprot.readStructEnd()
14264
 
14265
  def write(self, oprot):
14266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14268
      return
14269
    oprot.writeStructBegin('addTag_result')
14270
    if self.success is not None:
14271
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14272
      oprot.writeBool(self.success)
14273
      oprot.writeFieldEnd()
14274
    oprot.writeFieldStop()
14275
    oprot.writeStructEnd()
14276
 
14277
  def validate(self):
14278
    return
14279
 
14280
 
14281
  def __repr__(self):
14282
    L = ['%s=%r' % (key, value)
14283
      for key, value in self.__dict__.iteritems()]
14284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14285
 
14286
  def __eq__(self, other):
14287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14288
 
14289
  def __ne__(self, other):
14290
    return not (self == other)
14291
 
14292
class deleteEntityTag_args:
14293
  """
14294
  Attributes:
14295
   - displayName
14296
   - itemId
14297
  """
14298
 
14299
  thrift_spec = (
14300
    None, # 0
14301
    (1, TType.STRING, 'displayName', None, None, ), # 1
14302
    (2, TType.I64, 'itemId', None, None, ), # 2
14303
  )
14304
 
14305
  def __init__(self, displayName=None, itemId=None,):
14306
    self.displayName = displayName
14307
    self.itemId = itemId
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 == 1:
14319
        if ftype == TType.STRING:
14320
          self.displayName = iprot.readString();
14321
        else:
14322
          iprot.skip(ftype)
14323
      elif fid == 2:
14324
        if ftype == TType.I64:
14325
          self.itemId = iprot.readI64();
14326
        else:
14327
          iprot.skip(ftype)
14328
      else:
14329
        iprot.skip(ftype)
14330
      iprot.readFieldEnd()
14331
    iprot.readStructEnd()
14332
 
14333
  def write(self, oprot):
14334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14336
      return
14337
    oprot.writeStructBegin('deleteEntityTag_args')
14338
    if self.displayName is not None:
14339
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14340
      oprot.writeString(self.displayName)
14341
      oprot.writeFieldEnd()
14342
    if self.itemId is not None:
14343
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14344
      oprot.writeI64(self.itemId)
14345
      oprot.writeFieldEnd()
14346
    oprot.writeFieldStop()
14347
    oprot.writeStructEnd()
14348
 
14349
  def validate(self):
14350
    return
14351
 
14352
 
14353
  def __repr__(self):
14354
    L = ['%s=%r' % (key, value)
14355
      for key, value in self.__dict__.iteritems()]
14356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14357
 
14358
  def __eq__(self, other):
14359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14360
 
14361
  def __ne__(self, other):
14362
    return not (self == other)
14363
 
14364
class deleteEntityTag_result:
14365
  """
14366
  Attributes:
14367
   - success
14368
  """
14369
 
14370
  thrift_spec = (
14371
    (0, TType.BOOL, 'success', None, None, ), # 0
14372
  )
14373
 
14374
  def __init__(self, success=None,):
14375
    self.success = success
14376
 
14377
  def read(self, iprot):
14378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14380
      return
14381
    iprot.readStructBegin()
14382
    while True:
14383
      (fname, ftype, fid) = iprot.readFieldBegin()
14384
      if ftype == TType.STOP:
14385
        break
14386
      if fid == 0:
14387
        if ftype == TType.BOOL:
14388
          self.success = iprot.readBool();
14389
        else:
14390
          iprot.skip(ftype)
14391
      else:
14392
        iprot.skip(ftype)
14393
      iprot.readFieldEnd()
14394
    iprot.readStructEnd()
14395
 
14396
  def write(self, oprot):
14397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14399
      return
14400
    oprot.writeStructBegin('deleteEntityTag_result')
14401
    if self.success is not None:
14402
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14403
      oprot.writeBool(self.success)
14404
      oprot.writeFieldEnd()
14405
    oprot.writeFieldStop()
14406
    oprot.writeStructEnd()
14407
 
14408
  def validate(self):
14409
    return
14410
 
14411
 
14412
  def __repr__(self):
14413
    L = ['%s=%r' % (key, value)
14414
      for key, value in self.__dict__.iteritems()]
14415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14416
 
14417
  def __eq__(self, other):
14418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14419
 
14420
  def __ne__(self, other):
14421
    return not (self == other)
14422
 
14423
class deleteTag_args:
14424
  """
14425
  Attributes:
14426
   - displayName
14427
  """
14428
 
14429
  thrift_spec = (
14430
    None, # 0
14431
    (1, TType.STRING, 'displayName', None, None, ), # 1
14432
  )
14433
 
14434
  def __init__(self, displayName=None,):
14435
    self.displayName = displayName
14436
 
14437
  def read(self, iprot):
14438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14440
      return
14441
    iprot.readStructBegin()
14442
    while True:
14443
      (fname, ftype, fid) = iprot.readFieldBegin()
14444
      if ftype == TType.STOP:
14445
        break
14446
      if fid == 1:
14447
        if ftype == TType.STRING:
14448
          self.displayName = iprot.readString();
14449
        else:
14450
          iprot.skip(ftype)
14451
      else:
14452
        iprot.skip(ftype)
14453
      iprot.readFieldEnd()
14454
    iprot.readStructEnd()
14455
 
14456
  def write(self, oprot):
14457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14459
      return
14460
    oprot.writeStructBegin('deleteTag_args')
14461
    if self.displayName is not None:
14462
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14463
      oprot.writeString(self.displayName)
14464
      oprot.writeFieldEnd()
14465
    oprot.writeFieldStop()
14466
    oprot.writeStructEnd()
14467
 
14468
  def validate(self):
14469
    return
14470
 
14471
 
14472
  def __repr__(self):
14473
    L = ['%s=%r' % (key, value)
14474
      for key, value in self.__dict__.iteritems()]
14475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14476
 
14477
  def __eq__(self, other):
14478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14479
 
14480
  def __ne__(self, other):
14481
    return not (self == other)
14482
 
14483
class deleteTag_result:
14484
  """
14485
  Attributes:
14486
   - success
14487
  """
14488
 
14489
  thrift_spec = (
14490
    (0, TType.BOOL, 'success', None, None, ), # 0
14491
  )
14492
 
14493
  def __init__(self, success=None,):
14494
    self.success = success
14495
 
14496
  def read(self, iprot):
14497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14499
      return
14500
    iprot.readStructBegin()
14501
    while True:
14502
      (fname, ftype, fid) = iprot.readFieldBegin()
14503
      if ftype == TType.STOP:
14504
        break
14505
      if fid == 0:
14506
        if ftype == TType.BOOL:
14507
          self.success = iprot.readBool();
14508
        else:
14509
          iprot.skip(ftype)
14510
      else:
14511
        iprot.skip(ftype)
14512
      iprot.readFieldEnd()
14513
    iprot.readStructEnd()
14514
 
14515
  def write(self, oprot):
14516
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14517
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14518
      return
14519
    oprot.writeStructBegin('deleteTag_result')
14520
    if self.success is not None:
14521
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14522
      oprot.writeBool(self.success)
14523
      oprot.writeFieldEnd()
14524
    oprot.writeFieldStop()
14525
    oprot.writeStructEnd()
14526
 
14527
  def validate(self):
14528
    return
14529
 
14530
 
14531
  def __repr__(self):
14532
    L = ['%s=%r' % (key, value)
14533
      for key, value in self.__dict__.iteritems()]
14534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14535
 
14536
  def __eq__(self, other):
14537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14538
 
14539
  def __ne__(self, other):
14540
    return not (self == other)
14541
 
14542
class getAllTags_args:
14543
 
14544
  thrift_spec = (
14545
  )
14546
 
14547
  def read(self, iprot):
14548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14550
      return
14551
    iprot.readStructBegin()
14552
    while True:
14553
      (fname, ftype, fid) = iprot.readFieldBegin()
14554
      if ftype == TType.STOP:
14555
        break
14556
      else:
14557
        iprot.skip(ftype)
14558
      iprot.readFieldEnd()
14559
    iprot.readStructEnd()
14560
 
14561
  def write(self, oprot):
14562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14564
      return
14565
    oprot.writeStructBegin('getAllTags_args')
14566
    oprot.writeFieldStop()
14567
    oprot.writeStructEnd()
14568
 
14569
  def validate(self):
14570
    return
14571
 
14572
 
14573
  def __repr__(self):
14574
    L = ['%s=%r' % (key, value)
14575
      for key, value in self.__dict__.iteritems()]
14576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14577
 
14578
  def __eq__(self, other):
14579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14580
 
14581
  def __ne__(self, other):
14582
    return not (self == other)
14583
 
14584
class getAllTags_result:
14585
  """
14586
  Attributes:
14587
   - success
14588
  """
14589
 
14590
  thrift_spec = (
14591
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14592
  )
14593
 
14594
  def __init__(self, success=None,):
14595
    self.success = success
14596
 
14597
  def read(self, iprot):
14598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14600
      return
14601
    iprot.readStructBegin()
14602
    while True:
14603
      (fname, ftype, fid) = iprot.readFieldBegin()
14604
      if ftype == TType.STOP:
14605
        break
14606
      if fid == 0:
14607
        if ftype == TType.LIST:
14608
          self.success = []
12567 amit.gupta 14609
          (_etype177, _size174) = iprot.readListBegin()
14610
          for _i178 in xrange(_size174):
14611
            _elem179 = iprot.readString();
14612
            self.success.append(_elem179)
6512 kshitij.so 14613
          iprot.readListEnd()
14614
        else:
14615
          iprot.skip(ftype)
14616
      else:
14617
        iprot.skip(ftype)
14618
      iprot.readFieldEnd()
14619
    iprot.readStructEnd()
14620
 
14621
  def write(self, oprot):
14622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14624
      return
14625
    oprot.writeStructBegin('getAllTags_result')
14626
    if self.success is not None:
14627
      oprot.writeFieldBegin('success', TType.LIST, 0)
14628
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 14629
      for iter180 in self.success:
14630
        oprot.writeString(iter180)
6512 kshitij.so 14631
      oprot.writeListEnd()
14632
      oprot.writeFieldEnd()
14633
    oprot.writeFieldStop()
14634
    oprot.writeStructEnd()
14635
 
14636
  def validate(self):
14637
    return
14638
 
14639
 
14640
  def __repr__(self):
14641
    L = ['%s=%r' % (key, value)
14642
      for key, value in self.__dict__.iteritems()]
14643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14644
 
14645
  def __eq__(self, other):
14646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14647
 
14648
  def __ne__(self, other):
14649
    return not (self == other)
14650
 
14651
class getAllEntitiesByTagName_args:
14652
  """
14653
  Attributes:
14654
   - displayName
14655
  """
14656
 
14657
  thrift_spec = (
14658
    None, # 0
14659
    (1, TType.STRING, 'displayName', None, None, ), # 1
14660
  )
14661
 
14662
  def __init__(self, displayName=None,):
14663
    self.displayName = displayName
14664
 
14665
  def read(self, iprot):
14666
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14667
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14668
      return
14669
    iprot.readStructBegin()
14670
    while True:
14671
      (fname, ftype, fid) = iprot.readFieldBegin()
14672
      if ftype == TType.STOP:
14673
        break
14674
      if fid == 1:
14675
        if ftype == TType.STRING:
14676
          self.displayName = iprot.readString();
14677
        else:
14678
          iprot.skip(ftype)
14679
      else:
14680
        iprot.skip(ftype)
14681
      iprot.readFieldEnd()
14682
    iprot.readStructEnd()
14683
 
14684
  def write(self, oprot):
14685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14687
      return
14688
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
14689
    if self.displayName is not None:
14690
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14691
      oprot.writeString(self.displayName)
14692
      oprot.writeFieldEnd()
14693
    oprot.writeFieldStop()
14694
    oprot.writeStructEnd()
14695
 
14696
  def validate(self):
14697
    return
14698
 
14699
 
14700
  def __repr__(self):
14701
    L = ['%s=%r' % (key, value)
14702
      for key, value in self.__dict__.iteritems()]
14703
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14704
 
14705
  def __eq__(self, other):
14706
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14707
 
14708
  def __ne__(self, other):
14709
    return not (self == other)
14710
 
14711
class getAllEntitiesByTagName_result:
14712
  """
14713
  Attributes:
14714
   - success
14715
  """
14716
 
14717
  thrift_spec = (
14718
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
14719
  )
14720
 
14721
  def __init__(self, success=None,):
14722
    self.success = success
14723
 
14724
  def read(self, iprot):
14725
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14726
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14727
      return
14728
    iprot.readStructBegin()
14729
    while True:
14730
      (fname, ftype, fid) = iprot.readFieldBegin()
14731
      if ftype == TType.STOP:
14732
        break
14733
      if fid == 0:
14734
        if ftype == TType.LIST:
14735
          self.success = []
12567 amit.gupta 14736
          (_etype184, _size181) = iprot.readListBegin()
14737
          for _i185 in xrange(_size181):
14738
            _elem186 = iprot.readI64();
14739
            self.success.append(_elem186)
6512 kshitij.so 14740
          iprot.readListEnd()
14741
        else:
14742
          iprot.skip(ftype)
14743
      else:
14744
        iprot.skip(ftype)
14745
      iprot.readFieldEnd()
14746
    iprot.readStructEnd()
14747
 
14748
  def write(self, oprot):
14749
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14750
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14751
      return
14752
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
14753
    if self.success is not None:
14754
      oprot.writeFieldBegin('success', TType.LIST, 0)
14755
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 14756
      for iter187 in self.success:
14757
        oprot.writeI64(iter187)
6512 kshitij.so 14758
      oprot.writeListEnd()
14759
      oprot.writeFieldEnd()
14760
    oprot.writeFieldStop()
14761
    oprot.writeStructEnd()
14762
 
14763
  def validate(self):
14764
    return
14765
 
14766
 
14767
  def __repr__(self):
14768
    L = ['%s=%r' % (key, value)
14769
      for key, value in self.__dict__.iteritems()]
14770
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14771
 
14772
  def __eq__(self, other):
14773
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14774
 
14775
  def __ne__(self, other):
14776
    return not (self == other)
14777
 
6845 amit.gupta 14778
class getAllEntityTags_args:
14779
 
14780
  thrift_spec = (
14781
  )
14782
 
14783
  def read(self, iprot):
14784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14786
      return
14787
    iprot.readStructBegin()
14788
    while True:
14789
      (fname, ftype, fid) = iprot.readFieldBegin()
14790
      if ftype == TType.STOP:
14791
        break
14792
      else:
14793
        iprot.skip(ftype)
14794
      iprot.readFieldEnd()
14795
    iprot.readStructEnd()
14796
 
14797
  def write(self, oprot):
14798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14800
      return
14801
    oprot.writeStructBegin('getAllEntityTags_args')
14802
    oprot.writeFieldStop()
14803
    oprot.writeStructEnd()
14804
 
14805
  def validate(self):
14806
    return
14807
 
14808
 
14809
  def __repr__(self):
14810
    L = ['%s=%r' % (key, value)
14811
      for key, value in self.__dict__.iteritems()]
14812
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14813
 
14814
  def __eq__(self, other):
14815
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14816
 
14817
  def __ne__(self, other):
14818
    return not (self == other)
14819
 
14820
class getAllEntityTags_result:
14821
  """
14822
  Attributes:
14823
   - success
14824
  """
14825
 
14826
  thrift_spec = (
14827
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
14828
  )
14829
 
14830
  def __init__(self, success=None,):
14831
    self.success = success
14832
 
14833
  def read(self, iprot):
14834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14836
      return
14837
    iprot.readStructBegin()
14838
    while True:
14839
      (fname, ftype, fid) = iprot.readFieldBegin()
14840
      if ftype == TType.STOP:
14841
        break
14842
      if fid == 0:
14843
        if ftype == TType.MAP:
14844
          self.success = {}
12567 amit.gupta 14845
          (_ktype189, _vtype190, _size188 ) = iprot.readMapBegin() 
14846
          for _i192 in xrange(_size188):
14847
            _key193 = iprot.readI64();
14848
            _val194 = []
14849
            (_etype198, _size195) = iprot.readListBegin()
14850
            for _i199 in xrange(_size195):
14851
              _elem200 = iprot.readString();
14852
              _val194.append(_elem200)
6845 amit.gupta 14853
            iprot.readListEnd()
12567 amit.gupta 14854
            self.success[_key193] = _val194
6845 amit.gupta 14855
          iprot.readMapEnd()
14856
        else:
14857
          iprot.skip(ftype)
14858
      else:
14859
        iprot.skip(ftype)
14860
      iprot.readFieldEnd()
14861
    iprot.readStructEnd()
14862
 
14863
  def write(self, oprot):
14864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14866
      return
14867
    oprot.writeStructBegin('getAllEntityTags_result')
14868
    if self.success is not None:
14869
      oprot.writeFieldBegin('success', TType.MAP, 0)
14870
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
12567 amit.gupta 14871
      for kiter201,viter202 in self.success.items():
14872
        oprot.writeI64(kiter201)
14873
        oprot.writeListBegin(TType.STRING, len(viter202))
14874
        for iter203 in viter202:
14875
          oprot.writeString(iter203)
6845 amit.gupta 14876
        oprot.writeListEnd()
14877
      oprot.writeMapEnd()
14878
      oprot.writeFieldEnd()
14879
    oprot.writeFieldStop()
14880
    oprot.writeStructEnd()
14881
 
14882
  def validate(self):
14883
    return
14884
 
14885
 
14886
  def __repr__(self):
14887
    L = ['%s=%r' % (key, value)
14888
      for key, value in self.__dict__.iteritems()]
14889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14890
 
14891
  def __eq__(self, other):
14892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14893
 
14894
  def __ne__(self, other):
14895
    return not (self == other)
14896
 
6850 kshitij.so 14897
class addBanner_args:
14898
  """
14899
  Attributes:
8590 kshitij.so 14900
   - bannerCongregate
6850 kshitij.so 14901
  """
14902
 
14903
  thrift_spec = (
14904
    None, # 0
8590 kshitij.so 14905
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 14906
  )
14907
 
8590 kshitij.so 14908
  def __init__(self, bannerCongregate=None,):
14909
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 14910
 
14911
  def read(self, iprot):
14912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14914
      return
14915
    iprot.readStructBegin()
14916
    while True:
14917
      (fname, ftype, fid) = iprot.readFieldBegin()
14918
      if ftype == TType.STOP:
14919
        break
14920
      if fid == 1:
8579 kshitij.so 14921
        if ftype == TType.STRUCT:
8590 kshitij.so 14922
          self.bannerCongregate = BannerCongregate()
14923
          self.bannerCongregate.read(iprot)
6850 kshitij.so 14924
        else:
14925
          iprot.skip(ftype)
8579 kshitij.so 14926
      else:
14927
        iprot.skip(ftype)
14928
      iprot.readFieldEnd()
14929
    iprot.readStructEnd()
14930
 
14931
  def write(self, oprot):
14932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14934
      return
14935
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 14936
    if self.bannerCongregate is not None:
14937
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
14938
      self.bannerCongregate.write(oprot)
8579 kshitij.so 14939
      oprot.writeFieldEnd()
14940
    oprot.writeFieldStop()
14941
    oprot.writeStructEnd()
14942
 
14943
  def validate(self):
14944
    return
14945
 
14946
 
14947
  def __repr__(self):
14948
    L = ['%s=%r' % (key, value)
14949
      for key, value in self.__dict__.iteritems()]
14950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14951
 
14952
  def __eq__(self, other):
14953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14954
 
14955
  def __ne__(self, other):
14956
    return not (self == other)
14957
 
14958
class addBanner_result:
10097 kshitij.so 14959
  """
14960
  Attributes:
14961
   - success
14962
  """
8579 kshitij.so 14963
 
14964
  thrift_spec = (
10097 kshitij.so 14965
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 14966
  )
14967
 
10097 kshitij.so 14968
  def __init__(self, success=None,):
14969
    self.success = success
14970
 
8579 kshitij.so 14971
  def read(self, iprot):
14972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14974
      return
14975
    iprot.readStructBegin()
14976
    while True:
14977
      (fname, ftype, fid) = iprot.readFieldBegin()
14978
      if ftype == TType.STOP:
14979
        break
10097 kshitij.so 14980
      if fid == 0:
14981
        if ftype == TType.BOOL:
14982
          self.success = iprot.readBool();
14983
        else:
14984
          iprot.skip(ftype)
8579 kshitij.so 14985
      else:
14986
        iprot.skip(ftype)
14987
      iprot.readFieldEnd()
14988
    iprot.readStructEnd()
14989
 
14990
  def write(self, oprot):
14991
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14992
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14993
      return
14994
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 14995
    if self.success is not None:
14996
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14997
      oprot.writeBool(self.success)
14998
      oprot.writeFieldEnd()
8579 kshitij.so 14999
    oprot.writeFieldStop()
15000
    oprot.writeStructEnd()
15001
 
15002
  def validate(self):
15003
    return
15004
 
15005
 
15006
  def __repr__(self):
15007
    L = ['%s=%r' % (key, value)
15008
      for key, value in self.__dict__.iteritems()]
15009
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15010
 
15011
  def __eq__(self, other):
15012
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15013
 
15014
  def __ne__(self, other):
15015
    return not (self == other)
15016
 
15017
class updateBanner_args:
15018
  """
15019
  Attributes:
15020
   - banner
15021
  """
15022
 
15023
  thrift_spec = (
15024
    None, # 0
15025
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
15026
  )
15027
 
15028
  def __init__(self, banner=None,):
15029
    self.banner = banner
15030
 
15031
  def read(self, iprot):
15032
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15033
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15034
      return
15035
    iprot.readStructBegin()
15036
    while True:
15037
      (fname, ftype, fid) = iprot.readFieldBegin()
15038
      if ftype == TType.STOP:
15039
        break
15040
      if fid == 1:
15041
        if ftype == TType.STRUCT:
15042
          self.banner = Banner()
15043
          self.banner.read(iprot)
6850 kshitij.so 15044
        else:
15045
          iprot.skip(ftype)
15046
      else:
15047
        iprot.skip(ftype)
15048
      iprot.readFieldEnd()
15049
    iprot.readStructEnd()
15050
 
15051
  def write(self, oprot):
15052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15054
      return
8579 kshitij.so 15055
    oprot.writeStructBegin('updateBanner_args')
15056
    if self.banner is not None:
15057
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
15058
      self.banner.write(oprot)
6850 kshitij.so 15059
      oprot.writeFieldEnd()
15060
    oprot.writeFieldStop()
15061
    oprot.writeStructEnd()
15062
 
15063
  def validate(self):
15064
    return
15065
 
15066
 
15067
  def __repr__(self):
15068
    L = ['%s=%r' % (key, value)
15069
      for key, value in self.__dict__.iteritems()]
15070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15071
 
15072
  def __eq__(self, other):
15073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15074
 
15075
  def __ne__(self, other):
15076
    return not (self == other)
15077
 
8579 kshitij.so 15078
class updateBanner_result:
6850 kshitij.so 15079
  """
15080
  Attributes:
15081
   - success
15082
  """
15083
 
15084
  thrift_spec = (
15085
    (0, TType.BOOL, 'success', None, None, ), # 0
15086
  )
15087
 
15088
  def __init__(self, success=None,):
15089
    self.success = success
15090
 
15091
  def read(self, iprot):
15092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15094
      return
15095
    iprot.readStructBegin()
15096
    while True:
15097
      (fname, ftype, fid) = iprot.readFieldBegin()
15098
      if ftype == TType.STOP:
15099
        break
15100
      if fid == 0:
15101
        if ftype == TType.BOOL:
15102
          self.success = iprot.readBool();
15103
        else:
15104
          iprot.skip(ftype)
15105
      else:
15106
        iprot.skip(ftype)
15107
      iprot.readFieldEnd()
15108
    iprot.readStructEnd()
15109
 
15110
  def write(self, oprot):
15111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15113
      return
8579 kshitij.so 15114
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 15115
    if self.success is not None:
15116
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15117
      oprot.writeBool(self.success)
15118
      oprot.writeFieldEnd()
15119
    oprot.writeFieldStop()
15120
    oprot.writeStructEnd()
15121
 
15122
  def validate(self):
15123
    return
15124
 
15125
 
15126
  def __repr__(self):
15127
    L = ['%s=%r' % (key, value)
15128
      for key, value in self.__dict__.iteritems()]
15129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15130
 
15131
  def __eq__(self, other):
15132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15133
 
15134
  def __ne__(self, other):
15135
    return not (self == other)
15136
 
15137
class getAllBanners_args:
15138
 
15139
  thrift_spec = (
15140
  )
15141
 
15142
  def read(self, iprot):
15143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15145
      return
15146
    iprot.readStructBegin()
15147
    while True:
15148
      (fname, ftype, fid) = iprot.readFieldBegin()
15149
      if ftype == TType.STOP:
15150
        break
15151
      else:
15152
        iprot.skip(ftype)
15153
      iprot.readFieldEnd()
15154
    iprot.readStructEnd()
15155
 
15156
  def write(self, oprot):
15157
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15158
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15159
      return
15160
    oprot.writeStructBegin('getAllBanners_args')
15161
    oprot.writeFieldStop()
15162
    oprot.writeStructEnd()
15163
 
15164
  def validate(self):
15165
    return
15166
 
15167
 
15168
  def __repr__(self):
15169
    L = ['%s=%r' % (key, value)
15170
      for key, value in self.__dict__.iteritems()]
15171
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15172
 
15173
  def __eq__(self, other):
15174
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15175
 
15176
  def __ne__(self, other):
15177
    return not (self == other)
15178
 
15179
class getAllBanners_result:
15180
  """
15181
  Attributes:
15182
   - success
15183
  """
15184
 
15185
  thrift_spec = (
8579 kshitij.so 15186
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 15187
  )
15188
 
15189
  def __init__(self, success=None,):
15190
    self.success = success
15191
 
15192
  def read(self, iprot):
15193
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15194
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15195
      return
15196
    iprot.readStructBegin()
15197
    while True:
15198
      (fname, ftype, fid) = iprot.readFieldBegin()
15199
      if ftype == TType.STOP:
15200
        break
15201
      if fid == 0:
15202
        if ftype == TType.LIST:
15203
          self.success = []
12567 amit.gupta 15204
          (_etype207, _size204) = iprot.readListBegin()
15205
          for _i208 in xrange(_size204):
15206
            _elem209 = Banner()
15207
            _elem209.read(iprot)
15208
            self.success.append(_elem209)
6850 kshitij.so 15209
          iprot.readListEnd()
15210
        else:
15211
          iprot.skip(ftype)
15212
      else:
15213
        iprot.skip(ftype)
15214
      iprot.readFieldEnd()
15215
    iprot.readStructEnd()
15216
 
15217
  def write(self, oprot):
15218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15220
      return
15221
    oprot.writeStructBegin('getAllBanners_result')
15222
    if self.success is not None:
15223
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 15224
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 15225
      for iter210 in self.success:
15226
        iter210.write(oprot)
6850 kshitij.so 15227
      oprot.writeListEnd()
15228
      oprot.writeFieldEnd()
15229
    oprot.writeFieldStop()
15230
    oprot.writeStructEnd()
15231
 
15232
  def validate(self):
15233
    return
15234
 
15235
 
15236
  def __repr__(self):
15237
    L = ['%s=%r' % (key, value)
15238
      for key, value in self.__dict__.iteritems()]
15239
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15240
 
15241
  def __eq__(self, other):
15242
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15243
 
15244
  def __ne__(self, other):
15245
    return not (self == other)
15246
 
15247
class deleteBanner_args:
15248
  """
15249
  Attributes:
15250
   - bannerName
9155 kshitij.so 15251
   - bannerType
6850 kshitij.so 15252
  """
15253
 
15254
  thrift_spec = (
15255
    None, # 0
15256
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15257
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15258
  )
15259
 
9155 kshitij.so 15260
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15261
    self.bannerName = bannerName
9155 kshitij.so 15262
    self.bannerType = bannerType
6850 kshitij.so 15263
 
15264
  def read(self, iprot):
15265
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15266
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15267
      return
15268
    iprot.readStructBegin()
15269
    while True:
15270
      (fname, ftype, fid) = iprot.readFieldBegin()
15271
      if ftype == TType.STOP:
15272
        break
15273
      if fid == 1:
15274
        if ftype == TType.STRING:
15275
          self.bannerName = iprot.readString();
15276
        else:
15277
          iprot.skip(ftype)
9155 kshitij.so 15278
      elif fid == 2:
15279
        if ftype == TType.I32:
15280
          self.bannerType = iprot.readI32();
15281
        else:
15282
          iprot.skip(ftype)
6850 kshitij.so 15283
      else:
15284
        iprot.skip(ftype)
15285
      iprot.readFieldEnd()
15286
    iprot.readStructEnd()
15287
 
15288
  def write(self, oprot):
15289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15291
      return
15292
    oprot.writeStructBegin('deleteBanner_args')
15293
    if self.bannerName is not None:
15294
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15295
      oprot.writeString(self.bannerName)
15296
      oprot.writeFieldEnd()
9155 kshitij.so 15297
    if self.bannerType is not None:
15298
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15299
      oprot.writeI32(self.bannerType)
15300
      oprot.writeFieldEnd()
6850 kshitij.so 15301
    oprot.writeFieldStop()
15302
    oprot.writeStructEnd()
15303
 
15304
  def validate(self):
15305
    return
15306
 
15307
 
15308
  def __repr__(self):
15309
    L = ['%s=%r' % (key, value)
15310
      for key, value in self.__dict__.iteritems()]
15311
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15312
 
15313
  def __eq__(self, other):
15314
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15315
 
15316
  def __ne__(self, other):
15317
    return not (self == other)
15318
 
15319
class deleteBanner_result:
15320
  """
15321
  Attributes:
15322
   - success
15323
  """
15324
 
15325
  thrift_spec = (
15326
    (0, TType.BOOL, 'success', None, None, ), # 0
15327
  )
15328
 
15329
  def __init__(self, success=None,):
15330
    self.success = success
15331
 
15332
  def read(self, iprot):
15333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15335
      return
15336
    iprot.readStructBegin()
15337
    while True:
15338
      (fname, ftype, fid) = iprot.readFieldBegin()
15339
      if ftype == TType.STOP:
15340
        break
15341
      if fid == 0:
15342
        if ftype == TType.BOOL:
15343
          self.success = iprot.readBool();
15344
        else:
15345
          iprot.skip(ftype)
15346
      else:
15347
        iprot.skip(ftype)
15348
      iprot.readFieldEnd()
15349
    iprot.readStructEnd()
15350
 
15351
  def write(self, oprot):
15352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15354
      return
15355
    oprot.writeStructBegin('deleteBanner_result')
15356
    if self.success is not None:
15357
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15358
      oprot.writeBool(self.success)
15359
      oprot.writeFieldEnd()
15360
    oprot.writeFieldStop()
15361
    oprot.writeStructEnd()
15362
 
15363
  def validate(self):
15364
    return
15365
 
15366
 
15367
  def __repr__(self):
15368
    L = ['%s=%r' % (key, value)
15369
      for key, value in self.__dict__.iteritems()]
15370
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15371
 
15372
  def __eq__(self, other):
15373
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15374
 
15375
  def __ne__(self, other):
15376
    return not (self == other)
15377
 
15378
class getBannerDetails_args:
15379
  """
15380
  Attributes:
15381
   - bannerName
9155 kshitij.so 15382
   - bannerType
6850 kshitij.so 15383
  """
15384
 
15385
  thrift_spec = (
15386
    None, # 0
15387
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15388
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15389
  )
15390
 
9155 kshitij.so 15391
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15392
    self.bannerName = bannerName
9155 kshitij.so 15393
    self.bannerType = bannerType
6850 kshitij.so 15394
 
15395
  def read(self, iprot):
15396
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15397
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15398
      return
15399
    iprot.readStructBegin()
15400
    while True:
15401
      (fname, ftype, fid) = iprot.readFieldBegin()
15402
      if ftype == TType.STOP:
15403
        break
15404
      if fid == 1:
15405
        if ftype == TType.STRING:
15406
          self.bannerName = iprot.readString();
15407
        else:
15408
          iprot.skip(ftype)
9155 kshitij.so 15409
      elif fid == 2:
15410
        if ftype == TType.I32:
15411
          self.bannerType = iprot.readI32();
15412
        else:
15413
          iprot.skip(ftype)
6850 kshitij.so 15414
      else:
15415
        iprot.skip(ftype)
15416
      iprot.readFieldEnd()
15417
    iprot.readStructEnd()
15418
 
15419
  def write(self, oprot):
15420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15422
      return
15423
    oprot.writeStructBegin('getBannerDetails_args')
15424
    if self.bannerName is not None:
15425
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15426
      oprot.writeString(self.bannerName)
15427
      oprot.writeFieldEnd()
9155 kshitij.so 15428
    if self.bannerType is not None:
15429
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15430
      oprot.writeI32(self.bannerType)
15431
      oprot.writeFieldEnd()
6850 kshitij.so 15432
    oprot.writeFieldStop()
15433
    oprot.writeStructEnd()
15434
 
15435
  def validate(self):
15436
    return
15437
 
15438
 
15439
  def __repr__(self):
15440
    L = ['%s=%r' % (key, value)
15441
      for key, value in self.__dict__.iteritems()]
15442
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15443
 
15444
  def __eq__(self, other):
15445
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15446
 
15447
  def __ne__(self, other):
15448
    return not (self == other)
15449
 
15450
class getBannerDetails_result:
15451
  """
15452
  Attributes:
15453
   - success
15454
  """
15455
 
15456
  thrift_spec = (
15457
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
15458
  )
15459
 
15460
  def __init__(self, success=None,):
15461
    self.success = success
15462
 
15463
  def read(self, iprot):
15464
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15465
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15466
      return
15467
    iprot.readStructBegin()
15468
    while True:
15469
      (fname, ftype, fid) = iprot.readFieldBegin()
15470
      if ftype == TType.STOP:
15471
        break
15472
      if fid == 0:
15473
        if ftype == TType.STRUCT:
15474
          self.success = Banner()
15475
          self.success.read(iprot)
15476
        else:
15477
          iprot.skip(ftype)
15478
      else:
15479
        iprot.skip(ftype)
15480
      iprot.readFieldEnd()
15481
    iprot.readStructEnd()
15482
 
15483
  def write(self, oprot):
15484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15486
      return
15487
    oprot.writeStructBegin('getBannerDetails_result')
15488
    if self.success is not None:
15489
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15490
      self.success.write(oprot)
15491
      oprot.writeFieldEnd()
15492
    oprot.writeFieldStop()
15493
    oprot.writeStructEnd()
15494
 
15495
  def validate(self):
15496
    return
15497
 
15498
 
15499
  def __repr__(self):
15500
    L = ['%s=%r' % (key, value)
15501
      for key, value in self.__dict__.iteritems()]
15502
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15503
 
15504
  def __eq__(self, other):
15505
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15506
 
15507
  def __ne__(self, other):
15508
    return not (self == other)
15509
 
15510
class getActiveBanners_args:
15511
 
15512
  thrift_spec = (
15513
  )
15514
 
15515
  def read(self, iprot):
15516
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15517
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15518
      return
15519
    iprot.readStructBegin()
15520
    while True:
15521
      (fname, ftype, fid) = iprot.readFieldBegin()
15522
      if ftype == TType.STOP:
15523
        break
15524
      else:
15525
        iprot.skip(ftype)
15526
      iprot.readFieldEnd()
15527
    iprot.readStructEnd()
15528
 
15529
  def write(self, oprot):
15530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15532
      return
15533
    oprot.writeStructBegin('getActiveBanners_args')
15534
    oprot.writeFieldStop()
15535
    oprot.writeStructEnd()
15536
 
15537
  def validate(self):
15538
    return
15539
 
15540
 
15541
  def __repr__(self):
15542
    L = ['%s=%r' % (key, value)
15543
      for key, value in self.__dict__.iteritems()]
15544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15545
 
15546
  def __eq__(self, other):
15547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15548
 
15549
  def __ne__(self, other):
15550
    return not (self == other)
15551
 
15552
class getActiveBanners_result:
15553
  """
15554
  Attributes:
15555
   - success
15556
  """
15557
 
15558
  thrift_spec = (
8579 kshitij.so 15559
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 15560
  )
15561
 
15562
  def __init__(self, success=None,):
15563
    self.success = success
15564
 
15565
  def read(self, iprot):
15566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15568
      return
15569
    iprot.readStructBegin()
15570
    while True:
15571
      (fname, ftype, fid) = iprot.readFieldBegin()
15572
      if ftype == TType.STOP:
15573
        break
15574
      if fid == 0:
8579 kshitij.so 15575
        if ftype == TType.MAP:
15576
          self.success = {}
12567 amit.gupta 15577
          (_ktype212, _vtype213, _size211 ) = iprot.readMapBegin() 
15578
          for _i215 in xrange(_size211):
15579
            _key216 = iprot.readString();
15580
            _val217 = []
15581
            (_etype221, _size218) = iprot.readListBegin()
15582
            for _i222 in xrange(_size218):
15583
              _elem223 = Banner()
15584
              _elem223.read(iprot)
15585
              _val217.append(_elem223)
8579 kshitij.so 15586
            iprot.readListEnd()
12567 amit.gupta 15587
            self.success[_key216] = _val217
8579 kshitij.so 15588
          iprot.readMapEnd()
6850 kshitij.so 15589
        else:
15590
          iprot.skip(ftype)
15591
      else:
15592
        iprot.skip(ftype)
15593
      iprot.readFieldEnd()
15594
    iprot.readStructEnd()
15595
 
15596
  def write(self, oprot):
15597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15599
      return
15600
    oprot.writeStructBegin('getActiveBanners_result')
15601
    if self.success is not None:
8579 kshitij.so 15602
      oprot.writeFieldBegin('success', TType.MAP, 0)
15603
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 15604
      for kiter224,viter225 in self.success.items():
15605
        oprot.writeString(kiter224)
15606
        oprot.writeListBegin(TType.STRUCT, len(viter225))
15607
        for iter226 in viter225:
15608
          iter226.write(oprot)
8579 kshitij.so 15609
        oprot.writeListEnd()
15610
      oprot.writeMapEnd()
6850 kshitij.so 15611
      oprot.writeFieldEnd()
15612
    oprot.writeFieldStop()
15613
    oprot.writeStructEnd()
15614
 
15615
  def validate(self):
15616
    return
15617
 
15618
 
15619
  def __repr__(self):
15620
    L = ['%s=%r' % (key, value)
15621
      for key, value in self.__dict__.iteritems()]
15622
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15623
 
15624
  def __eq__(self, other):
15625
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15626
 
15627
  def __ne__(self, other):
15628
    return not (self == other)
15629
 
6849 kshitij.so 15630
class addBannerMap_args:
15631
  """
15632
  Attributes:
8579 kshitij.so 15633
   - bannerMaps
6849 kshitij.so 15634
  """
15635
 
15636
  thrift_spec = (
15637
    None, # 0
8579 kshitij.so 15638
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 15639
  )
15640
 
8579 kshitij.so 15641
  def __init__(self, bannerMaps=None,):
15642
    self.bannerMaps = bannerMaps
6849 kshitij.so 15643
 
15644
  def read(self, iprot):
15645
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15646
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15647
      return
15648
    iprot.readStructBegin()
15649
    while True:
15650
      (fname, ftype, fid) = iprot.readFieldBegin()
15651
      if ftype == TType.STOP:
15652
        break
15653
      if fid == 1:
8579 kshitij.so 15654
        if ftype == TType.LIST:
15655
          self.bannerMaps = []
12567 amit.gupta 15656
          (_etype230, _size227) = iprot.readListBegin()
15657
          for _i231 in xrange(_size227):
15658
            _elem232 = BannerMap()
15659
            _elem232.read(iprot)
15660
            self.bannerMaps.append(_elem232)
8579 kshitij.so 15661
          iprot.readListEnd()
6849 kshitij.so 15662
        else:
15663
          iprot.skip(ftype)
8579 kshitij.so 15664
      else:
15665
        iprot.skip(ftype)
15666
      iprot.readFieldEnd()
15667
    iprot.readStructEnd()
15668
 
15669
  def write(self, oprot):
15670
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15671
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15672
      return
15673
    oprot.writeStructBegin('addBannerMap_args')
15674
    if self.bannerMaps is not None:
15675
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
15676
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
12567 amit.gupta 15677
      for iter233 in self.bannerMaps:
15678
        iter233.write(oprot)
8579 kshitij.so 15679
      oprot.writeListEnd()
15680
      oprot.writeFieldEnd()
15681
    oprot.writeFieldStop()
15682
    oprot.writeStructEnd()
15683
 
15684
  def validate(self):
15685
    return
15686
 
15687
 
15688
  def __repr__(self):
15689
    L = ['%s=%r' % (key, value)
15690
      for key, value in self.__dict__.iteritems()]
15691
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15692
 
15693
  def __eq__(self, other):
15694
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15695
 
15696
  def __ne__(self, other):
15697
    return not (self == other)
15698
 
15699
class addBannerMap_result:
15700
  """
15701
  Attributes:
15702
   - success
15703
  """
15704
 
15705
  thrift_spec = (
15706
    (0, TType.BOOL, 'success', None, None, ), # 0
15707
  )
15708
 
15709
  def __init__(self, success=None,):
15710
    self.success = success
15711
 
15712
  def read(self, iprot):
15713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15715
      return
15716
    iprot.readStructBegin()
15717
    while True:
15718
      (fname, ftype, fid) = iprot.readFieldBegin()
15719
      if ftype == TType.STOP:
15720
        break
15721
      if fid == 0:
15722
        if ftype == TType.BOOL:
15723
          self.success = iprot.readBool();
6849 kshitij.so 15724
        else:
15725
          iprot.skip(ftype)
8579 kshitij.so 15726
      else:
15727
        iprot.skip(ftype)
15728
      iprot.readFieldEnd()
15729
    iprot.readStructEnd()
15730
 
15731
  def write(self, oprot):
15732
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15733
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15734
      return
15735
    oprot.writeStructBegin('addBannerMap_result')
15736
    if self.success is not None:
15737
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15738
      oprot.writeBool(self.success)
15739
      oprot.writeFieldEnd()
15740
    oprot.writeFieldStop()
15741
    oprot.writeStructEnd()
15742
 
15743
  def validate(self):
15744
    return
15745
 
15746
 
15747
  def __repr__(self):
15748
    L = ['%s=%r' % (key, value)
15749
      for key, value in self.__dict__.iteritems()]
15750
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15751
 
15752
  def __eq__(self, other):
15753
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15754
 
15755
  def __ne__(self, other):
15756
    return not (self == other)
15757
 
15758
class updateBannerMap_args:
15759
  """
15760
  Attributes:
15761
   - bannerMap
15762
  """
15763
 
15764
  thrift_spec = (
15765
    None, # 0
15766
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
15767
  )
15768
 
15769
  def __init__(self, bannerMap=None,):
15770
    self.bannerMap = bannerMap
15771
 
15772
  def read(self, iprot):
15773
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15774
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15775
      return
15776
    iprot.readStructBegin()
15777
    while True:
15778
      (fname, ftype, fid) = iprot.readFieldBegin()
15779
      if ftype == TType.STOP:
15780
        break
15781
      if fid == 1:
15782
        if ftype == TType.STRUCT:
15783
          self.bannerMap = BannerMap()
15784
          self.bannerMap.read(iprot)
6849 kshitij.so 15785
        else:
15786
          iprot.skip(ftype)
15787
      else:
15788
        iprot.skip(ftype)
15789
      iprot.readFieldEnd()
15790
    iprot.readStructEnd()
15791
 
15792
  def write(self, oprot):
15793
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15794
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15795
      return
8579 kshitij.so 15796
    oprot.writeStructBegin('updateBannerMap_args')
15797
    if self.bannerMap is not None:
15798
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
15799
      self.bannerMap.write(oprot)
6849 kshitij.so 15800
      oprot.writeFieldEnd()
15801
    oprot.writeFieldStop()
15802
    oprot.writeStructEnd()
15803
 
15804
  def validate(self):
15805
    return
15806
 
15807
 
15808
  def __repr__(self):
15809
    L = ['%s=%r' % (key, value)
15810
      for key, value in self.__dict__.iteritems()]
15811
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15812
 
15813
  def __eq__(self, other):
15814
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15815
 
15816
  def __ne__(self, other):
15817
    return not (self == other)
15818
 
8579 kshitij.so 15819
class updateBannerMap_result:
6849 kshitij.so 15820
  """
15821
  Attributes:
15822
   - success
15823
  """
15824
 
15825
  thrift_spec = (
15826
    (0, TType.BOOL, 'success', None, None, ), # 0
15827
  )
15828
 
15829
  def __init__(self, success=None,):
15830
    self.success = success
15831
 
15832
  def read(self, iprot):
15833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15835
      return
15836
    iprot.readStructBegin()
15837
    while True:
15838
      (fname, ftype, fid) = iprot.readFieldBegin()
15839
      if ftype == TType.STOP:
15840
        break
15841
      if fid == 0:
15842
        if ftype == TType.BOOL:
15843
          self.success = iprot.readBool();
15844
        else:
15845
          iprot.skip(ftype)
15846
      else:
15847
        iprot.skip(ftype)
15848
      iprot.readFieldEnd()
15849
    iprot.readStructEnd()
15850
 
15851
  def write(self, oprot):
15852
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15853
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15854
      return
8579 kshitij.so 15855
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 15856
    if self.success is not None:
15857
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15858
      oprot.writeBool(self.success)
15859
      oprot.writeFieldEnd()
15860
    oprot.writeFieldStop()
15861
    oprot.writeStructEnd()
15862
 
15863
  def validate(self):
15864
    return
15865
 
15866
 
15867
  def __repr__(self):
15868
    L = ['%s=%r' % (key, value)
15869
      for key, value in self.__dict__.iteritems()]
15870
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15871
 
15872
  def __eq__(self, other):
15873
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15874
 
15875
  def __ne__(self, other):
15876
    return not (self == other)
15877
 
15878
class deleteBannerMap_args:
15879
  """
15880
  Attributes:
15881
   - bannerName
15882
  """
15883
 
15884
  thrift_spec = (
15885
    None, # 0
15886
    (1, TType.STRING, 'bannerName', None, None, ), # 1
15887
  )
15888
 
15889
  def __init__(self, bannerName=None,):
15890
    self.bannerName = bannerName
15891
 
15892
  def read(self, iprot):
15893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15895
      return
15896
    iprot.readStructBegin()
15897
    while True:
15898
      (fname, ftype, fid) = iprot.readFieldBegin()
15899
      if ftype == TType.STOP:
15900
        break
15901
      if fid == 1:
15902
        if ftype == TType.STRING:
15903
          self.bannerName = iprot.readString();
15904
        else:
15905
          iprot.skip(ftype)
15906
      else:
15907
        iprot.skip(ftype)
15908
      iprot.readFieldEnd()
15909
    iprot.readStructEnd()
15910
 
15911
  def write(self, oprot):
15912
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15913
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15914
      return
15915
    oprot.writeStructBegin('deleteBannerMap_args')
15916
    if self.bannerName is not None:
15917
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15918
      oprot.writeString(self.bannerName)
15919
      oprot.writeFieldEnd()
15920
    oprot.writeFieldStop()
15921
    oprot.writeStructEnd()
15922
 
15923
  def validate(self):
15924
    return
15925
 
15926
 
15927
  def __repr__(self):
15928
    L = ['%s=%r' % (key, value)
15929
      for key, value in self.__dict__.iteritems()]
15930
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15931
 
15932
  def __eq__(self, other):
15933
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15934
 
15935
  def __ne__(self, other):
15936
    return not (self == other)
15937
 
15938
class deleteBannerMap_result:
15939
  """
15940
  Attributes:
15941
   - success
15942
  """
15943
 
15944
  thrift_spec = (
15945
    (0, TType.BOOL, 'success', None, None, ), # 0
15946
  )
15947
 
15948
  def __init__(self, success=None,):
15949
    self.success = success
15950
 
15951
  def read(self, iprot):
15952
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15953
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15954
      return
15955
    iprot.readStructBegin()
15956
    while True:
15957
      (fname, ftype, fid) = iprot.readFieldBegin()
15958
      if ftype == TType.STOP:
15959
        break
15960
      if fid == 0:
15961
        if ftype == TType.BOOL:
15962
          self.success = iprot.readBool();
15963
        else:
15964
          iprot.skip(ftype)
15965
      else:
15966
        iprot.skip(ftype)
15967
      iprot.readFieldEnd()
15968
    iprot.readStructEnd()
15969
 
15970
  def write(self, oprot):
15971
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15972
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15973
      return
15974
    oprot.writeStructBegin('deleteBannerMap_result')
15975
    if self.success is not None:
15976
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15977
      oprot.writeBool(self.success)
15978
      oprot.writeFieldEnd()
15979
    oprot.writeFieldStop()
15980
    oprot.writeStructEnd()
15981
 
15982
  def validate(self):
15983
    return
15984
 
15985
 
15986
  def __repr__(self):
15987
    L = ['%s=%r' % (key, value)
15988
      for key, value in self.__dict__.iteritems()]
15989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15990
 
15991
  def __eq__(self, other):
15992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15993
 
15994
  def __ne__(self, other):
15995
    return not (self == other)
15996
 
15997
class getBannerMapDetails_args:
15998
  """
15999
  Attributes:
16000
   - bannerName
9155 kshitij.so 16001
   - bannerType
6849 kshitij.so 16002
  """
16003
 
16004
  thrift_spec = (
16005
    None, # 0
16006
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16007
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 16008
  )
16009
 
9155 kshitij.so 16010
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 16011
    self.bannerName = bannerName
9155 kshitij.so 16012
    self.bannerType = bannerType
6849 kshitij.so 16013
 
16014
  def read(self, iprot):
16015
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16016
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16017
      return
16018
    iprot.readStructBegin()
16019
    while True:
16020
      (fname, ftype, fid) = iprot.readFieldBegin()
16021
      if ftype == TType.STOP:
16022
        break
16023
      if fid == 1:
16024
        if ftype == TType.STRING:
16025
          self.bannerName = iprot.readString();
16026
        else:
16027
          iprot.skip(ftype)
9155 kshitij.so 16028
      elif fid == 2:
16029
        if ftype == TType.I32:
16030
          self.bannerType = iprot.readI32();
16031
        else:
16032
          iprot.skip(ftype)
6849 kshitij.so 16033
      else:
16034
        iprot.skip(ftype)
16035
      iprot.readFieldEnd()
16036
    iprot.readStructEnd()
16037
 
16038
  def write(self, oprot):
16039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16041
      return
16042
    oprot.writeStructBegin('getBannerMapDetails_args')
16043
    if self.bannerName is not None:
16044
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16045
      oprot.writeString(self.bannerName)
16046
      oprot.writeFieldEnd()
9155 kshitij.so 16047
    if self.bannerType is not None:
16048
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16049
      oprot.writeI32(self.bannerType)
16050
      oprot.writeFieldEnd()
6849 kshitij.so 16051
    oprot.writeFieldStop()
16052
    oprot.writeStructEnd()
16053
 
16054
  def validate(self):
16055
    return
16056
 
16057
 
16058
  def __repr__(self):
16059
    L = ['%s=%r' % (key, value)
16060
      for key, value in self.__dict__.iteritems()]
16061
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16062
 
16063
  def __eq__(self, other):
16064
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16065
 
16066
  def __ne__(self, other):
16067
    return not (self == other)
16068
 
16069
class getBannerMapDetails_result:
16070
  """
16071
  Attributes:
16072
   - success
16073
  """
16074
 
16075
  thrift_spec = (
16076
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
16077
  )
16078
 
16079
  def __init__(self, success=None,):
16080
    self.success = success
16081
 
16082
  def read(self, iprot):
16083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16085
      return
16086
    iprot.readStructBegin()
16087
    while True:
16088
      (fname, ftype, fid) = iprot.readFieldBegin()
16089
      if ftype == TType.STOP:
16090
        break
16091
      if fid == 0:
16092
        if ftype == TType.LIST:
16093
          self.success = []
12567 amit.gupta 16094
          (_etype237, _size234) = iprot.readListBegin()
16095
          for _i238 in xrange(_size234):
16096
            _elem239 = BannerMap()
16097
            _elem239.read(iprot)
16098
            self.success.append(_elem239)
6849 kshitij.so 16099
          iprot.readListEnd()
16100
        else:
16101
          iprot.skip(ftype)
16102
      else:
16103
        iprot.skip(ftype)
16104
      iprot.readFieldEnd()
16105
    iprot.readStructEnd()
16106
 
16107
  def write(self, oprot):
16108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16110
      return
16111
    oprot.writeStructBegin('getBannerMapDetails_result')
16112
    if self.success is not None:
16113
      oprot.writeFieldBegin('success', TType.LIST, 0)
16114
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16115
      for iter240 in self.success:
16116
        iter240.write(oprot)
6849 kshitij.so 16117
      oprot.writeListEnd()
16118
      oprot.writeFieldEnd()
16119
    oprot.writeFieldStop()
16120
    oprot.writeStructEnd()
16121
 
16122
  def validate(self):
16123
    return
16124
 
16125
 
16126
  def __repr__(self):
16127
    L = ['%s=%r' % (key, value)
16128
      for key, value in self.__dict__.iteritems()]
16129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16130
 
16131
  def __eq__(self, other):
16132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16133
 
16134
  def __ne__(self, other):
16135
    return not (self == other)
16136
 
8579 kshitij.so 16137
class addBannerUri_args:
16138
  """
16139
  Attributes:
16140
   - bannerUriMappings
16141
  """
16142
 
16143
  thrift_spec = (
16144
    None, # 0
16145
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
16146
  )
16147
 
16148
  def __init__(self, bannerUriMappings=None,):
16149
    self.bannerUriMappings = bannerUriMappings
16150
 
16151
  def read(self, iprot):
16152
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16153
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16154
      return
16155
    iprot.readStructBegin()
16156
    while True:
16157
      (fname, ftype, fid) = iprot.readFieldBegin()
16158
      if ftype == TType.STOP:
16159
        break
16160
      if fid == 1:
16161
        if ftype == TType.LIST:
16162
          self.bannerUriMappings = []
12567 amit.gupta 16163
          (_etype244, _size241) = iprot.readListBegin()
16164
          for _i245 in xrange(_size241):
16165
            _elem246 = BannerUriMapping()
16166
            _elem246.read(iprot)
16167
            self.bannerUriMappings.append(_elem246)
8579 kshitij.so 16168
          iprot.readListEnd()
16169
        else:
16170
          iprot.skip(ftype)
16171
      else:
16172
        iprot.skip(ftype)
16173
      iprot.readFieldEnd()
16174
    iprot.readStructEnd()
16175
 
16176
  def write(self, oprot):
16177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16179
      return
16180
    oprot.writeStructBegin('addBannerUri_args')
16181
    if self.bannerUriMappings is not None:
16182
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
16183
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
12567 amit.gupta 16184
      for iter247 in self.bannerUriMappings:
16185
        iter247.write(oprot)
8579 kshitij.so 16186
      oprot.writeListEnd()
16187
      oprot.writeFieldEnd()
16188
    oprot.writeFieldStop()
16189
    oprot.writeStructEnd()
16190
 
16191
  def validate(self):
16192
    return
16193
 
16194
 
16195
  def __repr__(self):
16196
    L = ['%s=%r' % (key, value)
16197
      for key, value in self.__dict__.iteritems()]
16198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16199
 
16200
  def __eq__(self, other):
16201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16202
 
16203
  def __ne__(self, other):
16204
    return not (self == other)
16205
 
16206
class addBannerUri_result:
16207
 
16208
  thrift_spec = (
16209
  )
16210
 
16211
  def read(self, iprot):
16212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16214
      return
16215
    iprot.readStructBegin()
16216
    while True:
16217
      (fname, ftype, fid) = iprot.readFieldBegin()
16218
      if ftype == TType.STOP:
16219
        break
16220
      else:
16221
        iprot.skip(ftype)
16222
      iprot.readFieldEnd()
16223
    iprot.readStructEnd()
16224
 
16225
  def write(self, oprot):
16226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16228
      return
16229
    oprot.writeStructBegin('addBannerUri_result')
16230
    oprot.writeFieldStop()
16231
    oprot.writeStructEnd()
16232
 
16233
  def validate(self):
16234
    return
16235
 
16236
 
16237
  def __repr__(self):
16238
    L = ['%s=%r' % (key, value)
16239
      for key, value in self.__dict__.iteritems()]
16240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16241
 
16242
  def __eq__(self, other):
16243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16244
 
16245
  def __ne__(self, other):
16246
    return not (self == other)
16247
 
16248
class getUriMapping_args:
16249
  """
16250
  Attributes:
16251
   - bannerName
9155 kshitij.so 16252
   - bannerType
8579 kshitij.so 16253
  """
16254
 
16255
  thrift_spec = (
16256
    None, # 0
16257
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16258
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 16259
  )
16260
 
9155 kshitij.so 16261
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 16262
    self.bannerName = bannerName
9155 kshitij.so 16263
    self.bannerType = bannerType
8579 kshitij.so 16264
 
16265
  def read(self, iprot):
16266
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16267
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16268
      return
16269
    iprot.readStructBegin()
16270
    while True:
16271
      (fname, ftype, fid) = iprot.readFieldBegin()
16272
      if ftype == TType.STOP:
16273
        break
16274
      if fid == 1:
16275
        if ftype == TType.STRING:
16276
          self.bannerName = iprot.readString();
16277
        else:
16278
          iprot.skip(ftype)
9155 kshitij.so 16279
      elif fid == 2:
16280
        if ftype == TType.I32:
16281
          self.bannerType = iprot.readI32();
16282
        else:
16283
          iprot.skip(ftype)
8579 kshitij.so 16284
      else:
16285
        iprot.skip(ftype)
16286
      iprot.readFieldEnd()
16287
    iprot.readStructEnd()
16288
 
16289
  def write(self, oprot):
16290
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16291
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16292
      return
16293
    oprot.writeStructBegin('getUriMapping_args')
16294
    if self.bannerName is not None:
16295
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16296
      oprot.writeString(self.bannerName)
16297
      oprot.writeFieldEnd()
9155 kshitij.so 16298
    if self.bannerType is not None:
16299
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16300
      oprot.writeI32(self.bannerType)
16301
      oprot.writeFieldEnd()
8579 kshitij.so 16302
    oprot.writeFieldStop()
16303
    oprot.writeStructEnd()
16304
 
16305
  def validate(self):
16306
    return
16307
 
16308
 
16309
  def __repr__(self):
16310
    L = ['%s=%r' % (key, value)
16311
      for key, value in self.__dict__.iteritems()]
16312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16313
 
16314
  def __eq__(self, other):
16315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16316
 
16317
  def __ne__(self, other):
16318
    return not (self == other)
16319
 
16320
class getUriMapping_result:
16321
  """
16322
  Attributes:
16323
   - success
16324
  """
16325
 
16326
  thrift_spec = (
16327
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
16328
  )
16329
 
16330
  def __init__(self, success=None,):
16331
    self.success = success
16332
 
16333
  def read(self, iprot):
16334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16336
      return
16337
    iprot.readStructBegin()
16338
    while True:
16339
      (fname, ftype, fid) = iprot.readFieldBegin()
16340
      if ftype == TType.STOP:
16341
        break
16342
      if fid == 0:
16343
        if ftype == TType.LIST:
16344
          self.success = []
12567 amit.gupta 16345
          (_etype251, _size248) = iprot.readListBegin()
16346
          for _i252 in xrange(_size248):
16347
            _elem253 = BannerUriMapping()
16348
            _elem253.read(iprot)
16349
            self.success.append(_elem253)
8579 kshitij.so 16350
          iprot.readListEnd()
16351
        else:
16352
          iprot.skip(ftype)
16353
      else:
16354
        iprot.skip(ftype)
16355
      iprot.readFieldEnd()
16356
    iprot.readStructEnd()
16357
 
16358
  def write(self, oprot):
16359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16361
      return
16362
    oprot.writeStructBegin('getUriMapping_result')
16363
    if self.success is not None:
16364
      oprot.writeFieldBegin('success', TType.LIST, 0)
16365
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16366
      for iter254 in self.success:
16367
        iter254.write(oprot)
8579 kshitij.so 16368
      oprot.writeListEnd()
16369
      oprot.writeFieldEnd()
16370
    oprot.writeFieldStop()
16371
    oprot.writeStructEnd()
16372
 
16373
  def validate(self):
16374
    return
16375
 
16376
 
16377
  def __repr__(self):
16378
    L = ['%s=%r' % (key, value)
16379
      for key, value in self.__dict__.iteritems()]
16380
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16381
 
16382
  def __eq__(self, other):
16383
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16384
 
16385
  def __ne__(self, other):
16386
    return not (self == other)
16387
 
16388
class addCampaign_args:
16389
  """
16390
  Attributes:
16391
   - campaign
16392
  """
16393
 
16394
  thrift_spec = (
16395
    None, # 0
16396
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
16397
  )
16398
 
16399
  def __init__(self, campaign=None,):
16400
    self.campaign = campaign
16401
 
16402
  def read(self, iprot):
16403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16405
      return
16406
    iprot.readStructBegin()
16407
    while True:
16408
      (fname, ftype, fid) = iprot.readFieldBegin()
16409
      if ftype == TType.STOP:
16410
        break
16411
      if fid == 1:
16412
        if ftype == TType.STRUCT:
16413
          self.campaign = Campaign()
16414
          self.campaign.read(iprot)
16415
        else:
16416
          iprot.skip(ftype)
16417
      else:
16418
        iprot.skip(ftype)
16419
      iprot.readFieldEnd()
16420
    iprot.readStructEnd()
16421
 
16422
  def write(self, oprot):
16423
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16424
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16425
      return
16426
    oprot.writeStructBegin('addCampaign_args')
16427
    if self.campaign is not None:
16428
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
16429
      self.campaign.write(oprot)
16430
      oprot.writeFieldEnd()
16431
    oprot.writeFieldStop()
16432
    oprot.writeStructEnd()
16433
 
16434
  def validate(self):
16435
    return
16436
 
16437
 
16438
  def __repr__(self):
16439
    L = ['%s=%r' % (key, value)
16440
      for key, value in self.__dict__.iteritems()]
16441
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16442
 
16443
  def __eq__(self, other):
16444
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16445
 
16446
  def __ne__(self, other):
16447
    return not (self == other)
16448
 
16449
class addCampaign_result:
16450
 
16451
  thrift_spec = (
16452
  )
16453
 
16454
  def read(self, iprot):
16455
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16456
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16457
      return
16458
    iprot.readStructBegin()
16459
    while True:
16460
      (fname, ftype, fid) = iprot.readFieldBegin()
16461
      if ftype == TType.STOP:
16462
        break
16463
      else:
16464
        iprot.skip(ftype)
16465
      iprot.readFieldEnd()
16466
    iprot.readStructEnd()
16467
 
16468
  def write(self, oprot):
16469
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16470
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16471
      return
16472
    oprot.writeStructBegin('addCampaign_result')
16473
    oprot.writeFieldStop()
16474
    oprot.writeStructEnd()
16475
 
16476
  def validate(self):
16477
    return
16478
 
16479
 
16480
  def __repr__(self):
16481
    L = ['%s=%r' % (key, value)
16482
      for key, value in self.__dict__.iteritems()]
16483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16484
 
16485
  def __eq__(self, other):
16486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16487
 
16488
  def __ne__(self, other):
16489
    return not (self == other)
16490
 
16491
class getCampaigns_args:
16492
  """
16493
  Attributes:
16494
   - campaignName
16495
  """
16496
 
16497
  thrift_spec = (
16498
    None, # 0
16499
    (1, TType.STRING, 'campaignName', None, None, ), # 1
16500
  )
16501
 
16502
  def __init__(self, campaignName=None,):
16503
    self.campaignName = campaignName
16504
 
16505
  def read(self, iprot):
16506
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16507
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16508
      return
16509
    iprot.readStructBegin()
16510
    while True:
16511
      (fname, ftype, fid) = iprot.readFieldBegin()
16512
      if ftype == TType.STOP:
16513
        break
16514
      if fid == 1:
16515
        if ftype == TType.STRING:
16516
          self.campaignName = iprot.readString();
16517
        else:
16518
          iprot.skip(ftype)
16519
      else:
16520
        iprot.skip(ftype)
16521
      iprot.readFieldEnd()
16522
    iprot.readStructEnd()
16523
 
16524
  def write(self, oprot):
16525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16527
      return
16528
    oprot.writeStructBegin('getCampaigns_args')
16529
    if self.campaignName is not None:
16530
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
16531
      oprot.writeString(self.campaignName)
16532
      oprot.writeFieldEnd()
16533
    oprot.writeFieldStop()
16534
    oprot.writeStructEnd()
16535
 
16536
  def validate(self):
16537
    return
16538
 
16539
 
16540
  def __repr__(self):
16541
    L = ['%s=%r' % (key, value)
16542
      for key, value in self.__dict__.iteritems()]
16543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16544
 
16545
  def __eq__(self, other):
16546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16547
 
16548
  def __ne__(self, other):
16549
    return not (self == other)
16550
 
16551
class getCampaigns_result:
16552
  """
16553
  Attributes:
16554
   - success
16555
  """
16556
 
16557
  thrift_spec = (
16558
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
16559
  )
16560
 
16561
  def __init__(self, success=None,):
16562
    self.success = success
16563
 
16564
  def read(self, iprot):
16565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16567
      return
16568
    iprot.readStructBegin()
16569
    while True:
16570
      (fname, ftype, fid) = iprot.readFieldBegin()
16571
      if ftype == TType.STOP:
16572
        break
16573
      if fid == 0:
16574
        if ftype == TType.LIST:
16575
          self.success = []
12567 amit.gupta 16576
          (_etype258, _size255) = iprot.readListBegin()
16577
          for _i259 in xrange(_size255):
16578
            _elem260 = Campaign()
16579
            _elem260.read(iprot)
16580
            self.success.append(_elem260)
8579 kshitij.so 16581
          iprot.readListEnd()
16582
        else:
16583
          iprot.skip(ftype)
16584
      else:
16585
        iprot.skip(ftype)
16586
      iprot.readFieldEnd()
16587
    iprot.readStructEnd()
16588
 
16589
  def write(self, oprot):
16590
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16591
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16592
      return
16593
    oprot.writeStructBegin('getCampaigns_result')
16594
    if self.success is not None:
16595
      oprot.writeFieldBegin('success', TType.LIST, 0)
16596
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16597
      for iter261 in self.success:
16598
        iter261.write(oprot)
8579 kshitij.so 16599
      oprot.writeListEnd()
16600
      oprot.writeFieldEnd()
16601
    oprot.writeFieldStop()
16602
    oprot.writeStructEnd()
16603
 
16604
  def validate(self):
16605
    return
16606
 
16607
 
16608
  def __repr__(self):
16609
    L = ['%s=%r' % (key, value)
16610
      for key, value in self.__dict__.iteritems()]
16611
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16612
 
16613
  def __eq__(self, other):
16614
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16615
 
16616
  def __ne__(self, other):
16617
    return not (self == other)
16618
 
16619
class deleteCampaign_args:
16620
  """
16621
  Attributes:
16622
   - campaignId
16623
  """
16624
 
16625
  thrift_spec = (
16626
    None, # 0
16627
    (1, TType.I64, 'campaignId', None, None, ), # 1
16628
  )
16629
 
16630
  def __init__(self, campaignId=None,):
16631
    self.campaignId = campaignId
16632
 
16633
  def read(self, iprot):
16634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16636
      return
16637
    iprot.readStructBegin()
16638
    while True:
16639
      (fname, ftype, fid) = iprot.readFieldBegin()
16640
      if ftype == TType.STOP:
16641
        break
16642
      if fid == 1:
16643
        if ftype == TType.I64:
16644
          self.campaignId = iprot.readI64();
16645
        else:
16646
          iprot.skip(ftype)
16647
      else:
16648
        iprot.skip(ftype)
16649
      iprot.readFieldEnd()
16650
    iprot.readStructEnd()
16651
 
16652
  def write(self, oprot):
16653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16655
      return
16656
    oprot.writeStructBegin('deleteCampaign_args')
16657
    if self.campaignId is not None:
16658
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
16659
      oprot.writeI64(self.campaignId)
16660
      oprot.writeFieldEnd()
16661
    oprot.writeFieldStop()
16662
    oprot.writeStructEnd()
16663
 
16664
  def validate(self):
16665
    return
16666
 
16667
 
16668
  def __repr__(self):
16669
    L = ['%s=%r' % (key, value)
16670
      for key, value in self.__dict__.iteritems()]
16671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16672
 
16673
  def __eq__(self, other):
16674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16675
 
16676
  def __ne__(self, other):
16677
    return not (self == other)
16678
 
16679
class deleteCampaign_result:
16680
 
16681
  thrift_spec = (
16682
  )
16683
 
16684
  def read(self, iprot):
16685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16687
      return
16688
    iprot.readStructBegin()
16689
    while True:
16690
      (fname, ftype, fid) = iprot.readFieldBegin()
16691
      if ftype == TType.STOP:
16692
        break
16693
      else:
16694
        iprot.skip(ftype)
16695
      iprot.readFieldEnd()
16696
    iprot.readStructEnd()
16697
 
16698
  def write(self, oprot):
16699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16701
      return
16702
    oprot.writeStructBegin('deleteCampaign_result')
16703
    oprot.writeFieldStop()
16704
    oprot.writeStructEnd()
16705
 
16706
  def validate(self):
16707
    return
16708
 
16709
 
16710
  def __repr__(self):
16711
    L = ['%s=%r' % (key, value)
16712
      for key, value in self.__dict__.iteritems()]
16713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16714
 
16715
  def __eq__(self, other):
16716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16717
 
16718
  def __ne__(self, other):
16719
    return not (self == other)
16720
 
16721
class getAllCampaigns_args:
16722
 
16723
  thrift_spec = (
16724
  )
16725
 
16726
  def read(self, iprot):
16727
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16728
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16729
      return
16730
    iprot.readStructBegin()
16731
    while True:
16732
      (fname, ftype, fid) = iprot.readFieldBegin()
16733
      if ftype == TType.STOP:
16734
        break
16735
      else:
16736
        iprot.skip(ftype)
16737
      iprot.readFieldEnd()
16738
    iprot.readStructEnd()
16739
 
16740
  def write(self, oprot):
16741
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16742
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16743
      return
16744
    oprot.writeStructBegin('getAllCampaigns_args')
16745
    oprot.writeFieldStop()
16746
    oprot.writeStructEnd()
16747
 
16748
  def validate(self):
16749
    return
16750
 
16751
 
16752
  def __repr__(self):
16753
    L = ['%s=%r' % (key, value)
16754
      for key, value in self.__dict__.iteritems()]
16755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16756
 
16757
  def __eq__(self, other):
16758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16759
 
16760
  def __ne__(self, other):
16761
    return not (self == other)
16762
 
16763
class getAllCampaigns_result:
16764
  """
16765
  Attributes:
16766
   - success
16767
  """
16768
 
16769
  thrift_spec = (
16770
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16771
  )
16772
 
16773
  def __init__(self, success=None,):
16774
    self.success = success
16775
 
16776
  def read(self, iprot):
16777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16779
      return
16780
    iprot.readStructBegin()
16781
    while True:
16782
      (fname, ftype, fid) = iprot.readFieldBegin()
16783
      if ftype == TType.STOP:
16784
        break
16785
      if fid == 0:
16786
        if ftype == TType.LIST:
16787
          self.success = []
12567 amit.gupta 16788
          (_etype265, _size262) = iprot.readListBegin()
16789
          for _i266 in xrange(_size262):
16790
            _elem267 = iprot.readString();
16791
            self.success.append(_elem267)
8579 kshitij.so 16792
          iprot.readListEnd()
16793
        else:
16794
          iprot.skip(ftype)
16795
      else:
16796
        iprot.skip(ftype)
16797
      iprot.readFieldEnd()
16798
    iprot.readStructEnd()
16799
 
16800
  def write(self, oprot):
16801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16803
      return
16804
    oprot.writeStructBegin('getAllCampaigns_result')
16805
    if self.success is not None:
16806
      oprot.writeFieldBegin('success', TType.LIST, 0)
16807
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 16808
      for iter268 in self.success:
16809
        oprot.writeString(iter268)
8579 kshitij.so 16810
      oprot.writeListEnd()
16811
      oprot.writeFieldEnd()
16812
    oprot.writeFieldStop()
16813
    oprot.writeStructEnd()
16814
 
16815
  def validate(self):
16816
    return
16817
 
16818
 
16819
  def __repr__(self):
16820
    L = ['%s=%r' % (key, value)
16821
      for key, value in self.__dict__.iteritems()]
16822
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16823
 
16824
  def __eq__(self, other):
16825
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16826
 
16827
  def __ne__(self, other):
16828
    return not (self == other)
16829
 
9155 kshitij.so 16830
class getActiveBannersForMobileSite_args:
16831
 
16832
  thrift_spec = (
16833
  )
16834
 
16835
  def read(self, iprot):
16836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16838
      return
16839
    iprot.readStructBegin()
16840
    while True:
16841
      (fname, ftype, fid) = iprot.readFieldBegin()
16842
      if ftype == TType.STOP:
16843
        break
16844
      else:
16845
        iprot.skip(ftype)
16846
      iprot.readFieldEnd()
16847
    iprot.readStructEnd()
16848
 
16849
  def write(self, oprot):
16850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16852
      return
16853
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
16854
    oprot.writeFieldStop()
16855
    oprot.writeStructEnd()
16856
 
16857
  def validate(self):
16858
    return
16859
 
16860
 
16861
  def __repr__(self):
16862
    L = ['%s=%r' % (key, value)
16863
      for key, value in self.__dict__.iteritems()]
16864
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16865
 
16866
  def __eq__(self, other):
16867
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16868
 
16869
  def __ne__(self, other):
16870
    return not (self == other)
16871
 
16872
class getActiveBannersForMobileSite_result:
16873
  """
16874
  Attributes:
16875
   - success
16876
  """
16877
 
16878
  thrift_spec = (
16879
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
16880
  )
16881
 
16882
  def __init__(self, success=None,):
16883
    self.success = success
16884
 
16885
  def read(self, iprot):
16886
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16887
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16888
      return
16889
    iprot.readStructBegin()
16890
    while True:
16891
      (fname, ftype, fid) = iprot.readFieldBegin()
16892
      if ftype == TType.STOP:
16893
        break
16894
      if fid == 0:
16895
        if ftype == TType.MAP:
16896
          self.success = {}
12567 amit.gupta 16897
          (_ktype270, _vtype271, _size269 ) = iprot.readMapBegin() 
16898
          for _i273 in xrange(_size269):
16899
            _key274 = iprot.readString();
16900
            _val275 = []
16901
            (_etype279, _size276) = iprot.readListBegin()
16902
            for _i280 in xrange(_size276):
16903
              _elem281 = Banner()
16904
              _elem281.read(iprot)
16905
              _val275.append(_elem281)
9155 kshitij.so 16906
            iprot.readListEnd()
12567 amit.gupta 16907
            self.success[_key274] = _val275
9155 kshitij.so 16908
          iprot.readMapEnd()
16909
        else:
16910
          iprot.skip(ftype)
16911
      else:
16912
        iprot.skip(ftype)
16913
      iprot.readFieldEnd()
16914
    iprot.readStructEnd()
16915
 
16916
  def write(self, oprot):
16917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16919
      return
16920
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
16921
    if self.success is not None:
16922
      oprot.writeFieldBegin('success', TType.MAP, 0)
16923
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 16924
      for kiter282,viter283 in self.success.items():
16925
        oprot.writeString(kiter282)
16926
        oprot.writeListBegin(TType.STRUCT, len(viter283))
16927
        for iter284 in viter283:
16928
          iter284.write(oprot)
9155 kshitij.so 16929
        oprot.writeListEnd()
16930
      oprot.writeMapEnd()
16931
      oprot.writeFieldEnd()
16932
    oprot.writeFieldStop()
16933
    oprot.writeStructEnd()
16934
 
16935
  def validate(self):
16936
    return
16937
 
16938
 
16939
  def __repr__(self):
16940
    L = ['%s=%r' % (key, value)
16941
      for key, value in self.__dict__.iteritems()]
16942
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16943
 
16944
  def __eq__(self, other):
16945
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16946
 
16947
  def __ne__(self, other):
16948
    return not (self == other)
16949
 
5944 mandeep.dh 16950
class deleteSimilarItem_args:
16951
  """
16952
  Attributes:
16953
   - itemId
16954
   - catalogItemId
16955
  """
16956
 
16957
  thrift_spec = (
16958
    None, # 0
16959
    (1, TType.I64, 'itemId', None, None, ), # 1
16960
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
16961
  )
16962
 
16963
  def __init__(self, itemId=None, catalogItemId=None,):
16964
    self.itemId = itemId
16965
    self.catalogItemId = catalogItemId
16966
 
16967
  def read(self, iprot):
16968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16970
      return
16971
    iprot.readStructBegin()
16972
    while True:
16973
      (fname, ftype, fid) = iprot.readFieldBegin()
16974
      if ftype == TType.STOP:
16975
        break
16976
      if fid == 1:
16977
        if ftype == TType.I64:
16978
          self.itemId = iprot.readI64();
16979
        else:
16980
          iprot.skip(ftype)
16981
      elif fid == 2:
16982
        if ftype == TType.I64:
16983
          self.catalogItemId = iprot.readI64();
16984
        else:
16985
          iprot.skip(ftype)
16986
      else:
16987
        iprot.skip(ftype)
16988
      iprot.readFieldEnd()
16989
    iprot.readStructEnd()
16990
 
16991
  def write(self, oprot):
16992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16994
      return
16995
    oprot.writeStructBegin('deleteSimilarItem_args')
16996
    if self.itemId is not None:
16997
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16998
      oprot.writeI64(self.itemId)
16999
      oprot.writeFieldEnd()
17000
    if self.catalogItemId is not None:
17001
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
17002
      oprot.writeI64(self.catalogItemId)
17003
      oprot.writeFieldEnd()
17004
    oprot.writeFieldStop()
17005
    oprot.writeStructEnd()
17006
 
17007
  def validate(self):
17008
    return
17009
 
17010
 
17011
  def __repr__(self):
17012
    L = ['%s=%r' % (key, value)
17013
      for key, value in self.__dict__.iteritems()]
17014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17015
 
17016
  def __eq__(self, other):
17017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17018
 
17019
  def __ne__(self, other):
17020
    return not (self == other)
17021
 
17022
class deleteSimilarItem_result:
17023
  """
17024
  Attributes:
17025
   - success
17026
   - cex
17027
  """
17028
 
17029
  thrift_spec = (
17030
    (0, TType.BOOL, 'success', None, None, ), # 0
17031
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
17032
  )
17033
 
17034
  def __init__(self, success=None, cex=None,):
17035
    self.success = success
17036
    self.cex = cex
17037
 
17038
  def read(self, iprot):
17039
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17040
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17041
      return
17042
    iprot.readStructBegin()
17043
    while True:
17044
      (fname, ftype, fid) = iprot.readFieldBegin()
17045
      if ftype == TType.STOP:
17046
        break
17047
      if fid == 0:
17048
        if ftype == TType.BOOL:
17049
          self.success = iprot.readBool();
17050
        else:
17051
          iprot.skip(ftype)
17052
      elif fid == 1:
17053
        if ftype == TType.STRUCT:
17054
          self.cex = CatalogServiceException()
17055
          self.cex.read(iprot)
17056
        else:
17057
          iprot.skip(ftype)
17058
      else:
17059
        iprot.skip(ftype)
17060
      iprot.readFieldEnd()
17061
    iprot.readStructEnd()
17062
 
17063
  def write(self, oprot):
17064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17066
      return
17067
    oprot.writeStructBegin('deleteSimilarItem_result')
17068
    if self.success is not None:
17069
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17070
      oprot.writeBool(self.success)
17071
      oprot.writeFieldEnd()
17072
    if self.cex is not None:
17073
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
17074
      self.cex.write(oprot)
17075
      oprot.writeFieldEnd()
17076
    oprot.writeFieldStop()
17077
    oprot.writeStructEnd()
17078
 
17079
  def validate(self):
17080
    return
17081
 
17082
 
17083
  def __repr__(self):
17084
    L = ['%s=%r' % (key, value)
17085
      for key, value in self.__dict__.iteritems()]
17086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17087
 
17088
  def __eq__(self, other):
17089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17090
 
17091
  def __ne__(self, other):
17092
    return not (self == other)
17093
 
17094
class checkSimilarItem_args:
17095
  """
17096
  Attributes:
17097
   - brand
17098
   - modelNumber
17099
   - modelName
17100
   - color
17101
  """
17102
 
17103
  thrift_spec = (
17104
    None, # 0
17105
    (1, TType.STRING, 'brand', None, None, ), # 1
17106
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
17107
    (3, TType.STRING, 'modelName', None, None, ), # 3
17108
    (4, TType.STRING, 'color', None, None, ), # 4
17109
  )
17110
 
17111
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
17112
    self.brand = brand
17113
    self.modelNumber = modelNumber
17114
    self.modelName = modelName
17115
    self.color = color
17116
 
17117
  def read(self, iprot):
17118
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17119
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17120
      return
17121
    iprot.readStructBegin()
17122
    while True:
17123
      (fname, ftype, fid) = iprot.readFieldBegin()
17124
      if ftype == TType.STOP:
17125
        break
17126
      if fid == 1:
17127
        if ftype == TType.STRING:
17128
          self.brand = iprot.readString();
17129
        else:
17130
          iprot.skip(ftype)
17131
      elif fid == 2:
17132
        if ftype == TType.STRING:
17133
          self.modelNumber = iprot.readString();
17134
        else:
17135
          iprot.skip(ftype)
17136
      elif fid == 3:
17137
        if ftype == TType.STRING:
17138
          self.modelName = iprot.readString();
17139
        else:
17140
          iprot.skip(ftype)
17141
      elif fid == 4:
17142
        if ftype == TType.STRING:
17143
          self.color = iprot.readString();
17144
        else:
17145
          iprot.skip(ftype)
17146
      else:
17147
        iprot.skip(ftype)
17148
      iprot.readFieldEnd()
17149
    iprot.readStructEnd()
17150
 
17151
  def write(self, oprot):
17152
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17153
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17154
      return
17155
    oprot.writeStructBegin('checkSimilarItem_args')
17156
    if self.brand is not None:
17157
      oprot.writeFieldBegin('brand', TType.STRING, 1)
17158
      oprot.writeString(self.brand)
17159
      oprot.writeFieldEnd()
17160
    if self.modelNumber is not None:
17161
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
17162
      oprot.writeString(self.modelNumber)
17163
      oprot.writeFieldEnd()
17164
    if self.modelName is not None:
17165
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
17166
      oprot.writeString(self.modelName)
17167
      oprot.writeFieldEnd()
17168
    if self.color is not None:
17169
      oprot.writeFieldBegin('color', TType.STRING, 4)
17170
      oprot.writeString(self.color)
17171
      oprot.writeFieldEnd()
17172
    oprot.writeFieldStop()
17173
    oprot.writeStructEnd()
17174
 
17175
  def validate(self):
17176
    return
17177
 
17178
 
17179
  def __repr__(self):
17180
    L = ['%s=%r' % (key, value)
17181
      for key, value in self.__dict__.iteritems()]
17182
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17183
 
17184
  def __eq__(self, other):
17185
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17186
 
17187
  def __ne__(self, other):
17188
    return not (self == other)
17189
 
17190
class checkSimilarItem_result:
17191
  """
17192
  Attributes:
17193
   - success
17194
  """
17195
 
17196
  thrift_spec = (
17197
    (0, TType.I64, 'success', None, None, ), # 0
17198
  )
17199
 
17200
  def __init__(self, success=None,):
17201
    self.success = success
17202
 
17203
  def read(self, iprot):
17204
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17205
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17206
      return
17207
    iprot.readStructBegin()
17208
    while True:
17209
      (fname, ftype, fid) = iprot.readFieldBegin()
17210
      if ftype == TType.STOP:
17211
        break
17212
      if fid == 0:
17213
        if ftype == TType.I64:
17214
          self.success = iprot.readI64();
17215
        else:
17216
          iprot.skip(ftype)
17217
      else:
17218
        iprot.skip(ftype)
17219
      iprot.readFieldEnd()
17220
    iprot.readStructEnd()
17221
 
17222
  def write(self, oprot):
17223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17225
      return
17226
    oprot.writeStructBegin('checkSimilarItem_result')
17227
    if self.success is not None:
17228
      oprot.writeFieldBegin('success', TType.I64, 0)
17229
      oprot.writeI64(self.success)
17230
      oprot.writeFieldEnd()
17231
    oprot.writeFieldStop()
17232
    oprot.writeStructEnd()
17233
 
17234
  def validate(self):
17235
    return
17236
 
17237
 
17238
  def __repr__(self):
17239
    L = ['%s=%r' % (key, value)
17240
      for key, value in self.__dict__.iteritems()]
17241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17242
 
17243
  def __eq__(self, other):
17244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17245
 
17246
  def __ne__(self, other):
17247
    return not (self == other)
17248
 
17249
class validateRiskyStatus_args:
17250
  """
17251
  Attributes:
17252
   - itemId
17253
  """
17254
 
17255
  thrift_spec = (
17256
    None, # 0
17257
    (1, TType.I64, 'itemId', None, None, ), # 1
17258
  )
17259
 
17260
  def __init__(self, itemId=None,):
17261
    self.itemId = itemId
17262
 
17263
  def read(self, iprot):
17264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17266
      return
17267
    iprot.readStructBegin()
17268
    while True:
17269
      (fname, ftype, fid) = iprot.readFieldBegin()
17270
      if ftype == TType.STOP:
17271
        break
17272
      if fid == 1:
17273
        if ftype == TType.I64:
17274
          self.itemId = iprot.readI64();
17275
        else:
17276
          iprot.skip(ftype)
17277
      else:
17278
        iprot.skip(ftype)
17279
      iprot.readFieldEnd()
17280
    iprot.readStructEnd()
17281
 
17282
  def write(self, oprot):
17283
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17284
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17285
      return
17286
    oprot.writeStructBegin('validateRiskyStatus_args')
17287
    if self.itemId is not None:
17288
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17289
      oprot.writeI64(self.itemId)
17290
      oprot.writeFieldEnd()
17291
    oprot.writeFieldStop()
17292
    oprot.writeStructEnd()
17293
 
17294
  def validate(self):
17295
    return
17296
 
17297
 
17298
  def __repr__(self):
17299
    L = ['%s=%r' % (key, value)
17300
      for key, value in self.__dict__.iteritems()]
17301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17302
 
17303
  def __eq__(self, other):
17304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17305
 
17306
  def __ne__(self, other):
17307
    return not (self == other)
17308
 
17309
class validateRiskyStatus_result:
17310
 
17311
  thrift_spec = (
17312
  )
17313
 
17314
  def read(self, iprot):
17315
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17316
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17317
      return
17318
    iprot.readStructBegin()
17319
    while True:
17320
      (fname, ftype, fid) = iprot.readFieldBegin()
17321
      if ftype == TType.STOP:
17322
        break
17323
      else:
17324
        iprot.skip(ftype)
17325
      iprot.readFieldEnd()
17326
    iprot.readStructEnd()
17327
 
17328
  def write(self, oprot):
17329
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17330
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17331
      return
17332
    oprot.writeStructBegin('validateRiskyStatus_result')
17333
    oprot.writeFieldStop()
17334
    oprot.writeStructEnd()
17335
 
17336
  def validate(self):
17337
    return
17338
 
17339
 
17340
  def __repr__(self):
17341
    L = ['%s=%r' % (key, value)
17342
      for key, value in self.__dict__.iteritems()]
17343
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17344
 
17345
  def __eq__(self, other):
17346
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17347
 
17348
  def __ne__(self, other):
17349
    return not (self == other)
17350
 
17351
class changeItemRiskyFlag_args:
17352
  """
17353
  Attributes:
17354
   - itemId
17355
   - risky
17356
  """
17357
 
17358
  thrift_spec = (
17359
    None, # 0
17360
    (1, TType.I64, 'itemId', None, None, ), # 1
17361
    (2, TType.BOOL, 'risky', None, None, ), # 2
17362
  )
17363
 
17364
  def __init__(self, itemId=None, risky=None,):
17365
    self.itemId = itemId
17366
    self.risky = risky
17367
 
17368
  def read(self, iprot):
17369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17371
      return
17372
    iprot.readStructBegin()
17373
    while True:
17374
      (fname, ftype, fid) = iprot.readFieldBegin()
17375
      if ftype == TType.STOP:
17376
        break
17377
      if fid == 1:
17378
        if ftype == TType.I64:
17379
          self.itemId = iprot.readI64();
17380
        else:
17381
          iprot.skip(ftype)
17382
      elif fid == 2:
17383
        if ftype == TType.BOOL:
17384
          self.risky = iprot.readBool();
17385
        else:
17386
          iprot.skip(ftype)
17387
      else:
17388
        iprot.skip(ftype)
17389
      iprot.readFieldEnd()
17390
    iprot.readStructEnd()
17391
 
17392
  def write(self, oprot):
17393
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17394
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17395
      return
17396
    oprot.writeStructBegin('changeItemRiskyFlag_args')
17397
    if self.itemId is not None:
17398
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17399
      oprot.writeI64(self.itemId)
17400
      oprot.writeFieldEnd()
17401
    if self.risky is not None:
17402
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
17403
      oprot.writeBool(self.risky)
17404
      oprot.writeFieldEnd()
17405
    oprot.writeFieldStop()
17406
    oprot.writeStructEnd()
17407
 
17408
  def validate(self):
17409
    return
17410
 
17411
 
17412
  def __repr__(self):
17413
    L = ['%s=%r' % (key, value)
17414
      for key, value in self.__dict__.iteritems()]
17415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17416
 
17417
  def __eq__(self, other):
17418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17419
 
17420
  def __ne__(self, other):
17421
    return not (self == other)
17422
 
17423
class changeItemRiskyFlag_result:
17424
 
17425
  thrift_spec = (
17426
  )
17427
 
17428
  def read(self, iprot):
17429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17431
      return
17432
    iprot.readStructBegin()
17433
    while True:
17434
      (fname, ftype, fid) = iprot.readFieldBegin()
17435
      if ftype == TType.STOP:
17436
        break
17437
      else:
17438
        iprot.skip(ftype)
17439
      iprot.readFieldEnd()
17440
    iprot.readStructEnd()
17441
 
17442
  def write(self, oprot):
17443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17445
      return
17446
    oprot.writeStructBegin('changeItemRiskyFlag_result')
17447
    oprot.writeFieldStop()
17448
    oprot.writeStructEnd()
17449
 
17450
  def validate(self):
17451
    return
17452
 
17453
 
17454
  def __repr__(self):
17455
    L = ['%s=%r' % (key, value)
17456
      for key, value in self.__dict__.iteritems()]
17457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17458
 
17459
  def __eq__(self, other):
17460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17461
 
17462
  def __ne__(self, other):
17463
    return not (self == other)
17464
 
17465
class getItemsByRiskyFlag_args:
17466
 
17467
  thrift_spec = (
17468
  )
17469
 
17470
  def read(self, iprot):
17471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17473
      return
17474
    iprot.readStructBegin()
17475
    while True:
17476
      (fname, ftype, fid) = iprot.readFieldBegin()
17477
      if ftype == TType.STOP:
17478
        break
17479
      else:
17480
        iprot.skip(ftype)
17481
      iprot.readFieldEnd()
17482
    iprot.readStructEnd()
17483
 
17484
  def write(self, oprot):
17485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17487
      return
17488
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
17489
    oprot.writeFieldStop()
17490
    oprot.writeStructEnd()
17491
 
17492
  def validate(self):
17493
    return
17494
 
17495
 
17496
  def __repr__(self):
17497
    L = ['%s=%r' % (key, value)
17498
      for key, value in self.__dict__.iteritems()]
17499
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17500
 
17501
  def __eq__(self, other):
17502
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17503
 
17504
  def __ne__(self, other):
17505
    return not (self == other)
17506
 
17507
class getItemsByRiskyFlag_result:
17508
  """
17509
  Attributes:
17510
   - success
17511
  """
17512
 
17513
  thrift_spec = (
17514
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17515
  )
17516
 
17517
  def __init__(self, success=None,):
17518
    self.success = success
17519
 
17520
  def read(self, iprot):
17521
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17522
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17523
      return
17524
    iprot.readStructBegin()
17525
    while True:
17526
      (fname, ftype, fid) = iprot.readFieldBegin()
17527
      if ftype == TType.STOP:
17528
        break
17529
      if fid == 0:
17530
        if ftype == TType.LIST:
17531
          self.success = []
12567 amit.gupta 17532
          (_etype288, _size285) = iprot.readListBegin()
17533
          for _i289 in xrange(_size285):
17534
            _elem290 = Item()
17535
            _elem290.read(iprot)
17536
            self.success.append(_elem290)
5944 mandeep.dh 17537
          iprot.readListEnd()
17538
        else:
17539
          iprot.skip(ftype)
17540
      else:
17541
        iprot.skip(ftype)
17542
      iprot.readFieldEnd()
17543
    iprot.readStructEnd()
17544
 
17545
  def write(self, oprot):
17546
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17547
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17548
      return
17549
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
17550
    if self.success is not None:
17551
      oprot.writeFieldBegin('success', TType.LIST, 0)
17552
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17553
      for iter291 in self.success:
17554
        iter291.write(oprot)
5944 mandeep.dh 17555
      oprot.writeListEnd()
17556
      oprot.writeFieldEnd()
17557
    oprot.writeFieldStop()
17558
    oprot.writeStructEnd()
17559
 
17560
  def validate(self):
17561
    return
17562
 
17563
 
17564
  def __repr__(self):
17565
    L = ['%s=%r' % (key, value)
17566
      for key, value in self.__dict__.iteritems()]
17567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17568
 
17569
  def __eq__(self, other):
17570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17571
 
17572
  def __ne__(self, other):
17573
    return not (self == other)
17574
 
17575
class getItemsForMasterSheet_args:
17576
  """
17577
  Attributes:
17578
   - category
17579
   - brand
17580
  """
17581
 
17582
  thrift_spec = (
17583
    None, # 0
17584
    (1, TType.STRING, 'category', None, None, ), # 1
17585
    (2, TType.STRING, 'brand', None, None, ), # 2
17586
  )
17587
 
17588
  def __init__(self, category=None, brand=None,):
17589
    self.category = category
17590
    self.brand = brand
17591
 
17592
  def read(self, iprot):
17593
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17594
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17595
      return
17596
    iprot.readStructBegin()
17597
    while True:
17598
      (fname, ftype, fid) = iprot.readFieldBegin()
17599
      if ftype == TType.STOP:
17600
        break
17601
      if fid == 1:
17602
        if ftype == TType.STRING:
17603
          self.category = iprot.readString();
17604
        else:
17605
          iprot.skip(ftype)
17606
      elif fid == 2:
17607
        if ftype == TType.STRING:
17608
          self.brand = iprot.readString();
17609
        else:
17610
          iprot.skip(ftype)
17611
      else:
17612
        iprot.skip(ftype)
17613
      iprot.readFieldEnd()
17614
    iprot.readStructEnd()
17615
 
17616
  def write(self, oprot):
17617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17619
      return
17620
    oprot.writeStructBegin('getItemsForMasterSheet_args')
17621
    if self.category is not None:
17622
      oprot.writeFieldBegin('category', TType.STRING, 1)
17623
      oprot.writeString(self.category)
17624
      oprot.writeFieldEnd()
17625
    if self.brand is not None:
17626
      oprot.writeFieldBegin('brand', TType.STRING, 2)
17627
      oprot.writeString(self.brand)
17628
      oprot.writeFieldEnd()
17629
    oprot.writeFieldStop()
17630
    oprot.writeStructEnd()
17631
 
17632
  def validate(self):
17633
    return
17634
 
17635
 
17636
  def __repr__(self):
17637
    L = ['%s=%r' % (key, value)
17638
      for key, value in self.__dict__.iteritems()]
17639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17640
 
17641
  def __eq__(self, other):
17642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17643
 
17644
  def __ne__(self, other):
17645
    return not (self == other)
17646
 
17647
class getItemsForMasterSheet_result:
17648
  """
17649
  Attributes:
17650
   - success
17651
  """
17652
 
17653
  thrift_spec = (
17654
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17655
  )
17656
 
17657
  def __init__(self, success=None,):
17658
    self.success = success
17659
 
17660
  def read(self, iprot):
17661
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17662
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17663
      return
17664
    iprot.readStructBegin()
17665
    while True:
17666
      (fname, ftype, fid) = iprot.readFieldBegin()
17667
      if ftype == TType.STOP:
17668
        break
17669
      if fid == 0:
17670
        if ftype == TType.LIST:
17671
          self.success = []
12567 amit.gupta 17672
          (_etype295, _size292) = iprot.readListBegin()
17673
          for _i296 in xrange(_size292):
17674
            _elem297 = Item()
17675
            _elem297.read(iprot)
17676
            self.success.append(_elem297)
5944 mandeep.dh 17677
          iprot.readListEnd()
17678
        else:
17679
          iprot.skip(ftype)
17680
      else:
17681
        iprot.skip(ftype)
17682
      iprot.readFieldEnd()
17683
    iprot.readStructEnd()
17684
 
17685
  def write(self, oprot):
17686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17688
      return
17689
    oprot.writeStructBegin('getItemsForMasterSheet_result')
17690
    if self.success is not None:
17691
      oprot.writeFieldBegin('success', TType.LIST, 0)
17692
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17693
      for iter298 in self.success:
17694
        iter298.write(oprot)
5944 mandeep.dh 17695
      oprot.writeListEnd()
17696
      oprot.writeFieldEnd()
17697
    oprot.writeFieldStop()
17698
    oprot.writeStructEnd()
17699
 
17700
  def validate(self):
17701
    return
17702
 
17703
 
17704
  def __repr__(self):
17705
    L = ['%s=%r' % (key, value)
17706
      for key, value in self.__dict__.iteritems()]
17707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17708
 
17709
  def __eq__(self, other):
17710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17711
 
17712
  def __ne__(self, other):
17713
    return not (self == other)
17714
 
17715
class getSimilarItemsCatalogIds_args:
17716
  """
17717
  Attributes:
17718
   - beginIndex
17719
   - totalItems
17720
   - itemId
17721
  """
17722
 
17723
  thrift_spec = (
17724
    None, # 0
17725
    (1, TType.I64, 'beginIndex', None, None, ), # 1
17726
    (2, TType.I64, 'totalItems', None, None, ), # 2
17727
    (3, TType.I64, 'itemId', None, None, ), # 3
17728
  )
17729
 
17730
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
17731
    self.beginIndex = beginIndex
17732
    self.totalItems = totalItems
17733
    self.itemId = itemId
17734
 
17735
  def read(self, iprot):
17736
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17737
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17738
      return
17739
    iprot.readStructBegin()
17740
    while True:
17741
      (fname, ftype, fid) = iprot.readFieldBegin()
17742
      if ftype == TType.STOP:
17743
        break
17744
      if fid == 1:
17745
        if ftype == TType.I64:
17746
          self.beginIndex = iprot.readI64();
17747
        else:
17748
          iprot.skip(ftype)
17749
      elif fid == 2:
17750
        if ftype == TType.I64:
17751
          self.totalItems = iprot.readI64();
17752
        else:
17753
          iprot.skip(ftype)
17754
      elif fid == 3:
17755
        if ftype == TType.I64:
17756
          self.itemId = iprot.readI64();
17757
        else:
17758
          iprot.skip(ftype)
17759
      else:
17760
        iprot.skip(ftype)
17761
      iprot.readFieldEnd()
17762
    iprot.readStructEnd()
17763
 
17764
  def write(self, oprot):
17765
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17766
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17767
      return
17768
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
17769
    if self.beginIndex is not None:
17770
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
17771
      oprot.writeI64(self.beginIndex)
17772
      oprot.writeFieldEnd()
17773
    if self.totalItems is not None:
17774
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
17775
      oprot.writeI64(self.totalItems)
17776
      oprot.writeFieldEnd()
17777
    if self.itemId is not None:
17778
      oprot.writeFieldBegin('itemId', TType.I64, 3)
17779
      oprot.writeI64(self.itemId)
17780
      oprot.writeFieldEnd()
17781
    oprot.writeFieldStop()
17782
    oprot.writeStructEnd()
17783
 
17784
  def validate(self):
17785
    return
17786
 
17787
 
17788
  def __repr__(self):
17789
    L = ['%s=%r' % (key, value)
17790
      for key, value in self.__dict__.iteritems()]
17791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17792
 
17793
  def __eq__(self, other):
17794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17795
 
17796
  def __ne__(self, other):
17797
    return not (self == other)
17798
 
17799
class getSimilarItemsCatalogIds_result:
17800
  """
17801
  Attributes:
17802
   - success
17803
  """
17804
 
17805
  thrift_spec = (
17806
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
17807
  )
17808
 
17809
  def __init__(self, success=None,):
17810
    self.success = success
17811
 
17812
  def read(self, iprot):
17813
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17814
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17815
      return
17816
    iprot.readStructBegin()
17817
    while True:
17818
      (fname, ftype, fid) = iprot.readFieldBegin()
17819
      if ftype == TType.STOP:
17820
        break
17821
      if fid == 0:
17822
        if ftype == TType.LIST:
17823
          self.success = []
12567 amit.gupta 17824
          (_etype302, _size299) = iprot.readListBegin()
17825
          for _i303 in xrange(_size299):
17826
            _elem304 = iprot.readI64();
17827
            self.success.append(_elem304)
5944 mandeep.dh 17828
          iprot.readListEnd()
17829
        else:
17830
          iprot.skip(ftype)
17831
      else:
17832
        iprot.skip(ftype)
17833
      iprot.readFieldEnd()
17834
    iprot.readStructEnd()
17835
 
17836
  def write(self, oprot):
17837
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17838
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17839
      return
17840
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
17841
    if self.success is not None:
17842
      oprot.writeFieldBegin('success', TType.LIST, 0)
17843
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 17844
      for iter305 in self.success:
17845
        oprot.writeI64(iter305)
5944 mandeep.dh 17846
      oprot.writeListEnd()
17847
      oprot.writeFieldEnd()
17848
    oprot.writeFieldStop()
17849
    oprot.writeStructEnd()
17850
 
17851
  def validate(self):
17852
    return
17853
 
17854
 
17855
  def __repr__(self):
17856
    L = ['%s=%r' % (key, value)
17857
      for key, value in self.__dict__.iteritems()]
17858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17859
 
17860
  def __eq__(self, other):
17861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17862
 
17863
  def __ne__(self, other):
17864
    return not (self == other)
17865
 
17866
class addProductNotification_args:
17867
  """
17868
  Attributes:
17869
   - itemId
17870
   - email
17871
  """
17872
 
17873
  thrift_spec = None
17874
  def __init__(self, itemId=None, email=None,):
17875
    self.itemId = itemId
17876
    self.email = email
17877
 
17878
  def read(self, iprot):
17879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17881
      return
17882
    iprot.readStructBegin()
17883
    while True:
17884
      (fname, ftype, fid) = iprot.readFieldBegin()
17885
      if ftype == TType.STOP:
17886
        break
17887
      if fid == -1:
17888
        if ftype == TType.I64:
17889
          self.itemId = iprot.readI64();
17890
        else:
17891
          iprot.skip(ftype)
17892
      elif fid == -2:
17893
        if ftype == TType.STRING:
17894
          self.email = iprot.readString();
17895
        else:
17896
          iprot.skip(ftype)
17897
      else:
17898
        iprot.skip(ftype)
17899
      iprot.readFieldEnd()
17900
    iprot.readStructEnd()
17901
 
17902
  def write(self, oprot):
17903
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17904
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17905
      return
17906
    oprot.writeStructBegin('addProductNotification_args')
17907
    if self.email is not None:
17908
      oprot.writeFieldBegin('email', TType.STRING, -2)
17909
      oprot.writeString(self.email)
17910
      oprot.writeFieldEnd()
17911
    if self.itemId is not None:
17912
      oprot.writeFieldBegin('itemId', TType.I64, -1)
17913
      oprot.writeI64(self.itemId)
17914
      oprot.writeFieldEnd()
17915
    oprot.writeFieldStop()
17916
    oprot.writeStructEnd()
17917
 
17918
  def validate(self):
17919
    return
17920
 
17921
 
17922
  def __repr__(self):
17923
    L = ['%s=%r' % (key, value)
17924
      for key, value in self.__dict__.iteritems()]
17925
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17926
 
17927
  def __eq__(self, other):
17928
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17929
 
17930
  def __ne__(self, other):
17931
    return not (self == other)
17932
 
17933
class addProductNotification_result:
17934
  """
17935
  Attributes:
17936
   - success
17937
  """
17938
 
17939
  thrift_spec = (
17940
    (0, TType.BOOL, 'success', None, None, ), # 0
17941
  )
17942
 
17943
  def __init__(self, success=None,):
17944
    self.success = success
17945
 
17946
  def read(self, iprot):
17947
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17948
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17949
      return
17950
    iprot.readStructBegin()
17951
    while True:
17952
      (fname, ftype, fid) = iprot.readFieldBegin()
17953
      if ftype == TType.STOP:
17954
        break
17955
      if fid == 0:
17956
        if ftype == TType.BOOL:
17957
          self.success = iprot.readBool();
17958
        else:
17959
          iprot.skip(ftype)
17960
      else:
17961
        iprot.skip(ftype)
17962
      iprot.readFieldEnd()
17963
    iprot.readStructEnd()
17964
 
17965
  def write(self, oprot):
17966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17968
      return
17969
    oprot.writeStructBegin('addProductNotification_result')
17970
    if self.success is not None:
17971
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17972
      oprot.writeBool(self.success)
17973
      oprot.writeFieldEnd()
17974
    oprot.writeFieldStop()
17975
    oprot.writeStructEnd()
17976
 
17977
  def validate(self):
17978
    return
17979
 
17980
 
17981
  def __repr__(self):
17982
    L = ['%s=%r' % (key, value)
17983
      for key, value in self.__dict__.iteritems()]
17984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17985
 
17986
  def __eq__(self, other):
17987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17988
 
17989
  def __ne__(self, other):
17990
    return not (self == other)
17991
 
17992
class sendProductNotifications_args:
17993
 
17994
  thrift_spec = (
17995
  )
17996
 
17997
  def read(self, iprot):
17998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18000
      return
18001
    iprot.readStructBegin()
18002
    while True:
18003
      (fname, ftype, fid) = iprot.readFieldBegin()
18004
      if ftype == TType.STOP:
18005
        break
18006
      else:
18007
        iprot.skip(ftype)
18008
      iprot.readFieldEnd()
18009
    iprot.readStructEnd()
18010
 
18011
  def write(self, oprot):
18012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18014
      return
18015
    oprot.writeStructBegin('sendProductNotifications_args')
18016
    oprot.writeFieldStop()
18017
    oprot.writeStructEnd()
18018
 
18019
  def validate(self):
18020
    return
18021
 
18022
 
18023
  def __repr__(self):
18024
    L = ['%s=%r' % (key, value)
18025
      for key, value in self.__dict__.iteritems()]
18026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18027
 
18028
  def __eq__(self, other):
18029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18030
 
18031
  def __ne__(self, other):
18032
    return not (self == other)
18033
 
18034
class sendProductNotifications_result:
18035
  """
18036
  Attributes:
18037
   - success
18038
  """
18039
 
18040
  thrift_spec = (
18041
    (0, TType.BOOL, 'success', None, None, ), # 0
18042
  )
18043
 
18044
  def __init__(self, success=None,):
18045
    self.success = success
18046
 
18047
  def read(self, iprot):
18048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18050
      return
18051
    iprot.readStructBegin()
18052
    while True:
18053
      (fname, ftype, fid) = iprot.readFieldBegin()
18054
      if ftype == TType.STOP:
18055
        break
18056
      if fid == 0:
18057
        if ftype == TType.BOOL:
18058
          self.success = iprot.readBool();
18059
        else:
18060
          iprot.skip(ftype)
18061
      else:
18062
        iprot.skip(ftype)
18063
      iprot.readFieldEnd()
18064
    iprot.readStructEnd()
18065
 
18066
  def write(self, oprot):
18067
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18068
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18069
      return
18070
    oprot.writeStructBegin('sendProductNotifications_result')
18071
    if self.success is not None:
18072
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18073
      oprot.writeBool(self.success)
18074
      oprot.writeFieldEnd()
18075
    oprot.writeFieldStop()
18076
    oprot.writeStructEnd()
18077
 
18078
  def validate(self):
18079
    return
18080
 
18081
 
18082
  def __repr__(self):
18083
    L = ['%s=%r' % (key, value)
18084
      for key, value in self.__dict__.iteritems()]
18085
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18086
 
18087
  def __eq__(self, other):
18088
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18089
 
18090
  def __ne__(self, other):
18091
    return not (self == other)
18092
 
18093
class getAllBrandsByCategory_args:
18094
  """
18095
  Attributes:
18096
   - categoryId
18097
  """
18098
 
18099
  thrift_spec = (
18100
    None, # 0
18101
    (1, TType.I64, 'categoryId', None, None, ), # 1
18102
  )
18103
 
18104
  def __init__(self, categoryId=None,):
18105
    self.categoryId = categoryId
18106
 
18107
  def read(self, iprot):
18108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18110
      return
18111
    iprot.readStructBegin()
18112
    while True:
18113
      (fname, ftype, fid) = iprot.readFieldBegin()
18114
      if ftype == TType.STOP:
18115
        break
18116
      if fid == 1:
18117
        if ftype == TType.I64:
18118
          self.categoryId = iprot.readI64();
18119
        else:
18120
          iprot.skip(ftype)
18121
      else:
18122
        iprot.skip(ftype)
18123
      iprot.readFieldEnd()
18124
    iprot.readStructEnd()
18125
 
18126
  def write(self, oprot):
18127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18129
      return
18130
    oprot.writeStructBegin('getAllBrandsByCategory_args')
18131
    if self.categoryId is not None:
18132
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
18133
      oprot.writeI64(self.categoryId)
18134
      oprot.writeFieldEnd()
18135
    oprot.writeFieldStop()
18136
    oprot.writeStructEnd()
18137
 
18138
  def validate(self):
18139
    return
18140
 
18141
 
18142
  def __repr__(self):
18143
    L = ['%s=%r' % (key, value)
18144
      for key, value in self.__dict__.iteritems()]
18145
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18146
 
18147
  def __eq__(self, other):
18148
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18149
 
18150
  def __ne__(self, other):
18151
    return not (self == other)
18152
 
18153
class getAllBrandsByCategory_result:
18154
  """
18155
  Attributes:
18156
   - success
18157
  """
18158
 
18159
  thrift_spec = (
18160
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18161
  )
18162
 
18163
  def __init__(self, success=None,):
18164
    self.success = success
18165
 
18166
  def read(self, iprot):
18167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18169
      return
18170
    iprot.readStructBegin()
18171
    while True:
18172
      (fname, ftype, fid) = iprot.readFieldBegin()
18173
      if ftype == TType.STOP:
18174
        break
18175
      if fid == 0:
18176
        if ftype == TType.LIST:
18177
          self.success = []
12567 amit.gupta 18178
          (_etype309, _size306) = iprot.readListBegin()
18179
          for _i310 in xrange(_size306):
18180
            _elem311 = iprot.readString();
18181
            self.success.append(_elem311)
5944 mandeep.dh 18182
          iprot.readListEnd()
18183
        else:
18184
          iprot.skip(ftype)
18185
      else:
18186
        iprot.skip(ftype)
18187
      iprot.readFieldEnd()
18188
    iprot.readStructEnd()
18189
 
18190
  def write(self, oprot):
18191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18193
      return
18194
    oprot.writeStructBegin('getAllBrandsByCategory_result')
18195
    if self.success is not None:
18196
      oprot.writeFieldBegin('success', TType.LIST, 0)
18197
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18198
      for iter312 in self.success:
18199
        oprot.writeString(iter312)
5944 mandeep.dh 18200
      oprot.writeListEnd()
18201
      oprot.writeFieldEnd()
18202
    oprot.writeFieldStop()
18203
    oprot.writeStructEnd()
18204
 
18205
  def validate(self):
18206
    return
18207
 
18208
 
18209
  def __repr__(self):
18210
    L = ['%s=%r' % (key, value)
18211
      for key, value in self.__dict__.iteritems()]
18212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18213
 
18214
  def __eq__(self, other):
18215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18216
 
18217
  def __ne__(self, other):
18218
    return not (self == other)
18219
 
18220
class getAllBrands_args:
18221
 
18222
  thrift_spec = (
18223
  )
18224
 
18225
  def read(self, iprot):
18226
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18227
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18228
      return
18229
    iprot.readStructBegin()
18230
    while True:
18231
      (fname, ftype, fid) = iprot.readFieldBegin()
18232
      if ftype == TType.STOP:
18233
        break
18234
      else:
18235
        iprot.skip(ftype)
18236
      iprot.readFieldEnd()
18237
    iprot.readStructEnd()
18238
 
18239
  def write(self, oprot):
18240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18242
      return
18243
    oprot.writeStructBegin('getAllBrands_args')
18244
    oprot.writeFieldStop()
18245
    oprot.writeStructEnd()
18246
 
18247
  def validate(self):
18248
    return
18249
 
18250
 
18251
  def __repr__(self):
18252
    L = ['%s=%r' % (key, value)
18253
      for key, value in self.__dict__.iteritems()]
18254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18255
 
18256
  def __eq__(self, other):
18257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18258
 
18259
  def __ne__(self, other):
18260
    return not (self == other)
18261
 
18262
class getAllBrands_result:
18263
  """
18264
  Attributes:
18265
   - success
18266
  """
18267
 
18268
  thrift_spec = (
18269
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18270
  )
18271
 
18272
  def __init__(self, success=None,):
18273
    self.success = success
18274
 
18275
  def read(self, iprot):
18276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18278
      return
18279
    iprot.readStructBegin()
18280
    while True:
18281
      (fname, ftype, fid) = iprot.readFieldBegin()
18282
      if ftype == TType.STOP:
18283
        break
18284
      if fid == 0:
18285
        if ftype == TType.LIST:
18286
          self.success = []
12567 amit.gupta 18287
          (_etype316, _size313) = iprot.readListBegin()
18288
          for _i317 in xrange(_size313):
18289
            _elem318 = iprot.readString();
18290
            self.success.append(_elem318)
5944 mandeep.dh 18291
          iprot.readListEnd()
18292
        else:
18293
          iprot.skip(ftype)
18294
      else:
18295
        iprot.skip(ftype)
18296
      iprot.readFieldEnd()
18297
    iprot.readStructEnd()
18298
 
18299
  def write(self, oprot):
18300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18302
      return
18303
    oprot.writeStructBegin('getAllBrands_result')
18304
    if self.success is not None:
18305
      oprot.writeFieldBegin('success', TType.LIST, 0)
18306
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18307
      for iter319 in self.success:
18308
        oprot.writeString(iter319)
5944 mandeep.dh 18309
      oprot.writeListEnd()
18310
      oprot.writeFieldEnd()
18311
    oprot.writeFieldStop()
18312
    oprot.writeStructEnd()
18313
 
18314
  def validate(self):
18315
    return
18316
 
18317
 
18318
  def __repr__(self):
18319
    L = ['%s=%r' % (key, value)
18320
      for key, value in self.__dict__.iteritems()]
18321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18322
 
18323
  def __eq__(self, other):
18324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18325
 
18326
  def __ne__(self, other):
18327
    return not (self == other)
18328
 
18329
class getAllSources_args:
18330
 
18331
  thrift_spec = (
18332
  )
18333
 
18334
  def read(self, iprot):
18335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18337
      return
18338
    iprot.readStructBegin()
18339
    while True:
18340
      (fname, ftype, fid) = iprot.readFieldBegin()
18341
      if ftype == TType.STOP:
18342
        break
18343
      else:
18344
        iprot.skip(ftype)
18345
      iprot.readFieldEnd()
18346
    iprot.readStructEnd()
18347
 
18348
  def write(self, oprot):
18349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18351
      return
18352
    oprot.writeStructBegin('getAllSources_args')
18353
    oprot.writeFieldStop()
18354
    oprot.writeStructEnd()
18355
 
18356
  def validate(self):
18357
    return
18358
 
18359
 
18360
  def __repr__(self):
18361
    L = ['%s=%r' % (key, value)
18362
      for key, value in self.__dict__.iteritems()]
18363
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18364
 
18365
  def __eq__(self, other):
18366
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18367
 
18368
  def __ne__(self, other):
18369
    return not (self == other)
18370
 
18371
class getAllSources_result:
18372
  """
18373
  Attributes:
18374
   - success
18375
  """
18376
 
18377
  thrift_spec = (
18378
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
18379
  )
18380
 
18381
  def __init__(self, success=None,):
18382
    self.success = success
18383
 
18384
  def read(self, iprot):
18385
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18386
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18387
      return
18388
    iprot.readStructBegin()
18389
    while True:
18390
      (fname, ftype, fid) = iprot.readFieldBegin()
18391
      if ftype == TType.STOP:
18392
        break
18393
      if fid == 0:
18394
        if ftype == TType.LIST:
18395
          self.success = []
12567 amit.gupta 18396
          (_etype323, _size320) = iprot.readListBegin()
18397
          for _i324 in xrange(_size320):
18398
            _elem325 = Source()
18399
            _elem325.read(iprot)
18400
            self.success.append(_elem325)
5944 mandeep.dh 18401
          iprot.readListEnd()
18402
        else:
18403
          iprot.skip(ftype)
18404
      else:
18405
        iprot.skip(ftype)
18406
      iprot.readFieldEnd()
18407
    iprot.readStructEnd()
18408
 
18409
  def write(self, oprot):
18410
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18411
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18412
      return
18413
    oprot.writeStructBegin('getAllSources_result')
18414
    if self.success is not None:
18415
      oprot.writeFieldBegin('success', TType.LIST, 0)
18416
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18417
      for iter326 in self.success:
18418
        iter326.write(oprot)
5944 mandeep.dh 18419
      oprot.writeListEnd()
18420
      oprot.writeFieldEnd()
18421
    oprot.writeFieldStop()
18422
    oprot.writeStructEnd()
18423
 
18424
  def validate(self):
18425
    return
18426
 
18427
 
18428
  def __repr__(self):
18429
    L = ['%s=%r' % (key, value)
18430
      for key, value in self.__dict__.iteritems()]
18431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18432
 
18433
  def __eq__(self, other):
18434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18435
 
18436
  def __ne__(self, other):
18437
    return not (self == other)
18438
 
18439
class getItemPricingBySource_args:
18440
  """
18441
  Attributes:
18442
   - itemId
18443
   - sourceId
18444
  """
18445
 
18446
  thrift_spec = (
18447
    None, # 0
18448
    (1, TType.I64, 'itemId', None, None, ), # 1
18449
    (2, TType.I64, 'sourceId', None, None, ), # 2
18450
  )
18451
 
18452
  def __init__(self, itemId=None, sourceId=None,):
18453
    self.itemId = itemId
18454
    self.sourceId = sourceId
18455
 
18456
  def read(self, iprot):
18457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18459
      return
18460
    iprot.readStructBegin()
18461
    while True:
18462
      (fname, ftype, fid) = iprot.readFieldBegin()
18463
      if ftype == TType.STOP:
18464
        break
18465
      if fid == 1:
18466
        if ftype == TType.I64:
18467
          self.itemId = iprot.readI64();
18468
        else:
18469
          iprot.skip(ftype)
18470
      elif fid == 2:
18471
        if ftype == TType.I64:
18472
          self.sourceId = iprot.readI64();
18473
        else:
18474
          iprot.skip(ftype)
18475
      else:
18476
        iprot.skip(ftype)
18477
      iprot.readFieldEnd()
18478
    iprot.readStructEnd()
18479
 
18480
  def write(self, oprot):
18481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18483
      return
18484
    oprot.writeStructBegin('getItemPricingBySource_args')
18485
    if self.itemId is not None:
18486
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18487
      oprot.writeI64(self.itemId)
18488
      oprot.writeFieldEnd()
18489
    if self.sourceId is not None:
18490
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18491
      oprot.writeI64(self.sourceId)
18492
      oprot.writeFieldEnd()
18493
    oprot.writeFieldStop()
18494
    oprot.writeStructEnd()
18495
 
18496
  def validate(self):
18497
    return
18498
 
18499
 
18500
  def __repr__(self):
18501
    L = ['%s=%r' % (key, value)
18502
      for key, value in self.__dict__.iteritems()]
18503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18504
 
18505
  def __eq__(self, other):
18506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18507
 
18508
  def __ne__(self, other):
18509
    return not (self == other)
18510
 
18511
class getItemPricingBySource_result:
18512
  """
18513
  Attributes:
18514
   - success
18515
   - cex
18516
  """
18517
 
18518
  thrift_spec = (
18519
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
18520
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18521
  )
18522
 
18523
  def __init__(self, success=None, cex=None,):
18524
    self.success = success
18525
    self.cex = cex
18526
 
18527
  def read(self, iprot):
18528
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18529
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18530
      return
18531
    iprot.readStructBegin()
18532
    while True:
18533
      (fname, ftype, fid) = iprot.readFieldBegin()
18534
      if ftype == TType.STOP:
18535
        break
18536
      if fid == 0:
18537
        if ftype == TType.STRUCT:
18538
          self.success = SourceItemPricing()
18539
          self.success.read(iprot)
18540
        else:
18541
          iprot.skip(ftype)
18542
      elif fid == 1:
18543
        if ftype == TType.STRUCT:
18544
          self.cex = CatalogServiceException()
18545
          self.cex.read(iprot)
18546
        else:
18547
          iprot.skip(ftype)
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('getItemPricingBySource_result')
18558
    if self.success is not None:
18559
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18560
      self.success.write(oprot)
18561
      oprot.writeFieldEnd()
18562
    if self.cex is not None:
18563
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18564
      self.cex.write(oprot)
18565
      oprot.writeFieldEnd()
18566
    oprot.writeFieldStop()
18567
    oprot.writeStructEnd()
18568
 
18569
  def validate(self):
18570
    return
18571
 
18572
 
18573
  def __repr__(self):
18574
    L = ['%s=%r' % (key, value)
18575
      for key, value in self.__dict__.iteritems()]
18576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18577
 
18578
  def __eq__(self, other):
18579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18580
 
18581
  def __ne__(self, other):
18582
    return not (self == other)
18583
 
18584
class addSourceItemPricing_args:
18585
  """
18586
  Attributes:
18587
   - sourceItemPricing
18588
  """
18589
 
18590
  thrift_spec = (
18591
    None, # 0
18592
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
18593
  )
18594
 
18595
  def __init__(self, sourceItemPricing=None,):
18596
    self.sourceItemPricing = sourceItemPricing
18597
 
18598
  def read(self, iprot):
18599
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18600
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18601
      return
18602
    iprot.readStructBegin()
18603
    while True:
18604
      (fname, ftype, fid) = iprot.readFieldBegin()
18605
      if ftype == TType.STOP:
18606
        break
18607
      if fid == 1:
18608
        if ftype == TType.STRUCT:
18609
          self.sourceItemPricing = SourceItemPricing()
18610
          self.sourceItemPricing.read(iprot)
18611
        else:
18612
          iprot.skip(ftype)
18613
      else:
18614
        iprot.skip(ftype)
18615
      iprot.readFieldEnd()
18616
    iprot.readStructEnd()
18617
 
18618
  def write(self, oprot):
18619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18621
      return
18622
    oprot.writeStructBegin('addSourceItemPricing_args')
18623
    if self.sourceItemPricing is not None:
18624
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
18625
      self.sourceItemPricing.write(oprot)
18626
      oprot.writeFieldEnd()
18627
    oprot.writeFieldStop()
18628
    oprot.writeStructEnd()
18629
 
18630
  def validate(self):
18631
    return
18632
 
18633
 
18634
  def __repr__(self):
18635
    L = ['%s=%r' % (key, value)
18636
      for key, value in self.__dict__.iteritems()]
18637
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18638
 
18639
  def __eq__(self, other):
18640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18641
 
18642
  def __ne__(self, other):
18643
    return not (self == other)
18644
 
18645
class addSourceItemPricing_result:
18646
  """
18647
  Attributes:
18648
   - cex
18649
  """
18650
 
18651
  thrift_spec = (
18652
    None, # 0
18653
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18654
  )
18655
 
18656
  def __init__(self, cex=None,):
18657
    self.cex = cex
18658
 
18659
  def read(self, iprot):
18660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18662
      return
18663
    iprot.readStructBegin()
18664
    while True:
18665
      (fname, ftype, fid) = iprot.readFieldBegin()
18666
      if ftype == TType.STOP:
18667
        break
18668
      if fid == 1:
18669
        if ftype == TType.STRUCT:
18670
          self.cex = CatalogServiceException()
18671
          self.cex.read(iprot)
18672
        else:
18673
          iprot.skip(ftype)
18674
      else:
18675
        iprot.skip(ftype)
18676
      iprot.readFieldEnd()
18677
    iprot.readStructEnd()
18678
 
18679
  def write(self, oprot):
18680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18682
      return
18683
    oprot.writeStructBegin('addSourceItemPricing_result')
18684
    if self.cex is not None:
18685
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18686
      self.cex.write(oprot)
18687
      oprot.writeFieldEnd()
18688
    oprot.writeFieldStop()
18689
    oprot.writeStructEnd()
18690
 
18691
  def validate(self):
18692
    return
18693
 
18694
 
18695
  def __repr__(self):
18696
    L = ['%s=%r' % (key, value)
18697
      for key, value in self.__dict__.iteritems()]
18698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18699
 
18700
  def __eq__(self, other):
18701
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18702
 
18703
  def __ne__(self, other):
18704
    return not (self == other)
18705
 
18706
class getAllSourcePricing_args:
18707
  """
18708
  Attributes:
18709
   - itemId
18710
  """
18711
 
18712
  thrift_spec = (
18713
    None, # 0
18714
    (1, TType.I64, 'itemId', None, None, ), # 1
18715
  )
18716
 
18717
  def __init__(self, itemId=None,):
18718
    self.itemId = itemId
18719
 
18720
  def read(self, iprot):
18721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18723
      return
18724
    iprot.readStructBegin()
18725
    while True:
18726
      (fname, ftype, fid) = iprot.readFieldBegin()
18727
      if ftype == TType.STOP:
18728
        break
18729
      if fid == 1:
18730
        if ftype == TType.I64:
18731
          self.itemId = iprot.readI64();
18732
        else:
18733
          iprot.skip(ftype)
18734
      else:
18735
        iprot.skip(ftype)
18736
      iprot.readFieldEnd()
18737
    iprot.readStructEnd()
18738
 
18739
  def write(self, oprot):
18740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18742
      return
18743
    oprot.writeStructBegin('getAllSourcePricing_args')
18744
    if self.itemId is not None:
18745
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18746
      oprot.writeI64(self.itemId)
18747
      oprot.writeFieldEnd()
18748
    oprot.writeFieldStop()
18749
    oprot.writeStructEnd()
18750
 
18751
  def validate(self):
18752
    return
18753
 
18754
 
18755
  def __repr__(self):
18756
    L = ['%s=%r' % (key, value)
18757
      for key, value in self.__dict__.iteritems()]
18758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18759
 
18760
  def __eq__(self, other):
18761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18762
 
18763
  def __ne__(self, other):
18764
    return not (self == other)
18765
 
18766
class getAllSourcePricing_result:
18767
  """
18768
  Attributes:
18769
   - success
18770
   - cex
18771
  """
18772
 
18773
  thrift_spec = (
18774
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
18775
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18776
  )
18777
 
18778
  def __init__(self, success=None, cex=None,):
18779
    self.success = success
18780
    self.cex = cex
18781
 
18782
  def read(self, iprot):
18783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18785
      return
18786
    iprot.readStructBegin()
18787
    while True:
18788
      (fname, ftype, fid) = iprot.readFieldBegin()
18789
      if ftype == TType.STOP:
18790
        break
18791
      if fid == 0:
18792
        if ftype == TType.LIST:
18793
          self.success = []
12567 amit.gupta 18794
          (_etype330, _size327) = iprot.readListBegin()
18795
          for _i331 in xrange(_size327):
18796
            _elem332 = SourceItemPricing()
18797
            _elem332.read(iprot)
18798
            self.success.append(_elem332)
5944 mandeep.dh 18799
          iprot.readListEnd()
18800
        else:
18801
          iprot.skip(ftype)
18802
      elif fid == 1:
18803
        if ftype == TType.STRUCT:
18804
          self.cex = CatalogServiceException()
18805
          self.cex.read(iprot)
18806
        else:
18807
          iprot.skip(ftype)
18808
      else:
18809
        iprot.skip(ftype)
18810
      iprot.readFieldEnd()
18811
    iprot.readStructEnd()
18812
 
18813
  def write(self, oprot):
18814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18816
      return
18817
    oprot.writeStructBegin('getAllSourcePricing_result')
18818
    if self.success is not None:
18819
      oprot.writeFieldBegin('success', TType.LIST, 0)
18820
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18821
      for iter333 in self.success:
18822
        iter333.write(oprot)
5944 mandeep.dh 18823
      oprot.writeListEnd()
18824
      oprot.writeFieldEnd()
18825
    if self.cex is not None:
18826
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18827
      self.cex.write(oprot)
18828
      oprot.writeFieldEnd()
18829
    oprot.writeFieldStop()
18830
    oprot.writeStructEnd()
18831
 
18832
  def validate(self):
18833
    return
18834
 
18835
 
18836
  def __repr__(self):
18837
    L = ['%s=%r' % (key, value)
18838
      for key, value in self.__dict__.iteritems()]
18839
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18840
 
18841
  def __eq__(self, other):
18842
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18843
 
18844
  def __ne__(self, other):
18845
    return not (self == other)
18846
 
18847
class getItemForSource_args:
18848
  """
18849
  Attributes:
18850
   - item_id
18851
   - sourceId
18852
  """
18853
 
18854
  thrift_spec = (
18855
    None, # 0
18856
    (1, TType.I64, 'item_id', None, None, ), # 1
18857
    (2, TType.I64, 'sourceId', None, None, ), # 2
18858
  )
18859
 
18860
  def __init__(self, item_id=None, sourceId=None,):
18861
    self.item_id = item_id
18862
    self.sourceId = sourceId
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.I64:
18875
          self.item_id = iprot.readI64();
18876
        else:
18877
          iprot.skip(ftype)
18878
      elif fid == 2:
18879
        if ftype == TType.I64:
18880
          self.sourceId = iprot.readI64();
18881
        else:
18882
          iprot.skip(ftype)
18883
      else:
18884
        iprot.skip(ftype)
18885
      iprot.readFieldEnd()
18886
    iprot.readStructEnd()
18887
 
18888
  def write(self, oprot):
18889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18891
      return
18892
    oprot.writeStructBegin('getItemForSource_args')
18893
    if self.item_id is not None:
18894
      oprot.writeFieldBegin('item_id', TType.I64, 1)
18895
      oprot.writeI64(self.item_id)
18896
      oprot.writeFieldEnd()
18897
    if self.sourceId is not None:
18898
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18899
      oprot.writeI64(self.sourceId)
18900
      oprot.writeFieldEnd()
18901
    oprot.writeFieldStop()
18902
    oprot.writeStructEnd()
18903
 
18904
  def validate(self):
18905
    return
18906
 
18907
 
18908
  def __repr__(self):
18909
    L = ['%s=%r' % (key, value)
18910
      for key, value in self.__dict__.iteritems()]
18911
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18912
 
18913
  def __eq__(self, other):
18914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18915
 
18916
  def __ne__(self, other):
18917
    return not (self == other)
18918
 
18919
class getItemForSource_result:
18920
  """
18921
  Attributes:
18922
   - success
18923
   - cex
18924
  """
18925
 
18926
  thrift_spec = (
18927
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
18928
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18929
  )
18930
 
18931
  def __init__(self, success=None, cex=None,):
18932
    self.success = success
18933
    self.cex = cex
18934
 
18935
  def read(self, iprot):
18936
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18937
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18938
      return
18939
    iprot.readStructBegin()
18940
    while True:
18941
      (fname, ftype, fid) = iprot.readFieldBegin()
18942
      if ftype == TType.STOP:
18943
        break
18944
      if fid == 0:
18945
        if ftype == TType.STRUCT:
18946
          self.success = Item()
18947
          self.success.read(iprot)
18948
        else:
18949
          iprot.skip(ftype)
18950
      elif fid == 1:
18951
        if ftype == TType.STRUCT:
18952
          self.cex = CatalogServiceException()
18953
          self.cex.read(iprot)
18954
        else:
18955
          iprot.skip(ftype)
18956
      else:
18957
        iprot.skip(ftype)
18958
      iprot.readFieldEnd()
18959
    iprot.readStructEnd()
18960
 
18961
  def write(self, oprot):
18962
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18963
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18964
      return
18965
    oprot.writeStructBegin('getItemForSource_result')
18966
    if self.success is not None:
18967
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18968
      self.success.write(oprot)
18969
      oprot.writeFieldEnd()
18970
    if self.cex is not None:
18971
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18972
      self.cex.write(oprot)
18973
      oprot.writeFieldEnd()
18974
    oprot.writeFieldStop()
18975
    oprot.writeStructEnd()
18976
 
18977
  def validate(self):
18978
    return
18979
 
18980
 
18981
  def __repr__(self):
18982
    L = ['%s=%r' % (key, value)
18983
      for key, value in self.__dict__.iteritems()]
18984
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18985
 
18986
  def __eq__(self, other):
18987
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18988
 
18989
  def __ne__(self, other):
18990
    return not (self == other)
18991
 
18992
class searchItemsInRange_args:
18993
  """
18994
  Attributes:
18995
   - searchTerms
18996
   - offset
18997
   - limit
18998
  """
18999
 
19000
  thrift_spec = (
19001
    None, # 0
19002
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19003
    (2, TType.I64, 'offset', None, None, ), # 2
19004
    (3, TType.I64, 'limit', None, None, ), # 3
19005
  )
19006
 
19007
  def __init__(self, searchTerms=None, offset=None, limit=None,):
19008
    self.searchTerms = searchTerms
19009
    self.offset = offset
19010
    self.limit = limit
19011
 
19012
  def read(self, iprot):
19013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19015
      return
19016
    iprot.readStructBegin()
19017
    while True:
19018
      (fname, ftype, fid) = iprot.readFieldBegin()
19019
      if ftype == TType.STOP:
19020
        break
19021
      if fid == 1:
19022
        if ftype == TType.LIST:
19023
          self.searchTerms = []
12567 amit.gupta 19024
          (_etype337, _size334) = iprot.readListBegin()
19025
          for _i338 in xrange(_size334):
19026
            _elem339 = iprot.readString();
19027
            self.searchTerms.append(_elem339)
5944 mandeep.dh 19028
          iprot.readListEnd()
19029
        else:
19030
          iprot.skip(ftype)
19031
      elif fid == 2:
19032
        if ftype == TType.I64:
19033
          self.offset = iprot.readI64();
19034
        else:
19035
          iprot.skip(ftype)
19036
      elif fid == 3:
19037
        if ftype == TType.I64:
19038
          self.limit = iprot.readI64();
19039
        else:
19040
          iprot.skip(ftype)
19041
      else:
19042
        iprot.skip(ftype)
19043
      iprot.readFieldEnd()
19044
    iprot.readStructEnd()
19045
 
19046
  def write(self, oprot):
19047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19049
      return
19050
    oprot.writeStructBegin('searchItemsInRange_args')
19051
    if self.searchTerms is not None:
19052
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19053
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 19054
      for iter340 in self.searchTerms:
19055
        oprot.writeString(iter340)
5944 mandeep.dh 19056
      oprot.writeListEnd()
19057
      oprot.writeFieldEnd()
19058
    if self.offset is not None:
19059
      oprot.writeFieldBegin('offset', TType.I64, 2)
19060
      oprot.writeI64(self.offset)
19061
      oprot.writeFieldEnd()
19062
    if self.limit is not None:
19063
      oprot.writeFieldBegin('limit', TType.I64, 3)
19064
      oprot.writeI64(self.limit)
19065
      oprot.writeFieldEnd()
19066
    oprot.writeFieldStop()
19067
    oprot.writeStructEnd()
19068
 
19069
  def validate(self):
19070
    return
19071
 
19072
 
19073
  def __repr__(self):
19074
    L = ['%s=%r' % (key, value)
19075
      for key, value in self.__dict__.iteritems()]
19076
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19077
 
19078
  def __eq__(self, other):
19079
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19080
 
19081
  def __ne__(self, other):
19082
    return not (self == other)
19083
 
19084
class searchItemsInRange_result:
19085
  """
19086
  Attributes:
19087
   - success
19088
  """
19089
 
19090
  thrift_spec = (
19091
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
19092
  )
19093
 
19094
  def __init__(self, success=None,):
19095
    self.success = success
19096
 
19097
  def read(self, iprot):
19098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19100
      return
19101
    iprot.readStructBegin()
19102
    while True:
19103
      (fname, ftype, fid) = iprot.readFieldBegin()
19104
      if ftype == TType.STOP:
19105
        break
19106
      if fid == 0:
19107
        if ftype == TType.LIST:
19108
          self.success = []
12567 amit.gupta 19109
          (_etype344, _size341) = iprot.readListBegin()
19110
          for _i345 in xrange(_size341):
19111
            _elem346 = Item()
19112
            _elem346.read(iprot)
19113
            self.success.append(_elem346)
5944 mandeep.dh 19114
          iprot.readListEnd()
19115
        else:
19116
          iprot.skip(ftype)
19117
      else:
19118
        iprot.skip(ftype)
19119
      iprot.readFieldEnd()
19120
    iprot.readStructEnd()
19121
 
19122
  def write(self, oprot):
19123
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19124
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19125
      return
19126
    oprot.writeStructBegin('searchItemsInRange_result')
19127
    if self.success is not None:
19128
      oprot.writeFieldBegin('success', TType.LIST, 0)
19129
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19130
      for iter347 in self.success:
19131
        iter347.write(oprot)
5944 mandeep.dh 19132
      oprot.writeListEnd()
19133
      oprot.writeFieldEnd()
19134
    oprot.writeFieldStop()
19135
    oprot.writeStructEnd()
19136
 
19137
  def validate(self):
19138
    return
19139
 
19140
 
19141
  def __repr__(self):
19142
    L = ['%s=%r' % (key, value)
19143
      for key, value in self.__dict__.iteritems()]
19144
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19145
 
19146
  def __eq__(self, other):
19147
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19148
 
19149
  def __ne__(self, other):
19150
    return not (self == other)
19151
 
19152
class getSearchResultCount_args:
19153
  """
19154
  Attributes:
19155
   - searchTerms
19156
  """
19157
 
19158
  thrift_spec = (
19159
    None, # 0
19160
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
19161
  )
19162
 
19163
  def __init__(self, searchTerms=None,):
19164
    self.searchTerms = searchTerms
19165
 
19166
  def read(self, iprot):
19167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19169
      return
19170
    iprot.readStructBegin()
19171
    while True:
19172
      (fname, ftype, fid) = iprot.readFieldBegin()
19173
      if ftype == TType.STOP:
19174
        break
19175
      if fid == 1:
19176
        if ftype == TType.LIST:
19177
          self.searchTerms = []
12567 amit.gupta 19178
          (_etype351, _size348) = iprot.readListBegin()
19179
          for _i352 in xrange(_size348):
19180
            _elem353 = iprot.readString();
19181
            self.searchTerms.append(_elem353)
5944 mandeep.dh 19182
          iprot.readListEnd()
19183
        else:
19184
          iprot.skip(ftype)
19185
      else:
19186
        iprot.skip(ftype)
19187
      iprot.readFieldEnd()
19188
    iprot.readStructEnd()
19189
 
19190
  def write(self, oprot):
19191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19193
      return
19194
    oprot.writeStructBegin('getSearchResultCount_args')
19195
    if self.searchTerms is not None:
19196
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19197
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 19198
      for iter354 in self.searchTerms:
19199
        oprot.writeString(iter354)
5944 mandeep.dh 19200
      oprot.writeListEnd()
19201
      oprot.writeFieldEnd()
19202
    oprot.writeFieldStop()
19203
    oprot.writeStructEnd()
19204
 
19205
  def validate(self):
19206
    return
19207
 
19208
 
19209
  def __repr__(self):
19210
    L = ['%s=%r' % (key, value)
19211
      for key, value in self.__dict__.iteritems()]
19212
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19213
 
19214
  def __eq__(self, other):
19215
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19216
 
19217
  def __ne__(self, other):
19218
    return not (self == other)
19219
 
19220
class getSearchResultCount_result:
19221
  """
19222
  Attributes:
19223
   - success
19224
  """
19225
 
19226
  thrift_spec = (
19227
    (0, TType.I32, 'success', None, None, ), # 0
19228
  )
19229
 
19230
  def __init__(self, success=None,):
19231
    self.success = success
19232
 
19233
  def read(self, iprot):
19234
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19235
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19236
      return
19237
    iprot.readStructBegin()
19238
    while True:
19239
      (fname, ftype, fid) = iprot.readFieldBegin()
19240
      if ftype == TType.STOP:
19241
        break
19242
      if fid == 0:
19243
        if ftype == TType.I32:
19244
          self.success = iprot.readI32();
19245
        else:
19246
          iprot.skip(ftype)
19247
      else:
19248
        iprot.skip(ftype)
19249
      iprot.readFieldEnd()
19250
    iprot.readStructEnd()
19251
 
19252
  def write(self, oprot):
19253
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19254
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19255
      return
19256
    oprot.writeStructBegin('getSearchResultCount_result')
19257
    if self.success is not None:
19258
      oprot.writeFieldBegin('success', TType.I32, 0)
19259
      oprot.writeI32(self.success)
19260
      oprot.writeFieldEnd()
19261
    oprot.writeFieldStop()
19262
    oprot.writeStructEnd()
19263
 
19264
  def validate(self):
19265
    return
19266
 
19267
 
19268
  def __repr__(self):
19269
    L = ['%s=%r' % (key, value)
19270
      for key, value in self.__dict__.iteritems()]
19271
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19272
 
19273
  def __eq__(self, other):
19274
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19275
 
19276
  def __ne__(self, other):
19277
    return not (self == other)
19278
 
19279
class getProductNotifications_args:
19280
  """
19281
  Attributes:
19282
   - startDateTime
19283
  """
19284
 
19285
  thrift_spec = (
19286
    None, # 0
19287
    (1, TType.I64, 'startDateTime', None, None, ), # 1
19288
  )
19289
 
19290
  def __init__(self, startDateTime=None,):
19291
    self.startDateTime = startDateTime
19292
 
19293
  def read(self, iprot):
19294
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19295
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19296
      return
19297
    iprot.readStructBegin()
19298
    while True:
19299
      (fname, ftype, fid) = iprot.readFieldBegin()
19300
      if ftype == TType.STOP:
19301
        break
19302
      if fid == 1:
19303
        if ftype == TType.I64:
19304
          self.startDateTime = iprot.readI64();
19305
        else:
19306
          iprot.skip(ftype)
19307
      else:
19308
        iprot.skip(ftype)
19309
      iprot.readFieldEnd()
19310
    iprot.readStructEnd()
19311
 
19312
  def write(self, oprot):
19313
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19314
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19315
      return
19316
    oprot.writeStructBegin('getProductNotifications_args')
19317
    if self.startDateTime is not None:
19318
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19319
      oprot.writeI64(self.startDateTime)
19320
      oprot.writeFieldEnd()
19321
    oprot.writeFieldStop()
19322
    oprot.writeStructEnd()
19323
 
19324
  def validate(self):
19325
    return
19326
 
19327
 
19328
  def __repr__(self):
19329
    L = ['%s=%r' % (key, value)
19330
      for key, value in self.__dict__.iteritems()]
19331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19332
 
19333
  def __eq__(self, other):
19334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19335
 
19336
  def __ne__(self, other):
19337
    return not (self == other)
19338
 
19339
class getProductNotifications_result:
19340
  """
19341
  Attributes:
19342
   - success
19343
  """
19344
 
19345
  thrift_spec = (
19346
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
19347
  )
19348
 
19349
  def __init__(self, success=None,):
19350
    self.success = success
19351
 
19352
  def read(self, iprot):
19353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19355
      return
19356
    iprot.readStructBegin()
19357
    while True:
19358
      (fname, ftype, fid) = iprot.readFieldBegin()
19359
      if ftype == TType.STOP:
19360
        break
19361
      if fid == 0:
19362
        if ftype == TType.LIST:
19363
          self.success = []
12567 amit.gupta 19364
          (_etype358, _size355) = iprot.readListBegin()
19365
          for _i359 in xrange(_size355):
19366
            _elem360 = ProductNotificationRequest()
19367
            _elem360.read(iprot)
19368
            self.success.append(_elem360)
5944 mandeep.dh 19369
          iprot.readListEnd()
19370
        else:
19371
          iprot.skip(ftype)
19372
      else:
19373
        iprot.skip(ftype)
19374
      iprot.readFieldEnd()
19375
    iprot.readStructEnd()
19376
 
19377
  def write(self, oprot):
19378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19380
      return
19381
    oprot.writeStructBegin('getProductNotifications_result')
19382
    if self.success is not None:
19383
      oprot.writeFieldBegin('success', TType.LIST, 0)
19384
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19385
      for iter361 in self.success:
19386
        iter361.write(oprot)
5944 mandeep.dh 19387
      oprot.writeListEnd()
19388
      oprot.writeFieldEnd()
19389
    oprot.writeFieldStop()
19390
    oprot.writeStructEnd()
19391
 
19392
  def validate(self):
19393
    return
19394
 
19395
 
19396
  def __repr__(self):
19397
    L = ['%s=%r' % (key, value)
19398
      for key, value in self.__dict__.iteritems()]
19399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19400
 
19401
  def __eq__(self, other):
19402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19403
 
19404
  def __ne__(self, other):
19405
    return not (self == other)
19406
 
19407
class getProductNotificationRequestCount_args:
19408
  """
19409
  Attributes:
19410
   - startDateTime
7897 amar.kumar 19411
   - categoryId
5944 mandeep.dh 19412
  """
19413
 
19414
  thrift_spec = (
19415
    None, # 0
19416
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 19417
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 19418
  )
19419
 
7897 amar.kumar 19420
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 19421
    self.startDateTime = startDateTime
7897 amar.kumar 19422
    self.categoryId = categoryId
5944 mandeep.dh 19423
 
19424
  def read(self, iprot):
19425
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19426
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19427
      return
19428
    iprot.readStructBegin()
19429
    while True:
19430
      (fname, ftype, fid) = iprot.readFieldBegin()
19431
      if ftype == TType.STOP:
19432
        break
19433
      if fid == 1:
19434
        if ftype == TType.I64:
19435
          self.startDateTime = iprot.readI64();
19436
        else:
19437
          iprot.skip(ftype)
7897 amar.kumar 19438
      elif fid == 2:
19439
        if ftype == TType.I64:
19440
          self.categoryId = iprot.readI64();
19441
        else:
19442
          iprot.skip(ftype)
5944 mandeep.dh 19443
      else:
19444
        iprot.skip(ftype)
19445
      iprot.readFieldEnd()
19446
    iprot.readStructEnd()
19447
 
19448
  def write(self, oprot):
19449
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19450
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19451
      return
19452
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
19453
    if self.startDateTime is not None:
19454
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19455
      oprot.writeI64(self.startDateTime)
19456
      oprot.writeFieldEnd()
7897 amar.kumar 19457
    if self.categoryId is not None:
19458
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
19459
      oprot.writeI64(self.categoryId)
19460
      oprot.writeFieldEnd()
5944 mandeep.dh 19461
    oprot.writeFieldStop()
19462
    oprot.writeStructEnd()
19463
 
19464
  def validate(self):
19465
    return
19466
 
19467
 
19468
  def __repr__(self):
19469
    L = ['%s=%r' % (key, value)
19470
      for key, value in self.__dict__.iteritems()]
19471
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19472
 
19473
  def __eq__(self, other):
19474
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19475
 
19476
  def __ne__(self, other):
19477
    return not (self == other)
19478
 
19479
class getProductNotificationRequestCount_result:
19480
  """
19481
  Attributes:
19482
   - success
19483
  """
19484
 
19485
  thrift_spec = (
19486
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
19487
  )
19488
 
19489
  def __init__(self, success=None,):
19490
    self.success = success
19491
 
19492
  def read(self, iprot):
19493
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19494
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19495
      return
19496
    iprot.readStructBegin()
19497
    while True:
19498
      (fname, ftype, fid) = iprot.readFieldBegin()
19499
      if ftype == TType.STOP:
19500
        break
19501
      if fid == 0:
19502
        if ftype == TType.LIST:
19503
          self.success = []
12567 amit.gupta 19504
          (_etype365, _size362) = iprot.readListBegin()
19505
          for _i366 in xrange(_size362):
19506
            _elem367 = ProductNotificationRequestCount()
19507
            _elem367.read(iprot)
19508
            self.success.append(_elem367)
5944 mandeep.dh 19509
          iprot.readListEnd()
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('getProductNotificationRequestCount_result')
19522
    if self.success is not None:
19523
      oprot.writeFieldBegin('success', TType.LIST, 0)
19524
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19525
      for iter368 in self.success:
19526
        iter368.write(oprot)
5944 mandeep.dh 19527
      oprot.writeListEnd()
19528
      oprot.writeFieldEnd()
19529
    oprot.writeFieldStop()
19530
    oprot.writeStructEnd()
19531
 
19532
  def validate(self):
19533
    return
19534
 
19535
 
19536
  def __repr__(self):
19537
    L = ['%s=%r' % (key, value)
19538
      for key, value in self.__dict__.iteritems()]
19539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19540
 
19541
  def __eq__(self, other):
19542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19543
 
19544
  def __ne__(self, other):
19545
    return not (self == other)
19546
 
19547
class addAuthorizationLog_args:
19548
  """
19549
  Attributes:
19550
   - itemId
19551
   - username
19552
   - reason
19553
  """
19554
 
19555
  thrift_spec = (
19556
    None, # 0
19557
    (1, TType.I64, 'itemId', None, None, ), # 1
19558
    (2, TType.STRING, 'username', None, None, ), # 2
19559
    (3, TType.STRING, 'reason', None, None, ), # 3
19560
  )
19561
 
19562
  def __init__(self, itemId=None, username=None, reason=None,):
19563
    self.itemId = itemId
19564
    self.username = username
19565
    self.reason = reason
19566
 
19567
  def read(self, iprot):
19568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19570
      return
19571
    iprot.readStructBegin()
19572
    while True:
19573
      (fname, ftype, fid) = iprot.readFieldBegin()
19574
      if ftype == TType.STOP:
19575
        break
19576
      if fid == 1:
19577
        if ftype == TType.I64:
19578
          self.itemId = iprot.readI64();
19579
        else:
19580
          iprot.skip(ftype)
19581
      elif fid == 2:
19582
        if ftype == TType.STRING:
19583
          self.username = iprot.readString();
19584
        else:
19585
          iprot.skip(ftype)
19586
      elif fid == 3:
19587
        if ftype == TType.STRING:
19588
          self.reason = iprot.readString();
19589
        else:
19590
          iprot.skip(ftype)
19591
      else:
19592
        iprot.skip(ftype)
19593
      iprot.readFieldEnd()
19594
    iprot.readStructEnd()
19595
 
19596
  def write(self, oprot):
19597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19599
      return
19600
    oprot.writeStructBegin('addAuthorizationLog_args')
19601
    if self.itemId is not None:
19602
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19603
      oprot.writeI64(self.itemId)
19604
      oprot.writeFieldEnd()
19605
    if self.username is not None:
19606
      oprot.writeFieldBegin('username', TType.STRING, 2)
19607
      oprot.writeString(self.username)
19608
      oprot.writeFieldEnd()
19609
    if self.reason is not None:
19610
      oprot.writeFieldBegin('reason', TType.STRING, 3)
19611
      oprot.writeString(self.reason)
19612
      oprot.writeFieldEnd()
19613
    oprot.writeFieldStop()
19614
    oprot.writeStructEnd()
19615
 
19616
  def validate(self):
19617
    return
19618
 
19619
 
19620
  def __repr__(self):
19621
    L = ['%s=%r' % (key, value)
19622
      for key, value in self.__dict__.iteritems()]
19623
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19624
 
19625
  def __eq__(self, other):
19626
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19627
 
19628
  def __ne__(self, other):
19629
    return not (self == other)
19630
 
19631
class addAuthorizationLog_result:
19632
  """
19633
  Attributes:
19634
   - success
19635
   - cex
19636
  """
19637
 
19638
  thrift_spec = (
19639
    (0, TType.BOOL, 'success', None, None, ), # 0
19640
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19641
  )
19642
 
19643
  def __init__(self, success=None, cex=None,):
19644
    self.success = success
19645
    self.cex = cex
19646
 
19647
  def read(self, iprot):
19648
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19649
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19650
      return
19651
    iprot.readStructBegin()
19652
    while True:
19653
      (fname, ftype, fid) = iprot.readFieldBegin()
19654
      if ftype == TType.STOP:
19655
        break
19656
      if fid == 0:
19657
        if ftype == TType.BOOL:
19658
          self.success = iprot.readBool();
19659
        else:
19660
          iprot.skip(ftype)
19661
      elif fid == 1:
19662
        if ftype == TType.STRUCT:
19663
          self.cex = CatalogServiceException()
19664
          self.cex.read(iprot)
19665
        else:
19666
          iprot.skip(ftype)
19667
      else:
19668
        iprot.skip(ftype)
19669
      iprot.readFieldEnd()
19670
    iprot.readStructEnd()
19671
 
19672
  def write(self, oprot):
19673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19675
      return
19676
    oprot.writeStructBegin('addAuthorizationLog_result')
19677
    if self.success is not None:
19678
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19679
      oprot.writeBool(self.success)
19680
      oprot.writeFieldEnd()
19681
    if self.cex is not None:
19682
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19683
      self.cex.write(oprot)
19684
      oprot.writeFieldEnd()
19685
    oprot.writeFieldStop()
19686
    oprot.writeStructEnd()
19687
 
19688
  def validate(self):
19689
    return
19690
 
19691
 
19692
  def __repr__(self):
19693
    L = ['%s=%r' % (key, value)
19694
      for key, value in self.__dict__.iteritems()]
19695
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19696
 
19697
  def __eq__(self, other):
19698
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19699
 
19700
  def __ne__(self, other):
19701
    return not (self == other)
19702
 
19703
class addupdateVoucherForItem_args:
19704
  """
19705
  Attributes:
19706
   - catalog_item_id
19707
   - voucherType
19708
   - voucherAmount
19709
  """
19710
 
19711
  thrift_spec = (
19712
    None, # 0
19713
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19714
    (2, TType.I64, 'voucherType', None, None, ), # 2
19715
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
19716
  )
19717
 
19718
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
19719
    self.catalog_item_id = catalog_item_id
19720
    self.voucherType = voucherType
19721
    self.voucherAmount = voucherAmount
19722
 
19723
  def read(self, iprot):
19724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19726
      return
19727
    iprot.readStructBegin()
19728
    while True:
19729
      (fname, ftype, fid) = iprot.readFieldBegin()
19730
      if ftype == TType.STOP:
19731
        break
19732
      if fid == 1:
19733
        if ftype == TType.I64:
19734
          self.catalog_item_id = iprot.readI64();
19735
        else:
19736
          iprot.skip(ftype)
19737
      elif fid == 2:
19738
        if ftype == TType.I64:
19739
          self.voucherType = iprot.readI64();
19740
        else:
19741
          iprot.skip(ftype)
19742
      elif fid == 3:
19743
        if ftype == TType.I64:
19744
          self.voucherAmount = iprot.readI64();
19745
        else:
19746
          iprot.skip(ftype)
19747
      else:
19748
        iprot.skip(ftype)
19749
      iprot.readFieldEnd()
19750
    iprot.readStructEnd()
19751
 
19752
  def write(self, oprot):
19753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19755
      return
19756
    oprot.writeStructBegin('addupdateVoucherForItem_args')
19757
    if self.catalog_item_id is not None:
19758
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19759
      oprot.writeI64(self.catalog_item_id)
19760
      oprot.writeFieldEnd()
19761
    if self.voucherType is not None:
19762
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19763
      oprot.writeI64(self.voucherType)
19764
      oprot.writeFieldEnd()
19765
    if self.voucherAmount is not None:
19766
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
19767
      oprot.writeI64(self.voucherAmount)
19768
      oprot.writeFieldEnd()
19769
    oprot.writeFieldStop()
19770
    oprot.writeStructEnd()
19771
 
19772
  def validate(self):
19773
    return
19774
 
19775
 
19776
  def __repr__(self):
19777
    L = ['%s=%r' % (key, value)
19778
      for key, value in self.__dict__.iteritems()]
19779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19780
 
19781
  def __eq__(self, other):
19782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19783
 
19784
  def __ne__(self, other):
19785
    return not (self == other)
19786
 
19787
class addupdateVoucherForItem_result:
19788
  """
19789
  Attributes:
19790
   - success
19791
   - cex
19792
  """
19793
 
19794
  thrift_spec = (
19795
    (0, TType.BOOL, 'success', None, None, ), # 0
19796
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19797
  )
19798
 
19799
  def __init__(self, success=None, cex=None,):
19800
    self.success = success
19801
    self.cex = cex
19802
 
19803
  def read(self, iprot):
19804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19806
      return
19807
    iprot.readStructBegin()
19808
    while True:
19809
      (fname, ftype, fid) = iprot.readFieldBegin()
19810
      if ftype == TType.STOP:
19811
        break
19812
      if fid == 0:
19813
        if ftype == TType.BOOL:
19814
          self.success = iprot.readBool();
19815
        else:
19816
          iprot.skip(ftype)
19817
      elif fid == 1:
19818
        if ftype == TType.STRUCT:
19819
          self.cex = CatalogServiceException()
19820
          self.cex.read(iprot)
19821
        else:
19822
          iprot.skip(ftype)
19823
      else:
19824
        iprot.skip(ftype)
19825
      iprot.readFieldEnd()
19826
    iprot.readStructEnd()
19827
 
19828
  def write(self, oprot):
19829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19831
      return
19832
    oprot.writeStructBegin('addupdateVoucherForItem_result')
19833
    if self.success is not None:
19834
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19835
      oprot.writeBool(self.success)
19836
      oprot.writeFieldEnd()
19837
    if self.cex is not None:
19838
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19839
      self.cex.write(oprot)
19840
      oprot.writeFieldEnd()
19841
    oprot.writeFieldStop()
19842
    oprot.writeStructEnd()
19843
 
19844
  def validate(self):
19845
    return
19846
 
19847
 
19848
  def __repr__(self):
19849
    L = ['%s=%r' % (key, value)
19850
      for key, value in self.__dict__.iteritems()]
19851
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19852
 
19853
  def __eq__(self, other):
19854
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19855
 
19856
  def __ne__(self, other):
19857
    return not (self == other)
19858
 
19859
class deleteVoucherForItem_args:
19860
  """
19861
  Attributes:
19862
   - catalog_item_id
19863
   - voucherType
19864
  """
19865
 
19866
  thrift_spec = (
19867
    None, # 0
19868
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19869
    (2, TType.I64, 'voucherType', None, None, ), # 2
19870
  )
19871
 
19872
  def __init__(self, catalog_item_id=None, voucherType=None,):
19873
    self.catalog_item_id = catalog_item_id
19874
    self.voucherType = voucherType
19875
 
19876
  def read(self, iprot):
19877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19879
      return
19880
    iprot.readStructBegin()
19881
    while True:
19882
      (fname, ftype, fid) = iprot.readFieldBegin()
19883
      if ftype == TType.STOP:
19884
        break
19885
      if fid == 1:
19886
        if ftype == TType.I64:
19887
          self.catalog_item_id = iprot.readI64();
19888
        else:
19889
          iprot.skip(ftype)
19890
      elif fid == 2:
19891
        if ftype == TType.I64:
19892
          self.voucherType = iprot.readI64();
19893
        else:
19894
          iprot.skip(ftype)
19895
      else:
19896
        iprot.skip(ftype)
19897
      iprot.readFieldEnd()
19898
    iprot.readStructEnd()
19899
 
19900
  def write(self, oprot):
19901
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19902
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19903
      return
19904
    oprot.writeStructBegin('deleteVoucherForItem_args')
19905
    if self.catalog_item_id is not None:
19906
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19907
      oprot.writeI64(self.catalog_item_id)
19908
      oprot.writeFieldEnd()
19909
    if self.voucherType is not None:
19910
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19911
      oprot.writeI64(self.voucherType)
19912
      oprot.writeFieldEnd()
19913
    oprot.writeFieldStop()
19914
    oprot.writeStructEnd()
19915
 
19916
  def validate(self):
19917
    return
19918
 
19919
 
19920
  def __repr__(self):
19921
    L = ['%s=%r' % (key, value)
19922
      for key, value in self.__dict__.iteritems()]
19923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19924
 
19925
  def __eq__(self, other):
19926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19927
 
19928
  def __ne__(self, other):
19929
    return not (self == other)
19930
 
19931
class deleteVoucherForItem_result:
19932
  """
19933
  Attributes:
19934
   - success
19935
   - cex
19936
  """
19937
 
19938
  thrift_spec = (
19939
    (0, TType.BOOL, 'success', None, None, ), # 0
19940
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19941
  )
19942
 
19943
  def __init__(self, success=None, cex=None,):
19944
    self.success = success
19945
    self.cex = cex
19946
 
19947
  def read(self, iprot):
19948
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19949
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19950
      return
19951
    iprot.readStructBegin()
19952
    while True:
19953
      (fname, ftype, fid) = iprot.readFieldBegin()
19954
      if ftype == TType.STOP:
19955
        break
19956
      if fid == 0:
19957
        if ftype == TType.BOOL:
19958
          self.success = iprot.readBool();
19959
        else:
19960
          iprot.skip(ftype)
19961
      elif fid == 1:
19962
        if ftype == TType.STRUCT:
19963
          self.cex = CatalogServiceException()
19964
          self.cex.read(iprot)
19965
        else:
19966
          iprot.skip(ftype)
19967
      else:
19968
        iprot.skip(ftype)
19969
      iprot.readFieldEnd()
19970
    iprot.readStructEnd()
19971
 
19972
  def write(self, oprot):
19973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19975
      return
19976
    oprot.writeStructBegin('deleteVoucherForItem_result')
19977
    if self.success is not None:
19978
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19979
      oprot.writeBool(self.success)
19980
      oprot.writeFieldEnd()
19981
    if self.cex is not None:
19982
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19983
      self.cex.write(oprot)
19984
      oprot.writeFieldEnd()
19985
    oprot.writeFieldStop()
19986
    oprot.writeStructEnd()
19987
 
19988
  def validate(self):
19989
    return
19990
 
19991
 
19992
  def __repr__(self):
19993
    L = ['%s=%r' % (key, value)
19994
      for key, value in self.__dict__.iteritems()]
19995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19996
 
19997
  def __eq__(self, other):
19998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19999
 
20000
  def __ne__(self, other):
20001
    return not (self == other)
20002
 
20003
class getVoucherAmount_args:
20004
  """
20005
  Attributes:
20006
   - itemId
20007
   - voucherType
20008
  """
20009
 
20010
  thrift_spec = (
20011
    None, # 0
20012
    (1, TType.I64, 'itemId', None, None, ), # 1
20013
    (2, TType.I64, 'voucherType', None, None, ), # 2
20014
  )
20015
 
20016
  def __init__(self, itemId=None, voucherType=None,):
20017
    self.itemId = itemId
20018
    self.voucherType = voucherType
20019
 
20020
  def read(self, iprot):
20021
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20022
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20023
      return
20024
    iprot.readStructBegin()
20025
    while True:
20026
      (fname, ftype, fid) = iprot.readFieldBegin()
20027
      if ftype == TType.STOP:
20028
        break
20029
      if fid == 1:
20030
        if ftype == TType.I64:
20031
          self.itemId = iprot.readI64();
20032
        else:
20033
          iprot.skip(ftype)
20034
      elif fid == 2:
20035
        if ftype == TType.I64:
20036
          self.voucherType = iprot.readI64();
20037
        else:
20038
          iprot.skip(ftype)
20039
      else:
20040
        iprot.skip(ftype)
20041
      iprot.readFieldEnd()
20042
    iprot.readStructEnd()
20043
 
20044
  def write(self, oprot):
20045
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20046
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20047
      return
20048
    oprot.writeStructBegin('getVoucherAmount_args')
20049
    if self.itemId is not None:
20050
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20051
      oprot.writeI64(self.itemId)
20052
      oprot.writeFieldEnd()
20053
    if self.voucherType is not None:
20054
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
20055
      oprot.writeI64(self.voucherType)
20056
      oprot.writeFieldEnd()
20057
    oprot.writeFieldStop()
20058
    oprot.writeStructEnd()
20059
 
20060
  def validate(self):
20061
    return
20062
 
20063
 
20064
  def __repr__(self):
20065
    L = ['%s=%r' % (key, value)
20066
      for key, value in self.__dict__.iteritems()]
20067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20068
 
20069
  def __eq__(self, other):
20070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20071
 
20072
  def __ne__(self, other):
20073
    return not (self == other)
20074
 
20075
class getVoucherAmount_result:
20076
  """
20077
  Attributes:
20078
   - success
20079
  """
20080
 
20081
  thrift_spec = (
20082
    (0, TType.I64, 'success', None, None, ), # 0
20083
  )
20084
 
20085
  def __init__(self, success=None,):
20086
    self.success = success
20087
 
20088
  def read(self, iprot):
20089
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20090
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20091
      return
20092
    iprot.readStructBegin()
20093
    while True:
20094
      (fname, ftype, fid) = iprot.readFieldBegin()
20095
      if ftype == TType.STOP:
20096
        break
20097
      if fid == 0:
20098
        if ftype == TType.I64:
20099
          self.success = iprot.readI64();
20100
        else:
20101
          iprot.skip(ftype)
20102
      else:
20103
        iprot.skip(ftype)
20104
      iprot.readFieldEnd()
20105
    iprot.readStructEnd()
20106
 
20107
  def write(self, oprot):
20108
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20109
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20110
      return
20111
    oprot.writeStructBegin('getVoucherAmount_result')
20112
    if self.success is not None:
20113
      oprot.writeFieldBegin('success', TType.I64, 0)
20114
      oprot.writeI64(self.success)
20115
      oprot.writeFieldEnd()
20116
    oprot.writeFieldStop()
20117
    oprot.writeStructEnd()
20118
 
20119
  def validate(self):
20120
    return
20121
 
20122
 
20123
  def __repr__(self):
20124
    L = ['%s=%r' % (key, value)
20125
      for key, value in self.__dict__.iteritems()]
20126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20127
 
20128
  def __eq__(self, other):
20129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20130
 
20131
  def __ne__(self, other):
20132
    return not (self == other)
20133
 
20134
class getAllItemVouchers_args:
20135
  """
20136
  Attributes:
20137
   - itemId
20138
  """
20139
 
20140
  thrift_spec = (
20141
    None, # 0
20142
    (1, TType.I64, 'itemId', None, None, ), # 1
20143
  )
20144
 
20145
  def __init__(self, itemId=None,):
20146
    self.itemId = itemId
20147
 
20148
  def read(self, iprot):
20149
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20150
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20151
      return
20152
    iprot.readStructBegin()
20153
    while True:
20154
      (fname, ftype, fid) = iprot.readFieldBegin()
20155
      if ftype == TType.STOP:
20156
        break
20157
      if fid == 1:
20158
        if ftype == TType.I64:
20159
          self.itemId = iprot.readI64();
20160
        else:
20161
          iprot.skip(ftype)
20162
      else:
20163
        iprot.skip(ftype)
20164
      iprot.readFieldEnd()
20165
    iprot.readStructEnd()
20166
 
20167
  def write(self, oprot):
20168
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20169
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20170
      return
20171
    oprot.writeStructBegin('getAllItemVouchers_args')
20172
    if self.itemId is not None:
20173
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20174
      oprot.writeI64(self.itemId)
20175
      oprot.writeFieldEnd()
20176
    oprot.writeFieldStop()
20177
    oprot.writeStructEnd()
20178
 
20179
  def validate(self):
20180
    return
20181
 
20182
 
20183
  def __repr__(self):
20184
    L = ['%s=%r' % (key, value)
20185
      for key, value in self.__dict__.iteritems()]
20186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20187
 
20188
  def __eq__(self, other):
20189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20190
 
20191
  def __ne__(self, other):
20192
    return not (self == other)
20193
 
20194
class getAllItemVouchers_result:
20195
  """
20196
  Attributes:
20197
   - success
20198
  """
20199
 
20200
  thrift_spec = (
20201
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
20202
  )
20203
 
20204
  def __init__(self, success=None,):
20205
    self.success = success
20206
 
20207
  def read(self, iprot):
20208
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20209
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20210
      return
20211
    iprot.readStructBegin()
20212
    while True:
20213
      (fname, ftype, fid) = iprot.readFieldBegin()
20214
      if ftype == TType.STOP:
20215
        break
20216
      if fid == 0:
20217
        if ftype == TType.LIST:
20218
          self.success = []
12567 amit.gupta 20219
          (_etype372, _size369) = iprot.readListBegin()
20220
          for _i373 in xrange(_size369):
20221
            _elem374 = VoucherItemMapping()
20222
            _elem374.read(iprot)
20223
            self.success.append(_elem374)
5944 mandeep.dh 20224
          iprot.readListEnd()
20225
        else:
20226
          iprot.skip(ftype)
20227
      else:
20228
        iprot.skip(ftype)
20229
      iprot.readFieldEnd()
20230
    iprot.readStructEnd()
20231
 
20232
  def write(self, oprot):
20233
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20234
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20235
      return
20236
    oprot.writeStructBegin('getAllItemVouchers_result')
20237
    if self.success is not None:
20238
      oprot.writeFieldBegin('success', TType.LIST, 0)
20239
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20240
      for iter375 in self.success:
20241
        iter375.write(oprot)
5944 mandeep.dh 20242
      oprot.writeListEnd()
20243
      oprot.writeFieldEnd()
20244
    oprot.writeFieldStop()
20245
    oprot.writeStructEnd()
20246
 
20247
  def validate(self):
20248
    return
20249
 
20250
 
20251
  def __repr__(self):
20252
    L = ['%s=%r' % (key, value)
20253
      for key, value in self.__dict__.iteritems()]
20254
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20255
 
20256
  def __eq__(self, other):
20257
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20258
 
20259
  def __ne__(self, other):
20260
    return not (self == other)
20261
 
20262
class isValidCatalogItemId_args:
20263
  """
20264
  Attributes:
20265
   - catalog_item_id
20266
  """
20267
 
20268
  thrift_spec = (
20269
    None, # 0
20270
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20271
  )
20272
 
20273
  def __init__(self, catalog_item_id=None,):
20274
    self.catalog_item_id = catalog_item_id
20275
 
20276
  def read(self, iprot):
20277
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20278
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20279
      return
20280
    iprot.readStructBegin()
20281
    while True:
20282
      (fname, ftype, fid) = iprot.readFieldBegin()
20283
      if ftype == TType.STOP:
20284
        break
20285
      if fid == 1:
20286
        if ftype == TType.I64:
20287
          self.catalog_item_id = iprot.readI64();
20288
        else:
20289
          iprot.skip(ftype)
20290
      else:
20291
        iprot.skip(ftype)
20292
      iprot.readFieldEnd()
20293
    iprot.readStructEnd()
20294
 
20295
  def write(self, oprot):
20296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20298
      return
20299
    oprot.writeStructBegin('isValidCatalogItemId_args')
20300
    if self.catalog_item_id is not None:
20301
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20302
      oprot.writeI64(self.catalog_item_id)
20303
      oprot.writeFieldEnd()
20304
    oprot.writeFieldStop()
20305
    oprot.writeStructEnd()
20306
 
20307
  def validate(self):
20308
    return
20309
 
20310
 
20311
  def __repr__(self):
20312
    L = ['%s=%r' % (key, value)
20313
      for key, value in self.__dict__.iteritems()]
20314
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20315
 
20316
  def __eq__(self, other):
20317
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20318
 
20319
  def __ne__(self, other):
20320
    return not (self == other)
20321
 
20322
class isValidCatalogItemId_result:
20323
  """
20324
  Attributes:
20325
   - success
20326
  """
20327
 
20328
  thrift_spec = (
20329
    (0, TType.BOOL, 'success', None, None, ), # 0
20330
  )
20331
 
20332
  def __init__(self, success=None,):
20333
    self.success = success
20334
 
20335
  def read(self, iprot):
20336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20338
      return
20339
    iprot.readStructBegin()
20340
    while True:
20341
      (fname, ftype, fid) = iprot.readFieldBegin()
20342
      if ftype == TType.STOP:
20343
        break
20344
      if fid == 0:
20345
        if ftype == TType.BOOL:
20346
          self.success = iprot.readBool();
20347
        else:
20348
          iprot.skip(ftype)
20349
      else:
20350
        iprot.skip(ftype)
20351
      iprot.readFieldEnd()
20352
    iprot.readStructEnd()
20353
 
20354
  def write(self, oprot):
20355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20357
      return
20358
    oprot.writeStructBegin('isValidCatalogItemId_result')
20359
    if self.success is not None:
20360
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20361
      oprot.writeBool(self.success)
20362
      oprot.writeFieldEnd()
20363
    oprot.writeFieldStop()
20364
    oprot.writeStructEnd()
20365
 
20366
  def validate(self):
20367
    return
20368
 
20369
 
20370
  def __repr__(self):
20371
    L = ['%s=%r' % (key, value)
20372
      for key, value in self.__dict__.iteritems()]
20373
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20374
 
20375
  def __eq__(self, other):
20376
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20377
 
20378
  def __ne__(self, other):
20379
    return not (self == other)
6039 amit.gupta 20380
 
20381
class getVatPercentageForItem_args:
20382
  """
20383
  Attributes:
20384
   - itemId
7330 amit.gupta 20385
   - stateId
6039 amit.gupta 20386
   - price
20387
  """
20388
 
20389
  thrift_spec = (
20390
    None, # 0
20391
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 20392
    (2, TType.I64, 'stateId', None, None, ), # 2
20393
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 20394
  )
20395
 
7330 amit.gupta 20396
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 20397
    self.itemId = itemId
7330 amit.gupta 20398
    self.stateId = stateId
6039 amit.gupta 20399
    self.price = price
20400
 
20401
  def read(self, iprot):
20402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20404
      return
20405
    iprot.readStructBegin()
20406
    while True:
20407
      (fname, ftype, fid) = iprot.readFieldBegin()
20408
      if ftype == TType.STOP:
20409
        break
20410
      if fid == 1:
20411
        if ftype == TType.I64:
20412
          self.itemId = iprot.readI64();
20413
        else:
20414
          iprot.skip(ftype)
20415
      elif fid == 2:
7330 amit.gupta 20416
        if ftype == TType.I64:
20417
          self.stateId = iprot.readI64();
20418
        else:
20419
          iprot.skip(ftype)
20420
      elif fid == 3:
6039 amit.gupta 20421
        if ftype == TType.DOUBLE:
20422
          self.price = iprot.readDouble();
20423
        else:
20424
          iprot.skip(ftype)
20425
      else:
20426
        iprot.skip(ftype)
20427
      iprot.readFieldEnd()
20428
    iprot.readStructEnd()
20429
 
20430
  def write(self, oprot):
20431
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20432
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20433
      return
20434
    oprot.writeStructBegin('getVatPercentageForItem_args')
20435
    if self.itemId is not None:
20436
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20437
      oprot.writeI64(self.itemId)
20438
      oprot.writeFieldEnd()
7330 amit.gupta 20439
    if self.stateId is not None:
20440
      oprot.writeFieldBegin('stateId', TType.I64, 2)
20441
      oprot.writeI64(self.stateId)
20442
      oprot.writeFieldEnd()
6039 amit.gupta 20443
    if self.price is not None:
7330 amit.gupta 20444
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 20445
      oprot.writeDouble(self.price)
20446
      oprot.writeFieldEnd()
20447
    oprot.writeFieldStop()
20448
    oprot.writeStructEnd()
20449
 
20450
  def validate(self):
20451
    return
20452
 
20453
 
20454
  def __repr__(self):
20455
    L = ['%s=%r' % (key, value)
20456
      for key, value in self.__dict__.iteritems()]
20457
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20458
 
20459
  def __eq__(self, other):
20460
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20461
 
20462
  def __ne__(self, other):
20463
    return not (self == other)
20464
 
20465
class getVatPercentageForItem_result:
20466
  """
20467
  Attributes:
20468
   - success
7340 amit.gupta 20469
   - cex
6039 amit.gupta 20470
  """
20471
 
20472
  thrift_spec = (
20473
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 20474
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 20475
  )
20476
 
7340 amit.gupta 20477
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 20478
    self.success = success
7340 amit.gupta 20479
    self.cex = cex
6039 amit.gupta 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 == 0:
20491
        if ftype == TType.DOUBLE:
20492
          self.success = iprot.readDouble();
20493
        else:
20494
          iprot.skip(ftype)
7340 amit.gupta 20495
      elif fid == 1:
20496
        if ftype == TType.STRUCT:
20497
          self.cex = CatalogServiceException()
20498
          self.cex.read(iprot)
20499
        else:
20500
          iprot.skip(ftype)
6039 amit.gupta 20501
      else:
20502
        iprot.skip(ftype)
20503
      iprot.readFieldEnd()
20504
    iprot.readStructEnd()
20505
 
20506
  def write(self, oprot):
20507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20509
      return
20510
    oprot.writeStructBegin('getVatPercentageForItem_result')
20511
    if self.success is not None:
20512
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20513
      oprot.writeDouble(self.success)
20514
      oprot.writeFieldEnd()
7340 amit.gupta 20515
    if self.cex is not None:
20516
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20517
      self.cex.write(oprot)
20518
      oprot.writeFieldEnd()
6039 amit.gupta 20519
    oprot.writeFieldStop()
20520
    oprot.writeStructEnd()
20521
 
20522
  def validate(self):
20523
    return
20524
 
20525
 
20526
  def __repr__(self):
20527
    L = ['%s=%r' % (key, value)
20528
      for key, value in self.__dict__.iteritems()]
20529
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20530
 
20531
  def __eq__(self, other):
20532
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20533
 
20534
  def __ne__(self, other):
20535
    return not (self == other)
20536
 
20537
class getVatAmountForItem_args:
20538
  """
20539
  Attributes:
20540
   - itemId
20541
   - price
20542
  """
20543
 
20544
  thrift_spec = (
20545
    None, # 0
20546
    (1, TType.I64, 'itemId', None, None, ), # 1
20547
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20548
  )
20549
 
20550
  def __init__(self, itemId=None, price=None,):
20551
    self.itemId = itemId
20552
    self.price = price
20553
 
20554
  def read(self, iprot):
20555
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20556
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20557
      return
20558
    iprot.readStructBegin()
20559
    while True:
20560
      (fname, ftype, fid) = iprot.readFieldBegin()
20561
      if ftype == TType.STOP:
20562
        break
20563
      if fid == 1:
20564
        if ftype == TType.I64:
20565
          self.itemId = iprot.readI64();
20566
        else:
20567
          iprot.skip(ftype)
20568
      elif fid == 2:
20569
        if ftype == TType.DOUBLE:
20570
          self.price = iprot.readDouble();
20571
        else:
20572
          iprot.skip(ftype)
20573
      else:
20574
        iprot.skip(ftype)
20575
      iprot.readFieldEnd()
20576
    iprot.readStructEnd()
20577
 
20578
  def write(self, oprot):
20579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20581
      return
20582
    oprot.writeStructBegin('getVatAmountForItem_args')
20583
    if self.itemId is not None:
20584
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20585
      oprot.writeI64(self.itemId)
20586
      oprot.writeFieldEnd()
20587
    if self.price is not None:
20588
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20589
      oprot.writeDouble(self.price)
20590
      oprot.writeFieldEnd()
20591
    oprot.writeFieldStop()
20592
    oprot.writeStructEnd()
20593
 
20594
  def validate(self):
20595
    return
20596
 
20597
 
20598
  def __repr__(self):
20599
    L = ['%s=%r' % (key, value)
20600
      for key, value in self.__dict__.iteritems()]
20601
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20602
 
20603
  def __eq__(self, other):
20604
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20605
 
20606
  def __ne__(self, other):
20607
    return not (self == other)
20608
 
20609
class getVatAmountForItem_result:
20610
  """
20611
  Attributes:
20612
   - success
20613
  """
20614
 
20615
  thrift_spec = (
20616
    (0, TType.DOUBLE, 'success', None, None, ), # 0
20617
  )
20618
 
20619
  def __init__(self, success=None,):
20620
    self.success = success
20621
 
20622
  def read(self, iprot):
20623
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20624
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20625
      return
20626
    iprot.readStructBegin()
20627
    while True:
20628
      (fname, ftype, fid) = iprot.readFieldBegin()
20629
      if ftype == TType.STOP:
20630
        break
20631
      if fid == 0:
20632
        if ftype == TType.DOUBLE:
20633
          self.success = iprot.readDouble();
20634
        else:
20635
          iprot.skip(ftype)
20636
      else:
20637
        iprot.skip(ftype)
20638
      iprot.readFieldEnd()
20639
    iprot.readStructEnd()
20640
 
20641
  def write(self, oprot):
20642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20644
      return
20645
    oprot.writeStructBegin('getVatAmountForItem_result')
20646
    if self.success is not None:
20647
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20648
      oprot.writeDouble(self.success)
20649
      oprot.writeFieldEnd()
20650
    oprot.writeFieldStop()
20651
    oprot.writeStructEnd()
20652
 
20653
  def validate(self):
20654
    return
20655
 
20656
 
20657
  def __repr__(self):
20658
    L = ['%s=%r' % (key, value)
20659
      for key, value in self.__dict__.iteritems()]
20660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20661
 
20662
  def __eq__(self, other):
20663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20664
 
20665
  def __ne__(self, other):
20666
    return not (self == other)
6531 vikram.rag 20667
 
20668
class getAllIgnoredInventoryUpdateItemsList_args:
20669
  """
20670
  Attributes:
20671
   - offset
20672
   - limit
20673
  """
20674
 
20675
  thrift_spec = (
20676
    None, # 0
20677
    (1, TType.I32, 'offset', None, None, ), # 1
20678
    (2, TType.I32, 'limit', None, None, ), # 2
20679
  )
20680
 
20681
  def __init__(self, offset=None, limit=None,):
20682
    self.offset = offset
20683
    self.limit = limit
20684
 
20685
  def read(self, iprot):
20686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20688
      return
20689
    iprot.readStructBegin()
20690
    while True:
20691
      (fname, ftype, fid) = iprot.readFieldBegin()
20692
      if ftype == TType.STOP:
20693
        break
20694
      if fid == 1:
20695
        if ftype == TType.I32:
20696
          self.offset = iprot.readI32();
20697
        else:
20698
          iprot.skip(ftype)
20699
      elif fid == 2:
20700
        if ftype == TType.I32:
20701
          self.limit = iprot.readI32();
20702
        else:
20703
          iprot.skip(ftype)
20704
      else:
20705
        iprot.skip(ftype)
20706
      iprot.readFieldEnd()
20707
    iprot.readStructEnd()
20708
 
20709
  def write(self, oprot):
20710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20712
      return
20713
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
20714
    if self.offset is not None:
20715
      oprot.writeFieldBegin('offset', TType.I32, 1)
20716
      oprot.writeI32(self.offset)
20717
      oprot.writeFieldEnd()
20718
    if self.limit is not None:
20719
      oprot.writeFieldBegin('limit', TType.I32, 2)
20720
      oprot.writeI32(self.limit)
20721
      oprot.writeFieldEnd()
20722
    oprot.writeFieldStop()
20723
    oprot.writeStructEnd()
20724
 
20725
  def validate(self):
20726
    return
20727
 
20728
 
20729
  def __repr__(self):
20730
    L = ['%s=%r' % (key, value)
20731
      for key, value in self.__dict__.iteritems()]
20732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20733
 
20734
  def __eq__(self, other):
20735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20736
 
20737
  def __ne__(self, other):
20738
    return not (self == other)
20739
 
20740
class getAllIgnoredInventoryUpdateItemsList_result:
20741
  """
20742
  Attributes:
20743
   - success
20744
  """
20745
 
20746
  thrift_spec = (
20747
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20748
  )
20749
 
20750
  def __init__(self, success=None,):
20751
    self.success = success
20752
 
20753
  def read(self, iprot):
20754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20756
      return
20757
    iprot.readStructBegin()
20758
    while True:
20759
      (fname, ftype, fid) = iprot.readFieldBegin()
20760
      if ftype == TType.STOP:
20761
        break
20762
      if fid == 0:
20763
        if ftype == TType.LIST:
20764
          self.success = []
12567 amit.gupta 20765
          (_etype379, _size376) = iprot.readListBegin()
20766
          for _i380 in xrange(_size376):
20767
            _elem381 = Item()
20768
            _elem381.read(iprot)
20769
            self.success.append(_elem381)
6531 vikram.rag 20770
          iprot.readListEnd()
20771
        else:
20772
          iprot.skip(ftype)
20773
      else:
20774
        iprot.skip(ftype)
20775
      iprot.readFieldEnd()
20776
    iprot.readStructEnd()
20777
 
20778
  def write(self, oprot):
20779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20781
      return
20782
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
20783
    if self.success is not None:
20784
      oprot.writeFieldBegin('success', TType.LIST, 0)
20785
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20786
      for iter382 in self.success:
20787
        iter382.write(oprot)
6531 vikram.rag 20788
      oprot.writeListEnd()
20789
      oprot.writeFieldEnd()
20790
    oprot.writeFieldStop()
20791
    oprot.writeStructEnd()
20792
 
20793
  def validate(self):
20794
    return
20795
 
20796
 
20797
  def __repr__(self):
20798
    L = ['%s=%r' % (key, value)
20799
      for key, value in self.__dict__.iteritems()]
20800
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20801
 
20802
  def __eq__(self, other):
20803
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20804
 
20805
  def __ne__(self, other):
20806
    return not (self == other)
6805 anupam.sin 20807
 
6821 amar.kumar 20808
class getAllAliveItems_args:
20809
 
20810
  thrift_spec = (
20811
  )
20812
 
20813
  def read(self, iprot):
20814
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20815
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20816
      return
20817
    iprot.readStructBegin()
20818
    while True:
20819
      (fname, ftype, fid) = iprot.readFieldBegin()
20820
      if ftype == TType.STOP:
20821
        break
20822
      else:
20823
        iprot.skip(ftype)
20824
      iprot.readFieldEnd()
20825
    iprot.readStructEnd()
20826
 
20827
  def write(self, oprot):
20828
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20829
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20830
      return
20831
    oprot.writeStructBegin('getAllAliveItems_args')
20832
    oprot.writeFieldStop()
20833
    oprot.writeStructEnd()
20834
 
20835
  def validate(self):
20836
    return
20837
 
20838
 
20839
  def __repr__(self):
20840
    L = ['%s=%r' % (key, value)
20841
      for key, value in self.__dict__.iteritems()]
20842
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20843
 
20844
  def __eq__(self, other):
20845
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20846
 
20847
  def __ne__(self, other):
20848
    return not (self == other)
20849
 
20850
class getAllAliveItems_result:
20851
  """
20852
  Attributes:
20853
   - success
20854
  """
20855
 
20856
  thrift_spec = (
20857
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20858
  )
20859
 
20860
  def __init__(self, success=None,):
20861
    self.success = success
20862
 
20863
  def read(self, iprot):
20864
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20865
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20866
      return
20867
    iprot.readStructBegin()
20868
    while True:
20869
      (fname, ftype, fid) = iprot.readFieldBegin()
20870
      if ftype == TType.STOP:
20871
        break
20872
      if fid == 0:
20873
        if ftype == TType.LIST:
20874
          self.success = []
12567 amit.gupta 20875
          (_etype386, _size383) = iprot.readListBegin()
20876
          for _i387 in xrange(_size383):
20877
            _elem388 = Item()
20878
            _elem388.read(iprot)
20879
            self.success.append(_elem388)
6821 amar.kumar 20880
          iprot.readListEnd()
20881
        else:
20882
          iprot.skip(ftype)
20883
      else:
20884
        iprot.skip(ftype)
20885
      iprot.readFieldEnd()
20886
    iprot.readStructEnd()
20887
 
20888
  def write(self, oprot):
20889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20891
      return
20892
    oprot.writeStructBegin('getAllAliveItems_result')
20893
    if self.success is not None:
20894
      oprot.writeFieldBegin('success', TType.LIST, 0)
20895
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20896
      for iter389 in self.success:
20897
        iter389.write(oprot)
6821 amar.kumar 20898
      oprot.writeListEnd()
20899
      oprot.writeFieldEnd()
20900
    oprot.writeFieldStop()
20901
    oprot.writeStructEnd()
20902
 
20903
  def validate(self):
20904
    return
20905
 
20906
 
20907
  def __repr__(self):
20908
    L = ['%s=%r' % (key, value)
20909
      for key, value in self.__dict__.iteritems()]
20910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20911
 
20912
  def __eq__(self, other):
20913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20914
 
20915
  def __ne__(self, other):
20916
    return not (self == other)
20917
 
6805 anupam.sin 20918
class getInsuranceAmount_args:
20919
  """
20920
  Attributes:
20921
   - itemId
6921 anupam.sin 20922
   - price
6805 anupam.sin 20923
   - insurerId
20924
   - quantity
20925
  """
20926
 
20927
  thrift_spec = (
20928
    None, # 0
20929
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 20930
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20931
    (3, TType.I64, 'insurerId', None, None, ), # 3
20932
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 20933
  )
20934
 
6921 anupam.sin 20935
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 20936
    self.itemId = itemId
6921 anupam.sin 20937
    self.price = price
6805 anupam.sin 20938
    self.insurerId = insurerId
20939
    self.quantity = quantity
20940
 
20941
  def read(self, iprot):
20942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20944
      return
20945
    iprot.readStructBegin()
20946
    while True:
20947
      (fname, ftype, fid) = iprot.readFieldBegin()
20948
      if ftype == TType.STOP:
20949
        break
20950
      if fid == 1:
20951
        if ftype == TType.I64:
20952
          self.itemId = iprot.readI64();
20953
        else:
20954
          iprot.skip(ftype)
20955
      elif fid == 2:
6921 anupam.sin 20956
        if ftype == TType.DOUBLE:
20957
          self.price = iprot.readDouble();
20958
        else:
20959
          iprot.skip(ftype)
20960
      elif fid == 3:
6805 anupam.sin 20961
        if ftype == TType.I64:
20962
          self.insurerId = iprot.readI64();
20963
        else:
20964
          iprot.skip(ftype)
6921 anupam.sin 20965
      elif fid == 4:
6805 anupam.sin 20966
        if ftype == TType.I64:
20967
          self.quantity = iprot.readI64();
20968
        else:
20969
          iprot.skip(ftype)
20970
      else:
20971
        iprot.skip(ftype)
20972
      iprot.readFieldEnd()
20973
    iprot.readStructEnd()
20974
 
20975
  def write(self, oprot):
20976
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20977
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20978
      return
20979
    oprot.writeStructBegin('getInsuranceAmount_args')
20980
    if self.itemId is not None:
20981
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20982
      oprot.writeI64(self.itemId)
20983
      oprot.writeFieldEnd()
6921 anupam.sin 20984
    if self.price is not None:
20985
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20986
      oprot.writeDouble(self.price)
20987
      oprot.writeFieldEnd()
6805 anupam.sin 20988
    if self.insurerId is not None:
6921 anupam.sin 20989
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 20990
      oprot.writeI64(self.insurerId)
20991
      oprot.writeFieldEnd()
20992
    if self.quantity is not None:
6921 anupam.sin 20993
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 20994
      oprot.writeI64(self.quantity)
20995
      oprot.writeFieldEnd()
20996
    oprot.writeFieldStop()
20997
    oprot.writeStructEnd()
20998
 
20999
  def validate(self):
21000
    return
21001
 
21002
 
21003
  def __repr__(self):
21004
    L = ['%s=%r' % (key, value)
21005
      for key, value in self.__dict__.iteritems()]
21006
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21007
 
21008
  def __eq__(self, other):
21009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21010
 
21011
  def __ne__(self, other):
21012
    return not (self == other)
21013
 
21014
class getInsuranceAmount_result:
21015
  """
21016
  Attributes:
21017
   - success
21018
  """
21019
 
21020
  thrift_spec = (
21021
    (0, TType.I64, 'success', None, None, ), # 0
21022
  )
21023
 
21024
  def __init__(self, success=None,):
21025
    self.success = success
21026
 
21027
  def read(self, iprot):
21028
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21029
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21030
      return
21031
    iprot.readStructBegin()
21032
    while True:
21033
      (fname, ftype, fid) = iprot.readFieldBegin()
21034
      if ftype == TType.STOP:
21035
        break
21036
      if fid == 0:
21037
        if ftype == TType.I64:
21038
          self.success = iprot.readI64();
21039
        else:
21040
          iprot.skip(ftype)
21041
      else:
21042
        iprot.skip(ftype)
21043
      iprot.readFieldEnd()
21044
    iprot.readStructEnd()
21045
 
21046
  def write(self, oprot):
21047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21049
      return
21050
    oprot.writeStructBegin('getInsuranceAmount_result')
21051
    if self.success is not None:
21052
      oprot.writeFieldBegin('success', TType.I64, 0)
21053
      oprot.writeI64(self.success)
21054
      oprot.writeFieldEnd()
21055
    oprot.writeFieldStop()
21056
    oprot.writeStructEnd()
21057
 
21058
  def validate(self):
21059
    return
21060
 
21061
 
21062
  def __repr__(self):
21063
    L = ['%s=%r' % (key, value)
21064
      for key, value in self.__dict__.iteritems()]
21065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21066
 
21067
  def __eq__(self, other):
21068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21069
 
21070
  def __ne__(self, other):
21071
    return not (self == other)
21072
 
21073
class getInsurer_args:
21074
  """
21075
  Attributes:
21076
   - insurerId
21077
  """
21078
 
21079
  thrift_spec = (
21080
    None, # 0
21081
    (1, TType.I64, 'insurerId', None, None, ), # 1
21082
  )
21083
 
21084
  def __init__(self, insurerId=None,):
21085
    self.insurerId = insurerId
21086
 
21087
  def read(self, iprot):
21088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21090
      return
21091
    iprot.readStructBegin()
21092
    while True:
21093
      (fname, ftype, fid) = iprot.readFieldBegin()
21094
      if ftype == TType.STOP:
21095
        break
21096
      if fid == 1:
21097
        if ftype == TType.I64:
21098
          self.insurerId = iprot.readI64();
21099
        else:
21100
          iprot.skip(ftype)
21101
      else:
21102
        iprot.skip(ftype)
21103
      iprot.readFieldEnd()
21104
    iprot.readStructEnd()
21105
 
21106
  def write(self, oprot):
21107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21109
      return
21110
    oprot.writeStructBegin('getInsurer_args')
21111
    if self.insurerId is not None:
21112
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21113
      oprot.writeI64(self.insurerId)
21114
      oprot.writeFieldEnd()
21115
    oprot.writeFieldStop()
21116
    oprot.writeStructEnd()
21117
 
21118
  def validate(self):
21119
    return
21120
 
21121
 
21122
  def __repr__(self):
21123
    L = ['%s=%r' % (key, value)
21124
      for key, value in self.__dict__.iteritems()]
21125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21126
 
21127
  def __eq__(self, other):
21128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21129
 
21130
  def __ne__(self, other):
21131
    return not (self == other)
21132
 
21133
class getInsurer_result:
21134
  """
21135
  Attributes:
21136
   - success
21137
  """
21138
 
21139
  thrift_spec = (
21140
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
21141
  )
21142
 
21143
  def __init__(self, success=None,):
21144
    self.success = success
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 == 0:
21156
        if ftype == TType.STRUCT:
21157
          self.success = Insurer()
21158
          self.success.read(iprot)
21159
        else:
21160
          iprot.skip(ftype)
21161
      else:
21162
        iprot.skip(ftype)
21163
      iprot.readFieldEnd()
21164
    iprot.readStructEnd()
21165
 
21166
  def write(self, oprot):
21167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21169
      return
21170
    oprot.writeStructBegin('getInsurer_result')
21171
    if self.success is not None:
21172
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21173
      self.success.write(oprot)
21174
      oprot.writeFieldEnd()
21175
    oprot.writeFieldStop()
21176
    oprot.writeStructEnd()
21177
 
21178
  def validate(self):
21179
    return
21180
 
21181
 
21182
  def __repr__(self):
21183
    L = ['%s=%r' % (key, value)
21184
      for key, value in self.__dict__.iteritems()]
21185
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21186
 
21187
  def __eq__(self, other):
21188
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21189
 
21190
  def __ne__(self, other):
21191
    return not (self == other)
6838 vikram.rag 21192
 
21193
class getAllInsurers_args:
21194
 
21195
  thrift_spec = (
21196
  )
21197
 
21198
  def read(self, iprot):
21199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21201
      return
21202
    iprot.readStructBegin()
21203
    while True:
21204
      (fname, ftype, fid) = iprot.readFieldBegin()
21205
      if ftype == TType.STOP:
21206
        break
21207
      else:
21208
        iprot.skip(ftype)
21209
      iprot.readFieldEnd()
21210
    iprot.readStructEnd()
21211
 
21212
  def write(self, oprot):
21213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21215
      return
21216
    oprot.writeStructBegin('getAllInsurers_args')
21217
    oprot.writeFieldStop()
21218
    oprot.writeStructEnd()
21219
 
21220
  def validate(self):
21221
    return
21222
 
21223
 
21224
  def __repr__(self):
21225
    L = ['%s=%r' % (key, value)
21226
      for key, value in self.__dict__.iteritems()]
21227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21228
 
21229
  def __eq__(self, other):
21230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21231
 
21232
  def __ne__(self, other):
21233
    return not (self == other)
21234
 
21235
class getAllInsurers_result:
21236
  """
21237
  Attributes:
21238
   - success
21239
  """
21240
 
21241
  thrift_spec = (
21242
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
21243
  )
21244
 
21245
  def __init__(self, success=None,):
21246
    self.success = success
21247
 
21248
  def read(self, iprot):
21249
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21250
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21251
      return
21252
    iprot.readStructBegin()
21253
    while True:
21254
      (fname, ftype, fid) = iprot.readFieldBegin()
21255
      if ftype == TType.STOP:
21256
        break
21257
      if fid == 0:
21258
        if ftype == TType.LIST:
21259
          self.success = []
12567 amit.gupta 21260
          (_etype393, _size390) = iprot.readListBegin()
21261
          for _i394 in xrange(_size390):
21262
            _elem395 = Insurer()
21263
            _elem395.read(iprot)
21264
            self.success.append(_elem395)
6838 vikram.rag 21265
          iprot.readListEnd()
21266
        else:
21267
          iprot.skip(ftype)
21268
      else:
21269
        iprot.skip(ftype)
21270
      iprot.readFieldEnd()
21271
    iprot.readStructEnd()
21272
 
21273
  def write(self, oprot):
21274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21276
      return
21277
    oprot.writeStructBegin('getAllInsurers_result')
21278
    if self.success is not None:
21279
      oprot.writeFieldBegin('success', TType.LIST, 0)
21280
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 21281
      for iter396 in self.success:
21282
        iter396.write(oprot)
6838 vikram.rag 21283
      oprot.writeListEnd()
21284
      oprot.writeFieldEnd()
21285
    oprot.writeFieldStop()
21286
    oprot.writeStructEnd()
21287
 
21288
  def validate(self):
21289
    return
21290
 
21291
 
21292
  def __repr__(self):
21293
    L = ['%s=%r' % (key, value)
21294
      for key, value in self.__dict__.iteritems()]
21295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21296
 
21297
  def __eq__(self, other):
21298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21299
 
21300
  def __ne__(self, other):
21301
    return not (self == other)
6962 rajveer 21302
 
21303
class updateInsuranceDeclaredAmount_args:
21304
  """
21305
  Attributes:
21306
   - insurerId
21307
   - amount
21308
  """
21309
 
21310
  thrift_spec = (
21311
    None, # 0
21312
    (1, TType.I64, 'insurerId', None, None, ), # 1
21313
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
21314
  )
21315
 
21316
  def __init__(self, insurerId=None, amount=None,):
21317
    self.insurerId = insurerId
21318
    self.amount = amount
21319
 
21320
  def read(self, iprot):
21321
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21322
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21323
      return
21324
    iprot.readStructBegin()
21325
    while True:
21326
      (fname, ftype, fid) = iprot.readFieldBegin()
21327
      if ftype == TType.STOP:
21328
        break
21329
      if fid == 1:
21330
        if ftype == TType.I64:
21331
          self.insurerId = iprot.readI64();
21332
        else:
21333
          iprot.skip(ftype)
21334
      elif fid == 2:
21335
        if ftype == TType.DOUBLE:
21336
          self.amount = iprot.readDouble();
21337
        else:
21338
          iprot.skip(ftype)
21339
      else:
21340
        iprot.skip(ftype)
21341
      iprot.readFieldEnd()
21342
    iprot.readStructEnd()
21343
 
21344
  def write(self, oprot):
21345
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21346
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21347
      return
21348
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
21349
    if self.insurerId is not None:
21350
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21351
      oprot.writeI64(self.insurerId)
21352
      oprot.writeFieldEnd()
21353
    if self.amount is not None:
21354
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
21355
      oprot.writeDouble(self.amount)
21356
      oprot.writeFieldEnd()
21357
    oprot.writeFieldStop()
21358
    oprot.writeStructEnd()
21359
 
21360
  def validate(self):
21361
    return
21362
 
21363
 
21364
  def __repr__(self):
21365
    L = ['%s=%r' % (key, value)
21366
      for key, value in self.__dict__.iteritems()]
21367
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21368
 
21369
  def __eq__(self, other):
21370
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21371
 
21372
  def __ne__(self, other):
21373
    return not (self == other)
21374
 
21375
class updateInsuranceDeclaredAmount_result:
21376
 
21377
  thrift_spec = (
21378
  )
21379
 
21380
  def read(self, iprot):
21381
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21382
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21383
      return
21384
    iprot.readStructBegin()
21385
    while True:
21386
      (fname, ftype, fid) = iprot.readFieldBegin()
21387
      if ftype == TType.STOP:
21388
        break
21389
      else:
21390
        iprot.skip(ftype)
21391
      iprot.readFieldEnd()
21392
    iprot.readStructEnd()
21393
 
21394
  def write(self, oprot):
21395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21397
      return
21398
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
21399
    oprot.writeFieldStop()
21400
    oprot.writeStructEnd()
21401
 
21402
  def validate(self):
21403
    return
21404
 
21405
 
21406
  def __repr__(self):
21407
    L = ['%s=%r' % (key, value)
21408
      for key, value in self.__dict__.iteritems()]
21409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21410
 
21411
  def __eq__(self, other):
21412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21413
 
21414
  def __ne__(self, other):
21415
    return not (self == other)
7190 amar.kumar 21416
 
21417
class getFreebieForItem_args:
21418
  """
21419
  Attributes:
21420
   - itemId
21421
  """
21422
 
21423
  thrift_spec = (
21424
    None, # 0
21425
    (1, TType.I64, 'itemId', None, None, ), # 1
21426
  )
21427
 
21428
  def __init__(self, itemId=None,):
21429
    self.itemId = itemId
21430
 
21431
  def read(self, iprot):
21432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21434
      return
21435
    iprot.readStructBegin()
21436
    while True:
21437
      (fname, ftype, fid) = iprot.readFieldBegin()
21438
      if ftype == TType.STOP:
21439
        break
21440
      if fid == 1:
21441
        if ftype == TType.I64:
21442
          self.itemId = iprot.readI64();
21443
        else:
21444
          iprot.skip(ftype)
21445
      else:
21446
        iprot.skip(ftype)
21447
      iprot.readFieldEnd()
21448
    iprot.readStructEnd()
21449
 
21450
  def write(self, oprot):
21451
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21452
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21453
      return
21454
    oprot.writeStructBegin('getFreebieForItem_args')
21455
    if self.itemId is not None:
21456
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21457
      oprot.writeI64(self.itemId)
21458
      oprot.writeFieldEnd()
21459
    oprot.writeFieldStop()
21460
    oprot.writeStructEnd()
21461
 
21462
  def validate(self):
21463
    return
21464
 
21465
 
21466
  def __repr__(self):
21467
    L = ['%s=%r' % (key, value)
21468
      for key, value in self.__dict__.iteritems()]
21469
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21470
 
21471
  def __eq__(self, other):
21472
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21473
 
21474
  def __ne__(self, other):
21475
    return not (self == other)
21476
 
21477
class getFreebieForItem_result:
21478
  """
21479
  Attributes:
21480
   - success
21481
  """
21482
 
21483
  thrift_spec = (
21484
    (0, TType.I64, 'success', None, None, ), # 0
21485
  )
21486
 
21487
  def __init__(self, success=None,):
21488
    self.success = success
21489
 
21490
  def read(self, iprot):
21491
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21492
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21493
      return
21494
    iprot.readStructBegin()
21495
    while True:
21496
      (fname, ftype, fid) = iprot.readFieldBegin()
21497
      if ftype == TType.STOP:
21498
        break
21499
      if fid == 0:
21500
        if ftype == TType.I64:
21501
          self.success = iprot.readI64();
21502
        else:
21503
          iprot.skip(ftype)
21504
      else:
21505
        iprot.skip(ftype)
21506
      iprot.readFieldEnd()
21507
    iprot.readStructEnd()
21508
 
21509
  def write(self, oprot):
21510
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21511
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21512
      return
21513
    oprot.writeStructBegin('getFreebieForItem_result')
21514
    if self.success is not None:
21515
      oprot.writeFieldBegin('success', TType.I64, 0)
21516
      oprot.writeI64(self.success)
21517
      oprot.writeFieldEnd()
21518
    oprot.writeFieldStop()
21519
    oprot.writeStructEnd()
21520
 
21521
  def validate(self):
21522
    return
21523
 
21524
 
21525
  def __repr__(self):
21526
    L = ['%s=%r' % (key, value)
21527
      for key, value in self.__dict__.iteritems()]
21528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21529
 
21530
  def __eq__(self, other):
21531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21532
 
21533
  def __ne__(self, other):
21534
    return not (self == other)
21535
 
21536
class addOrUpdateFreebieForItem_args:
21537
  """
21538
  Attributes:
21539
   - freebieItem
21540
  """
21541
 
21542
  thrift_spec = (
21543
    None, # 0
21544
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
21545
  )
21546
 
21547
  def __init__(self, freebieItem=None,):
21548
    self.freebieItem = freebieItem
21549
 
21550
  def read(self, iprot):
21551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21553
      return
21554
    iprot.readStructBegin()
21555
    while True:
21556
      (fname, ftype, fid) = iprot.readFieldBegin()
21557
      if ftype == TType.STOP:
21558
        break
21559
      if fid == 1:
21560
        if ftype == TType.STRUCT:
21561
          self.freebieItem = FreebieItem()
21562
          self.freebieItem.read(iprot)
21563
        else:
21564
          iprot.skip(ftype)
21565
      else:
21566
        iprot.skip(ftype)
21567
      iprot.readFieldEnd()
21568
    iprot.readStructEnd()
21569
 
21570
  def write(self, oprot):
21571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21573
      return
21574
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
21575
    if self.freebieItem is not None:
21576
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
21577
      self.freebieItem.write(oprot)
21578
      oprot.writeFieldEnd()
21579
    oprot.writeFieldStop()
21580
    oprot.writeStructEnd()
21581
 
21582
  def validate(self):
21583
    return
21584
 
21585
 
21586
  def __repr__(self):
21587
    L = ['%s=%r' % (key, value)
21588
      for key, value in self.__dict__.iteritems()]
21589
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21590
 
21591
  def __eq__(self, other):
21592
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21593
 
21594
  def __ne__(self, other):
21595
    return not (self == other)
21596
 
21597
class addOrUpdateFreebieForItem_result:
21598
 
21599
  thrift_spec = (
21600
  )
21601
 
21602
  def read(self, iprot):
21603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21605
      return
21606
    iprot.readStructBegin()
21607
    while True:
21608
      (fname, ftype, fid) = iprot.readFieldBegin()
21609
      if ftype == TType.STOP:
21610
        break
21611
      else:
21612
        iprot.skip(ftype)
21613
      iprot.readFieldEnd()
21614
    iprot.readStructEnd()
21615
 
21616
  def write(self, oprot):
21617
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21618
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21619
      return
21620
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
21621
    oprot.writeFieldStop()
21622
    oprot.writeStructEnd()
21623
 
21624
  def validate(self):
21625
    return
21626
 
21627
 
21628
  def __repr__(self):
21629
    L = ['%s=%r' % (key, value)
21630
      for key, value in self.__dict__.iteritems()]
21631
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21632
 
21633
  def __eq__(self, other):
21634
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21635
 
21636
  def __ne__(self, other):
21637
    return not (self == other)
7256 rajveer 21638
 
7272 amit.gupta 21639
class addOrUpdateBrandInfo_args:
21640
  """
21641
  Attributes:
21642
   - brandInfo
21643
  """
21644
 
21645
  thrift_spec = (
21646
    None, # 0
21647
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
21648
  )
21649
 
21650
  def __init__(self, brandInfo=None,):
21651
    self.brandInfo = brandInfo
21652
 
21653
  def read(self, iprot):
21654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21656
      return
21657
    iprot.readStructBegin()
21658
    while True:
21659
      (fname, ftype, fid) = iprot.readFieldBegin()
21660
      if ftype == TType.STOP:
21661
        break
21662
      if fid == 1:
21663
        if ftype == TType.STRUCT:
21664
          self.brandInfo = BrandInfo()
21665
          self.brandInfo.read(iprot)
21666
        else:
21667
          iprot.skip(ftype)
21668
      else:
21669
        iprot.skip(ftype)
21670
      iprot.readFieldEnd()
21671
    iprot.readStructEnd()
21672
 
21673
  def write(self, oprot):
21674
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21675
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21676
      return
21677
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
21678
    if self.brandInfo is not None:
21679
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
21680
      self.brandInfo.write(oprot)
21681
      oprot.writeFieldEnd()
21682
    oprot.writeFieldStop()
21683
    oprot.writeStructEnd()
21684
 
21685
  def validate(self):
21686
    return
21687
 
21688
 
21689
  def __repr__(self):
21690
    L = ['%s=%r' % (key, value)
21691
      for key, value in self.__dict__.iteritems()]
21692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21693
 
21694
  def __eq__(self, other):
21695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21696
 
21697
  def __ne__(self, other):
21698
    return not (self == other)
21699
 
21700
class addOrUpdateBrandInfo_result:
21701
 
21702
  thrift_spec = (
21703
  )
21704
 
21705
  def read(self, iprot):
21706
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21707
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21708
      return
21709
    iprot.readStructBegin()
21710
    while True:
21711
      (fname, ftype, fid) = iprot.readFieldBegin()
21712
      if ftype == TType.STOP:
21713
        break
21714
      else:
21715
        iprot.skip(ftype)
21716
      iprot.readFieldEnd()
21717
    iprot.readStructEnd()
21718
 
21719
  def write(self, oprot):
21720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21722
      return
21723
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
21724
    oprot.writeFieldStop()
21725
    oprot.writeStructEnd()
21726
 
21727
  def validate(self):
21728
    return
21729
 
21730
 
21731
  def __repr__(self):
21732
    L = ['%s=%r' % (key, value)
21733
      for key, value in self.__dict__.iteritems()]
21734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21735
 
21736
  def __eq__(self, other):
21737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21738
 
21739
  def __ne__(self, other):
21740
    return not (self == other)
21741
 
21742
class getBrandInfo_args:
21743
 
21744
  thrift_spec = (
21745
  )
21746
 
21747
  def read(self, iprot):
21748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21750
      return
21751
    iprot.readStructBegin()
21752
    while True:
21753
      (fname, ftype, fid) = iprot.readFieldBegin()
21754
      if ftype == TType.STOP:
21755
        break
21756
      else:
21757
        iprot.skip(ftype)
21758
      iprot.readFieldEnd()
21759
    iprot.readStructEnd()
21760
 
21761
  def write(self, oprot):
21762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21764
      return
21765
    oprot.writeStructBegin('getBrandInfo_args')
21766
    oprot.writeFieldStop()
21767
    oprot.writeStructEnd()
21768
 
21769
  def validate(self):
21770
    return
21771
 
21772
 
21773
  def __repr__(self):
21774
    L = ['%s=%r' % (key, value)
21775
      for key, value in self.__dict__.iteritems()]
21776
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21777
 
21778
  def __eq__(self, other):
21779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21780
 
21781
  def __ne__(self, other):
21782
    return not (self == other)
21783
 
21784
class getBrandInfo_result:
21785
  """
21786
  Attributes:
21787
   - success
21788
  """
21789
 
21790
  thrift_spec = (
21791
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
21792
  )
21793
 
21794
  def __init__(self, success=None,):
21795
    self.success = success
21796
 
21797
  def read(self, iprot):
21798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21800
      return
21801
    iprot.readStructBegin()
21802
    while True:
21803
      (fname, ftype, fid) = iprot.readFieldBegin()
21804
      if ftype == TType.STOP:
21805
        break
21806
      if fid == 0:
21807
        if ftype == TType.MAP:
21808
          self.success = {}
12567 amit.gupta 21809
          (_ktype398, _vtype399, _size397 ) = iprot.readMapBegin() 
21810
          for _i401 in xrange(_size397):
21811
            _key402 = iprot.readString();
21812
            _val403 = BrandInfo()
21813
            _val403.read(iprot)
21814
            self.success[_key402] = _val403
7272 amit.gupta 21815
          iprot.readMapEnd()
21816
        else:
21817
          iprot.skip(ftype)
21818
      else:
21819
        iprot.skip(ftype)
21820
      iprot.readFieldEnd()
21821
    iprot.readStructEnd()
21822
 
21823
  def write(self, oprot):
21824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21826
      return
21827
    oprot.writeStructBegin('getBrandInfo_result')
21828
    if self.success is not None:
21829
      oprot.writeFieldBegin('success', TType.MAP, 0)
21830
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
12567 amit.gupta 21831
      for kiter404,viter405 in self.success.items():
21832
        oprot.writeString(kiter404)
21833
        viter405.write(oprot)
7272 amit.gupta 21834
      oprot.writeMapEnd()
21835
      oprot.writeFieldEnd()
21836
    oprot.writeFieldStop()
21837
    oprot.writeStructEnd()
21838
 
21839
  def validate(self):
21840
    return
21841
 
21842
 
21843
  def __repr__(self):
21844
    L = ['%s=%r' % (key, value)
21845
      for key, value in self.__dict__.iteritems()]
21846
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21847
 
21848
  def __eq__(self, other):
21849
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21850
 
21851
  def __ne__(self, other):
21852
    return not (self == other)
21853
 
7256 rajveer 21854
class getStorePricing_args:
21855
  """
21856
  Attributes:
21857
   - itemId
21858
  """
21859
 
21860
  thrift_spec = (
21861
    None, # 0
21862
    (1, TType.I64, 'itemId', None, None, ), # 1
21863
  )
21864
 
21865
  def __init__(self, itemId=None,):
21866
    self.itemId = itemId
21867
 
21868
  def read(self, iprot):
21869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21871
      return
21872
    iprot.readStructBegin()
21873
    while True:
21874
      (fname, ftype, fid) = iprot.readFieldBegin()
21875
      if ftype == TType.STOP:
21876
        break
21877
      if fid == 1:
21878
        if ftype == TType.I64:
21879
          self.itemId = iprot.readI64();
21880
        else:
21881
          iprot.skip(ftype)
21882
      else:
21883
        iprot.skip(ftype)
21884
      iprot.readFieldEnd()
21885
    iprot.readStructEnd()
21886
 
21887
  def write(self, oprot):
21888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21890
      return
21891
    oprot.writeStructBegin('getStorePricing_args')
21892
    if self.itemId is not None:
21893
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21894
      oprot.writeI64(self.itemId)
21895
      oprot.writeFieldEnd()
21896
    oprot.writeFieldStop()
21897
    oprot.writeStructEnd()
21898
 
21899
  def validate(self):
21900
    return
21901
 
21902
 
21903
  def __repr__(self):
21904
    L = ['%s=%r' % (key, value)
21905
      for key, value in self.__dict__.iteritems()]
21906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21907
 
21908
  def __eq__(self, other):
21909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21910
 
21911
  def __ne__(self, other):
21912
    return not (self == other)
21913
 
21914
class getStorePricing_result:
21915
  """
21916
  Attributes:
21917
   - success
21918
  """
21919
 
21920
  thrift_spec = (
21921
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
21922
  )
21923
 
21924
  def __init__(self, success=None,):
21925
    self.success = success
21926
 
21927
  def read(self, iprot):
21928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21930
      return
21931
    iprot.readStructBegin()
21932
    while True:
21933
      (fname, ftype, fid) = iprot.readFieldBegin()
21934
      if ftype == TType.STOP:
21935
        break
21936
      if fid == 0:
21937
        if ftype == TType.STRUCT:
21938
          self.success = StorePricing()
21939
          self.success.read(iprot)
21940
        else:
21941
          iprot.skip(ftype)
21942
      else:
21943
        iprot.skip(ftype)
21944
      iprot.readFieldEnd()
21945
    iprot.readStructEnd()
21946
 
21947
  def write(self, oprot):
21948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21950
      return
21951
    oprot.writeStructBegin('getStorePricing_result')
21952
    if self.success is not None:
21953
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21954
      self.success.write(oprot)
21955
      oprot.writeFieldEnd()
21956
    oprot.writeFieldStop()
21957
    oprot.writeStructEnd()
21958
 
21959
  def validate(self):
21960
    return
21961
 
21962
 
21963
  def __repr__(self):
21964
    L = ['%s=%r' % (key, value)
21965
      for key, value in self.__dict__.iteritems()]
21966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21967
 
21968
  def __eq__(self, other):
21969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21970
 
21971
  def __ne__(self, other):
21972
    return not (self == other)
7265 rajveer 21973
 
7306 rajveer 21974
class getStorePricings_args:
21975
  """
21976
  Attributes:
21977
   - itemIds
21978
  """
21979
 
21980
  thrift_spec = (
21981
    None, # 0
21982
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
21983
  )
21984
 
21985
  def __init__(self, itemIds=None,):
21986
    self.itemIds = itemIds
21987
 
21988
  def read(self, iprot):
21989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21991
      return
21992
    iprot.readStructBegin()
21993
    while True:
21994
      (fname, ftype, fid) = iprot.readFieldBegin()
21995
      if ftype == TType.STOP:
21996
        break
21997
      if fid == 1:
21998
        if ftype == TType.LIST:
21999
          self.itemIds = []
12567 amit.gupta 22000
          (_etype409, _size406) = iprot.readListBegin()
22001
          for _i410 in xrange(_size406):
22002
            _elem411 = iprot.readI64();
22003
            self.itemIds.append(_elem411)
7306 rajveer 22004
          iprot.readListEnd()
22005
        else:
22006
          iprot.skip(ftype)
22007
      else:
22008
        iprot.skip(ftype)
22009
      iprot.readFieldEnd()
22010
    iprot.readStructEnd()
22011
 
22012
  def write(self, oprot):
22013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22015
      return
22016
    oprot.writeStructBegin('getStorePricings_args')
22017
    if self.itemIds is not None:
22018
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
22019
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 22020
      for iter412 in self.itemIds:
22021
        oprot.writeI64(iter412)
7306 rajveer 22022
      oprot.writeListEnd()
22023
      oprot.writeFieldEnd()
22024
    oprot.writeFieldStop()
22025
    oprot.writeStructEnd()
22026
 
22027
  def validate(self):
22028
    return
22029
 
22030
 
22031
  def __repr__(self):
22032
    L = ['%s=%r' % (key, value)
22033
      for key, value in self.__dict__.iteritems()]
22034
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22035
 
22036
  def __eq__(self, other):
22037
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22038
 
22039
  def __ne__(self, other):
22040
    return not (self == other)
22041
 
22042
class getStorePricings_result:
22043
  """
22044
  Attributes:
22045
   - success
22046
  """
22047
 
22048
  thrift_spec = (
22049
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
22050
  )
22051
 
22052
  def __init__(self, success=None,):
22053
    self.success = success
22054
 
22055
  def read(self, iprot):
22056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22058
      return
22059
    iprot.readStructBegin()
22060
    while True:
22061
      (fname, ftype, fid) = iprot.readFieldBegin()
22062
      if ftype == TType.STOP:
22063
        break
22064
      if fid == 0:
22065
        if ftype == TType.LIST:
22066
          self.success = []
12567 amit.gupta 22067
          (_etype416, _size413) = iprot.readListBegin()
22068
          for _i417 in xrange(_size413):
22069
            _elem418 = StorePricing()
22070
            _elem418.read(iprot)
22071
            self.success.append(_elem418)
7306 rajveer 22072
          iprot.readListEnd()
22073
        else:
22074
          iprot.skip(ftype)
22075
      else:
22076
        iprot.skip(ftype)
22077
      iprot.readFieldEnd()
22078
    iprot.readStructEnd()
22079
 
22080
  def write(self, oprot):
22081
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22082
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22083
      return
22084
    oprot.writeStructBegin('getStorePricings_result')
22085
    if self.success is not None:
22086
      oprot.writeFieldBegin('success', TType.LIST, 0)
22087
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22088
      for iter419 in self.success:
22089
        iter419.write(oprot)
7306 rajveer 22090
      oprot.writeListEnd()
22091
      oprot.writeFieldEnd()
22092
    oprot.writeFieldStop()
22093
    oprot.writeStructEnd()
22094
 
22095
  def validate(self):
22096
    return
22097
 
22098
 
22099
  def __repr__(self):
22100
    L = ['%s=%r' % (key, value)
22101
      for key, value in self.__dict__.iteritems()]
22102
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22103
 
22104
  def __eq__(self, other):
22105
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22106
 
22107
  def __ne__(self, other):
22108
    return not (self == other)
22109
 
7265 rajveer 22110
class updateStorePricing_args:
22111
  """
22112
  Attributes:
22113
   - sp
7382 rajveer 22114
   - allColors
7265 rajveer 22115
  """
22116
 
22117
  thrift_spec = (
22118
    None, # 0
22119
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 22120
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 22121
  )
22122
 
7382 rajveer 22123
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 22124
    self.sp = sp
7382 rajveer 22125
    self.allColors = allColors
7265 rajveer 22126
 
22127
  def read(self, iprot):
22128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22130
      return
22131
    iprot.readStructBegin()
22132
    while True:
22133
      (fname, ftype, fid) = iprot.readFieldBegin()
22134
      if ftype == TType.STOP:
22135
        break
22136
      if fid == 1:
22137
        if ftype == TType.STRUCT:
22138
          self.sp = StorePricing()
22139
          self.sp.read(iprot)
22140
        else:
22141
          iprot.skip(ftype)
7382 rajveer 22142
      elif fid == 2:
22143
        if ftype == TType.BOOL:
22144
          self.allColors = iprot.readBool();
22145
        else:
22146
          iprot.skip(ftype)
7265 rajveer 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('updateStorePricing_args')
22157
    if self.sp is not None:
22158
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
22159
      self.sp.write(oprot)
22160
      oprot.writeFieldEnd()
7382 rajveer 22161
    if self.allColors is not None:
22162
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
22163
      oprot.writeBool(self.allColors)
22164
      oprot.writeFieldEnd()
7265 rajveer 22165
    oprot.writeFieldStop()
22166
    oprot.writeStructEnd()
22167
 
22168
  def validate(self):
22169
    return
22170
 
22171
 
22172
  def __repr__(self):
22173
    L = ['%s=%r' % (key, value)
22174
      for key, value in self.__dict__.iteritems()]
22175
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22176
 
22177
  def __eq__(self, other):
22178
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22179
 
22180
  def __ne__(self, other):
22181
    return not (self == other)
22182
 
22183
class updateStorePricing_result:
22184
 
22185
  thrift_spec = (
22186
  )
22187
 
22188
  def read(self, iprot):
22189
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22190
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22191
      return
22192
    iprot.readStructBegin()
22193
    while True:
22194
      (fname, ftype, fid) = iprot.readFieldBegin()
22195
      if ftype == TType.STOP:
22196
        break
22197
      else:
22198
        iprot.skip(ftype)
22199
      iprot.readFieldEnd()
22200
    iprot.readStructEnd()
22201
 
22202
  def write(self, oprot):
22203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22205
      return
22206
    oprot.writeStructBegin('updateStorePricing_result')
22207
    oprot.writeFieldStop()
22208
    oprot.writeStructEnd()
22209
 
22210
  def validate(self):
22211
    return
22212
 
22213
 
22214
  def __repr__(self):
22215
    L = ['%s=%r' % (key, value)
22216
      for key, value in self.__dict__.iteritems()]
22217
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22218
 
22219
  def __eq__(self, other):
22220
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22221
 
22222
  def __ne__(self, other):
22223
    return not (self == other)
7281 kshitij.so 22224
 
22225
class getAllAmazonListedItems_args:
22226
 
22227
  thrift_spec = (
22228
  )
22229
 
22230
  def read(self, iprot):
22231
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22232
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22233
      return
22234
    iprot.readStructBegin()
22235
    while True:
22236
      (fname, ftype, fid) = iprot.readFieldBegin()
22237
      if ftype == TType.STOP:
22238
        break
22239
      else:
22240
        iprot.skip(ftype)
22241
      iprot.readFieldEnd()
22242
    iprot.readStructEnd()
22243
 
22244
  def write(self, oprot):
22245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22247
      return
22248
    oprot.writeStructBegin('getAllAmazonListedItems_args')
22249
    oprot.writeFieldStop()
22250
    oprot.writeStructEnd()
22251
 
22252
  def validate(self):
22253
    return
22254
 
22255
 
22256
  def __repr__(self):
22257
    L = ['%s=%r' % (key, value)
22258
      for key, value in self.__dict__.iteritems()]
22259
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22260
 
22261
  def __eq__(self, other):
22262
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22263
 
22264
  def __ne__(self, other):
22265
    return not (self == other)
22266
 
22267
class getAllAmazonListedItems_result:
22268
  """
22269
  Attributes:
22270
   - success
22271
  """
22272
 
22273
  thrift_spec = (
22274
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22275
  )
22276
 
22277
  def __init__(self, success=None,):
22278
    self.success = success
22279
 
22280
  def read(self, iprot):
22281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22283
      return
22284
    iprot.readStructBegin()
22285
    while True:
22286
      (fname, ftype, fid) = iprot.readFieldBegin()
22287
      if ftype == TType.STOP:
22288
        break
22289
      if fid == 0:
22290
        if ftype == TType.LIST:
22291
          self.success = []
12567 amit.gupta 22292
          (_etype423, _size420) = iprot.readListBegin()
22293
          for _i424 in xrange(_size420):
22294
            _elem425 = Amazonlisted()
22295
            _elem425.read(iprot)
22296
            self.success.append(_elem425)
7281 kshitij.so 22297
          iprot.readListEnd()
22298
        else:
22299
          iprot.skip(ftype)
22300
      else:
22301
        iprot.skip(ftype)
22302
      iprot.readFieldEnd()
22303
    iprot.readStructEnd()
22304
 
22305
  def write(self, oprot):
22306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22308
      return
22309
    oprot.writeStructBegin('getAllAmazonListedItems_result')
22310
    if self.success is not None:
22311
      oprot.writeFieldBegin('success', TType.LIST, 0)
22312
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22313
      for iter426 in self.success:
22314
        iter426.write(oprot)
7281 kshitij.so 22315
      oprot.writeListEnd()
22316
      oprot.writeFieldEnd()
22317
    oprot.writeFieldStop()
22318
    oprot.writeStructEnd()
22319
 
22320
  def validate(self):
22321
    return
22322
 
22323
 
22324
  def __repr__(self):
22325
    L = ['%s=%r' % (key, value)
22326
      for key, value in self.__dict__.iteritems()]
22327
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22328
 
22329
  def __eq__(self, other):
22330
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22331
 
22332
  def __ne__(self, other):
22333
    return not (self == other)
22334
 
8619 kshitij.so 22335
class searchAmazonItems_args:
22336
  """
22337
  Attributes:
22338
   - searchTerm
22339
   - offset
22340
   - limit
22341
  """
22342
 
22343
  thrift_spec = (
22344
    None, # 0
22345
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22346
    (2, TType.I64, 'offset', None, None, ), # 2
22347
    (3, TType.I64, 'limit', None, None, ), # 3
22348
  )
22349
 
22350
  def __init__(self, searchTerm=None, offset=None, limit=None,):
22351
    self.searchTerm = searchTerm
22352
    self.offset = offset
22353
    self.limit = limit
22354
 
22355
  def read(self, iprot):
22356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22358
      return
22359
    iprot.readStructBegin()
22360
    while True:
22361
      (fname, ftype, fid) = iprot.readFieldBegin()
22362
      if ftype == TType.STOP:
22363
        break
22364
      if fid == 1:
22365
        if ftype == TType.LIST:
22366
          self.searchTerm = []
12567 amit.gupta 22367
          (_etype430, _size427) = iprot.readListBegin()
22368
          for _i431 in xrange(_size427):
22369
            _elem432 = iprot.readString();
22370
            self.searchTerm.append(_elem432)
8619 kshitij.so 22371
          iprot.readListEnd()
22372
        else:
22373
          iprot.skip(ftype)
22374
      elif fid == 2:
22375
        if ftype == TType.I64:
22376
          self.offset = iprot.readI64();
22377
        else:
22378
          iprot.skip(ftype)
22379
      elif fid == 3:
22380
        if ftype == TType.I64:
22381
          self.limit = iprot.readI64();
22382
        else:
22383
          iprot.skip(ftype)
22384
      else:
22385
        iprot.skip(ftype)
22386
      iprot.readFieldEnd()
22387
    iprot.readStructEnd()
22388
 
22389
  def write(self, oprot):
22390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22392
      return
22393
    oprot.writeStructBegin('searchAmazonItems_args')
22394
    if self.searchTerm is not None:
22395
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22396
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22397
      for iter433 in self.searchTerm:
22398
        oprot.writeString(iter433)
8619 kshitij.so 22399
      oprot.writeListEnd()
22400
      oprot.writeFieldEnd()
22401
    if self.offset is not None:
22402
      oprot.writeFieldBegin('offset', TType.I64, 2)
22403
      oprot.writeI64(self.offset)
22404
      oprot.writeFieldEnd()
22405
    if self.limit is not None:
22406
      oprot.writeFieldBegin('limit', TType.I64, 3)
22407
      oprot.writeI64(self.limit)
22408
      oprot.writeFieldEnd()
22409
    oprot.writeFieldStop()
22410
    oprot.writeStructEnd()
22411
 
22412
  def validate(self):
22413
    return
22414
 
22415
 
22416
  def __repr__(self):
22417
    L = ['%s=%r' % (key, value)
22418
      for key, value in self.__dict__.iteritems()]
22419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22420
 
22421
  def __eq__(self, other):
22422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22423
 
22424
  def __ne__(self, other):
22425
    return not (self == other)
22426
 
22427
class searchAmazonItems_result:
22428
  """
22429
  Attributes:
22430
   - success
22431
  """
22432
 
22433
  thrift_spec = (
22434
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22435
  )
22436
 
22437
  def __init__(self, success=None,):
22438
    self.success = success
22439
 
22440
  def read(self, iprot):
22441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22443
      return
22444
    iprot.readStructBegin()
22445
    while True:
22446
      (fname, ftype, fid) = iprot.readFieldBegin()
22447
      if ftype == TType.STOP:
22448
        break
22449
      if fid == 0:
22450
        if ftype == TType.LIST:
22451
          self.success = []
12567 amit.gupta 22452
          (_etype437, _size434) = iprot.readListBegin()
22453
          for _i438 in xrange(_size434):
22454
            _elem439 = Amazonlisted()
22455
            _elem439.read(iprot)
22456
            self.success.append(_elem439)
8619 kshitij.so 22457
          iprot.readListEnd()
22458
        else:
22459
          iprot.skip(ftype)
22460
      else:
22461
        iprot.skip(ftype)
22462
      iprot.readFieldEnd()
22463
    iprot.readStructEnd()
22464
 
22465
  def write(self, oprot):
22466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22468
      return
22469
    oprot.writeStructBegin('searchAmazonItems_result')
22470
    if self.success is not None:
22471
      oprot.writeFieldBegin('success', TType.LIST, 0)
22472
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22473
      for iter440 in self.success:
22474
        iter440.write(oprot)
8619 kshitij.so 22475
      oprot.writeListEnd()
22476
      oprot.writeFieldEnd()
22477
    oprot.writeFieldStop()
22478
    oprot.writeStructEnd()
22479
 
22480
  def validate(self):
22481
    return
22482
 
22483
 
22484
  def __repr__(self):
22485
    L = ['%s=%r' % (key, value)
22486
      for key, value in self.__dict__.iteritems()]
22487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22488
 
22489
  def __eq__(self, other):
22490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22491
 
22492
  def __ne__(self, other):
22493
    return not (self == other)
22494
 
22495
class getAmazonSearchResultCount_args:
22496
  """
22497
  Attributes:
22498
   - searchTerm
22499
  """
22500
 
22501
  thrift_spec = (
22502
    None, # 0
22503
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22504
  )
22505
 
22506
  def __init__(self, searchTerm=None,):
22507
    self.searchTerm = searchTerm
22508
 
22509
  def read(self, iprot):
22510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22512
      return
22513
    iprot.readStructBegin()
22514
    while True:
22515
      (fname, ftype, fid) = iprot.readFieldBegin()
22516
      if ftype == TType.STOP:
22517
        break
22518
      if fid == 1:
22519
        if ftype == TType.LIST:
22520
          self.searchTerm = []
12567 amit.gupta 22521
          (_etype444, _size441) = iprot.readListBegin()
22522
          for _i445 in xrange(_size441):
22523
            _elem446 = iprot.readString();
22524
            self.searchTerm.append(_elem446)
8619 kshitij.so 22525
          iprot.readListEnd()
22526
        else:
22527
          iprot.skip(ftype)
22528
      else:
22529
        iprot.skip(ftype)
22530
      iprot.readFieldEnd()
22531
    iprot.readStructEnd()
22532
 
22533
  def write(self, oprot):
22534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22536
      return
22537
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
22538
    if self.searchTerm is not None:
22539
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22540
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22541
      for iter447 in self.searchTerm:
22542
        oprot.writeString(iter447)
8619 kshitij.so 22543
      oprot.writeListEnd()
22544
      oprot.writeFieldEnd()
22545
    oprot.writeFieldStop()
22546
    oprot.writeStructEnd()
22547
 
22548
  def validate(self):
22549
    return
22550
 
22551
 
22552
  def __repr__(self):
22553
    L = ['%s=%r' % (key, value)
22554
      for key, value in self.__dict__.iteritems()]
22555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22556
 
22557
  def __eq__(self, other):
22558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22559
 
22560
  def __ne__(self, other):
22561
    return not (self == other)
22562
 
22563
class getAmazonSearchResultCount_result:
22564
  """
22565
  Attributes:
22566
   - success
22567
  """
22568
 
22569
  thrift_spec = (
22570
    (0, TType.I64, 'success', None, None, ), # 0
22571
  )
22572
 
22573
  def __init__(self, success=None,):
22574
    self.success = success
22575
 
22576
  def read(self, iprot):
22577
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22578
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22579
      return
22580
    iprot.readStructBegin()
22581
    while True:
22582
      (fname, ftype, fid) = iprot.readFieldBegin()
22583
      if ftype == TType.STOP:
22584
        break
22585
      if fid == 0:
22586
        if ftype == TType.I64:
22587
          self.success = iprot.readI64();
22588
        else:
22589
          iprot.skip(ftype)
22590
      else:
22591
        iprot.skip(ftype)
22592
      iprot.readFieldEnd()
22593
    iprot.readStructEnd()
22594
 
22595
  def write(self, oprot):
22596
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22597
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22598
      return
22599
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
22600
    if self.success is not None:
22601
      oprot.writeFieldBegin('success', TType.I64, 0)
22602
      oprot.writeI64(self.success)
22603
      oprot.writeFieldEnd()
22604
    oprot.writeFieldStop()
22605
    oprot.writeStructEnd()
22606
 
22607
  def validate(self):
22608
    return
22609
 
22610
 
22611
  def __repr__(self):
22612
    L = ['%s=%r' % (key, value)
22613
      for key, value in self.__dict__.iteritems()]
22614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22615
 
22616
  def __eq__(self, other):
22617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22618
 
22619
  def __ne__(self, other):
22620
    return not (self == other)
22621
 
22622
class getCountForAmazonlistedItems_args:
22623
 
22624
  thrift_spec = (
22625
  )
22626
 
22627
  def read(self, iprot):
22628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22630
      return
22631
    iprot.readStructBegin()
22632
    while True:
22633
      (fname, ftype, fid) = iprot.readFieldBegin()
22634
      if ftype == TType.STOP:
22635
        break
22636
      else:
22637
        iprot.skip(ftype)
22638
      iprot.readFieldEnd()
22639
    iprot.readStructEnd()
22640
 
22641
  def write(self, oprot):
22642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22644
      return
22645
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
22646
    oprot.writeFieldStop()
22647
    oprot.writeStructEnd()
22648
 
22649
  def validate(self):
22650
    return
22651
 
22652
 
22653
  def __repr__(self):
22654
    L = ['%s=%r' % (key, value)
22655
      for key, value in self.__dict__.iteritems()]
22656
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22657
 
22658
  def __eq__(self, other):
22659
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22660
 
22661
  def __ne__(self, other):
22662
    return not (self == other)
22663
 
22664
class getCountForAmazonlistedItems_result:
22665
  """
22666
  Attributes:
22667
   - success
22668
  """
22669
 
22670
  thrift_spec = (
22671
    (0, TType.I64, 'success', None, None, ), # 0
22672
  )
22673
 
22674
  def __init__(self, success=None,):
22675
    self.success = success
22676
 
22677
  def read(self, iprot):
22678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22680
      return
22681
    iprot.readStructBegin()
22682
    while True:
22683
      (fname, ftype, fid) = iprot.readFieldBegin()
22684
      if ftype == TType.STOP:
22685
        break
22686
      if fid == 0:
22687
        if ftype == TType.I64:
22688
          self.success = iprot.readI64();
22689
        else:
22690
          iprot.skip(ftype)
22691
      else:
22692
        iprot.skip(ftype)
22693
      iprot.readFieldEnd()
22694
    iprot.readStructEnd()
22695
 
22696
  def write(self, oprot):
22697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22699
      return
22700
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
22701
    if self.success is not None:
22702
      oprot.writeFieldBegin('success', TType.I64, 0)
22703
      oprot.writeI64(self.success)
22704
      oprot.writeFieldEnd()
22705
    oprot.writeFieldStop()
22706
    oprot.writeStructEnd()
22707
 
22708
  def validate(self):
22709
    return
22710
 
22711
 
22712
  def __repr__(self):
22713
    L = ['%s=%r' % (key, value)
22714
      for key, value in self.__dict__.iteritems()]
22715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22716
 
22717
  def __eq__(self, other):
22718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22719
 
22720
  def __ne__(self, other):
22721
    return not (self == other)
22722
 
7281 kshitij.so 22723
class getAmazonItemDetails_args:
22724
  """
22725
  Attributes:
22726
   - itemId
22727
  """
22728
 
22729
  thrift_spec = (
22730
    None, # 0
22731
    (1, TType.I64, 'itemId', None, None, ), # 1
22732
  )
22733
 
22734
  def __init__(self, itemId=None,):
22735
    self.itemId = itemId
22736
 
22737
  def read(self, iprot):
22738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22740
      return
22741
    iprot.readStructBegin()
22742
    while True:
22743
      (fname, ftype, fid) = iprot.readFieldBegin()
22744
      if ftype == TType.STOP:
22745
        break
22746
      if fid == 1:
22747
        if ftype == TType.I64:
22748
          self.itemId = iprot.readI64();
22749
        else:
22750
          iprot.skip(ftype)
22751
      else:
22752
        iprot.skip(ftype)
22753
      iprot.readFieldEnd()
22754
    iprot.readStructEnd()
22755
 
22756
  def write(self, oprot):
22757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22759
      return
22760
    oprot.writeStructBegin('getAmazonItemDetails_args')
22761
    if self.itemId is not None:
22762
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22763
      oprot.writeI64(self.itemId)
22764
      oprot.writeFieldEnd()
22765
    oprot.writeFieldStop()
22766
    oprot.writeStructEnd()
22767
 
22768
  def validate(self):
22769
    return
22770
 
22771
 
22772
  def __repr__(self):
22773
    L = ['%s=%r' % (key, value)
22774
      for key, value in self.__dict__.iteritems()]
22775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22776
 
22777
  def __eq__(self, other):
22778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22779
 
22780
  def __ne__(self, other):
22781
    return not (self == other)
22782
 
22783
class getAmazonItemDetails_result:
22784
  """
22785
  Attributes:
22786
   - success
22787
  """
22788
 
22789
  thrift_spec = (
22790
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
22791
  )
22792
 
22793
  def __init__(self, success=None,):
22794
    self.success = success
22795
 
22796
  def read(self, iprot):
22797
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22798
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22799
      return
22800
    iprot.readStructBegin()
22801
    while True:
22802
      (fname, ftype, fid) = iprot.readFieldBegin()
22803
      if ftype == TType.STOP:
22804
        break
22805
      if fid == 0:
22806
        if ftype == TType.STRUCT:
22807
          self.success = Amazonlisted()
22808
          self.success.read(iprot)
22809
        else:
22810
          iprot.skip(ftype)
22811
      else:
22812
        iprot.skip(ftype)
22813
      iprot.readFieldEnd()
22814
    iprot.readStructEnd()
22815
 
22816
  def write(self, oprot):
22817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22819
      return
22820
    oprot.writeStructBegin('getAmazonItemDetails_result')
22821
    if self.success is not None:
22822
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22823
      self.success.write(oprot)
22824
      oprot.writeFieldEnd()
22825
    oprot.writeFieldStop()
22826
    oprot.writeStructEnd()
22827
 
22828
  def validate(self):
22829
    return
22830
 
22831
 
22832
  def __repr__(self):
22833
    L = ['%s=%r' % (key, value)
22834
      for key, value in self.__dict__.iteritems()]
22835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22836
 
22837
  def __eq__(self, other):
22838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22839
 
22840
  def __ne__(self, other):
22841
    return not (self == other)
22842
 
22843
class updateAmazonItemDetails_args:
22844
  """
22845
  Attributes:
8168 kshitij.so 22846
   - amazonlisted
7281 kshitij.so 22847
  """
22848
 
22849
  thrift_spec = (
22850
    None, # 0
8168 kshitij.so 22851
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 22852
  )
22853
 
8168 kshitij.so 22854
  def __init__(self, amazonlisted=None,):
22855
    self.amazonlisted = amazonlisted
7281 kshitij.so 22856
 
22857
  def read(self, iprot):
22858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22860
      return
22861
    iprot.readStructBegin()
22862
    while True:
22863
      (fname, ftype, fid) = iprot.readFieldBegin()
22864
      if ftype == TType.STOP:
22865
        break
22866
      if fid == 1:
8168 kshitij.so 22867
        if ftype == TType.STRUCT:
22868
          self.amazonlisted = Amazonlisted()
22869
          self.amazonlisted.read(iprot)
7281 kshitij.so 22870
        else:
22871
          iprot.skip(ftype)
22872
      else:
22873
        iprot.skip(ftype)
22874
      iprot.readFieldEnd()
22875
    iprot.readStructEnd()
22876
 
22877
  def write(self, oprot):
22878
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22879
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22880
      return
22881
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 22882
    if self.amazonlisted is not None:
22883
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22884
      self.amazonlisted.write(oprot)
7281 kshitij.so 22885
      oprot.writeFieldEnd()
22886
    oprot.writeFieldStop()
22887
    oprot.writeStructEnd()
22888
 
22889
  def validate(self):
22890
    return
22891
 
22892
 
22893
  def __repr__(self):
22894
    L = ['%s=%r' % (key, value)
22895
      for key, value in self.__dict__.iteritems()]
22896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22897
 
22898
  def __eq__(self, other):
22899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22900
 
22901
  def __ne__(self, other):
22902
    return not (self == other)
22903
 
22904
class updateAmazonItemDetails_result:
22905
 
22906
  thrift_spec = (
22907
  )
22908
 
22909
  def read(self, iprot):
22910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22912
      return
22913
    iprot.readStructBegin()
22914
    while True:
22915
      (fname, ftype, fid) = iprot.readFieldBegin()
22916
      if ftype == TType.STOP:
22917
        break
22918
      else:
22919
        iprot.skip(ftype)
22920
      iprot.readFieldEnd()
22921
    iprot.readStructEnd()
22922
 
22923
  def write(self, oprot):
22924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22926
      return
22927
    oprot.writeStructBegin('updateAmazonItemDetails_result')
22928
    oprot.writeFieldStop()
22929
    oprot.writeStructEnd()
22930
 
22931
  def validate(self):
22932
    return
22933
 
22934
 
22935
  def __repr__(self):
22936
    L = ['%s=%r' % (key, value)
22937
      for key, value in self.__dict__.iteritems()]
22938
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22939
 
22940
  def __eq__(self, other):
22941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22942
 
22943
  def __ne__(self, other):
22944
    return not (self == other)
22945
 
22946
class addAmazonItem_args:
22947
  """
22948
  Attributes:
22949
   - amazonlisted
22950
  """
22951
 
22952
  thrift_spec = (
22953
    None, # 0
22954
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
22955
  )
22956
 
22957
  def __init__(self, amazonlisted=None,):
22958
    self.amazonlisted = amazonlisted
22959
 
22960
  def read(self, iprot):
22961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22963
      return
22964
    iprot.readStructBegin()
22965
    while True:
22966
      (fname, ftype, fid) = iprot.readFieldBegin()
22967
      if ftype == TType.STOP:
22968
        break
22969
      if fid == 1:
22970
        if ftype == TType.STRUCT:
22971
          self.amazonlisted = Amazonlisted()
22972
          self.amazonlisted.read(iprot)
22973
        else:
22974
          iprot.skip(ftype)
22975
      else:
22976
        iprot.skip(ftype)
22977
      iprot.readFieldEnd()
22978
    iprot.readStructEnd()
22979
 
22980
  def write(self, oprot):
22981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22983
      return
22984
    oprot.writeStructBegin('addAmazonItem_args')
22985
    if self.amazonlisted is not None:
22986
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22987
      self.amazonlisted.write(oprot)
22988
      oprot.writeFieldEnd()
22989
    oprot.writeFieldStop()
22990
    oprot.writeStructEnd()
22991
 
22992
  def validate(self):
22993
    return
22994
 
22995
 
22996
  def __repr__(self):
22997
    L = ['%s=%r' % (key, value)
22998
      for key, value in self.__dict__.iteritems()]
22999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23000
 
23001
  def __eq__(self, other):
23002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23003
 
23004
  def __ne__(self, other):
23005
    return not (self == other)
23006
 
23007
class addAmazonItem_result:
23008
 
23009
  thrift_spec = (
23010
  )
23011
 
23012
  def read(self, iprot):
23013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23015
      return
23016
    iprot.readStructBegin()
23017
    while True:
23018
      (fname, ftype, fid) = iprot.readFieldBegin()
23019
      if ftype == TType.STOP:
23020
        break
23021
      else:
23022
        iprot.skip(ftype)
23023
      iprot.readFieldEnd()
23024
    iprot.readStructEnd()
23025
 
23026
  def write(self, oprot):
23027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23029
      return
23030
    oprot.writeStructBegin('addAmazonItem_result')
23031
    oprot.writeFieldStop()
23032
    oprot.writeStructEnd()
23033
 
23034
  def validate(self):
23035
    return
23036
 
23037
 
23038
  def __repr__(self):
23039
    L = ['%s=%r' % (key, value)
23040
      for key, value in self.__dict__.iteritems()]
23041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23042
 
23043
  def __eq__(self, other):
23044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23045
 
23046
  def __ne__(self, other):
23047
    return not (self == other)
7291 vikram.rag 23048
 
23049
class getAsinItems_args:
23050
 
23051
  thrift_spec = (
23052
  )
23053
 
23054
  def read(self, iprot):
23055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23057
      return
23058
    iprot.readStructBegin()
23059
    while True:
23060
      (fname, ftype, fid) = iprot.readFieldBegin()
23061
      if ftype == TType.STOP:
23062
        break
23063
      else:
23064
        iprot.skip(ftype)
23065
      iprot.readFieldEnd()
23066
    iprot.readStructEnd()
23067
 
23068
  def write(self, oprot):
23069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23071
      return
23072
    oprot.writeStructBegin('getAsinItems_args')
23073
    oprot.writeFieldStop()
23074
    oprot.writeStructEnd()
23075
 
23076
  def validate(self):
23077
    return
23078
 
23079
 
23080
  def __repr__(self):
23081
    L = ['%s=%r' % (key, value)
23082
      for key, value in self.__dict__.iteritems()]
23083
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23084
 
23085
  def __eq__(self, other):
23086
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23087
 
23088
  def __ne__(self, other):
23089
    return not (self == other)
23090
 
23091
class getAsinItems_result:
23092
  """
23093
  Attributes:
23094
   - success
23095
  """
23096
 
23097
  thrift_spec = (
23098
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
23099
  )
23100
 
23101
  def __init__(self, success=None,):
23102
    self.success = success
23103
 
23104
  def read(self, iprot):
23105
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23106
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23107
      return
23108
    iprot.readStructBegin()
23109
    while True:
23110
      (fname, ftype, fid) = iprot.readFieldBegin()
23111
      if ftype == TType.STOP:
23112
        break
23113
      if fid == 0:
23114
        if ftype == TType.LIST:
23115
          self.success = []
12567 amit.gupta 23116
          (_etype451, _size448) = iprot.readListBegin()
23117
          for _i452 in xrange(_size448):
23118
            _elem453 = Item()
23119
            _elem453.read(iprot)
23120
            self.success.append(_elem453)
7291 vikram.rag 23121
          iprot.readListEnd()
23122
        else:
23123
          iprot.skip(ftype)
23124
      else:
23125
        iprot.skip(ftype)
23126
      iprot.readFieldEnd()
23127
    iprot.readStructEnd()
23128
 
23129
  def write(self, oprot):
23130
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23131
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23132
      return
23133
    oprot.writeStructBegin('getAsinItems_result')
23134
    if self.success is not None:
23135
      oprot.writeFieldBegin('success', TType.LIST, 0)
23136
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23137
      for iter454 in self.success:
23138
        iter454.write(oprot)
7291 vikram.rag 23139
      oprot.writeListEnd()
23140
      oprot.writeFieldEnd()
23141
    oprot.writeFieldStop()
23142
    oprot.writeStructEnd()
23143
 
23144
  def validate(self):
23145
    return
23146
 
23147
 
23148
  def __repr__(self):
23149
    L = ['%s=%r' % (key, value)
23150
      for key, value in self.__dict__.iteritems()]
23151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23152
 
23153
  def __eq__(self, other):
23154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23155
 
23156
  def __ne__(self, other):
23157
    return not (self == other)
23158
 
23159
class getAllFbaListedItems_args:
23160
 
23161
  thrift_spec = (
23162
  )
23163
 
23164
  def read(self, iprot):
23165
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23166
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23167
      return
23168
    iprot.readStructBegin()
23169
    while True:
23170
      (fname, ftype, fid) = iprot.readFieldBegin()
23171
      if ftype == TType.STOP:
23172
        break
23173
      else:
23174
        iprot.skip(ftype)
23175
      iprot.readFieldEnd()
23176
    iprot.readStructEnd()
23177
 
23178
  def write(self, oprot):
23179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23181
      return
23182
    oprot.writeStructBegin('getAllFbaListedItems_args')
23183
    oprot.writeFieldStop()
23184
    oprot.writeStructEnd()
23185
 
23186
  def validate(self):
23187
    return
23188
 
23189
 
23190
  def __repr__(self):
23191
    L = ['%s=%r' % (key, value)
23192
      for key, value in self.__dict__.iteritems()]
23193
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23194
 
23195
  def __eq__(self, other):
23196
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23197
 
23198
  def __ne__(self, other):
23199
    return not (self == other)
23200
 
23201
class getAllFbaListedItems_result:
23202
  """
23203
  Attributes:
23204
   - success
23205
  """
23206
 
23207
  thrift_spec = (
23208
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23209
  )
23210
 
23211
  def __init__(self, success=None,):
23212
    self.success = success
23213
 
23214
  def read(self, iprot):
23215
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23216
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23217
      return
23218
    iprot.readStructBegin()
23219
    while True:
23220
      (fname, ftype, fid) = iprot.readFieldBegin()
23221
      if ftype == TType.STOP:
23222
        break
23223
      if fid == 0:
23224
        if ftype == TType.LIST:
23225
          self.success = []
12567 amit.gupta 23226
          (_etype458, _size455) = iprot.readListBegin()
23227
          for _i459 in xrange(_size455):
23228
            _elem460 = Amazonlisted()
23229
            _elem460.read(iprot)
23230
            self.success.append(_elem460)
7291 vikram.rag 23231
          iprot.readListEnd()
23232
        else:
23233
          iprot.skip(ftype)
23234
      else:
23235
        iprot.skip(ftype)
23236
      iprot.readFieldEnd()
23237
    iprot.readStructEnd()
23238
 
23239
  def write(self, oprot):
23240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23242
      return
23243
    oprot.writeStructBegin('getAllFbaListedItems_result')
23244
    if self.success is not None:
23245
      oprot.writeFieldBegin('success', TType.LIST, 0)
23246
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23247
      for iter461 in self.success:
23248
        iter461.write(oprot)
7291 vikram.rag 23249
      oprot.writeListEnd()
23250
      oprot.writeFieldEnd()
23251
    oprot.writeFieldStop()
23252
    oprot.writeStructEnd()
23253
 
23254
  def validate(self):
23255
    return
23256
 
23257
 
23258
  def __repr__(self):
23259
    L = ['%s=%r' % (key, value)
23260
      for key, value in self.__dict__.iteritems()]
23261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23262
 
23263
  def __eq__(self, other):
23264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23265
 
23266
  def __ne__(self, other):
23267
    return not (self == other)
23268
 
23269
class getAllNonFbaListedItems_args:
23270
 
23271
  thrift_spec = (
23272
  )
23273
 
23274
  def read(self, iprot):
23275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23277
      return
23278
    iprot.readStructBegin()
23279
    while True:
23280
      (fname, ftype, fid) = iprot.readFieldBegin()
23281
      if ftype == TType.STOP:
23282
        break
23283
      else:
23284
        iprot.skip(ftype)
23285
      iprot.readFieldEnd()
23286
    iprot.readStructEnd()
23287
 
23288
  def write(self, oprot):
23289
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23290
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23291
      return
23292
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
23293
    oprot.writeFieldStop()
23294
    oprot.writeStructEnd()
23295
 
23296
  def validate(self):
23297
    return
23298
 
23299
 
23300
  def __repr__(self):
23301
    L = ['%s=%r' % (key, value)
23302
      for key, value in self.__dict__.iteritems()]
23303
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23304
 
23305
  def __eq__(self, other):
23306
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23307
 
23308
  def __ne__(self, other):
23309
    return not (self == other)
23310
 
23311
class getAllNonFbaListedItems_result:
23312
  """
23313
  Attributes:
23314
   - success
23315
  """
23316
 
23317
  thrift_spec = (
23318
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23319
  )
23320
 
23321
  def __init__(self, success=None,):
23322
    self.success = success
23323
 
23324
  def read(self, iprot):
23325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23327
      return
23328
    iprot.readStructBegin()
23329
    while True:
23330
      (fname, ftype, fid) = iprot.readFieldBegin()
23331
      if ftype == TType.STOP:
23332
        break
23333
      if fid == 0:
23334
        if ftype == TType.LIST:
23335
          self.success = []
12567 amit.gupta 23336
          (_etype465, _size462) = iprot.readListBegin()
23337
          for _i466 in xrange(_size462):
23338
            _elem467 = Amazonlisted()
23339
            _elem467.read(iprot)
23340
            self.success.append(_elem467)
7291 vikram.rag 23341
          iprot.readListEnd()
23342
        else:
23343
          iprot.skip(ftype)
23344
      else:
23345
        iprot.skip(ftype)
23346
      iprot.readFieldEnd()
23347
    iprot.readStructEnd()
23348
 
23349
  def write(self, oprot):
23350
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23351
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23352
      return
23353
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
23354
    if self.success is not None:
23355
      oprot.writeFieldBegin('success', TType.LIST, 0)
23356
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23357
      for iter468 in self.success:
23358
        iter468.write(oprot)
7291 vikram.rag 23359
      oprot.writeListEnd()
23360
      oprot.writeFieldEnd()
23361
    oprot.writeFieldStop()
23362
    oprot.writeStructEnd()
23363
 
23364
  def validate(self):
23365
    return
23366
 
23367
 
23368
  def __repr__(self):
23369
    L = ['%s=%r' % (key, value)
23370
      for key, value in self.__dict__.iteritems()]
23371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23372
 
23373
  def __eq__(self, other):
23374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23375
 
23376
  def __ne__(self, other):
23377
    return not (self == other)
7460 kshitij.so 23378
 
23379
class updateItemInventory_args:
23380
  """
23381
  Attributes:
23382
   - itemId
23383
   - holdInventory
23384
   - defaultInventory
23385
  """
23386
 
23387
  thrift_spec = (
23388
    None, # 0
23389
    (1, TType.I64, 'itemId', None, None, ), # 1
23390
    (2, TType.I64, 'holdInventory', None, None, ), # 2
23391
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
23392
  )
23393
 
23394
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
23395
    self.itemId = itemId
23396
    self.holdInventory = holdInventory
23397
    self.defaultInventory = defaultInventory
23398
 
23399
  def read(self, iprot):
23400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23402
      return
23403
    iprot.readStructBegin()
23404
    while True:
23405
      (fname, ftype, fid) = iprot.readFieldBegin()
23406
      if ftype == TType.STOP:
23407
        break
23408
      if fid == 1:
23409
        if ftype == TType.I64:
23410
          self.itemId = iprot.readI64();
23411
        else:
23412
          iprot.skip(ftype)
23413
      elif fid == 2:
23414
        if ftype == TType.I64:
23415
          self.holdInventory = iprot.readI64();
23416
        else:
23417
          iprot.skip(ftype)
23418
      elif fid == 3:
23419
        if ftype == TType.I64:
23420
          self.defaultInventory = iprot.readI64();
23421
        else:
23422
          iprot.skip(ftype)
23423
      else:
23424
        iprot.skip(ftype)
23425
      iprot.readFieldEnd()
23426
    iprot.readStructEnd()
23427
 
23428
  def write(self, oprot):
23429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23431
      return
23432
    oprot.writeStructBegin('updateItemInventory_args')
23433
    if self.itemId is not None:
23434
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23435
      oprot.writeI64(self.itemId)
23436
      oprot.writeFieldEnd()
23437
    if self.holdInventory is not None:
23438
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
23439
      oprot.writeI64(self.holdInventory)
23440
      oprot.writeFieldEnd()
23441
    if self.defaultInventory is not None:
23442
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
23443
      oprot.writeI64(self.defaultInventory)
23444
      oprot.writeFieldEnd()
23445
    oprot.writeFieldStop()
23446
    oprot.writeStructEnd()
23447
 
23448
  def validate(self):
23449
    return
23450
 
23451
 
23452
  def __repr__(self):
23453
    L = ['%s=%r' % (key, value)
23454
      for key, value in self.__dict__.iteritems()]
23455
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23456
 
23457
  def __eq__(self, other):
23458
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23459
 
23460
  def __ne__(self, other):
23461
    return not (self == other)
23462
 
23463
class updateItemInventory_result:
23464
  """
23465
  Attributes:
23466
   - success
23467
  """
23468
 
23469
  thrift_spec = (
23470
    (0, TType.BOOL, 'success', None, None, ), # 0
23471
  )
23472
 
23473
  def __init__(self, success=None,):
23474
    self.success = success
23475
 
23476
  def read(self, iprot):
23477
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23478
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23479
      return
23480
    iprot.readStructBegin()
23481
    while True:
23482
      (fname, ftype, fid) = iprot.readFieldBegin()
23483
      if ftype == TType.STOP:
23484
        break
23485
      if fid == 0:
23486
        if ftype == TType.BOOL:
23487
          self.success = iprot.readBool();
23488
        else:
23489
          iprot.skip(ftype)
23490
      else:
23491
        iprot.skip(ftype)
23492
      iprot.readFieldEnd()
23493
    iprot.readStructEnd()
23494
 
23495
  def write(self, oprot):
23496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23498
      return
23499
    oprot.writeStructBegin('updateItemInventory_result')
23500
    if self.success is not None:
23501
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23502
      oprot.writeBool(self.success)
23503
      oprot.writeFieldEnd()
23504
    oprot.writeFieldStop()
23505
    oprot.writeStructEnd()
23506
 
23507
  def validate(self):
23508
    return
23509
 
23510
 
23511
  def __repr__(self):
23512
    L = ['%s=%r' % (key, value)
23513
      for key, value in self.__dict__.iteritems()]
23514
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23515
 
23516
  def __eq__(self, other):
23517
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23518
 
23519
  def __ne__(self, other):
23520
    return not (self == other)
7770 kshitij.so 23521
 
23522
class updateTimestampForAmazonFeeds_args:
23523
  """
23524
  Attributes:
23525
   - type
23526
   - sku
23527
   - timestamp
23528
  """
23529
 
23530
  thrift_spec = (
23531
    None, # 0
23532
    (1, TType.STRING, 'type', None, None, ), # 1
23533
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
23534
    (3, TType.I64, 'timestamp', None, None, ), # 3
23535
  )
23536
 
23537
  def __init__(self, type=None, sku=None, timestamp=None,):
23538
    self.type = type
23539
    self.sku = sku
23540
    self.timestamp = timestamp
23541
 
23542
  def read(self, iprot):
23543
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23544
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23545
      return
23546
    iprot.readStructBegin()
23547
    while True:
23548
      (fname, ftype, fid) = iprot.readFieldBegin()
23549
      if ftype == TType.STOP:
23550
        break
23551
      if fid == 1:
23552
        if ftype == TType.STRING:
23553
          self.type = iprot.readString();
23554
        else:
23555
          iprot.skip(ftype)
23556
      elif fid == 2:
23557
        if ftype == TType.LIST:
23558
          self.sku = []
12567 amit.gupta 23559
          (_etype472, _size469) = iprot.readListBegin()
23560
          for _i473 in xrange(_size469):
23561
            _elem474 = iprot.readI64();
23562
            self.sku.append(_elem474)
7770 kshitij.so 23563
          iprot.readListEnd()
23564
        else:
23565
          iprot.skip(ftype)
23566
      elif fid == 3:
23567
        if ftype == TType.I64:
23568
          self.timestamp = iprot.readI64();
23569
        else:
23570
          iprot.skip(ftype)
23571
      else:
23572
        iprot.skip(ftype)
23573
      iprot.readFieldEnd()
23574
    iprot.readStructEnd()
23575
 
23576
  def write(self, oprot):
23577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23579
      return
23580
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
23581
    if self.type is not None:
23582
      oprot.writeFieldBegin('type', TType.STRING, 1)
23583
      oprot.writeString(self.type)
23584
      oprot.writeFieldEnd()
23585
    if self.sku is not None:
23586
      oprot.writeFieldBegin('sku', TType.LIST, 2)
23587
      oprot.writeListBegin(TType.I64, len(self.sku))
12567 amit.gupta 23588
      for iter475 in self.sku:
23589
        oprot.writeI64(iter475)
7770 kshitij.so 23590
      oprot.writeListEnd()
23591
      oprot.writeFieldEnd()
23592
    if self.timestamp is not None:
23593
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
23594
      oprot.writeI64(self.timestamp)
23595
      oprot.writeFieldEnd()
23596
    oprot.writeFieldStop()
23597
    oprot.writeStructEnd()
23598
 
23599
  def validate(self):
23600
    return
23601
 
23602
 
23603
  def __repr__(self):
23604
    L = ['%s=%r' % (key, value)
23605
      for key, value in self.__dict__.iteritems()]
23606
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23607
 
23608
  def __eq__(self, other):
23609
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23610
 
23611
  def __ne__(self, other):
23612
    return not (self == other)
23613
 
23614
class updateTimestampForAmazonFeeds_result:
23615
  """
23616
  Attributes:
23617
   - success
23618
  """
23619
 
23620
  thrift_spec = (
23621
    (0, TType.BOOL, 'success', None, None, ), # 0
23622
  )
23623
 
23624
  def __init__(self, success=None,):
23625
    self.success = success
23626
 
23627
  def read(self, iprot):
23628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23630
      return
23631
    iprot.readStructBegin()
23632
    while True:
23633
      (fname, ftype, fid) = iprot.readFieldBegin()
23634
      if ftype == TType.STOP:
23635
        break
23636
      if fid == 0:
23637
        if ftype == TType.BOOL:
23638
          self.success = iprot.readBool();
23639
        else:
23640
          iprot.skip(ftype)
23641
      else:
23642
        iprot.skip(ftype)
23643
      iprot.readFieldEnd()
23644
    iprot.readStructEnd()
23645
 
23646
  def write(self, oprot):
23647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23649
      return
23650
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
23651
    if self.success is not None:
23652
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23653
      oprot.writeBool(self.success)
23654
      oprot.writeFieldEnd()
23655
    oprot.writeFieldStop()
23656
    oprot.writeStructEnd()
23657
 
23658
  def validate(self):
23659
    return
23660
 
23661
 
23662
  def __repr__(self):
23663
    L = ['%s=%r' % (key, value)
23664
      for key, value in self.__dict__.iteritems()]
23665
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23666
 
23667
  def __eq__(self, other):
23668
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23669
 
23670
  def __ne__(self, other):
23671
    return not (self == other)
7897 amar.kumar 23672
 
23673
class getAllParentCategories_args:
23674
 
23675
  thrift_spec = (
23676
  )
23677
 
23678
  def read(self, iprot):
23679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23681
      return
23682
    iprot.readStructBegin()
23683
    while True:
23684
      (fname, ftype, fid) = iprot.readFieldBegin()
23685
      if ftype == TType.STOP:
23686
        break
23687
      else:
23688
        iprot.skip(ftype)
23689
      iprot.readFieldEnd()
23690
    iprot.readStructEnd()
23691
 
23692
  def write(self, oprot):
23693
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23694
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23695
      return
23696
    oprot.writeStructBegin('getAllParentCategories_args')
23697
    oprot.writeFieldStop()
23698
    oprot.writeStructEnd()
23699
 
23700
  def validate(self):
23701
    return
23702
 
23703
 
23704
  def __repr__(self):
23705
    L = ['%s=%r' % (key, value)
23706
      for key, value in self.__dict__.iteritems()]
23707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23708
 
23709
  def __eq__(self, other):
23710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23711
 
23712
  def __ne__(self, other):
23713
    return not (self == other)
23714
 
23715
class getAllParentCategories_result:
23716
  """
23717
  Attributes:
23718
   - success
23719
  """
23720
 
23721
  thrift_spec = (
23722
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
23723
  )
23724
 
23725
  def __init__(self, success=None,):
23726
    self.success = success
23727
 
23728
  def read(self, iprot):
23729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23731
      return
23732
    iprot.readStructBegin()
23733
    while True:
23734
      (fname, ftype, fid) = iprot.readFieldBegin()
23735
      if ftype == TType.STOP:
23736
        break
23737
      if fid == 0:
23738
        if ftype == TType.LIST:
23739
          self.success = []
12567 amit.gupta 23740
          (_etype479, _size476) = iprot.readListBegin()
23741
          for _i480 in xrange(_size476):
23742
            _elem481 = Category()
23743
            _elem481.read(iprot)
23744
            self.success.append(_elem481)
7897 amar.kumar 23745
          iprot.readListEnd()
23746
        else:
23747
          iprot.skip(ftype)
23748
      else:
23749
        iprot.skip(ftype)
23750
      iprot.readFieldEnd()
23751
    iprot.readStructEnd()
23752
 
23753
  def write(self, oprot):
23754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23756
      return
23757
    oprot.writeStructBegin('getAllParentCategories_result')
23758
    if self.success is not None:
23759
      oprot.writeFieldBegin('success', TType.LIST, 0)
23760
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23761
      for iter482 in self.success:
23762
        iter482.write(oprot)
7897 amar.kumar 23763
      oprot.writeListEnd()
23764
      oprot.writeFieldEnd()
23765
    oprot.writeFieldStop()
23766
    oprot.writeStructEnd()
23767
 
23768
  def validate(self):
23769
    return
23770
 
23771
 
23772
  def __repr__(self):
23773
    L = ['%s=%r' % (key, value)
23774
      for key, value in self.__dict__.iteritems()]
23775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23776
 
23777
  def __eq__(self, other):
23778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23779
 
23780
  def __ne__(self, other):
23781
    return not (self == other)
7977 kshitij.so 23782
 
23783
class addPageViewEvent_args:
23784
  """
23785
  Attributes:
23786
   - pageViewEvents
23787
  """
23788
 
23789
  thrift_spec = (
23790
    None, # 0
23791
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
23792
  )
23793
 
23794
  def __init__(self, pageViewEvents=None,):
23795
    self.pageViewEvents = pageViewEvents
23796
 
23797
  def read(self, iprot):
23798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23800
      return
23801
    iprot.readStructBegin()
23802
    while True:
23803
      (fname, ftype, fid) = iprot.readFieldBegin()
23804
      if ftype == TType.STOP:
23805
        break
23806
      if fid == 1:
23807
        if ftype == TType.STRUCT:
23808
          self.pageViewEvents = PageViewEvents()
23809
          self.pageViewEvents.read(iprot)
23810
        else:
23811
          iprot.skip(ftype)
23812
      else:
23813
        iprot.skip(ftype)
23814
      iprot.readFieldEnd()
23815
    iprot.readStructEnd()
23816
 
23817
  def write(self, oprot):
23818
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23819
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23820
      return
23821
    oprot.writeStructBegin('addPageViewEvent_args')
23822
    if self.pageViewEvents is not None:
23823
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
23824
      self.pageViewEvents.write(oprot)
23825
      oprot.writeFieldEnd()
23826
    oprot.writeFieldStop()
23827
    oprot.writeStructEnd()
23828
 
23829
  def validate(self):
23830
    return
23831
 
23832
 
23833
  def __repr__(self):
23834
    L = ['%s=%r' % (key, value)
23835
      for key, value in self.__dict__.iteritems()]
23836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23837
 
23838
  def __eq__(self, other):
23839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23840
 
23841
  def __ne__(self, other):
23842
    return not (self == other)
23843
 
23844
class addPageViewEvent_result:
23845
 
23846
  thrift_spec = (
23847
  )
23848
 
23849
  def read(self, iprot):
23850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23852
      return
23853
    iprot.readStructBegin()
23854
    while True:
23855
      (fname, ftype, fid) = iprot.readFieldBegin()
23856
      if ftype == TType.STOP:
23857
        break
23858
      else:
23859
        iprot.skip(ftype)
23860
      iprot.readFieldEnd()
23861
    iprot.readStructEnd()
23862
 
23863
  def write(self, oprot):
23864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23866
      return
23867
    oprot.writeStructBegin('addPageViewEvent_result')
23868
    oprot.writeFieldStop()
23869
    oprot.writeStructEnd()
23870
 
23871
  def validate(self):
23872
    return
23873
 
23874
 
23875
  def __repr__(self):
23876
    L = ['%s=%r' % (key, value)
23877
      for key, value in self.__dict__.iteritems()]
23878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23879
 
23880
  def __eq__(self, other):
23881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23882
 
23883
  def __ne__(self, other):
23884
    return not (self == other)
23885
 
23886
class addCartEvent_args:
23887
  """
23888
  Attributes:
23889
   - cartEvents
23890
  """
23891
 
23892
  thrift_spec = (
23893
    None, # 0
23894
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
23895
  )
23896
 
23897
  def __init__(self, cartEvents=None,):
23898
    self.cartEvents = cartEvents
23899
 
23900
  def read(self, iprot):
23901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23903
      return
23904
    iprot.readStructBegin()
23905
    while True:
23906
      (fname, ftype, fid) = iprot.readFieldBegin()
23907
      if ftype == TType.STOP:
23908
        break
23909
      if fid == 1:
23910
        if ftype == TType.STRUCT:
23911
          self.cartEvents = CartEvents()
23912
          self.cartEvents.read(iprot)
23913
        else:
23914
          iprot.skip(ftype)
23915
      else:
23916
        iprot.skip(ftype)
23917
      iprot.readFieldEnd()
23918
    iprot.readStructEnd()
23919
 
23920
  def write(self, oprot):
23921
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23922
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23923
      return
23924
    oprot.writeStructBegin('addCartEvent_args')
23925
    if self.cartEvents is not None:
23926
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
23927
      self.cartEvents.write(oprot)
23928
      oprot.writeFieldEnd()
23929
    oprot.writeFieldStop()
23930
    oprot.writeStructEnd()
23931
 
23932
  def validate(self):
23933
    return
23934
 
23935
 
23936
  def __repr__(self):
23937
    L = ['%s=%r' % (key, value)
23938
      for key, value in self.__dict__.iteritems()]
23939
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23940
 
23941
  def __eq__(self, other):
23942
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23943
 
23944
  def __ne__(self, other):
23945
    return not (self == other)
23946
 
23947
class addCartEvent_result:
23948
 
23949
  thrift_spec = (
23950
  )
23951
 
23952
  def read(self, iprot):
23953
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23954
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23955
      return
23956
    iprot.readStructBegin()
23957
    while True:
23958
      (fname, ftype, fid) = iprot.readFieldBegin()
23959
      if ftype == TType.STOP:
23960
        break
23961
      else:
23962
        iprot.skip(ftype)
23963
      iprot.readFieldEnd()
23964
    iprot.readStructEnd()
23965
 
23966
  def write(self, oprot):
23967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23969
      return
23970
    oprot.writeStructBegin('addCartEvent_result')
23971
    oprot.writeFieldStop()
23972
    oprot.writeStructEnd()
23973
 
23974
  def validate(self):
23975
    return
23976
 
23977
 
23978
  def __repr__(self):
23979
    L = ['%s=%r' % (key, value)
23980
      for key, value in self.__dict__.iteritems()]
23981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23982
 
23983
  def __eq__(self, other):
23984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23985
 
23986
  def __ne__(self, other):
23987
    return not (self == other)
8139 kshitij.so 23988
 
8182 amar.kumar 23989
class addEbayItem_args:
23990
  """
23991
  Attributes:
23992
   - ebayItem
23993
  """
23994
 
23995
  thrift_spec = (
23996
    None, # 0
23997
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
23998
  )
23999
 
24000
  def __init__(self, ebayItem=None,):
24001
    self.ebayItem = ebayItem
24002
 
24003
  def read(self, iprot):
24004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24006
      return
24007
    iprot.readStructBegin()
24008
    while True:
24009
      (fname, ftype, fid) = iprot.readFieldBegin()
24010
      if ftype == TType.STOP:
24011
        break
24012
      if fid == 1:
24013
        if ftype == TType.STRUCT:
24014
          self.ebayItem = EbayItem()
24015
          self.ebayItem.read(iprot)
24016
        else:
24017
          iprot.skip(ftype)
24018
      else:
24019
        iprot.skip(ftype)
24020
      iprot.readFieldEnd()
24021
    iprot.readStructEnd()
24022
 
24023
  def write(self, oprot):
24024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24026
      return
24027
    oprot.writeStructBegin('addEbayItem_args')
24028
    if self.ebayItem is not None:
24029
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24030
      self.ebayItem.write(oprot)
24031
      oprot.writeFieldEnd()
24032
    oprot.writeFieldStop()
24033
    oprot.writeStructEnd()
24034
 
24035
  def validate(self):
24036
    return
24037
 
24038
 
24039
  def __repr__(self):
24040
    L = ['%s=%r' % (key, value)
24041
      for key, value in self.__dict__.iteritems()]
24042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24043
 
24044
  def __eq__(self, other):
24045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24046
 
24047
  def __ne__(self, other):
24048
    return not (self == other)
24049
 
24050
class addEbayItem_result:
24051
 
24052
  thrift_spec = (
24053
  )
24054
 
24055
  def read(self, iprot):
24056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24058
      return
24059
    iprot.readStructBegin()
24060
    while True:
24061
      (fname, ftype, fid) = iprot.readFieldBegin()
24062
      if ftype == TType.STOP:
24063
        break
24064
      else:
24065
        iprot.skip(ftype)
24066
      iprot.readFieldEnd()
24067
    iprot.readStructEnd()
24068
 
24069
  def write(self, oprot):
24070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24072
      return
24073
    oprot.writeStructBegin('addEbayItem_result')
24074
    oprot.writeFieldStop()
24075
    oprot.writeStructEnd()
24076
 
24077
  def validate(self):
24078
    return
24079
 
24080
 
24081
  def __repr__(self):
24082
    L = ['%s=%r' % (key, value)
24083
      for key, value in self.__dict__.iteritems()]
24084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24085
 
24086
  def __eq__(self, other):
24087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24088
 
24089
  def __ne__(self, other):
24090
    return not (self == other)
24091
 
24092
class getEbayItem_args:
24093
  """
24094
  Attributes:
24095
   - listingId
24096
  """
24097
 
24098
  thrift_spec = (
24099
    None, # 0
24100
    (1, TType.STRING, 'listingId', None, None, ), # 1
24101
  )
24102
 
24103
  def __init__(self, listingId=None,):
24104
    self.listingId = listingId
24105
 
24106
  def read(self, iprot):
24107
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24108
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24109
      return
24110
    iprot.readStructBegin()
24111
    while True:
24112
      (fname, ftype, fid) = iprot.readFieldBegin()
24113
      if ftype == TType.STOP:
24114
        break
24115
      if fid == 1:
24116
        if ftype == TType.STRING:
24117
          self.listingId = iprot.readString();
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('getEbayItem_args')
24130
    if self.listingId is not None:
24131
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
24132
      oprot.writeString(self.listingId)
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 getEbayItem_result:
24153
  """
24154
  Attributes:
24155
   - success
24156
  """
24157
 
24158
  thrift_spec = (
24159
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
24160
  )
24161
 
24162
  def __init__(self, success=None,):
24163
    self.success = success
24164
 
24165
  def read(self, iprot):
24166
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24167
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24168
      return
24169
    iprot.readStructBegin()
24170
    while True:
24171
      (fname, ftype, fid) = iprot.readFieldBegin()
24172
      if ftype == TType.STOP:
24173
        break
24174
      if fid == 0:
24175
        if ftype == TType.STRUCT:
24176
          self.success = EbayItem()
24177
          self.success.read(iprot)
24178
        else:
24179
          iprot.skip(ftype)
24180
      else:
24181
        iprot.skip(ftype)
24182
      iprot.readFieldEnd()
24183
    iprot.readStructEnd()
24184
 
24185
  def write(self, oprot):
24186
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24187
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24188
      return
24189
    oprot.writeStructBegin('getEbayItem_result')
24190
    if self.success is not None:
24191
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24192
      self.success.write(oprot)
24193
      oprot.writeFieldEnd()
24194
    oprot.writeFieldStop()
24195
    oprot.writeStructEnd()
24196
 
24197
  def validate(self):
24198
    return
24199
 
24200
 
24201
  def __repr__(self):
24202
    L = ['%s=%r' % (key, value)
24203
      for key, value in self.__dict__.iteritems()]
24204
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24205
 
24206
  def __eq__(self, other):
24207
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24208
 
24209
  def __ne__(self, other):
24210
    return not (self == other)
24211
 
24212
class updateEbayItem_args:
24213
  """
24214
  Attributes:
24215
   - ebayItem
24216
  """
24217
 
24218
  thrift_spec = (
24219
    None, # 0
24220
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24221
  )
24222
 
24223
  def __init__(self, ebayItem=None,):
24224
    self.ebayItem = ebayItem
24225
 
24226
  def read(self, iprot):
24227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24229
      return
24230
    iprot.readStructBegin()
24231
    while True:
24232
      (fname, ftype, fid) = iprot.readFieldBegin()
24233
      if ftype == TType.STOP:
24234
        break
24235
      if fid == 1:
24236
        if ftype == TType.STRUCT:
24237
          self.ebayItem = EbayItem()
24238
          self.ebayItem.read(iprot)
24239
        else:
24240
          iprot.skip(ftype)
24241
      else:
24242
        iprot.skip(ftype)
24243
      iprot.readFieldEnd()
24244
    iprot.readStructEnd()
24245
 
24246
  def write(self, oprot):
24247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24249
      return
24250
    oprot.writeStructBegin('updateEbayItem_args')
24251
    if self.ebayItem is not None:
24252
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24253
      self.ebayItem.write(oprot)
24254
      oprot.writeFieldEnd()
24255
    oprot.writeFieldStop()
24256
    oprot.writeStructEnd()
24257
 
24258
  def validate(self):
24259
    return
24260
 
24261
 
24262
  def __repr__(self):
24263
    L = ['%s=%r' % (key, value)
24264
      for key, value in self.__dict__.iteritems()]
24265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24266
 
24267
  def __eq__(self, other):
24268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24269
 
24270
  def __ne__(self, other):
24271
    return not (self == other)
24272
 
24273
class updateEbayItem_result:
24274
 
24275
  thrift_spec = (
24276
  )
24277
 
24278
  def read(self, iprot):
24279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24281
      return
24282
    iprot.readStructBegin()
24283
    while True:
24284
      (fname, ftype, fid) = iprot.readFieldBegin()
24285
      if ftype == TType.STOP:
24286
        break
24287
      else:
24288
        iprot.skip(ftype)
24289
      iprot.readFieldEnd()
24290
    iprot.readStructEnd()
24291
 
24292
  def write(self, oprot):
24293
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24294
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24295
      return
24296
    oprot.writeStructBegin('updateEbayItem_result')
24297
    oprot.writeFieldStop()
24298
    oprot.writeStructEnd()
24299
 
24300
  def validate(self):
24301
    return
24302
 
24303
 
24304
  def __repr__(self):
24305
    L = ['%s=%r' % (key, value)
24306
      for key, value in self.__dict__.iteritems()]
24307
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24308
 
24309
  def __eq__(self, other):
24310
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24311
 
24312
  def __ne__(self, other):
24313
    return not (self == other)
24314
 
8139 kshitij.so 24315
class getAmazonListedItems_args:
24316
  """
24317
  Attributes:
24318
   - offset
24319
   - limit
24320
  """
24321
 
24322
  thrift_spec = (
24323
    None, # 0
24324
    (1, TType.I64, 'offset', None, None, ), # 1
24325
    (2, TType.I64, 'limit', None, None, ), # 2
24326
  )
24327
 
24328
  def __init__(self, offset=None, limit=None,):
24329
    self.offset = offset
24330
    self.limit = limit
24331
 
24332
  def read(self, iprot):
24333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24335
      return
24336
    iprot.readStructBegin()
24337
    while True:
24338
      (fname, ftype, fid) = iprot.readFieldBegin()
24339
      if ftype == TType.STOP:
24340
        break
24341
      if fid == 1:
24342
        if ftype == TType.I64:
24343
          self.offset = iprot.readI64();
24344
        else:
24345
          iprot.skip(ftype)
24346
      elif fid == 2:
24347
        if ftype == TType.I64:
24348
          self.limit = iprot.readI64();
24349
        else:
24350
          iprot.skip(ftype)
24351
      else:
24352
        iprot.skip(ftype)
24353
      iprot.readFieldEnd()
24354
    iprot.readStructEnd()
24355
 
24356
  def write(self, oprot):
24357
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24358
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24359
      return
24360
    oprot.writeStructBegin('getAmazonListedItems_args')
24361
    if self.offset is not None:
24362
      oprot.writeFieldBegin('offset', TType.I64, 1)
24363
      oprot.writeI64(self.offset)
24364
      oprot.writeFieldEnd()
24365
    if self.limit is not None:
24366
      oprot.writeFieldBegin('limit', TType.I64, 2)
24367
      oprot.writeI64(self.limit)
24368
      oprot.writeFieldEnd()
24369
    oprot.writeFieldStop()
24370
    oprot.writeStructEnd()
24371
 
24372
  def validate(self):
24373
    return
24374
 
24375
 
24376
  def __repr__(self):
24377
    L = ['%s=%r' % (key, value)
24378
      for key, value in self.__dict__.iteritems()]
24379
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24380
 
24381
  def __eq__(self, other):
24382
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24383
 
24384
  def __ne__(self, other):
24385
    return not (self == other)
24386
 
24387
class getAmazonListedItems_result:
24388
  """
24389
  Attributes:
24390
   - success
24391
  """
24392
 
24393
  thrift_spec = (
24394
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24395
  )
24396
 
24397
  def __init__(self, success=None,):
24398
    self.success = success
24399
 
24400
  def read(self, iprot):
24401
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24402
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24403
      return
24404
    iprot.readStructBegin()
24405
    while True:
24406
      (fname, ftype, fid) = iprot.readFieldBegin()
24407
      if ftype == TType.STOP:
24408
        break
24409
      if fid == 0:
24410
        if ftype == TType.LIST:
24411
          self.success = []
12567 amit.gupta 24412
          (_etype486, _size483) = iprot.readListBegin()
24413
          for _i487 in xrange(_size483):
24414
            _elem488 = Amazonlisted()
24415
            _elem488.read(iprot)
24416
            self.success.append(_elem488)
8139 kshitij.so 24417
          iprot.readListEnd()
24418
        else:
24419
          iprot.skip(ftype)
24420
      else:
24421
        iprot.skip(ftype)
24422
      iprot.readFieldEnd()
24423
    iprot.readStructEnd()
24424
 
24425
  def write(self, oprot):
24426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24428
      return
24429
    oprot.writeStructBegin('getAmazonListedItems_result')
24430
    if self.success is not None:
24431
      oprot.writeFieldBegin('success', TType.LIST, 0)
24432
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24433
      for iter489 in self.success:
24434
        iter489.write(oprot)
8139 kshitij.so 24435
      oprot.writeListEnd()
24436
      oprot.writeFieldEnd()
24437
    oprot.writeFieldStop()
24438
    oprot.writeStructEnd()
24439
 
24440
  def validate(self):
24441
    return
24442
 
24443
 
24444
  def __repr__(self):
24445
    L = ['%s=%r' % (key, value)
24446
      for key, value in self.__dict__.iteritems()]
24447
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24448
 
24449
  def __eq__(self, other):
24450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24451
 
24452
  def __ne__(self, other):
24453
    return not (self == other)
8168 kshitij.so 24454
 
24455
class updateAmazonAttributesInBulk_args:
24456
  """
24457
  Attributes:
24458
   - amazonlisted
24459
  """
24460
 
24461
  thrift_spec = (
24462
    None, # 0
24463
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
24464
  )
24465
 
24466
  def __init__(self, amazonlisted=None,):
24467
    self.amazonlisted = amazonlisted
24468
 
24469
  def read(self, iprot):
24470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24472
      return
24473
    iprot.readStructBegin()
24474
    while True:
24475
      (fname, ftype, fid) = iprot.readFieldBegin()
24476
      if ftype == TType.STOP:
24477
        break
24478
      if fid == 1:
24479
        if ftype == TType.MAP:
24480
          self.amazonlisted = {}
12567 amit.gupta 24481
          (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin() 
24482
          for _i494 in xrange(_size490):
24483
            _key495 = iprot.readI64();
24484
            _val496 = Amazonlisted()
24485
            _val496.read(iprot)
24486
            self.amazonlisted[_key495] = _val496
8168 kshitij.so 24487
          iprot.readMapEnd()
24488
        else:
24489
          iprot.skip(ftype)
24490
      else:
24491
        iprot.skip(ftype)
24492
      iprot.readFieldEnd()
24493
    iprot.readStructEnd()
24494
 
24495
  def write(self, oprot):
24496
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24497
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24498
      return
24499
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
24500
    if self.amazonlisted is not None:
24501
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
24502
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
12567 amit.gupta 24503
      for kiter497,viter498 in self.amazonlisted.items():
24504
        oprot.writeI64(kiter497)
24505
        viter498.write(oprot)
8168 kshitij.so 24506
      oprot.writeMapEnd()
24507
      oprot.writeFieldEnd()
24508
    oprot.writeFieldStop()
24509
    oprot.writeStructEnd()
24510
 
24511
  def validate(self):
24512
    return
24513
 
24514
 
24515
  def __repr__(self):
24516
    L = ['%s=%r' % (key, value)
24517
      for key, value in self.__dict__.iteritems()]
24518
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24519
 
24520
  def __eq__(self, other):
24521
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24522
 
24523
  def __ne__(self, other):
24524
    return not (self == other)
24525
 
24526
class updateAmazonAttributesInBulk_result:
24527
  """
24528
  Attributes:
24529
   - success
24530
  """
24531
 
24532
  thrift_spec = (
24533
    (0, TType.BOOL, 'success', None, None, ), # 0
24534
  )
24535
 
24536
  def __init__(self, success=None,):
24537
    self.success = success
24538
 
24539
  def read(self, iprot):
24540
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24541
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24542
      return
24543
    iprot.readStructBegin()
24544
    while True:
24545
      (fname, ftype, fid) = iprot.readFieldBegin()
24546
      if ftype == TType.STOP:
24547
        break
24548
      if fid == 0:
24549
        if ftype == TType.BOOL:
24550
          self.success = iprot.readBool();
24551
        else:
24552
          iprot.skip(ftype)
24553
      else:
24554
        iprot.skip(ftype)
24555
      iprot.readFieldEnd()
24556
    iprot.readStructEnd()
24557
 
24558
  def write(self, oprot):
24559
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24560
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24561
      return
24562
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
24563
    if self.success is not None:
24564
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24565
      oprot.writeBool(self.success)
24566
      oprot.writeFieldEnd()
24567
    oprot.writeFieldStop()
24568
    oprot.writeStructEnd()
24569
 
24570
  def validate(self):
24571
    return
24572
 
24573
 
24574
  def __repr__(self):
24575
    L = ['%s=%r' % (key, value)
24576
      for key, value in self.__dict__.iteritems()]
24577
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24578
 
24579
  def __eq__(self, other):
24580
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24581
 
24582
  def __ne__(self, other):
24583
    return not (self == other)
8379 vikram.rag 24584
 
24585
class getAllItemstoListOnFba_args:
24586
 
24587
  thrift_spec = (
24588
  )
24589
 
24590
  def read(self, iprot):
24591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24593
      return
24594
    iprot.readStructBegin()
24595
    while True:
24596
      (fname, ftype, fid) = iprot.readFieldBegin()
24597
      if ftype == TType.STOP:
24598
        break
24599
      else:
24600
        iprot.skip(ftype)
24601
      iprot.readFieldEnd()
24602
    iprot.readStructEnd()
24603
 
24604
  def write(self, oprot):
24605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24607
      return
24608
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
24609
    oprot.writeFieldStop()
24610
    oprot.writeStructEnd()
24611
 
24612
  def validate(self):
24613
    return
24614
 
24615
 
24616
  def __repr__(self):
24617
    L = ['%s=%r' % (key, value)
24618
      for key, value in self.__dict__.iteritems()]
24619
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24620
 
24621
  def __eq__(self, other):
24622
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24623
 
24624
  def __ne__(self, other):
24625
    return not (self == other)
24626
 
24627
class getAllItemstoListOnFba_result:
24628
  """
24629
  Attributes:
24630
   - success
24631
  """
24632
 
24633
  thrift_spec = (
24634
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24635
  )
24636
 
24637
  def __init__(self, success=None,):
24638
    self.success = success
24639
 
24640
  def read(self, iprot):
24641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24643
      return
24644
    iprot.readStructBegin()
24645
    while True:
24646
      (fname, ftype, fid) = iprot.readFieldBegin()
24647
      if ftype == TType.STOP:
24648
        break
24649
      if fid == 0:
24650
        if ftype == TType.LIST:
24651
          self.success = []
12567 amit.gupta 24652
          (_etype502, _size499) = iprot.readListBegin()
24653
          for _i503 in xrange(_size499):
24654
            _elem504 = Amazonlisted()
24655
            _elem504.read(iprot)
24656
            self.success.append(_elem504)
8379 vikram.rag 24657
          iprot.readListEnd()
24658
        else:
24659
          iprot.skip(ftype)
24660
      else:
24661
        iprot.skip(ftype)
24662
      iprot.readFieldEnd()
24663
    iprot.readStructEnd()
24664
 
24665
  def write(self, oprot):
24666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24668
      return
24669
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
24670
    if self.success is not None:
24671
      oprot.writeFieldBegin('success', TType.LIST, 0)
24672
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24673
      for iter505 in self.success:
24674
        iter505.write(oprot)
8379 vikram.rag 24675
      oprot.writeListEnd()
24676
      oprot.writeFieldEnd()
24677
    oprot.writeFieldStop()
24678
    oprot.writeStructEnd()
24679
 
24680
  def validate(self):
24681
    return
24682
 
24683
 
24684
  def __repr__(self):
24685
    L = ['%s=%r' % (key, value)
24686
      for key, value in self.__dict__.iteritems()]
24687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24688
 
24689
  def __eq__(self, other):
24690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24691
 
24692
  def __ne__(self, other):
24693
    return not (self == other)
24694
 
24695
class getAllItemstoListOnNonFba_args:
24696
 
24697
  thrift_spec = (
24698
  )
24699
 
24700
  def read(self, iprot):
24701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24703
      return
24704
    iprot.readStructBegin()
24705
    while True:
24706
      (fname, ftype, fid) = iprot.readFieldBegin()
24707
      if ftype == TType.STOP:
24708
        break
24709
      else:
24710
        iprot.skip(ftype)
24711
      iprot.readFieldEnd()
24712
    iprot.readStructEnd()
24713
 
24714
  def write(self, oprot):
24715
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24716
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24717
      return
24718
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
24719
    oprot.writeFieldStop()
24720
    oprot.writeStructEnd()
24721
 
24722
  def validate(self):
24723
    return
24724
 
24725
 
24726
  def __repr__(self):
24727
    L = ['%s=%r' % (key, value)
24728
      for key, value in self.__dict__.iteritems()]
24729
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24730
 
24731
  def __eq__(self, other):
24732
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24733
 
24734
  def __ne__(self, other):
24735
    return not (self == other)
24736
 
24737
class getAllItemstoListOnNonFba_result:
24738
  """
24739
  Attributes:
24740
   - success
24741
  """
24742
 
24743
  thrift_spec = (
24744
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24745
  )
24746
 
24747
  def __init__(self, success=None,):
24748
    self.success = success
24749
 
24750
  def read(self, iprot):
24751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24753
      return
24754
    iprot.readStructBegin()
24755
    while True:
24756
      (fname, ftype, fid) = iprot.readFieldBegin()
24757
      if ftype == TType.STOP:
24758
        break
24759
      if fid == 0:
24760
        if ftype == TType.LIST:
24761
          self.success = []
12567 amit.gupta 24762
          (_etype509, _size506) = iprot.readListBegin()
24763
          for _i510 in xrange(_size506):
24764
            _elem511 = Amazonlisted()
24765
            _elem511.read(iprot)
24766
            self.success.append(_elem511)
8379 vikram.rag 24767
          iprot.readListEnd()
24768
        else:
24769
          iprot.skip(ftype)
24770
      else:
24771
        iprot.skip(ftype)
24772
      iprot.readFieldEnd()
24773
    iprot.readStructEnd()
24774
 
24775
  def write(self, oprot):
24776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24778
      return
24779
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
24780
    if self.success is not None:
24781
      oprot.writeFieldBegin('success', TType.LIST, 0)
24782
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24783
      for iter512 in self.success:
24784
        iter512.write(oprot)
8379 vikram.rag 24785
      oprot.writeListEnd()
24786
      oprot.writeFieldEnd()
24787
    oprot.writeFieldStop()
24788
    oprot.writeStructEnd()
24789
 
24790
  def validate(self):
24791
    return
24792
 
24793
 
24794
  def __repr__(self):
24795
    L = ['%s=%r' % (key, value)
24796
      for key, value in self.__dict__.iteritems()]
24797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24798
 
24799
  def __eq__(self, other):
24800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24801
 
24802
  def __ne__(self, other):
24803
    return not (self == other)
8616 vikram.rag 24804
 
9242 kshitij.so 24805
class updateAsin_args:
24806
  """
24807
  Attributes:
24808
   - item
24809
  """
8616 vikram.rag 24810
 
24811
  thrift_spec = (
9242 kshitij.so 24812
    None, # 0
24813
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 24814
  )
24815
 
9242 kshitij.so 24816
  def __init__(self, item=None,):
24817
    self.item = item
24818
 
8616 vikram.rag 24819
  def read(self, iprot):
24820
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24821
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24822
      return
24823
    iprot.readStructBegin()
24824
    while True:
24825
      (fname, ftype, fid) = iprot.readFieldBegin()
24826
      if ftype == TType.STOP:
24827
        break
9242 kshitij.so 24828
      if fid == 1:
24829
        if ftype == TType.MAP:
24830
          self.item = {}
12567 amit.gupta 24831
          (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() 
24832
          for _i517 in xrange(_size513):
24833
            _key518 = iprot.readI64();
24834
            _val519 = Item()
24835
            _val519.read(iprot)
24836
            self.item[_key518] = _val519
9242 kshitij.so 24837
          iprot.readMapEnd()
24838
        else:
24839
          iprot.skip(ftype)
8616 vikram.rag 24840
      else:
24841
        iprot.skip(ftype)
24842
      iprot.readFieldEnd()
24843
    iprot.readStructEnd()
24844
 
24845
  def write(self, oprot):
24846
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24847
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24848
      return
9242 kshitij.so 24849
    oprot.writeStructBegin('updateAsin_args')
24850
    if self.item is not None:
24851
      oprot.writeFieldBegin('item', TType.MAP, 1)
24852
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
12567 amit.gupta 24853
      for kiter520,viter521 in self.item.items():
24854
        oprot.writeI64(kiter520)
24855
        viter521.write(oprot)
9242 kshitij.so 24856
      oprot.writeMapEnd()
24857
      oprot.writeFieldEnd()
8616 vikram.rag 24858
    oprot.writeFieldStop()
24859
    oprot.writeStructEnd()
24860
 
24861
  def validate(self):
24862
    return
24863
 
24864
 
24865
  def __repr__(self):
24866
    L = ['%s=%r' % (key, value)
24867
      for key, value in self.__dict__.iteritems()]
24868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24869
 
24870
  def __eq__(self, other):
24871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24872
 
24873
  def __ne__(self, other):
24874
    return not (self == other)
24875
 
9242 kshitij.so 24876
class updateAsin_result:
8616 vikram.rag 24877
 
24878
  thrift_spec = (
24879
  )
24880
 
24881
  def read(self, iprot):
24882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24884
      return
24885
    iprot.readStructBegin()
24886
    while True:
24887
      (fname, ftype, fid) = iprot.readFieldBegin()
24888
      if ftype == TType.STOP:
24889
        break
24890
      else:
24891
        iprot.skip(ftype)
24892
      iprot.readFieldEnd()
24893
    iprot.readStructEnd()
24894
 
24895
  def write(self, oprot):
24896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24898
      return
9242 kshitij.so 24899
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 24900
    oprot.writeFieldStop()
24901
    oprot.writeStructEnd()
24902
 
24903
  def validate(self):
24904
    return
24905
 
24906
 
24907
  def __repr__(self):
24908
    L = ['%s=%r' % (key, value)
24909
      for key, value in self.__dict__.iteritems()]
24910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24911
 
24912
  def __eq__(self, other):
24913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24914
 
24915
  def __ne__(self, other):
24916
    return not (self == other)
8619 kshitij.so 24917
 
9242 kshitij.so 24918
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 24919
  """
24920
  Attributes:
9242 kshitij.so 24921
   - snapdealitem
8619 kshitij.so 24922
  """
24923
 
9242 kshitij.so 24924
  thrift_spec = None
24925
  def __init__(self, snapdealitem=None,):
24926
    self.snapdealitem = snapdealitem
8619 kshitij.so 24927
 
24928
  def read(self, iprot):
24929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24931
      return
24932
    iprot.readStructBegin()
24933
    while True:
24934
      (fname, ftype, fid) = iprot.readFieldBegin()
24935
      if ftype == TType.STOP:
24936
        break
9242 kshitij.so 24937
      if fid == -1:
24938
        if ftype == TType.STRUCT:
24939
          self.snapdealitem = SnapdealItem()
24940
          self.snapdealitem.read(iprot)
8619 kshitij.so 24941
        else:
24942
          iprot.skip(ftype)
24943
      else:
24944
        iprot.skip(ftype)
24945
      iprot.readFieldEnd()
24946
    iprot.readStructEnd()
24947
 
24948
  def write(self, oprot):
24949
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24950
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24951
      return
9242 kshitij.so 24952
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
24953
    if self.snapdealitem is not None:
24954
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
24955
      self.snapdealitem.write(oprot)
8619 kshitij.so 24956
      oprot.writeFieldEnd()
24957
    oprot.writeFieldStop()
24958
    oprot.writeStructEnd()
24959
 
24960
  def validate(self):
24961
    return
24962
 
24963
 
24964
  def __repr__(self):
24965
    L = ['%s=%r' % (key, value)
24966
      for key, value in self.__dict__.iteritems()]
24967
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24968
 
24969
  def __eq__(self, other):
24970
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24971
 
24972
  def __ne__(self, other):
24973
    return not (self == other)
24974
 
9242 kshitij.so 24975
class addOrUpdateSnapdealItem_result:
24976
  """
24977
  Attributes:
24978
   - success
24979
  """
8619 kshitij.so 24980
 
24981
  thrift_spec = (
9242 kshitij.so 24982
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 24983
  )
24984
 
9242 kshitij.so 24985
  def __init__(self, success=None,):
24986
    self.success = success
24987
 
8619 kshitij.so 24988
  def read(self, iprot):
24989
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24990
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24991
      return
24992
    iprot.readStructBegin()
24993
    while True:
24994
      (fname, ftype, fid) = iprot.readFieldBegin()
24995
      if ftype == TType.STOP:
24996
        break
9242 kshitij.so 24997
      if fid == 0:
24998
        if ftype == TType.BOOL:
24999
          self.success = iprot.readBool();
25000
        else:
25001
          iprot.skip(ftype)
8619 kshitij.so 25002
      else:
25003
        iprot.skip(ftype)
25004
      iprot.readFieldEnd()
25005
    iprot.readStructEnd()
25006
 
25007
  def write(self, oprot):
25008
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25009
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25010
      return
9242 kshitij.so 25011
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
25012
    if self.success is not None:
25013
      oprot.writeFieldBegin('success', TType.BOOL, 0)
25014
      oprot.writeBool(self.success)
25015
      oprot.writeFieldEnd()
8619 kshitij.so 25016
    oprot.writeFieldStop()
25017
    oprot.writeStructEnd()
25018
 
25019
  def validate(self):
25020
    return
25021
 
25022
 
25023
  def __repr__(self):
25024
    L = ['%s=%r' % (key, value)
25025
      for key, value in self.__dict__.iteritems()]
25026
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25027
 
25028
  def __eq__(self, other):
25029
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25030
 
25031
  def __ne__(self, other):
25032
    return not (self == other)
8739 vikram.rag 25033
 
9242 kshitij.so 25034
class getSnapdealItem_args:
8739 vikram.rag 25035
  """
25036
  Attributes:
9242 kshitij.so 25037
   - item_id
8739 vikram.rag 25038
  """
25039
 
9242 kshitij.so 25040
  thrift_spec = (
25041
    None, # 0
25042
    (1, TType.I64, 'item_id', None, None, ), # 1
25043
  )
8739 vikram.rag 25044
 
9242 kshitij.so 25045
  def __init__(self, item_id=None,):
25046
    self.item_id = item_id
25047
 
8739 vikram.rag 25048
  def read(self, iprot):
25049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25051
      return
25052
    iprot.readStructBegin()
25053
    while True:
25054
      (fname, ftype, fid) = iprot.readFieldBegin()
25055
      if ftype == TType.STOP:
25056
        break
9242 kshitij.so 25057
      if fid == 1:
25058
        if ftype == TType.I64:
25059
          self.item_id = iprot.readI64();
8739 vikram.rag 25060
        else:
25061
          iprot.skip(ftype)
25062
      else:
25063
        iprot.skip(ftype)
25064
      iprot.readFieldEnd()
25065
    iprot.readStructEnd()
25066
 
25067
  def write(self, oprot):
25068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25070
      return
9242 kshitij.so 25071
    oprot.writeStructBegin('getSnapdealItem_args')
25072
    if self.item_id is not None:
25073
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25074
      oprot.writeI64(self.item_id)
8739 vikram.rag 25075
      oprot.writeFieldEnd()
25076
    oprot.writeFieldStop()
25077
    oprot.writeStructEnd()
25078
 
25079
  def validate(self):
25080
    return
25081
 
25082
 
25083
  def __repr__(self):
25084
    L = ['%s=%r' % (key, value)
25085
      for key, value in self.__dict__.iteritems()]
25086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25087
 
25088
  def __eq__(self, other):
25089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25090
 
25091
  def __ne__(self, other):
25092
    return not (self == other)
25093
 
9242 kshitij.so 25094
class getSnapdealItem_result:
8739 vikram.rag 25095
  """
25096
  Attributes:
25097
   - success
25098
  """
25099
 
25100
  thrift_spec = (
9242 kshitij.so 25101
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 25102
  )
25103
 
25104
  def __init__(self, success=None,):
25105
    self.success = success
25106
 
25107
  def read(self, iprot):
25108
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25109
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25110
      return
25111
    iprot.readStructBegin()
25112
    while True:
25113
      (fname, ftype, fid) = iprot.readFieldBegin()
25114
      if ftype == TType.STOP:
25115
        break
25116
      if fid == 0:
9242 kshitij.so 25117
        if ftype == TType.STRUCT:
25118
          self.success = SnapdealItem()
25119
          self.success.read(iprot)
8739 vikram.rag 25120
        else:
25121
          iprot.skip(ftype)
25122
      else:
25123
        iprot.skip(ftype)
25124
      iprot.readFieldEnd()
25125
    iprot.readStructEnd()
25126
 
25127
  def write(self, oprot):
25128
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25129
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25130
      return
9242 kshitij.so 25131
    oprot.writeStructBegin('getSnapdealItem_result')
8739 vikram.rag 25132
    if self.success is not None:
9242 kshitij.so 25133
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25134
      self.success.write(oprot)
8739 vikram.rag 25135
      oprot.writeFieldEnd()
25136
    oprot.writeFieldStop()
25137
    oprot.writeStructEnd()
25138
 
25139
  def validate(self):
25140
    return
25141
 
25142
 
25143
  def __repr__(self):
25144
    L = ['%s=%r' % (key, value)
25145
      for key, value in self.__dict__.iteritems()]
25146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25147
 
25148
  def __eq__(self, other):
25149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25150
 
25151
  def __ne__(self, other):
25152
    return not (self == other)
25153
 
9242 kshitij.so 25154
class getSnapdealItemDetails_args:
8739 vikram.rag 25155
  """
25156
  Attributes:
25157
   - item_id
25158
  """
25159
 
25160
  thrift_spec = (
25161
    None, # 0
25162
    (1, TType.I64, 'item_id', None, None, ), # 1
25163
  )
25164
 
25165
  def __init__(self, item_id=None,):
25166
    self.item_id = item_id
25167
 
25168
  def read(self, iprot):
25169
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25170
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25171
      return
25172
    iprot.readStructBegin()
25173
    while True:
25174
      (fname, ftype, fid) = iprot.readFieldBegin()
25175
      if ftype == TType.STOP:
25176
        break
25177
      if fid == 1:
25178
        if ftype == TType.I64:
25179
          self.item_id = iprot.readI64();
25180
        else:
25181
          iprot.skip(ftype)
25182
      else:
25183
        iprot.skip(ftype)
25184
      iprot.readFieldEnd()
25185
    iprot.readStructEnd()
25186
 
25187
  def write(self, oprot):
25188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25190
      return
9242 kshitij.so 25191
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 25192
    if self.item_id is not None:
25193
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25194
      oprot.writeI64(self.item_id)
25195
      oprot.writeFieldEnd()
25196
    oprot.writeFieldStop()
25197
    oprot.writeStructEnd()
25198
 
25199
  def validate(self):
25200
    return
25201
 
25202
 
25203
  def __repr__(self):
25204
    L = ['%s=%r' % (key, value)
25205
      for key, value in self.__dict__.iteritems()]
25206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25207
 
25208
  def __eq__(self, other):
25209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25210
 
25211
  def __ne__(self, other):
25212
    return not (self == other)
25213
 
9242 kshitij.so 25214
class getSnapdealItemDetails_result:
8739 vikram.rag 25215
  """
25216
  Attributes:
25217
   - success
25218
  """
25219
 
25220
  thrift_spec = (
9242 kshitij.so 25221
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 25222
  )
25223
 
25224
  def __init__(self, success=None,):
25225
    self.success = success
25226
 
25227
  def read(self, iprot):
25228
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25229
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25230
      return
25231
    iprot.readStructBegin()
25232
    while True:
25233
      (fname, ftype, fid) = iprot.readFieldBegin()
25234
      if ftype == TType.STOP:
25235
        break
25236
      if fid == 0:
25237
        if ftype == TType.STRUCT:
9242 kshitij.so 25238
          self.success = SnapdealItemDetails()
8739 vikram.rag 25239
          self.success.read(iprot)
25240
        else:
25241
          iprot.skip(ftype)
25242
      else:
25243
        iprot.skip(ftype)
25244
      iprot.readFieldEnd()
25245
    iprot.readStructEnd()
25246
 
25247
  def write(self, oprot):
25248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25250
      return
9242 kshitij.so 25251
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 25252
    if self.success is not None:
25253
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25254
      self.success.write(oprot)
25255
      oprot.writeFieldEnd()
25256
    oprot.writeFieldStop()
25257
    oprot.writeStructEnd()
25258
 
25259
  def validate(self):
25260
    return
25261
 
25262
 
25263
  def __repr__(self):
25264
    L = ['%s=%r' % (key, value)
25265
      for key, value in self.__dict__.iteritems()]
25266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25267
 
25268
  def __eq__(self, other):
25269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25270
 
25271
  def __ne__(self, other):
25272
    return not (self == other)
25273
 
25274
class getAllSnapdealItems_args:
25275
 
25276
  thrift_spec = (
25277
  )
25278
 
25279
  def read(self, iprot):
25280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25282
      return
25283
    iprot.readStructBegin()
25284
    while True:
25285
      (fname, ftype, fid) = iprot.readFieldBegin()
25286
      if ftype == TType.STOP:
25287
        break
25288
      else:
25289
        iprot.skip(ftype)
25290
      iprot.readFieldEnd()
25291
    iprot.readStructEnd()
25292
 
25293
  def write(self, oprot):
25294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25296
      return
25297
    oprot.writeStructBegin('getAllSnapdealItems_args')
25298
    oprot.writeFieldStop()
25299
    oprot.writeStructEnd()
25300
 
25301
  def validate(self):
25302
    return
25303
 
25304
 
25305
  def __repr__(self):
25306
    L = ['%s=%r' % (key, value)
25307
      for key, value in self.__dict__.iteritems()]
25308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25309
 
25310
  def __eq__(self, other):
25311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25312
 
25313
  def __ne__(self, other):
25314
    return not (self == other)
25315
 
25316
class getAllSnapdealItems_result:
25317
  """
25318
  Attributes:
25319
   - success
25320
  """
25321
 
25322
  thrift_spec = (
9242 kshitij.so 25323
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 25324
  )
25325
 
25326
  def __init__(self, success=None,):
25327
    self.success = success
25328
 
25329
  def read(self, iprot):
25330
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25331
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25332
      return
25333
    iprot.readStructBegin()
25334
    while True:
25335
      (fname, ftype, fid) = iprot.readFieldBegin()
25336
      if ftype == TType.STOP:
25337
        break
25338
      if fid == 0:
25339
        if ftype == TType.LIST:
25340
          self.success = []
12567 amit.gupta 25341
          (_etype525, _size522) = iprot.readListBegin()
25342
          for _i526 in xrange(_size522):
25343
            _elem527 = SnapdealItemDetails()
25344
            _elem527.read(iprot)
25345
            self.success.append(_elem527)
9242 kshitij.so 25346
          iprot.readListEnd()
25347
        else:
25348
          iprot.skip(ftype)
25349
      else:
25350
        iprot.skip(ftype)
25351
      iprot.readFieldEnd()
25352
    iprot.readStructEnd()
25353
 
25354
  def write(self, oprot):
25355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25357
      return
25358
    oprot.writeStructBegin('getAllSnapdealItems_result')
25359
    if self.success is not None:
25360
      oprot.writeFieldBegin('success', TType.LIST, 0)
25361
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25362
      for iter528 in self.success:
25363
        iter528.write(oprot)
9242 kshitij.so 25364
      oprot.writeListEnd()
25365
      oprot.writeFieldEnd()
25366
    oprot.writeFieldStop()
25367
    oprot.writeStructEnd()
25368
 
25369
  def validate(self):
25370
    return
25371
 
25372
 
25373
  def __repr__(self):
25374
    L = ['%s=%r' % (key, value)
25375
      for key, value in self.__dict__.iteritems()]
25376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25377
 
25378
  def __eq__(self, other):
25379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25380
 
25381
  def __ne__(self, other):
25382
    return not (self == other)
25383
 
25384
class getSnapdealItems_args:
25385
  """
25386
  Attributes:
25387
   - offset
25388
   - limit
25389
  """
25390
 
25391
  thrift_spec = (
25392
    None, # 0
25393
    (1, TType.I64, 'offset', None, None, ), # 1
25394
    (2, TType.I64, 'limit', None, None, ), # 2
25395
  )
25396
 
25397
  def __init__(self, offset=None, limit=None,):
25398
    self.offset = offset
25399
    self.limit = limit
25400
 
25401
  def read(self, iprot):
25402
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25403
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25404
      return
25405
    iprot.readStructBegin()
25406
    while True:
25407
      (fname, ftype, fid) = iprot.readFieldBegin()
25408
      if ftype == TType.STOP:
25409
        break
25410
      if fid == 1:
25411
        if ftype == TType.I64:
25412
          self.offset = iprot.readI64();
25413
        else:
25414
          iprot.skip(ftype)
25415
      elif fid == 2:
25416
        if ftype == TType.I64:
25417
          self.limit = iprot.readI64();
25418
        else:
25419
          iprot.skip(ftype)
25420
      else:
25421
        iprot.skip(ftype)
25422
      iprot.readFieldEnd()
25423
    iprot.readStructEnd()
25424
 
25425
  def write(self, oprot):
25426
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25427
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25428
      return
25429
    oprot.writeStructBegin('getSnapdealItems_args')
25430
    if self.offset is not None:
25431
      oprot.writeFieldBegin('offset', TType.I64, 1)
25432
      oprot.writeI64(self.offset)
25433
      oprot.writeFieldEnd()
25434
    if self.limit is not None:
25435
      oprot.writeFieldBegin('limit', TType.I64, 2)
25436
      oprot.writeI64(self.limit)
25437
      oprot.writeFieldEnd()
25438
    oprot.writeFieldStop()
25439
    oprot.writeStructEnd()
25440
 
25441
  def validate(self):
25442
    return
25443
 
25444
 
25445
  def __repr__(self):
25446
    L = ['%s=%r' % (key, value)
25447
      for key, value in self.__dict__.iteritems()]
25448
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25449
 
25450
  def __eq__(self, other):
25451
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25452
 
25453
  def __ne__(self, other):
25454
    return not (self == other)
25455
 
25456
class getSnapdealItems_result:
25457
  """
25458
  Attributes:
25459
   - success
25460
  """
25461
 
25462
  thrift_spec = (
25463
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25464
  )
25465
 
25466
  def __init__(self, success=None,):
25467
    self.success = success
25468
 
25469
  def read(self, iprot):
25470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25472
      return
25473
    iprot.readStructBegin()
25474
    while True:
25475
      (fname, ftype, fid) = iprot.readFieldBegin()
25476
      if ftype == TType.STOP:
25477
        break
25478
      if fid == 0:
25479
        if ftype == TType.LIST:
25480
          self.success = []
12567 amit.gupta 25481
          (_etype532, _size529) = iprot.readListBegin()
25482
          for _i533 in xrange(_size529):
25483
            _elem534 = SnapdealItemDetails()
25484
            _elem534.read(iprot)
25485
            self.success.append(_elem534)
8739 vikram.rag 25486
          iprot.readListEnd()
25487
        else:
25488
          iprot.skip(ftype)
25489
      else:
25490
        iprot.skip(ftype)
25491
      iprot.readFieldEnd()
25492
    iprot.readStructEnd()
25493
 
25494
  def write(self, oprot):
25495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25497
      return
9242 kshitij.so 25498
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 25499
    if self.success is not None:
25500
      oprot.writeFieldBegin('success', TType.LIST, 0)
25501
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25502
      for iter535 in self.success:
25503
        iter535.write(oprot)
8739 vikram.rag 25504
      oprot.writeListEnd()
25505
      oprot.writeFieldEnd()
25506
    oprot.writeFieldStop()
25507
    oprot.writeStructEnd()
25508
 
25509
  def validate(self):
25510
    return
25511
 
25512
 
25513
  def __repr__(self):
25514
    L = ['%s=%r' % (key, value)
25515
      for key, value in self.__dict__.iteritems()]
25516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25517
 
25518
  def __eq__(self, other):
25519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25520
 
25521
  def __ne__(self, other):
25522
    return not (self == other)
9242 kshitij.so 25523
 
25524
class searchSnapdealItems_args:
25525
  """
25526
  Attributes:
25527
   - searchTerm
25528
   - offset
25529
   - limit
25530
  """
25531
 
25532
  thrift_spec = (
25533
    None, # 0
25534
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25535
    (2, TType.I64, 'offset', None, None, ), # 2
25536
    (3, TType.I64, 'limit', None, None, ), # 3
25537
  )
25538
 
25539
  def __init__(self, searchTerm=None, offset=None, limit=None,):
25540
    self.searchTerm = searchTerm
25541
    self.offset = offset
25542
    self.limit = limit
25543
 
25544
  def read(self, iprot):
25545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25547
      return
25548
    iprot.readStructBegin()
25549
    while True:
25550
      (fname, ftype, fid) = iprot.readFieldBegin()
25551
      if ftype == TType.STOP:
25552
        break
25553
      if fid == 1:
25554
        if ftype == TType.LIST:
25555
          self.searchTerm = []
12567 amit.gupta 25556
          (_etype539, _size536) = iprot.readListBegin()
25557
          for _i540 in xrange(_size536):
25558
            _elem541 = iprot.readString();
25559
            self.searchTerm.append(_elem541)
9242 kshitij.so 25560
          iprot.readListEnd()
25561
        else:
25562
          iprot.skip(ftype)
25563
      elif fid == 2:
25564
        if ftype == TType.I64:
25565
          self.offset = iprot.readI64();
25566
        else:
25567
          iprot.skip(ftype)
25568
      elif fid == 3:
25569
        if ftype == TType.I64:
25570
          self.limit = iprot.readI64();
25571
        else:
25572
          iprot.skip(ftype)
25573
      else:
25574
        iprot.skip(ftype)
25575
      iprot.readFieldEnd()
25576
    iprot.readStructEnd()
25577
 
25578
  def write(self, oprot):
25579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25581
      return
25582
    oprot.writeStructBegin('searchSnapdealItems_args')
25583
    if self.searchTerm is not None:
25584
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25585
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25586
      for iter542 in self.searchTerm:
25587
        oprot.writeString(iter542)
9242 kshitij.so 25588
      oprot.writeListEnd()
25589
      oprot.writeFieldEnd()
25590
    if self.offset is not None:
25591
      oprot.writeFieldBegin('offset', TType.I64, 2)
25592
      oprot.writeI64(self.offset)
25593
      oprot.writeFieldEnd()
25594
    if self.limit is not None:
25595
      oprot.writeFieldBegin('limit', TType.I64, 3)
25596
      oprot.writeI64(self.limit)
25597
      oprot.writeFieldEnd()
25598
    oprot.writeFieldStop()
25599
    oprot.writeStructEnd()
25600
 
25601
  def validate(self):
25602
    return
25603
 
25604
 
25605
  def __repr__(self):
25606
    L = ['%s=%r' % (key, value)
25607
      for key, value in self.__dict__.iteritems()]
25608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25609
 
25610
  def __eq__(self, other):
25611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25612
 
25613
  def __ne__(self, other):
25614
    return not (self == other)
25615
 
25616
class searchSnapdealItems_result:
25617
  """
25618
  Attributes:
25619
   - success
25620
  """
25621
 
25622
  thrift_spec = (
25623
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25624
  )
25625
 
25626
  def __init__(self, success=None,):
25627
    self.success = success
25628
 
25629
  def read(self, iprot):
25630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25632
      return
25633
    iprot.readStructBegin()
25634
    while True:
25635
      (fname, ftype, fid) = iprot.readFieldBegin()
25636
      if ftype == TType.STOP:
25637
        break
25638
      if fid == 0:
25639
        if ftype == TType.LIST:
25640
          self.success = []
12567 amit.gupta 25641
          (_etype546, _size543) = iprot.readListBegin()
25642
          for _i547 in xrange(_size543):
25643
            _elem548 = SnapdealItemDetails()
25644
            _elem548.read(iprot)
25645
            self.success.append(_elem548)
9242 kshitij.so 25646
          iprot.readListEnd()
25647
        else:
25648
          iprot.skip(ftype)
25649
      else:
25650
        iprot.skip(ftype)
25651
      iprot.readFieldEnd()
25652
    iprot.readStructEnd()
25653
 
25654
  def write(self, oprot):
25655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25657
      return
25658
    oprot.writeStructBegin('searchSnapdealItems_result')
25659
    if self.success is not None:
25660
      oprot.writeFieldBegin('success', TType.LIST, 0)
25661
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25662
      for iter549 in self.success:
25663
        iter549.write(oprot)
9242 kshitij.so 25664
      oprot.writeListEnd()
25665
      oprot.writeFieldEnd()
25666
    oprot.writeFieldStop()
25667
    oprot.writeStructEnd()
25668
 
25669
  def validate(self):
25670
    return
25671
 
25672
 
25673
  def __repr__(self):
25674
    L = ['%s=%r' % (key, value)
25675
      for key, value in self.__dict__.iteritems()]
25676
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25677
 
25678
  def __eq__(self, other):
25679
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25680
 
25681
  def __ne__(self, other):
25682
    return not (self == other)
25683
 
25684
class getCountForSnapdealItems_args:
25685
 
25686
  thrift_spec = (
25687
  )
25688
 
25689
  def read(self, iprot):
25690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25692
      return
25693
    iprot.readStructBegin()
25694
    while True:
25695
      (fname, ftype, fid) = iprot.readFieldBegin()
25696
      if ftype == TType.STOP:
25697
        break
25698
      else:
25699
        iprot.skip(ftype)
25700
      iprot.readFieldEnd()
25701
    iprot.readStructEnd()
25702
 
25703
  def write(self, oprot):
25704
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25705
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25706
      return
25707
    oprot.writeStructBegin('getCountForSnapdealItems_args')
25708
    oprot.writeFieldStop()
25709
    oprot.writeStructEnd()
25710
 
25711
  def validate(self):
25712
    return
25713
 
25714
 
25715
  def __repr__(self):
25716
    L = ['%s=%r' % (key, value)
25717
      for key, value in self.__dict__.iteritems()]
25718
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25719
 
25720
  def __eq__(self, other):
25721
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25722
 
25723
  def __ne__(self, other):
25724
    return not (self == other)
25725
 
25726
class getCountForSnapdealItems_result:
25727
  """
25728
  Attributes:
25729
   - success
25730
  """
25731
 
25732
  thrift_spec = (
25733
    (0, TType.I64, 'success', None, None, ), # 0
25734
  )
25735
 
25736
  def __init__(self, success=None,):
25737
    self.success = success
25738
 
25739
  def read(self, iprot):
25740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25742
      return
25743
    iprot.readStructBegin()
25744
    while True:
25745
      (fname, ftype, fid) = iprot.readFieldBegin()
25746
      if ftype == TType.STOP:
25747
        break
25748
      if fid == 0:
25749
        if ftype == TType.I64:
25750
          self.success = iprot.readI64();
25751
        else:
25752
          iprot.skip(ftype)
25753
      else:
25754
        iprot.skip(ftype)
25755
      iprot.readFieldEnd()
25756
    iprot.readStructEnd()
25757
 
25758
  def write(self, oprot):
25759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25761
      return
25762
    oprot.writeStructBegin('getCountForSnapdealItems_result')
25763
    if self.success is not None:
25764
      oprot.writeFieldBegin('success', TType.I64, 0)
25765
      oprot.writeI64(self.success)
25766
      oprot.writeFieldEnd()
25767
    oprot.writeFieldStop()
25768
    oprot.writeStructEnd()
25769
 
25770
  def validate(self):
25771
    return
25772
 
25773
 
25774
  def __repr__(self):
25775
    L = ['%s=%r' % (key, value)
25776
      for key, value in self.__dict__.iteritems()]
25777
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25778
 
25779
  def __eq__(self, other):
25780
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25781
 
25782
  def __ne__(self, other):
25783
    return not (self == other)
25784
 
25785
class getSnapdealSearchResultCount_args:
25786
  """
25787
  Attributes:
25788
   - searchTerm
25789
  """
25790
 
25791
  thrift_spec = (
25792
    None, # 0
25793
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25794
  )
25795
 
25796
  def __init__(self, searchTerm=None,):
25797
    self.searchTerm = searchTerm
25798
 
25799
  def read(self, iprot):
25800
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25801
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25802
      return
25803
    iprot.readStructBegin()
25804
    while True:
25805
      (fname, ftype, fid) = iprot.readFieldBegin()
25806
      if ftype == TType.STOP:
25807
        break
25808
      if fid == 1:
25809
        if ftype == TType.LIST:
25810
          self.searchTerm = []
12567 amit.gupta 25811
          (_etype553, _size550) = iprot.readListBegin()
25812
          for _i554 in xrange(_size550):
25813
            _elem555 = iprot.readString();
25814
            self.searchTerm.append(_elem555)
9242 kshitij.so 25815
          iprot.readListEnd()
25816
        else:
25817
          iprot.skip(ftype)
25818
      else:
25819
        iprot.skip(ftype)
25820
      iprot.readFieldEnd()
25821
    iprot.readStructEnd()
25822
 
25823
  def write(self, oprot):
25824
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25825
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25826
      return
25827
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
25828
    if self.searchTerm is not None:
25829
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25830
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25831
      for iter556 in self.searchTerm:
25832
        oprot.writeString(iter556)
9242 kshitij.so 25833
      oprot.writeListEnd()
25834
      oprot.writeFieldEnd()
25835
    oprot.writeFieldStop()
25836
    oprot.writeStructEnd()
25837
 
25838
  def validate(self):
25839
    return
25840
 
25841
 
25842
  def __repr__(self):
25843
    L = ['%s=%r' % (key, value)
25844
      for key, value in self.__dict__.iteritems()]
25845
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25846
 
25847
  def __eq__(self, other):
25848
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25849
 
25850
  def __ne__(self, other):
25851
    return not (self == other)
25852
 
25853
class getSnapdealSearchResultCount_result:
25854
  """
25855
  Attributes:
25856
   - success
25857
  """
25858
 
25859
  thrift_spec = (
25860
    (0, TType.I64, 'success', None, None, ), # 0
25861
  )
25862
 
25863
  def __init__(self, success=None,):
25864
    self.success = success
25865
 
25866
  def read(self, iprot):
25867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25869
      return
25870
    iprot.readStructBegin()
25871
    while True:
25872
      (fname, ftype, fid) = iprot.readFieldBegin()
25873
      if ftype == TType.STOP:
25874
        break
25875
      if fid == 0:
25876
        if ftype == TType.I64:
25877
          self.success = iprot.readI64();
25878
        else:
25879
          iprot.skip(ftype)
25880
      else:
25881
        iprot.skip(ftype)
25882
      iprot.readFieldEnd()
25883
    iprot.readStructEnd()
25884
 
25885
  def write(self, oprot):
25886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25888
      return
25889
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
25890
    if self.success is not None:
25891
      oprot.writeFieldBegin('success', TType.I64, 0)
25892
      oprot.writeI64(self.success)
25893
      oprot.writeFieldEnd()
25894
    oprot.writeFieldStop()
25895
    oprot.writeStructEnd()
25896
 
25897
  def validate(self):
25898
    return
25899
 
25900
 
25901
  def __repr__(self):
25902
    L = ['%s=%r' % (key, value)
25903
      for key, value in self.__dict__.iteritems()]
25904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25905
 
25906
  def __eq__(self, other):
25907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25908
 
25909
  def __ne__(self, other):
25910
    return not (self == other)
9299 kshitij.so 25911
 
25912
class getPrefferedInsurerForItem_args:
25913
  """
25914
  Attributes:
25915
   - itemId
25916
   - insurerType
25917
  """
25918
 
25919
  thrift_spec = (
25920
    None, # 0
25921
    (1, TType.I64, 'itemId', None, None, ), # 1
25922
    (2, TType.I32, 'insurerType', None, None, ), # 2
25923
  )
25924
 
25925
  def __init__(self, itemId=None, insurerType=None,):
25926
    self.itemId = itemId
25927
    self.insurerType = insurerType
25928
 
25929
  def read(self, iprot):
25930
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25931
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25932
      return
25933
    iprot.readStructBegin()
25934
    while True:
25935
      (fname, ftype, fid) = iprot.readFieldBegin()
25936
      if ftype == TType.STOP:
25937
        break
25938
      if fid == 1:
25939
        if ftype == TType.I64:
25940
          self.itemId = iprot.readI64();
25941
        else:
25942
          iprot.skip(ftype)
25943
      elif fid == 2:
25944
        if ftype == TType.I32:
25945
          self.insurerType = iprot.readI32();
25946
        else:
25947
          iprot.skip(ftype)
25948
      else:
25949
        iprot.skip(ftype)
25950
      iprot.readFieldEnd()
25951
    iprot.readStructEnd()
25952
 
25953
  def write(self, oprot):
25954
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25955
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25956
      return
25957
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
25958
    if self.itemId is not None:
25959
      oprot.writeFieldBegin('itemId', TType.I64, 1)
25960
      oprot.writeI64(self.itemId)
25961
      oprot.writeFieldEnd()
25962
    if self.insurerType is not None:
25963
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
25964
      oprot.writeI32(self.insurerType)
25965
      oprot.writeFieldEnd()
25966
    oprot.writeFieldStop()
25967
    oprot.writeStructEnd()
25968
 
25969
  def validate(self):
25970
    return
25971
 
25972
 
25973
  def __repr__(self):
25974
    L = ['%s=%r' % (key, value)
25975
      for key, value in self.__dict__.iteritems()]
25976
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25977
 
25978
  def __eq__(self, other):
25979
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25980
 
25981
  def __ne__(self, other):
25982
    return not (self == other)
25983
 
25984
class getPrefferedInsurerForItem_result:
25985
  """
25986
  Attributes:
25987
   - success
25988
  """
25989
 
25990
  thrift_spec = (
25991
    (0, TType.I64, 'success', None, None, ), # 0
25992
  )
25993
 
25994
  def __init__(self, success=None,):
25995
    self.success = success
25996
 
25997
  def read(self, iprot):
25998
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25999
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26000
      return
26001
    iprot.readStructBegin()
26002
    while True:
26003
      (fname, ftype, fid) = iprot.readFieldBegin()
26004
      if ftype == TType.STOP:
26005
        break
26006
      if fid == 0:
26007
        if ftype == TType.I64:
26008
          self.success = iprot.readI64();
26009
        else:
26010
          iprot.skip(ftype)
26011
      else:
26012
        iprot.skip(ftype)
26013
      iprot.readFieldEnd()
26014
    iprot.readStructEnd()
26015
 
26016
  def write(self, oprot):
26017
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26018
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26019
      return
26020
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
26021
    if self.success is not None:
26022
      oprot.writeFieldBegin('success', TType.I64, 0)
26023
      oprot.writeI64(self.success)
26024
      oprot.writeFieldEnd()
26025
    oprot.writeFieldStop()
26026
    oprot.writeStructEnd()
26027
 
26028
  def validate(self):
26029
    return
26030
 
26031
 
26032
  def __repr__(self):
26033
    L = ['%s=%r' % (key, value)
26034
      for key, value in self.__dict__.iteritems()]
26035
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26036
 
26037
  def __eq__(self, other):
26038
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26039
 
26040
  def __ne__(self, other):
26041
    return not (self == other)
9456 vikram.rag 26042
 
26043
class getSnapdealItembySkuAtSnapdeal_args:
26044
  """
26045
  Attributes:
26046
   - skuAtSnapdeal
26047
  """
26048
 
26049
  thrift_spec = None
26050
  def __init__(self, skuAtSnapdeal=None,):
26051
    self.skuAtSnapdeal = skuAtSnapdeal
26052
 
26053
  def read(self, iprot):
26054
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26055
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26056
      return
26057
    iprot.readStructBegin()
26058
    while True:
26059
      (fname, ftype, fid) = iprot.readFieldBegin()
26060
      if ftype == TType.STOP:
26061
        break
26062
      if fid == -1:
26063
        if ftype == TType.STRING:
26064
          self.skuAtSnapdeal = iprot.readString();
26065
        else:
26066
          iprot.skip(ftype)
26067
      else:
26068
        iprot.skip(ftype)
26069
      iprot.readFieldEnd()
26070
    iprot.readStructEnd()
26071
 
26072
  def write(self, oprot):
26073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26075
      return
26076
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
26077
    if self.skuAtSnapdeal is not None:
26078
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
26079
      oprot.writeString(self.skuAtSnapdeal)
26080
      oprot.writeFieldEnd()
26081
    oprot.writeFieldStop()
26082
    oprot.writeStructEnd()
26083
 
26084
  def validate(self):
26085
    return
26086
 
26087
 
26088
  def __repr__(self):
26089
    L = ['%s=%r' % (key, value)
26090
      for key, value in self.__dict__.iteritems()]
26091
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26092
 
26093
  def __eq__(self, other):
26094
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26095
 
26096
  def __ne__(self, other):
26097
    return not (self == other)
26098
 
26099
class getSnapdealItembySkuAtSnapdeal_result:
26100
  """
26101
  Attributes:
26102
   - success
26103
  """
26104
 
26105
  thrift_spec = (
26106
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
26107
  )
26108
 
26109
  def __init__(self, success=None,):
26110
    self.success = success
26111
 
26112
  def read(self, iprot):
26113
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26114
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26115
      return
26116
    iprot.readStructBegin()
26117
    while True:
26118
      (fname, ftype, fid) = iprot.readFieldBegin()
26119
      if ftype == TType.STOP:
26120
        break
26121
      if fid == 0:
26122
        if ftype == TType.STRUCT:
26123
          self.success = SnapdealItem()
26124
          self.success.read(iprot)
26125
        else:
26126
          iprot.skip(ftype)
26127
      else:
26128
        iprot.skip(ftype)
26129
      iprot.readFieldEnd()
26130
    iprot.readStructEnd()
26131
 
26132
  def write(self, oprot):
26133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26135
      return
26136
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_result')
26137
    if self.success is not None:
26138
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26139
      self.success.write(oprot)
26140
      oprot.writeFieldEnd()
26141
    oprot.writeFieldStop()
26142
    oprot.writeStructEnd()
26143
 
26144
  def validate(self):
26145
    return
26146
 
26147
 
26148
  def __repr__(self):
26149
    L = ['%s=%r' % (key, value)
26150
      for key, value in self.__dict__.iteritems()]
26151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26152
 
26153
  def __eq__(self, other):
26154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26155
 
26156
  def __ne__(self, other):
26157
    return not (self == other)
9621 manish.sha 26158
 
26159
class getProductFeedSubmit_args:
26160
  """
26161
  Attributes:
26162
   - catalogItemId
26163
  """
26164
 
26165
  thrift_spec = (
26166
    None, # 0
26167
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26168
  )
26169
 
26170
  def __init__(self, catalogItemId=None,):
26171
    self.catalogItemId = catalogItemId
26172
 
26173
  def read(self, iprot):
26174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26176
      return
26177
    iprot.readStructBegin()
26178
    while True:
26179
      (fname, ftype, fid) = iprot.readFieldBegin()
26180
      if ftype == TType.STOP:
26181
        break
26182
      if fid == 1:
26183
        if ftype == TType.I64:
26184
          self.catalogItemId = iprot.readI64();
26185
        else:
26186
          iprot.skip(ftype)
26187
      else:
26188
        iprot.skip(ftype)
26189
      iprot.readFieldEnd()
26190
    iprot.readStructEnd()
26191
 
26192
  def write(self, oprot):
26193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26195
      return
26196
    oprot.writeStructBegin('getProductFeedSubmit_args')
26197
    if self.catalogItemId is not None:
26198
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26199
      oprot.writeI64(self.catalogItemId)
26200
      oprot.writeFieldEnd()
26201
    oprot.writeFieldStop()
26202
    oprot.writeStructEnd()
26203
 
26204
  def validate(self):
26205
    return
26206
 
26207
 
26208
  def __repr__(self):
26209
    L = ['%s=%r' % (key, value)
26210
      for key, value in self.__dict__.iteritems()]
26211
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26212
 
26213
  def __eq__(self, other):
26214
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26215
 
26216
  def __ne__(self, other):
26217
    return not (self == other)
26218
 
26219
class getProductFeedSubmit_result:
26220
  """
26221
  Attributes:
26222
   - success
26223
   - cex
26224
  """
26225
 
26226
  thrift_spec = (
26227
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
26228
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26229
  )
26230
 
26231
  def __init__(self, success=None, cex=None,):
26232
    self.success = success
26233
    self.cex = cex
26234
 
26235
  def read(self, iprot):
26236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26238
      return
26239
    iprot.readStructBegin()
26240
    while True:
26241
      (fname, ftype, fid) = iprot.readFieldBegin()
26242
      if ftype == TType.STOP:
26243
        break
26244
      if fid == 0:
26245
        if ftype == TType.STRUCT:
26246
          self.success = ProductFeedSubmit()
26247
          self.success.read(iprot)
26248
        else:
26249
          iprot.skip(ftype)
26250
      elif fid == 1:
26251
        if ftype == TType.STRUCT:
26252
          self.cex = CatalogServiceException()
26253
          self.cex.read(iprot)
26254
        else:
26255
          iprot.skip(ftype)
26256
      else:
26257
        iprot.skip(ftype)
26258
      iprot.readFieldEnd()
26259
    iprot.readStructEnd()
26260
 
26261
  def write(self, oprot):
26262
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26263
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26264
      return
26265
    oprot.writeStructBegin('getProductFeedSubmit_result')
26266
    if self.success is not None:
26267
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26268
      self.success.write(oprot)
26269
      oprot.writeFieldEnd()
26270
    if self.cex is not None:
26271
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26272
      self.cex.write(oprot)
26273
      oprot.writeFieldEnd()
26274
    oprot.writeFieldStop()
26275
    oprot.writeStructEnd()
26276
 
26277
  def validate(self):
26278
    return
26279
 
26280
 
26281
  def __repr__(self):
26282
    L = ['%s=%r' % (key, value)
26283
      for key, value in self.__dict__.iteritems()]
26284
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26285
 
26286
  def __eq__(self, other):
26287
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26288
 
26289
  def __ne__(self, other):
26290
    return not (self == other)
26291
 
26292
class addProductFeedSubmit_args:
26293
  """
26294
  Attributes:
26295
   - productFeedSubmit
26296
  """
26297
 
26298
  thrift_spec = (
26299
    None, # 0
26300
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26301
  )
26302
 
26303
  def __init__(self, productFeedSubmit=None,):
26304
    self.productFeedSubmit = productFeedSubmit
26305
 
26306
  def read(self, iprot):
26307
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26308
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26309
      return
26310
    iprot.readStructBegin()
26311
    while True:
26312
      (fname, ftype, fid) = iprot.readFieldBegin()
26313
      if ftype == TType.STOP:
26314
        break
26315
      if fid == 1:
26316
        if ftype == TType.STRUCT:
26317
          self.productFeedSubmit = ProductFeedSubmit()
26318
          self.productFeedSubmit.read(iprot)
26319
        else:
26320
          iprot.skip(ftype)
26321
      else:
26322
        iprot.skip(ftype)
26323
      iprot.readFieldEnd()
26324
    iprot.readStructEnd()
26325
 
26326
  def write(self, oprot):
26327
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26328
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26329
      return
26330
    oprot.writeStructBegin('addProductFeedSubmit_args')
26331
    if self.productFeedSubmit is not None:
26332
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26333
      self.productFeedSubmit.write(oprot)
26334
      oprot.writeFieldEnd()
26335
    oprot.writeFieldStop()
26336
    oprot.writeStructEnd()
26337
 
26338
  def validate(self):
26339
    return
26340
 
26341
 
26342
  def __repr__(self):
26343
    L = ['%s=%r' % (key, value)
26344
      for key, value in self.__dict__.iteritems()]
26345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26346
 
26347
  def __eq__(self, other):
26348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26349
 
26350
  def __ne__(self, other):
26351
    return not (self == other)
26352
 
26353
class addProductFeedSubmit_result:
26354
  """
26355
  Attributes:
26356
   - success
26357
   - cex
26358
  """
26359
 
26360
  thrift_spec = (
26361
    (0, TType.BOOL, 'success', None, None, ), # 0
26362
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26363
  )
26364
 
26365
  def __init__(self, success=None, cex=None,):
26366
    self.success = success
26367
    self.cex = cex
26368
 
26369
  def read(self, iprot):
26370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26372
      return
26373
    iprot.readStructBegin()
26374
    while True:
26375
      (fname, ftype, fid) = iprot.readFieldBegin()
26376
      if ftype == TType.STOP:
26377
        break
26378
      if fid == 0:
26379
        if ftype == TType.BOOL:
26380
          self.success = iprot.readBool();
26381
        else:
26382
          iprot.skip(ftype)
26383
      elif fid == 1:
26384
        if ftype == TType.STRUCT:
26385
          self.cex = CatalogServiceException()
26386
          self.cex.read(iprot)
26387
        else:
26388
          iprot.skip(ftype)
26389
      else:
26390
        iprot.skip(ftype)
26391
      iprot.readFieldEnd()
26392
    iprot.readStructEnd()
26393
 
26394
  def write(self, oprot):
26395
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26396
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26397
      return
26398
    oprot.writeStructBegin('addProductFeedSubmit_result')
26399
    if self.success is not None:
26400
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26401
      oprot.writeBool(self.success)
26402
      oprot.writeFieldEnd()
26403
    if self.cex is not None:
26404
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26405
      self.cex.write(oprot)
26406
      oprot.writeFieldEnd()
26407
    oprot.writeFieldStop()
26408
    oprot.writeStructEnd()
26409
 
26410
  def validate(self):
26411
    return
26412
 
26413
 
26414
  def __repr__(self):
26415
    L = ['%s=%r' % (key, value)
26416
      for key, value in self.__dict__.iteritems()]
26417
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26418
 
26419
  def __eq__(self, other):
26420
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26421
 
26422
  def __ne__(self, other):
26423
    return not (self == other)
26424
 
26425
class updateProductFeedSubmit_args:
26426
  """
26427
  Attributes:
26428
   - productFeedSubmit
26429
  """
26430
 
26431
  thrift_spec = (
26432
    None, # 0
26433
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26434
  )
26435
 
26436
  def __init__(self, productFeedSubmit=None,):
26437
    self.productFeedSubmit = productFeedSubmit
26438
 
26439
  def read(self, iprot):
26440
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26441
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26442
      return
26443
    iprot.readStructBegin()
26444
    while True:
26445
      (fname, ftype, fid) = iprot.readFieldBegin()
26446
      if ftype == TType.STOP:
26447
        break
26448
      if fid == 1:
26449
        if ftype == TType.STRUCT:
26450
          self.productFeedSubmit = ProductFeedSubmit()
26451
          self.productFeedSubmit.read(iprot)
26452
        else:
26453
          iprot.skip(ftype)
26454
      else:
26455
        iprot.skip(ftype)
26456
      iprot.readFieldEnd()
26457
    iprot.readStructEnd()
26458
 
26459
  def write(self, oprot):
26460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26462
      return
26463
    oprot.writeStructBegin('updateProductFeedSubmit_args')
26464
    if self.productFeedSubmit is not None:
26465
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26466
      self.productFeedSubmit.write(oprot)
26467
      oprot.writeFieldEnd()
26468
    oprot.writeFieldStop()
26469
    oprot.writeStructEnd()
26470
 
26471
  def validate(self):
26472
    return
26473
 
26474
 
26475
  def __repr__(self):
26476
    L = ['%s=%r' % (key, value)
26477
      for key, value in self.__dict__.iteritems()]
26478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26479
 
26480
  def __eq__(self, other):
26481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26482
 
26483
  def __ne__(self, other):
26484
    return not (self == other)
26485
 
26486
class updateProductFeedSubmit_result:
26487
  """
26488
  Attributes:
26489
   - success
26490
   - cex
26491
  """
26492
 
26493
  thrift_spec = (
26494
    (0, TType.BOOL, 'success', None, None, ), # 0
26495
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26496
  )
26497
 
26498
  def __init__(self, success=None, cex=None,):
26499
    self.success = success
26500
    self.cex = cex
26501
 
26502
  def read(self, iprot):
26503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26505
      return
26506
    iprot.readStructBegin()
26507
    while True:
26508
      (fname, ftype, fid) = iprot.readFieldBegin()
26509
      if ftype == TType.STOP:
26510
        break
26511
      if fid == 0:
26512
        if ftype == TType.BOOL:
26513
          self.success = iprot.readBool();
26514
        else:
26515
          iprot.skip(ftype)
26516
      elif fid == 1:
26517
        if ftype == TType.STRUCT:
26518
          self.cex = CatalogServiceException()
26519
          self.cex.read(iprot)
26520
        else:
26521
          iprot.skip(ftype)
26522
      else:
26523
        iprot.skip(ftype)
26524
      iprot.readFieldEnd()
26525
    iprot.readStructEnd()
26526
 
26527
  def write(self, oprot):
26528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26530
      return
26531
    oprot.writeStructBegin('updateProductFeedSubmit_result')
26532
    if self.success is not None:
26533
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26534
      oprot.writeBool(self.success)
26535
      oprot.writeFieldEnd()
26536
    if self.cex is not None:
26537
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26538
      self.cex.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 deleteProductFeedSubmit_args:
26559
  """
26560
  Attributes:
26561
   - catalogItemId
26562
  """
26563
 
26564
  thrift_spec = (
26565
    None, # 0
26566
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26567
  )
26568
 
26569
  def __init__(self, catalogItemId=None,):
26570
    self.catalogItemId = catalogItemId
26571
 
26572
  def read(self, iprot):
26573
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26574
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26575
      return
26576
    iprot.readStructBegin()
26577
    while True:
26578
      (fname, ftype, fid) = iprot.readFieldBegin()
26579
      if ftype == TType.STOP:
26580
        break
26581
      if fid == 1:
26582
        if ftype == TType.I64:
26583
          self.catalogItemId = iprot.readI64();
26584
        else:
26585
          iprot.skip(ftype)
26586
      else:
26587
        iprot.skip(ftype)
26588
      iprot.readFieldEnd()
26589
    iprot.readStructEnd()
26590
 
26591
  def write(self, oprot):
26592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26594
      return
26595
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
26596
    if self.catalogItemId is not None:
26597
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26598
      oprot.writeI64(self.catalogItemId)
26599
      oprot.writeFieldEnd()
26600
    oprot.writeFieldStop()
26601
    oprot.writeStructEnd()
26602
 
26603
  def validate(self):
26604
    return
26605
 
26606
 
26607
  def __repr__(self):
26608
    L = ['%s=%r' % (key, value)
26609
      for key, value in self.__dict__.iteritems()]
26610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26611
 
26612
  def __eq__(self, other):
26613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26614
 
26615
  def __ne__(self, other):
26616
    return not (self == other)
26617
 
26618
class deleteProductFeedSubmit_result:
26619
  """
26620
  Attributes:
26621
   - success
26622
   - cex
26623
  """
26624
 
26625
  thrift_spec = (
26626
    (0, TType.BOOL, 'success', None, None, ), # 0
26627
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26628
  )
26629
 
26630
  def __init__(self, success=None, cex=None,):
26631
    self.success = success
26632
    self.cex = cex
26633
 
26634
  def read(self, iprot):
26635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26637
      return
26638
    iprot.readStructBegin()
26639
    while True:
26640
      (fname, ftype, fid) = iprot.readFieldBegin()
26641
      if ftype == TType.STOP:
26642
        break
26643
      if fid == 0:
26644
        if ftype == TType.BOOL:
26645
          self.success = iprot.readBool();
26646
        else:
26647
          iprot.skip(ftype)
26648
      elif fid == 1:
26649
        if ftype == TType.STRUCT:
26650
          self.cex = CatalogServiceException()
26651
          self.cex.read(iprot)
26652
        else:
26653
          iprot.skip(ftype)
26654
      else:
26655
        iprot.skip(ftype)
26656
      iprot.readFieldEnd()
26657
    iprot.readStructEnd()
26658
 
26659
  def write(self, oprot):
26660
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26661
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26662
      return
26663
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
26664
    if self.success is not None:
26665
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26666
      oprot.writeBool(self.success)
26667
      oprot.writeFieldEnd()
26668
    if self.cex is not None:
26669
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26670
      self.cex.write(oprot)
26671
      oprot.writeFieldEnd()
26672
    oprot.writeFieldStop()
26673
    oprot.writeStructEnd()
26674
 
26675
  def validate(self):
26676
    return
26677
 
26678
 
26679
  def __repr__(self):
26680
    L = ['%s=%r' % (key, value)
26681
      for key, value in self.__dict__.iteritems()]
26682
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26683
 
26684
  def __eq__(self, other):
26685
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26686
 
26687
  def __ne__(self, other):
26688
    return not (self == other)
26689
 
26690
class getAllProductFeedSubmit_args:
26691
 
26692
  thrift_spec = (
26693
  )
26694
 
26695
  def read(self, iprot):
26696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26698
      return
26699
    iprot.readStructBegin()
26700
    while True:
26701
      (fname, ftype, fid) = iprot.readFieldBegin()
26702
      if ftype == TType.STOP:
26703
        break
26704
      else:
26705
        iprot.skip(ftype)
26706
      iprot.readFieldEnd()
26707
    iprot.readStructEnd()
26708
 
26709
  def write(self, oprot):
26710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26712
      return
26713
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
26714
    oprot.writeFieldStop()
26715
    oprot.writeStructEnd()
26716
 
26717
  def validate(self):
26718
    return
26719
 
26720
 
26721
  def __repr__(self):
26722
    L = ['%s=%r' % (key, value)
26723
      for key, value in self.__dict__.iteritems()]
26724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26725
 
26726
  def __eq__(self, other):
26727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26728
 
26729
  def __ne__(self, other):
26730
    return not (self == other)
26731
 
26732
class getAllProductFeedSubmit_result:
26733
  """
26734
  Attributes:
26735
   - success
26736
   - cex
26737
  """
26738
 
26739
  thrift_spec = (
26740
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
26741
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26742
  )
26743
 
26744
  def __init__(self, success=None, cex=None,):
26745
    self.success = success
26746
    self.cex = cex
26747
 
26748
  def read(self, iprot):
26749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26751
      return
26752
    iprot.readStructBegin()
26753
    while True:
26754
      (fname, ftype, fid) = iprot.readFieldBegin()
26755
      if ftype == TType.STOP:
26756
        break
26757
      if fid == 0:
26758
        if ftype == TType.LIST:
26759
          self.success = []
12567 amit.gupta 26760
          (_etype560, _size557) = iprot.readListBegin()
26761
          for _i561 in xrange(_size557):
26762
            _elem562 = ProductFeedSubmit()
26763
            _elem562.read(iprot)
26764
            self.success.append(_elem562)
9621 manish.sha 26765
          iprot.readListEnd()
26766
        else:
26767
          iprot.skip(ftype)
26768
      elif fid == 1:
26769
        if ftype == TType.STRUCT:
26770
          self.cex = CatalogServiceException()
26771
          self.cex.read(iprot)
26772
        else:
26773
          iprot.skip(ftype)
26774
      else:
26775
        iprot.skip(ftype)
26776
      iprot.readFieldEnd()
26777
    iprot.readStructEnd()
26778
 
26779
  def write(self, oprot):
26780
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26781
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26782
      return
26783
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
26784
    if self.success is not None:
26785
      oprot.writeFieldBegin('success', TType.LIST, 0)
26786
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 26787
      for iter563 in self.success:
26788
        iter563.write(oprot)
9621 manish.sha 26789
      oprot.writeListEnd()
26790
      oprot.writeFieldEnd()
26791
    if self.cex is not None:
26792
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26793
      self.cex.write(oprot)
26794
      oprot.writeFieldEnd()
26795
    oprot.writeFieldStop()
26796
    oprot.writeStructEnd()
26797
 
26798
  def validate(self):
26799
    return
26800
 
26801
 
26802
  def __repr__(self):
26803
    L = ['%s=%r' % (key, value)
26804
      for key, value in self.__dict__.iteritems()]
26805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26806
 
26807
  def __eq__(self, other):
26808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26809
 
26810
  def __ne__(self, other):
26811
    return not (self == other)
9724 kshitij.so 26812
 
26813
class getMarketplacedetailsForItem_args:
26814
  """
26815
  Attributes:
26816
   - itemId
26817
   - sourceId
26818
  """
26819
 
26820
  thrift_spec = (
26821
    None, # 0
26822
    (1, TType.I64, 'itemId', None, None, ), # 1
26823
    (2, TType.I64, 'sourceId', None, None, ), # 2
26824
  )
26825
 
26826
  def __init__(self, itemId=None, sourceId=None,):
26827
    self.itemId = itemId
26828
    self.sourceId = sourceId
26829
 
26830
  def read(self, iprot):
26831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26833
      return
26834
    iprot.readStructBegin()
26835
    while True:
26836
      (fname, ftype, fid) = iprot.readFieldBegin()
26837
      if ftype == TType.STOP:
26838
        break
26839
      if fid == 1:
26840
        if ftype == TType.I64:
26841
          self.itemId = iprot.readI64();
26842
        else:
26843
          iprot.skip(ftype)
26844
      elif fid == 2:
26845
        if ftype == TType.I64:
26846
          self.sourceId = iprot.readI64();
26847
        else:
26848
          iprot.skip(ftype)
26849
      else:
26850
        iprot.skip(ftype)
26851
      iprot.readFieldEnd()
26852
    iprot.readStructEnd()
26853
 
26854
  def write(self, oprot):
26855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26857
      return
26858
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
26859
    if self.itemId is not None:
26860
      oprot.writeFieldBegin('itemId', TType.I64, 1)
26861
      oprot.writeI64(self.itemId)
26862
      oprot.writeFieldEnd()
26863
    if self.sourceId is not None:
26864
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
26865
      oprot.writeI64(self.sourceId)
26866
      oprot.writeFieldEnd()
26867
    oprot.writeFieldStop()
26868
    oprot.writeStructEnd()
26869
 
26870
  def validate(self):
26871
    return
26872
 
26873
 
26874
  def __repr__(self):
26875
    L = ['%s=%r' % (key, value)
26876
      for key, value in self.__dict__.iteritems()]
26877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26878
 
26879
  def __eq__(self, other):
26880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26881
 
26882
  def __ne__(self, other):
26883
    return not (self == other)
26884
 
26885
class getMarketplacedetailsForItem_result:
26886
  """
26887
  Attributes:
26888
   - success
26889
  """
26890
 
26891
  thrift_spec = (
26892
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
26893
  )
26894
 
26895
  def __init__(self, success=None,):
26896
    self.success = success
26897
 
26898
  def read(self, iprot):
26899
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26900
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26901
      return
26902
    iprot.readStructBegin()
26903
    while True:
26904
      (fname, ftype, fid) = iprot.readFieldBegin()
26905
      if ftype == TType.STOP:
26906
        break
26907
      if fid == 0:
26908
        if ftype == TType.STRUCT:
26909
          self.success = MarketplaceItems()
26910
          self.success.read(iprot)
26911
        else:
26912
          iprot.skip(ftype)
26913
      else:
26914
        iprot.skip(ftype)
26915
      iprot.readFieldEnd()
26916
    iprot.readStructEnd()
26917
 
26918
  def write(self, oprot):
26919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26921
      return
26922
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
26923
    if self.success is not None:
26924
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26925
      self.success.write(oprot)
26926
      oprot.writeFieldEnd()
26927
    oprot.writeFieldStop()
26928
    oprot.writeStructEnd()
26929
 
26930
  def validate(self):
26931
    return
26932
 
26933
 
26934
  def __repr__(self):
26935
    L = ['%s=%r' % (key, value)
26936
      for key, value in self.__dict__.iteritems()]
26937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26938
 
26939
  def __eq__(self, other):
26940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26941
 
26942
  def __ne__(self, other):
26943
    return not (self == other)
26944
 
26945
class updateMarketplaceAttributesForItem_args:
26946
  """
26947
  Attributes:
26948
   - marketPlaceItem
26949
  """
26950
 
26951
  thrift_spec = (
26952
    None, # 0
26953
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
26954
  )
26955
 
26956
  def __init__(self, marketPlaceItem=None,):
26957
    self.marketPlaceItem = marketPlaceItem
26958
 
26959
  def read(self, iprot):
26960
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26961
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26962
      return
26963
    iprot.readStructBegin()
26964
    while True:
26965
      (fname, ftype, fid) = iprot.readFieldBegin()
26966
      if ftype == TType.STOP:
26967
        break
26968
      if fid == 1:
26969
        if ftype == TType.STRUCT:
26970
          self.marketPlaceItem = MarketplaceItems()
26971
          self.marketPlaceItem.read(iprot)
26972
        else:
26973
          iprot.skip(ftype)
26974
      else:
26975
        iprot.skip(ftype)
26976
      iprot.readFieldEnd()
26977
    iprot.readStructEnd()
26978
 
26979
  def write(self, oprot):
26980
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26981
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26982
      return
26983
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
26984
    if self.marketPlaceItem is not None:
26985
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
26986
      self.marketPlaceItem.write(oprot)
26987
      oprot.writeFieldEnd()
26988
    oprot.writeFieldStop()
26989
    oprot.writeStructEnd()
26990
 
26991
  def validate(self):
26992
    return
26993
 
26994
 
26995
  def __repr__(self):
26996
    L = ['%s=%r' % (key, value)
26997
      for key, value in self.__dict__.iteritems()]
26998
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26999
 
27000
  def __eq__(self, other):
27001
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27002
 
27003
  def __ne__(self, other):
27004
    return not (self == other)
27005
 
27006
class updateMarketplaceAttributesForItem_result:
27007
  """
27008
  Attributes:
27009
   - success
27010
  """
27011
 
27012
  thrift_spec = (
27013
    (0, TType.BOOL, 'success', None, None, ), # 0
27014
  )
27015
 
27016
  def __init__(self, success=None,):
27017
    self.success = success
27018
 
27019
  def read(self, iprot):
27020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27022
      return
27023
    iprot.readStructBegin()
27024
    while True:
27025
      (fname, ftype, fid) = iprot.readFieldBegin()
27026
      if ftype == TType.STOP:
27027
        break
27028
      if fid == 0:
27029
        if ftype == TType.BOOL:
27030
          self.success = iprot.readBool();
27031
        else:
27032
          iprot.skip(ftype)
27033
      else:
27034
        iprot.skip(ftype)
27035
      iprot.readFieldEnd()
27036
    iprot.readStructEnd()
27037
 
27038
  def write(self, oprot):
27039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27041
      return
27042
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
27043
    if self.success is not None:
27044
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27045
      oprot.writeBool(self.success)
27046
      oprot.writeFieldEnd()
27047
    oprot.writeFieldStop()
27048
    oprot.writeStructEnd()
27049
 
27050
  def validate(self):
27051
    return
27052
 
27053
 
27054
  def __repr__(self):
27055
    L = ['%s=%r' % (key, value)
27056
      for key, value in self.__dict__.iteritems()]
27057
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27058
 
27059
  def __eq__(self, other):
27060
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27061
 
27062
  def __ne__(self, other):
27063
    return not (self == other)
9776 vikram.rag 27064
 
9779 kshitij.so 27065
class getCostingForMarketplace_args:
27066
  """
27067
  Attributes:
27068
   - source
27069
   - item_id
27070
  """
27071
 
27072
  thrift_spec = (
27073
    None, # 0
27074
    (1, TType.I64, 'source', None, None, ), # 1
27075
    (2, TType.I64, 'item_id', None, None, ), # 2
27076
  )
27077
 
27078
  def __init__(self, source=None, item_id=None,):
27079
    self.source = source
27080
    self.item_id = item_id
27081
 
27082
  def read(self, iprot):
27083
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27084
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27085
      return
27086
    iprot.readStructBegin()
27087
    while True:
27088
      (fname, ftype, fid) = iprot.readFieldBegin()
27089
      if ftype == TType.STOP:
27090
        break
27091
      if fid == 1:
27092
        if ftype == TType.I64:
27093
          self.source = iprot.readI64();
27094
        else:
27095
          iprot.skip(ftype)
27096
      elif fid == 2:
27097
        if ftype == TType.I64:
27098
          self.item_id = iprot.readI64();
27099
        else:
27100
          iprot.skip(ftype)
27101
      else:
27102
        iprot.skip(ftype)
27103
      iprot.readFieldEnd()
27104
    iprot.readStructEnd()
27105
 
27106
  def write(self, oprot):
27107
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27108
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27109
      return
27110
    oprot.writeStructBegin('getCostingForMarketplace_args')
27111
    if self.source is not None:
27112
      oprot.writeFieldBegin('source', TType.I64, 1)
27113
      oprot.writeI64(self.source)
27114
      oprot.writeFieldEnd()
27115
    if self.item_id is not None:
27116
      oprot.writeFieldBegin('item_id', TType.I64, 2)
27117
      oprot.writeI64(self.item_id)
27118
      oprot.writeFieldEnd()
27119
    oprot.writeFieldStop()
27120
    oprot.writeStructEnd()
27121
 
27122
  def validate(self):
27123
    return
27124
 
27125
 
27126
  def __repr__(self):
27127
    L = ['%s=%r' % (key, value)
27128
      for key, value in self.__dict__.iteritems()]
27129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27130
 
27131
  def __eq__(self, other):
27132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27133
 
27134
  def __ne__(self, other):
27135
    return not (self == other)
27136
 
27137
class getCostingForMarketplace_result:
27138
  """
27139
  Attributes:
27140
   - success
27141
  """
27142
 
27143
  thrift_spec = (
27144
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
27145
  )
27146
 
27147
  def __init__(self, success=None,):
27148
    self.success = success
27149
 
27150
  def read(self, iprot):
27151
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27152
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27153
      return
27154
    iprot.readStructBegin()
27155
    while True:
27156
      (fname, ftype, fid) = iprot.readFieldBegin()
27157
      if ftype == TType.STOP:
27158
        break
27159
      if fid == 0:
27160
        if ftype == TType.STRUCT:
27161
          self.success = MarketplacePercentage()
27162
          self.success.read(iprot)
27163
        else:
27164
          iprot.skip(ftype)
27165
      else:
27166
        iprot.skip(ftype)
27167
      iprot.readFieldEnd()
27168
    iprot.readStructEnd()
27169
 
27170
  def write(self, oprot):
27171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27173
      return
27174
    oprot.writeStructBegin('getCostingForMarketplace_result')
27175
    if self.success is not None:
27176
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27177
      self.success.write(oprot)
27178
      oprot.writeFieldEnd()
27179
    oprot.writeFieldStop()
27180
    oprot.writeStructEnd()
27181
 
27182
  def validate(self):
27183
    return
27184
 
27185
 
27186
  def __repr__(self):
27187
    L = ['%s=%r' % (key, value)
27188
      for key, value in self.__dict__.iteritems()]
27189
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27190
 
27191
  def __eq__(self, other):
27192
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27193
 
27194
  def __ne__(self, other):
27195
    return not (self == other)
27196
 
9776 vikram.rag 27197
class getMarketPlaceItemsForPriceUpdate_args:
27198
  """
27199
  Attributes:
27200
   - source
27201
  """
27202
 
27203
  thrift_spec = (
27204
    None, # 0
27205
    (1, TType.I64, 'source', None, None, ), # 1
27206
  )
27207
 
27208
  def __init__(self, source=None,):
27209
    self.source = source
27210
 
27211
  def read(self, iprot):
27212
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27213
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27214
      return
27215
    iprot.readStructBegin()
27216
    while True:
27217
      (fname, ftype, fid) = iprot.readFieldBegin()
27218
      if ftype == TType.STOP:
27219
        break
27220
      if fid == 1:
27221
        if ftype == TType.I64:
27222
          self.source = iprot.readI64();
27223
        else:
27224
          iprot.skip(ftype)
27225
      else:
27226
        iprot.skip(ftype)
27227
      iprot.readFieldEnd()
27228
    iprot.readStructEnd()
27229
 
27230
  def write(self, oprot):
27231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27233
      return
27234
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
27235
    if self.source is not None:
27236
      oprot.writeFieldBegin('source', TType.I64, 1)
27237
      oprot.writeI64(self.source)
27238
      oprot.writeFieldEnd()
27239
    oprot.writeFieldStop()
27240
    oprot.writeStructEnd()
27241
 
27242
  def validate(self):
27243
    return
27244
 
27245
 
27246
  def __repr__(self):
27247
    L = ['%s=%r' % (key, value)
27248
      for key, value in self.__dict__.iteritems()]
27249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27250
 
27251
  def __eq__(self, other):
27252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27253
 
27254
  def __ne__(self, other):
27255
    return not (self == other)
27256
 
27257
class getMarketPlaceItemsForPriceUpdate_result:
27258
  """
27259
  Attributes:
27260
   - success
27261
  """
27262
 
27263
  thrift_spec = (
27264
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
27265
  )
27266
 
27267
  def __init__(self, success=None,):
27268
    self.success = success
27269
 
27270
  def read(self, iprot):
27271
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27272
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27273
      return
27274
    iprot.readStructBegin()
27275
    while True:
27276
      (fname, ftype, fid) = iprot.readFieldBegin()
27277
      if ftype == TType.STOP:
27278
        break
27279
      if fid == 0:
27280
        if ftype == TType.LIST:
27281
          self.success = []
12567 amit.gupta 27282
          (_etype567, _size564) = iprot.readListBegin()
27283
          for _i568 in xrange(_size564):
27284
            _elem569 = MarketPlaceItemPrice()
27285
            _elem569.read(iprot)
27286
            self.success.append(_elem569)
9776 vikram.rag 27287
          iprot.readListEnd()
27288
        else:
27289
          iprot.skip(ftype)
27290
      else:
27291
        iprot.skip(ftype)
27292
      iprot.readFieldEnd()
27293
    iprot.readStructEnd()
27294
 
27295
  def write(self, oprot):
27296
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27297
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27298
      return
27299
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
27300
    if self.success is not None:
27301
      oprot.writeFieldBegin('success', TType.LIST, 0)
27302
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27303
      for iter570 in self.success:
27304
        iter570.write(oprot)
9776 vikram.rag 27305
      oprot.writeListEnd()
27306
      oprot.writeFieldEnd()
27307
    oprot.writeFieldStop()
27308
    oprot.writeStructEnd()
27309
 
27310
  def validate(self):
27311
    return
27312
 
27313
 
27314
  def __repr__(self):
27315
    L = ['%s=%r' % (key, value)
27316
      for key, value in self.__dict__.iteritems()]
27317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27318
 
27319
  def __eq__(self, other):
27320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27321
 
27322
  def __ne__(self, other):
27323
    return not (self == other)
27324
 
27325
class updateMarketPlacePriceUpdateStatus_args:
27326
  """
27327
  Attributes:
27328
   - skulist
27329
   - timestamp
9816 kshitij.so 27330
   - source
9776 vikram.rag 27331
  """
27332
 
27333
  thrift_spec = (
27334
    None, # 0
27335
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
27336
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 27337
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 27338
  )
27339
 
9816 kshitij.so 27340
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 27341
    self.skulist = skulist
27342
    self.timestamp = timestamp
9816 kshitij.so 27343
    self.source = source
9776 vikram.rag 27344
 
27345
  def read(self, iprot):
27346
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27347
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27348
      return
27349
    iprot.readStructBegin()
27350
    while True:
27351
      (fname, ftype, fid) = iprot.readFieldBegin()
27352
      if ftype == TType.STOP:
27353
        break
27354
      if fid == 1:
27355
        if ftype == TType.LIST:
27356
          self.skulist = []
12567 amit.gupta 27357
          (_etype574, _size571) = iprot.readListBegin()
27358
          for _i575 in xrange(_size571):
27359
            _elem576 = iprot.readI64();
27360
            self.skulist.append(_elem576)
9776 vikram.rag 27361
          iprot.readListEnd()
27362
        else:
27363
          iprot.skip(ftype)
27364
      elif fid == 2:
27365
        if ftype == TType.I64:
27366
          self.timestamp = iprot.readI64();
27367
        else:
27368
          iprot.skip(ftype)
9816 kshitij.so 27369
      elif fid == 3:
27370
        if ftype == TType.I64:
27371
          self.source = iprot.readI64();
27372
        else:
27373
          iprot.skip(ftype)
9776 vikram.rag 27374
      else:
27375
        iprot.skip(ftype)
27376
      iprot.readFieldEnd()
27377
    iprot.readStructEnd()
27378
 
27379
  def write(self, oprot):
27380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27382
      return
27383
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
27384
    if self.skulist is not None:
27385
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
27386
      oprot.writeListBegin(TType.I64, len(self.skulist))
12567 amit.gupta 27387
      for iter577 in self.skulist:
27388
        oprot.writeI64(iter577)
9776 vikram.rag 27389
      oprot.writeListEnd()
27390
      oprot.writeFieldEnd()
27391
    if self.timestamp is not None:
27392
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
27393
      oprot.writeI64(self.timestamp)
27394
      oprot.writeFieldEnd()
9816 kshitij.so 27395
    if self.source is not None:
27396
      oprot.writeFieldBegin('source', TType.I64, 3)
27397
      oprot.writeI64(self.source)
27398
      oprot.writeFieldEnd()
9776 vikram.rag 27399
    oprot.writeFieldStop()
27400
    oprot.writeStructEnd()
27401
 
27402
  def validate(self):
27403
    return
27404
 
27405
 
27406
  def __repr__(self):
27407
    L = ['%s=%r' % (key, value)
27408
      for key, value in self.__dict__.iteritems()]
27409
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27410
 
27411
  def __eq__(self, other):
27412
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27413
 
27414
  def __ne__(self, other):
27415
    return not (self == other)
27416
 
27417
class updateMarketPlacePriceUpdateStatus_result:
27418
 
27419
  thrift_spec = (
27420
  )
27421
 
27422
  def read(self, iprot):
27423
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27424
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27425
      return
27426
    iprot.readStructBegin()
27427
    while True:
27428
      (fname, ftype, fid) = iprot.readFieldBegin()
27429
      if ftype == TType.STOP:
27430
        break
27431
      else:
27432
        iprot.skip(ftype)
27433
      iprot.readFieldEnd()
27434
    iprot.readStructEnd()
27435
 
27436
  def write(self, oprot):
27437
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27438
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27439
      return
27440
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
27441
    oprot.writeFieldStop()
27442
    oprot.writeStructEnd()
27443
 
27444
  def validate(self):
27445
    return
27446
 
27447
 
27448
  def __repr__(self):
27449
    L = ['%s=%r' % (key, value)
27450
      for key, value in self.__dict__.iteritems()]
27451
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27452
 
27453
  def __eq__(self, other):
27454
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27455
 
27456
  def __ne__(self, other):
27457
    return not (self == other)
9861 rajveer 27458
 
27459
class updateItemHoldInventory_args:
27460
  """
27461
  Attributes:
27462
   - itemHoldMap
27463
  """
27464
 
27465
  thrift_spec = (
27466
    None, # 0
27467
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
27468
  )
27469
 
27470
  def __init__(self, itemHoldMap=None,):
27471
    self.itemHoldMap = itemHoldMap
27472
 
27473
  def read(self, iprot):
27474
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27475
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27476
      return
27477
    iprot.readStructBegin()
27478
    while True:
27479
      (fname, ftype, fid) = iprot.readFieldBegin()
27480
      if ftype == TType.STOP:
27481
        break
27482
      if fid == 1:
27483
        if ftype == TType.MAP:
27484
          self.itemHoldMap = {}
12567 amit.gupta 27485
          (_ktype579, _vtype580, _size578 ) = iprot.readMapBegin() 
27486
          for _i582 in xrange(_size578):
27487
            _key583 = iprot.readI64();
27488
            _val584 = iprot.readI64();
27489
            self.itemHoldMap[_key583] = _val584
9861 rajveer 27490
          iprot.readMapEnd()
27491
        else:
27492
          iprot.skip(ftype)
27493
      else:
27494
        iprot.skip(ftype)
27495
      iprot.readFieldEnd()
27496
    iprot.readStructEnd()
27497
 
27498
  def write(self, oprot):
27499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27501
      return
27502
    oprot.writeStructBegin('updateItemHoldInventory_args')
27503
    if self.itemHoldMap is not None:
27504
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
27505
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
12567 amit.gupta 27506
      for kiter585,viter586 in self.itemHoldMap.items():
27507
        oprot.writeI64(kiter585)
27508
        oprot.writeI64(viter586)
9861 rajveer 27509
      oprot.writeMapEnd()
27510
      oprot.writeFieldEnd()
27511
    oprot.writeFieldStop()
27512
    oprot.writeStructEnd()
27513
 
27514
  def validate(self):
27515
    return
27516
 
27517
 
27518
  def __repr__(self):
27519
    L = ['%s=%r' % (key, value)
27520
      for key, value in self.__dict__.iteritems()]
27521
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27522
 
27523
  def __eq__(self, other):
27524
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27525
 
27526
  def __ne__(self, other):
27527
    return not (self == other)
27528
 
27529
class updateItemHoldInventory_result:
27530
 
27531
  thrift_spec = (
27532
  )
27533
 
27534
  def read(self, iprot):
27535
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27536
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27537
      return
27538
    iprot.readStructBegin()
27539
    while True:
27540
      (fname, ftype, fid) = iprot.readFieldBegin()
27541
      if ftype == TType.STOP:
27542
        break
27543
      else:
27544
        iprot.skip(ftype)
27545
      iprot.readFieldEnd()
27546
    iprot.readStructEnd()
27547
 
27548
  def write(self, oprot):
27549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27551
      return
27552
    oprot.writeStructBegin('updateItemHoldInventory_result')
27553
    oprot.writeFieldStop()
27554
    oprot.writeStructEnd()
27555
 
27556
  def validate(self):
27557
    return
27558
 
27559
 
27560
  def __repr__(self):
27561
    L = ['%s=%r' % (key, value)
27562
      for key, value in self.__dict__.iteritems()]
27563
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27564
 
27565
  def __eq__(self, other):
27566
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27567
 
27568
  def __ne__(self, other):
27569
    return not (self == other)
9895 vikram.rag 27570
 
27571
class updateNlcAtMarketplaces_args:
27572
  """
27573
  Attributes:
27574
   - item_id
27575
   - vendor_id
27576
   - nlc
27577
  """
27578
 
27579
  thrift_spec = None
27580
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
27581
    self.item_id = item_id
27582
    self.vendor_id = vendor_id
27583
    self.nlc = nlc
27584
 
27585
  def read(self, iprot):
27586
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27587
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27588
      return
27589
    iprot.readStructBegin()
27590
    while True:
27591
      (fname, ftype, fid) = iprot.readFieldBegin()
27592
      if ftype == TType.STOP:
27593
        break
27594
      if fid == 1:
27595
        if ftype == TType.I64:
27596
          self.item_id = iprot.readI64();
27597
        else:
27598
          iprot.skip(ftype)
27599
      elif fid == 2:
27600
        if ftype == TType.I64:
27601
          self.vendor_id = iprot.readI64();
27602
        else:
27603
          iprot.skip(ftype)
27604
      elif fid == -1:
27605
        if ftype == TType.DOUBLE:
27606
          self.nlc = iprot.readDouble();
27607
        else:
27608
          iprot.skip(ftype)
27609
      else:
27610
        iprot.skip(ftype)
27611
      iprot.readFieldEnd()
27612
    iprot.readStructEnd()
27613
 
27614
  def write(self, oprot):
27615
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27616
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27617
      return
27618
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
27619
    if self.nlc is not None:
27620
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
27621
      oprot.writeDouble(self.nlc)
27622
      oprot.writeFieldEnd()
27623
    if self.item_id is not None:
27624
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27625
      oprot.writeI64(self.item_id)
27626
      oprot.writeFieldEnd()
27627
    if self.vendor_id is not None:
27628
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
27629
      oprot.writeI64(self.vendor_id)
27630
      oprot.writeFieldEnd()
27631
    oprot.writeFieldStop()
27632
    oprot.writeStructEnd()
27633
 
27634
  def validate(self):
27635
    return
27636
 
27637
 
27638
  def __repr__(self):
27639
    L = ['%s=%r' % (key, value)
27640
      for key, value in self.__dict__.iteritems()]
27641
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27642
 
27643
  def __eq__(self, other):
27644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27645
 
27646
  def __ne__(self, other):
27647
    return not (self == other)
27648
 
27649
class updateNlcAtMarketplaces_result:
27650
 
27651
  thrift_spec = (
27652
  )
27653
 
27654
  def read(self, iprot):
27655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27657
      return
27658
    iprot.readStructBegin()
27659
    while True:
27660
      (fname, ftype, fid) = iprot.readFieldBegin()
27661
      if ftype == TType.STOP:
27662
        break
27663
      else:
27664
        iprot.skip(ftype)
27665
      iprot.readFieldEnd()
27666
    iprot.readStructEnd()
27667
 
27668
  def write(self, oprot):
27669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27671
      return
27672
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
27673
    oprot.writeFieldStop()
27674
    oprot.writeStructEnd()
27675
 
27676
  def validate(self):
27677
    return
27678
 
27679
 
27680
  def __repr__(self):
27681
    L = ['%s=%r' % (key, value)
27682
      for key, value in self.__dict__.iteritems()]
27683
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27684
 
27685
  def __eq__(self, other):
27686
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27687
 
27688
  def __ne__(self, other):
27689
    return not (self == other)
9945 vikram.rag 27690
 
27691
class getAllFlipkartItems_args:
27692
 
27693
  thrift_spec = (
27694
  )
27695
 
27696
  def read(self, iprot):
27697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27699
      return
27700
    iprot.readStructBegin()
27701
    while True:
27702
      (fname, ftype, fid) = iprot.readFieldBegin()
27703
      if ftype == TType.STOP:
27704
        break
27705
      else:
27706
        iprot.skip(ftype)
27707
      iprot.readFieldEnd()
27708
    iprot.readStructEnd()
27709
 
27710
  def write(self, oprot):
27711
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27712
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27713
      return
27714
    oprot.writeStructBegin('getAllFlipkartItems_args')
27715
    oprot.writeFieldStop()
27716
    oprot.writeStructEnd()
27717
 
27718
  def validate(self):
27719
    return
27720
 
27721
 
27722
  def __repr__(self):
27723
    L = ['%s=%r' % (key, value)
27724
      for key, value in self.__dict__.iteritems()]
27725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27726
 
27727
  def __eq__(self, other):
27728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27729
 
27730
  def __ne__(self, other):
27731
    return not (self == other)
27732
 
27733
class getAllFlipkartItems_result:
27734
  """
27735
  Attributes:
27736
   - success
27737
  """
27738
 
27739
  thrift_spec = (
27740
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
27741
  )
27742
 
27743
  def __init__(self, success=None,):
27744
    self.success = success
27745
 
27746
  def read(self, iprot):
27747
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27748
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27749
      return
27750
    iprot.readStructBegin()
27751
    while True:
27752
      (fname, ftype, fid) = iprot.readFieldBegin()
27753
      if ftype == TType.STOP:
27754
        break
27755
      if fid == 0:
27756
        if ftype == TType.LIST:
27757
          self.success = []
12567 amit.gupta 27758
          (_etype590, _size587) = iprot.readListBegin()
27759
          for _i591 in xrange(_size587):
27760
            _elem592 = FlipkartItem()
27761
            _elem592.read(iprot)
27762
            self.success.append(_elem592)
9945 vikram.rag 27763
          iprot.readListEnd()
27764
        else:
27765
          iprot.skip(ftype)
27766
      else:
27767
        iprot.skip(ftype)
27768
      iprot.readFieldEnd()
27769
    iprot.readStructEnd()
27770
 
27771
  def write(self, oprot):
27772
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27773
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27774
      return
27775
    oprot.writeStructBegin('getAllFlipkartItems_result')
27776
    if self.success is not None:
27777
      oprot.writeFieldBegin('success', TType.LIST, 0)
27778
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27779
      for iter593 in self.success:
27780
        iter593.write(oprot)
9945 vikram.rag 27781
      oprot.writeListEnd()
27782
      oprot.writeFieldEnd()
27783
    oprot.writeFieldStop()
27784
    oprot.writeStructEnd()
27785
 
27786
  def validate(self):
27787
    return
27788
 
27789
 
27790
  def __repr__(self):
27791
    L = ['%s=%r' % (key, value)
27792
      for key, value in self.__dict__.iteritems()]
27793
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27794
 
27795
  def __eq__(self, other):
27796
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27797
 
27798
  def __ne__(self, other):
27799
    return not (self == other)
10097 kshitij.so 27800
 
27801
class addOrUpdateFlipkartItem_args:
27802
  """
27803
  Attributes:
27804
   - flipkartitem
27805
  """
27806
 
27807
  thrift_spec = None
27808
  def __init__(self, flipkartitem=None,):
27809
    self.flipkartitem = flipkartitem
27810
 
27811
  def read(self, iprot):
27812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27814
      return
27815
    iprot.readStructBegin()
27816
    while True:
27817
      (fname, ftype, fid) = iprot.readFieldBegin()
27818
      if ftype == TType.STOP:
27819
        break
27820
      if fid == -1:
27821
        if ftype == TType.STRUCT:
27822
          self.flipkartitem = FlipkartItem()
27823
          self.flipkartitem.read(iprot)
27824
        else:
27825
          iprot.skip(ftype)
27826
      else:
27827
        iprot.skip(ftype)
27828
      iprot.readFieldEnd()
27829
    iprot.readStructEnd()
27830
 
27831
  def write(self, oprot):
27832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27834
      return
27835
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
27836
    if self.flipkartitem is not None:
27837
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
27838
      self.flipkartitem.write(oprot)
27839
      oprot.writeFieldEnd()
27840
    oprot.writeFieldStop()
27841
    oprot.writeStructEnd()
27842
 
27843
  def validate(self):
27844
    return
27845
 
27846
 
27847
  def __repr__(self):
27848
    L = ['%s=%r' % (key, value)
27849
      for key, value in self.__dict__.iteritems()]
27850
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27851
 
27852
  def __eq__(self, other):
27853
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27854
 
27855
  def __ne__(self, other):
27856
    return not (self == other)
27857
 
27858
class addOrUpdateFlipkartItem_result:
27859
  """
27860
  Attributes:
27861
   - success
27862
  """
27863
 
27864
  thrift_spec = (
27865
    (0, TType.BOOL, 'success', None, None, ), # 0
27866
  )
27867
 
27868
  def __init__(self, success=None,):
27869
    self.success = success
27870
 
27871
  def read(self, iprot):
27872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27874
      return
27875
    iprot.readStructBegin()
27876
    while True:
27877
      (fname, ftype, fid) = iprot.readFieldBegin()
27878
      if ftype == TType.STOP:
27879
        break
27880
      if fid == 0:
27881
        if ftype == TType.BOOL:
27882
          self.success = iprot.readBool();
27883
        else:
27884
          iprot.skip(ftype)
27885
      else:
27886
        iprot.skip(ftype)
27887
      iprot.readFieldEnd()
27888
    iprot.readStructEnd()
27889
 
27890
  def write(self, oprot):
27891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27893
      return
27894
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
27895
    if self.success is not None:
27896
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27897
      oprot.writeBool(self.success)
27898
      oprot.writeFieldEnd()
27899
    oprot.writeFieldStop()
27900
    oprot.writeStructEnd()
27901
 
27902
  def validate(self):
27903
    return
27904
 
27905
 
27906
  def __repr__(self):
27907
    L = ['%s=%r' % (key, value)
27908
      for key, value in self.__dict__.iteritems()]
27909
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27910
 
27911
  def __eq__(self, other):
27912
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27913
 
27914
  def __ne__(self, other):
27915
    return not (self == other)
27916
 
27917
class getFlipkartItem_args:
27918
  """
27919
  Attributes:
27920
   - item_id
27921
  """
27922
 
27923
  thrift_spec = (
27924
    None, # 0
27925
    (1, TType.I64, 'item_id', None, None, ), # 1
27926
  )
27927
 
27928
  def __init__(self, item_id=None,):
27929
    self.item_id = item_id
27930
 
27931
  def read(self, iprot):
27932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27934
      return
27935
    iprot.readStructBegin()
27936
    while True:
27937
      (fname, ftype, fid) = iprot.readFieldBegin()
27938
      if ftype == TType.STOP:
27939
        break
27940
      if fid == 1:
27941
        if ftype == TType.I64:
27942
          self.item_id = iprot.readI64();
27943
        else:
27944
          iprot.skip(ftype)
27945
      else:
27946
        iprot.skip(ftype)
27947
      iprot.readFieldEnd()
27948
    iprot.readStructEnd()
27949
 
27950
  def write(self, oprot):
27951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27953
      return
27954
    oprot.writeStructBegin('getFlipkartItem_args')
27955
    if self.item_id is not None:
27956
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27957
      oprot.writeI64(self.item_id)
27958
      oprot.writeFieldEnd()
27959
    oprot.writeFieldStop()
27960
    oprot.writeStructEnd()
27961
 
27962
  def validate(self):
27963
    return
27964
 
27965
 
27966
  def __repr__(self):
27967
    L = ['%s=%r' % (key, value)
27968
      for key, value in self.__dict__.iteritems()]
27969
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27970
 
27971
  def __eq__(self, other):
27972
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27973
 
27974
  def __ne__(self, other):
27975
    return not (self == other)
27976
 
27977
class getFlipkartItem_result:
27978
  """
27979
  Attributes:
27980
   - success
27981
  """
27982
 
27983
  thrift_spec = (
27984
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
27985
  )
27986
 
27987
  def __init__(self, success=None,):
27988
    self.success = success
27989
 
27990
  def read(self, iprot):
27991
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27992
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27993
      return
27994
    iprot.readStructBegin()
27995
    while True:
27996
      (fname, ftype, fid) = iprot.readFieldBegin()
27997
      if ftype == TType.STOP:
27998
        break
27999
      if fid == 0:
28000
        if ftype == TType.STRUCT:
28001
          self.success = FlipkartItem()
28002
          self.success.read(iprot)
28003
        else:
28004
          iprot.skip(ftype)
28005
      else:
28006
        iprot.skip(ftype)
28007
      iprot.readFieldEnd()
28008
    iprot.readStructEnd()
28009
 
28010
  def write(self, oprot):
28011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28013
      return
28014
    oprot.writeStructBegin('getFlipkartItem_result')
28015
    if self.success is not None:
28016
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28017
      self.success.write(oprot)
28018
      oprot.writeFieldEnd()
28019
    oprot.writeFieldStop()
28020
    oprot.writeStructEnd()
28021
 
28022
  def validate(self):
28023
    return
28024
 
28025
 
28026
  def __repr__(self):
28027
    L = ['%s=%r' % (key, value)
28028
      for key, value in self.__dict__.iteritems()]
28029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28030
 
28031
  def __eq__(self, other):
28032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28033
 
28034
  def __ne__(self, other):
28035
    return not (self == other)
28036
 
28037
class getFlipkartItemDetails_args:
28038
  """
28039
  Attributes:
28040
   - item_id
28041
  """
28042
 
28043
  thrift_spec = (
28044
    None, # 0
28045
    (1, TType.I64, 'item_id', None, None, ), # 1
28046
  )
28047
 
28048
  def __init__(self, item_id=None,):
28049
    self.item_id = item_id
28050
 
28051
  def read(self, iprot):
28052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28054
      return
28055
    iprot.readStructBegin()
28056
    while True:
28057
      (fname, ftype, fid) = iprot.readFieldBegin()
28058
      if ftype == TType.STOP:
28059
        break
28060
      if fid == 1:
28061
        if ftype == TType.I64:
28062
          self.item_id = iprot.readI64();
28063
        else:
28064
          iprot.skip(ftype)
28065
      else:
28066
        iprot.skip(ftype)
28067
      iprot.readFieldEnd()
28068
    iprot.readStructEnd()
28069
 
28070
  def write(self, oprot):
28071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28073
      return
28074
    oprot.writeStructBegin('getFlipkartItemDetails_args')
28075
    if self.item_id is not None:
28076
      oprot.writeFieldBegin('item_id', TType.I64, 1)
28077
      oprot.writeI64(self.item_id)
28078
      oprot.writeFieldEnd()
28079
    oprot.writeFieldStop()
28080
    oprot.writeStructEnd()
28081
 
28082
  def validate(self):
28083
    return
28084
 
28085
 
28086
  def __repr__(self):
28087
    L = ['%s=%r' % (key, value)
28088
      for key, value in self.__dict__.iteritems()]
28089
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28090
 
28091
  def __eq__(self, other):
28092
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28093
 
28094
  def __ne__(self, other):
28095
    return not (self == other)
28096
 
28097
class getFlipkartItemDetails_result:
28098
  """
28099
  Attributes:
28100
   - success
28101
  """
28102
 
28103
  thrift_spec = (
28104
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
28105
  )
28106
 
28107
  def __init__(self, success=None,):
28108
    self.success = success
28109
 
28110
  def read(self, iprot):
28111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28113
      return
28114
    iprot.readStructBegin()
28115
    while True:
28116
      (fname, ftype, fid) = iprot.readFieldBegin()
28117
      if ftype == TType.STOP:
28118
        break
28119
      if fid == 0:
28120
        if ftype == TType.STRUCT:
28121
          self.success = FlipkartItemDetails()
28122
          self.success.read(iprot)
28123
        else:
28124
          iprot.skip(ftype)
28125
      else:
28126
        iprot.skip(ftype)
28127
      iprot.readFieldEnd()
28128
    iprot.readStructEnd()
28129
 
28130
  def write(self, oprot):
28131
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28132
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28133
      return
28134
    oprot.writeStructBegin('getFlipkartItemDetails_result')
28135
    if self.success is not None:
28136
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28137
      self.success.write(oprot)
28138
      oprot.writeFieldEnd()
28139
    oprot.writeFieldStop()
28140
    oprot.writeStructEnd()
28141
 
28142
  def validate(self):
28143
    return
28144
 
28145
 
28146
  def __repr__(self):
28147
    L = ['%s=%r' % (key, value)
28148
      for key, value in self.__dict__.iteritems()]
28149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28150
 
28151
  def __eq__(self, other):
28152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28153
 
28154
  def __ne__(self, other):
28155
    return not (self == other)
28156
 
28157
class getFlipkartItems_args:
28158
  """
28159
  Attributes:
28160
   - offset
28161
   - limit
28162
  """
28163
 
28164
  thrift_spec = (
28165
    None, # 0
28166
    (1, TType.I64, 'offset', None, None, ), # 1
28167
    (2, TType.I64, 'limit', None, None, ), # 2
28168
  )
28169
 
28170
  def __init__(self, offset=None, limit=None,):
28171
    self.offset = offset
28172
    self.limit = limit
28173
 
28174
  def read(self, iprot):
28175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28177
      return
28178
    iprot.readStructBegin()
28179
    while True:
28180
      (fname, ftype, fid) = iprot.readFieldBegin()
28181
      if ftype == TType.STOP:
28182
        break
28183
      if fid == 1:
28184
        if ftype == TType.I64:
28185
          self.offset = iprot.readI64();
28186
        else:
28187
          iprot.skip(ftype)
28188
      elif fid == 2:
28189
        if ftype == TType.I64:
28190
          self.limit = iprot.readI64();
28191
        else:
28192
          iprot.skip(ftype)
28193
      else:
28194
        iprot.skip(ftype)
28195
      iprot.readFieldEnd()
28196
    iprot.readStructEnd()
28197
 
28198
  def write(self, oprot):
28199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28201
      return
28202
    oprot.writeStructBegin('getFlipkartItems_args')
28203
    if self.offset is not None:
28204
      oprot.writeFieldBegin('offset', TType.I64, 1)
28205
      oprot.writeI64(self.offset)
28206
      oprot.writeFieldEnd()
28207
    if self.limit is not None:
28208
      oprot.writeFieldBegin('limit', TType.I64, 2)
28209
      oprot.writeI64(self.limit)
28210
      oprot.writeFieldEnd()
28211
    oprot.writeFieldStop()
28212
    oprot.writeStructEnd()
28213
 
28214
  def validate(self):
28215
    return
28216
 
28217
 
28218
  def __repr__(self):
28219
    L = ['%s=%r' % (key, value)
28220
      for key, value in self.__dict__.iteritems()]
28221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28222
 
28223
  def __eq__(self, other):
28224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28225
 
28226
  def __ne__(self, other):
28227
    return not (self == other)
28228
 
28229
class getFlipkartItems_result:
28230
  """
28231
  Attributes:
28232
   - success
28233
  """
28234
 
28235
  thrift_spec = (
28236
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28237
  )
28238
 
28239
  def __init__(self, success=None,):
28240
    self.success = success
28241
 
28242
  def read(self, iprot):
28243
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28244
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28245
      return
28246
    iprot.readStructBegin()
28247
    while True:
28248
      (fname, ftype, fid) = iprot.readFieldBegin()
28249
      if ftype == TType.STOP:
28250
        break
28251
      if fid == 0:
28252
        if ftype == TType.LIST:
28253
          self.success = []
12567 amit.gupta 28254
          (_etype597, _size594) = iprot.readListBegin()
28255
          for _i598 in xrange(_size594):
28256
            _elem599 = FlipkartItemDetails()
28257
            _elem599.read(iprot)
28258
            self.success.append(_elem599)
10097 kshitij.so 28259
          iprot.readListEnd()
28260
        else:
28261
          iprot.skip(ftype)
28262
      else:
28263
        iprot.skip(ftype)
28264
      iprot.readFieldEnd()
28265
    iprot.readStructEnd()
28266
 
28267
  def write(self, oprot):
28268
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28269
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28270
      return
28271
    oprot.writeStructBegin('getFlipkartItems_result')
28272
    if self.success is not None:
28273
      oprot.writeFieldBegin('success', TType.LIST, 0)
28274
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28275
      for iter600 in self.success:
28276
        iter600.write(oprot)
10097 kshitij.so 28277
      oprot.writeListEnd()
28278
      oprot.writeFieldEnd()
28279
    oprot.writeFieldStop()
28280
    oprot.writeStructEnd()
28281
 
28282
  def validate(self):
28283
    return
28284
 
28285
 
28286
  def __repr__(self):
28287
    L = ['%s=%r' % (key, value)
28288
      for key, value in self.__dict__.iteritems()]
28289
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28290
 
28291
  def __eq__(self, other):
28292
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28293
 
28294
  def __ne__(self, other):
28295
    return not (self == other)
28296
 
28297
class searchFlipkartItems_args:
28298
  """
28299
  Attributes:
28300
   - searchTerm
28301
   - offset
28302
   - limit
28303
  """
28304
 
28305
  thrift_spec = (
28306
    None, # 0
28307
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28308
    (2, TType.I64, 'offset', None, None, ), # 2
28309
    (3, TType.I64, 'limit', None, None, ), # 3
28310
  )
28311
 
28312
  def __init__(self, searchTerm=None, offset=None, limit=None,):
28313
    self.searchTerm = searchTerm
28314
    self.offset = offset
28315
    self.limit = limit
28316
 
28317
  def read(self, iprot):
28318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28320
      return
28321
    iprot.readStructBegin()
28322
    while True:
28323
      (fname, ftype, fid) = iprot.readFieldBegin()
28324
      if ftype == TType.STOP:
28325
        break
28326
      if fid == 1:
28327
        if ftype == TType.LIST:
28328
          self.searchTerm = []
12567 amit.gupta 28329
          (_etype604, _size601) = iprot.readListBegin()
28330
          for _i605 in xrange(_size601):
28331
            _elem606 = iprot.readString();
28332
            self.searchTerm.append(_elem606)
10097 kshitij.so 28333
          iprot.readListEnd()
28334
        else:
28335
          iprot.skip(ftype)
28336
      elif fid == 2:
28337
        if ftype == TType.I64:
28338
          self.offset = iprot.readI64();
28339
        else:
28340
          iprot.skip(ftype)
28341
      elif fid == 3:
28342
        if ftype == TType.I64:
28343
          self.limit = iprot.readI64();
28344
        else:
28345
          iprot.skip(ftype)
28346
      else:
28347
        iprot.skip(ftype)
28348
      iprot.readFieldEnd()
28349
    iprot.readStructEnd()
28350
 
28351
  def write(self, oprot):
28352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28354
      return
28355
    oprot.writeStructBegin('searchFlipkartItems_args')
28356
    if self.searchTerm is not None:
28357
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28358
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28359
      for iter607 in self.searchTerm:
28360
        oprot.writeString(iter607)
10097 kshitij.so 28361
      oprot.writeListEnd()
28362
      oprot.writeFieldEnd()
28363
    if self.offset is not None:
28364
      oprot.writeFieldBegin('offset', TType.I64, 2)
28365
      oprot.writeI64(self.offset)
28366
      oprot.writeFieldEnd()
28367
    if self.limit is not None:
28368
      oprot.writeFieldBegin('limit', TType.I64, 3)
28369
      oprot.writeI64(self.limit)
28370
      oprot.writeFieldEnd()
28371
    oprot.writeFieldStop()
28372
    oprot.writeStructEnd()
28373
 
28374
  def validate(self):
28375
    return
28376
 
28377
 
28378
  def __repr__(self):
28379
    L = ['%s=%r' % (key, value)
28380
      for key, value in self.__dict__.iteritems()]
28381
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28382
 
28383
  def __eq__(self, other):
28384
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28385
 
28386
  def __ne__(self, other):
28387
    return not (self == other)
28388
 
28389
class searchFlipkartItems_result:
28390
  """
28391
  Attributes:
28392
   - success
28393
  """
28394
 
28395
  thrift_spec = (
28396
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28397
  )
28398
 
28399
  def __init__(self, success=None,):
28400
    self.success = success
28401
 
28402
  def read(self, iprot):
28403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28405
      return
28406
    iprot.readStructBegin()
28407
    while True:
28408
      (fname, ftype, fid) = iprot.readFieldBegin()
28409
      if ftype == TType.STOP:
28410
        break
28411
      if fid == 0:
28412
        if ftype == TType.LIST:
28413
          self.success = []
12567 amit.gupta 28414
          (_etype611, _size608) = iprot.readListBegin()
28415
          for _i612 in xrange(_size608):
28416
            _elem613 = FlipkartItemDetails()
28417
            _elem613.read(iprot)
28418
            self.success.append(_elem613)
10097 kshitij.so 28419
          iprot.readListEnd()
28420
        else:
28421
          iprot.skip(ftype)
28422
      else:
28423
        iprot.skip(ftype)
28424
      iprot.readFieldEnd()
28425
    iprot.readStructEnd()
28426
 
28427
  def write(self, oprot):
28428
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28429
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28430
      return
28431
    oprot.writeStructBegin('searchFlipkartItems_result')
28432
    if self.success is not None:
28433
      oprot.writeFieldBegin('success', TType.LIST, 0)
28434
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28435
      for iter614 in self.success:
28436
        iter614.write(oprot)
10097 kshitij.so 28437
      oprot.writeListEnd()
28438
      oprot.writeFieldEnd()
28439
    oprot.writeFieldStop()
28440
    oprot.writeStructEnd()
28441
 
28442
  def validate(self):
28443
    return
28444
 
28445
 
28446
  def __repr__(self):
28447
    L = ['%s=%r' % (key, value)
28448
      for key, value in self.__dict__.iteritems()]
28449
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28450
 
28451
  def __eq__(self, other):
28452
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28453
 
28454
  def __ne__(self, other):
28455
    return not (self == other)
28456
 
28457
class getCountForFlipkartItems_args:
28458
 
28459
  thrift_spec = (
28460
  )
28461
 
28462
  def read(self, iprot):
28463
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28464
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28465
      return
28466
    iprot.readStructBegin()
28467
    while True:
28468
      (fname, ftype, fid) = iprot.readFieldBegin()
28469
      if ftype == TType.STOP:
28470
        break
28471
      else:
28472
        iprot.skip(ftype)
28473
      iprot.readFieldEnd()
28474
    iprot.readStructEnd()
28475
 
28476
  def write(self, oprot):
28477
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28478
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28479
      return
28480
    oprot.writeStructBegin('getCountForFlipkartItems_args')
28481
    oprot.writeFieldStop()
28482
    oprot.writeStructEnd()
28483
 
28484
  def validate(self):
28485
    return
28486
 
28487
 
28488
  def __repr__(self):
28489
    L = ['%s=%r' % (key, value)
28490
      for key, value in self.__dict__.iteritems()]
28491
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28492
 
28493
  def __eq__(self, other):
28494
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28495
 
28496
  def __ne__(self, other):
28497
    return not (self == other)
28498
 
28499
class getCountForFlipkartItems_result:
28500
  """
28501
  Attributes:
28502
   - success
28503
  """
28504
 
28505
  thrift_spec = (
28506
    (0, TType.I64, 'success', None, None, ), # 0
28507
  )
28508
 
28509
  def __init__(self, success=None,):
28510
    self.success = success
28511
 
28512
  def read(self, iprot):
28513
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28514
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28515
      return
28516
    iprot.readStructBegin()
28517
    while True:
28518
      (fname, ftype, fid) = iprot.readFieldBegin()
28519
      if ftype == TType.STOP:
28520
        break
28521
      if fid == 0:
28522
        if ftype == TType.I64:
28523
          self.success = iprot.readI64();
28524
        else:
28525
          iprot.skip(ftype)
28526
      else:
28527
        iprot.skip(ftype)
28528
      iprot.readFieldEnd()
28529
    iprot.readStructEnd()
28530
 
28531
  def write(self, oprot):
28532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28534
      return
28535
    oprot.writeStructBegin('getCountForFlipkartItems_result')
28536
    if self.success is not None:
28537
      oprot.writeFieldBegin('success', TType.I64, 0)
28538
      oprot.writeI64(self.success)
28539
      oprot.writeFieldEnd()
28540
    oprot.writeFieldStop()
28541
    oprot.writeStructEnd()
28542
 
28543
  def validate(self):
28544
    return
28545
 
28546
 
28547
  def __repr__(self):
28548
    L = ['%s=%r' % (key, value)
28549
      for key, value in self.__dict__.iteritems()]
28550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28551
 
28552
  def __eq__(self, other):
28553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28554
 
28555
  def __ne__(self, other):
28556
    return not (self == other)
28557
 
28558
class getFlipkartSearchResultCount_args:
28559
  """
28560
  Attributes:
28561
   - searchTerm
28562
  """
28563
 
28564
  thrift_spec = (
28565
    None, # 0
28566
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28567
  )
28568
 
28569
  def __init__(self, searchTerm=None,):
28570
    self.searchTerm = searchTerm
28571
 
28572
  def read(self, iprot):
28573
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28574
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28575
      return
28576
    iprot.readStructBegin()
28577
    while True:
28578
      (fname, ftype, fid) = iprot.readFieldBegin()
28579
      if ftype == TType.STOP:
28580
        break
28581
      if fid == 1:
28582
        if ftype == TType.LIST:
28583
          self.searchTerm = []
12567 amit.gupta 28584
          (_etype618, _size615) = iprot.readListBegin()
28585
          for _i619 in xrange(_size615):
28586
            _elem620 = iprot.readString();
28587
            self.searchTerm.append(_elem620)
10097 kshitij.so 28588
          iprot.readListEnd()
28589
        else:
28590
          iprot.skip(ftype)
28591
      else:
28592
        iprot.skip(ftype)
28593
      iprot.readFieldEnd()
28594
    iprot.readStructEnd()
28595
 
28596
  def write(self, oprot):
28597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28599
      return
28600
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
28601
    if self.searchTerm is not None:
28602
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28603
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28604
      for iter621 in self.searchTerm:
28605
        oprot.writeString(iter621)
10097 kshitij.so 28606
      oprot.writeListEnd()
28607
      oprot.writeFieldEnd()
28608
    oprot.writeFieldStop()
28609
    oprot.writeStructEnd()
28610
 
28611
  def validate(self):
28612
    return
28613
 
28614
 
28615
  def __repr__(self):
28616
    L = ['%s=%r' % (key, value)
28617
      for key, value in self.__dict__.iteritems()]
28618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28619
 
28620
  def __eq__(self, other):
28621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28622
 
28623
  def __ne__(self, other):
28624
    return not (self == other)
28625
 
28626
class getFlipkartSearchResultCount_result:
28627
  """
28628
  Attributes:
28629
   - success
28630
  """
28631
 
28632
  thrift_spec = (
28633
    (0, TType.I64, 'success', None, None, ), # 0
28634
  )
28635
 
28636
  def __init__(self, success=None,):
28637
    self.success = success
28638
 
28639
  def read(self, iprot):
28640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28642
      return
28643
    iprot.readStructBegin()
28644
    while True:
28645
      (fname, ftype, fid) = iprot.readFieldBegin()
28646
      if ftype == TType.STOP:
28647
        break
28648
      if fid == 0:
28649
        if ftype == TType.I64:
28650
          self.success = iprot.readI64();
28651
        else:
28652
          iprot.skip(ftype)
28653
      else:
28654
        iprot.skip(ftype)
28655
      iprot.readFieldEnd()
28656
    iprot.readStructEnd()
28657
 
28658
  def write(self, oprot):
28659
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28660
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28661
      return
28662
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
28663
    if self.success is not None:
28664
      oprot.writeFieldBegin('success', TType.I64, 0)
28665
      oprot.writeI64(self.success)
28666
      oprot.writeFieldEnd()
28667
    oprot.writeFieldStop()
28668
    oprot.writeStructEnd()
28669
 
28670
  def validate(self):
28671
    return
28672
 
28673
 
28674
  def __repr__(self):
28675
    L = ['%s=%r' % (key, value)
28676
      for key, value in self.__dict__.iteritems()]
28677
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28678
 
28679
  def __eq__(self, other):
28680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28681
 
28682
  def __ne__(self, other):
28683
    return not (self == other)
28684
 
28685
class getAllFkItems_args:
28686
 
28687
  thrift_spec = (
28688
  )
28689
 
28690
  def read(self, iprot):
28691
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28692
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28693
      return
28694
    iprot.readStructBegin()
28695
    while True:
28696
      (fname, ftype, fid) = iprot.readFieldBegin()
28697
      if ftype == TType.STOP:
28698
        break
28699
      else:
28700
        iprot.skip(ftype)
28701
      iprot.readFieldEnd()
28702
    iprot.readStructEnd()
28703
 
28704
  def write(self, oprot):
28705
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28706
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28707
      return
28708
    oprot.writeStructBegin('getAllFkItems_args')
28709
    oprot.writeFieldStop()
28710
    oprot.writeStructEnd()
28711
 
28712
  def validate(self):
28713
    return
28714
 
28715
 
28716
  def __repr__(self):
28717
    L = ['%s=%r' % (key, value)
28718
      for key, value in self.__dict__.iteritems()]
28719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28720
 
28721
  def __eq__(self, other):
28722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28723
 
28724
  def __ne__(self, other):
28725
    return not (self == other)
28726
 
28727
class getAllFkItems_result:
28728
  """
28729
  Attributes:
28730
   - success
28731
  """
28732
 
28733
  thrift_spec = (
28734
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28735
  )
28736
 
28737
  def __init__(self, success=None,):
28738
    self.success = success
28739
 
28740
  def read(self, iprot):
28741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28743
      return
28744
    iprot.readStructBegin()
28745
    while True:
28746
      (fname, ftype, fid) = iprot.readFieldBegin()
28747
      if ftype == TType.STOP:
28748
        break
28749
      if fid == 0:
28750
        if ftype == TType.LIST:
28751
          self.success = []
12567 amit.gupta 28752
          (_etype625, _size622) = iprot.readListBegin()
28753
          for _i626 in xrange(_size622):
28754
            _elem627 = FlipkartItemDetails()
28755
            _elem627.read(iprot)
28756
            self.success.append(_elem627)
10097 kshitij.so 28757
          iprot.readListEnd()
28758
        else:
28759
          iprot.skip(ftype)
28760
      else:
28761
        iprot.skip(ftype)
28762
      iprot.readFieldEnd()
28763
    iprot.readStructEnd()
28764
 
28765
  def write(self, oprot):
28766
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28767
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28768
      return
28769
    oprot.writeStructBegin('getAllFkItems_result')
28770
    if self.success is not None:
28771
      oprot.writeFieldBegin('success', TType.LIST, 0)
28772
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28773
      for iter628 in self.success:
28774
        iter628.write(oprot)
10097 kshitij.so 28775
      oprot.writeListEnd()
28776
      oprot.writeFieldEnd()
28777
    oprot.writeFieldStop()
28778
    oprot.writeStructEnd()
28779
 
28780
  def validate(self):
28781
    return
28782
 
28783
 
28784
  def __repr__(self):
28785
    L = ['%s=%r' % (key, value)
28786
      for key, value in self.__dict__.iteritems()]
28787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28788
 
28789
  def __eq__(self, other):
28790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28791
 
28792
  def __ne__(self, other):
28793
    return not (self == other)
10140 vikram.rag 28794
 
28795
class getFlipkartItemBySkyAtFlipkart_args:
28796
  """
28797
  Attributes:
28798
   - sku
28799
  """
28800
 
11531 vikram.rag 28801
  thrift_spec = None
10140 vikram.rag 28802
  def __init__(self, sku=None,):
28803
    self.sku = sku
28804
 
28805
  def read(self, iprot):
28806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28808
      return
28809
    iprot.readStructBegin()
28810
    while True:
28811
      (fname, ftype, fid) = iprot.readFieldBegin()
28812
      if ftype == TType.STOP:
28813
        break
11531 vikram.rag 28814
      if fid == -1:
10140 vikram.rag 28815
        if ftype == TType.STRING:
28816
          self.sku = iprot.readString();
28817
        else:
28818
          iprot.skip(ftype)
28819
      else:
28820
        iprot.skip(ftype)
28821
      iprot.readFieldEnd()
28822
    iprot.readStructEnd()
28823
 
28824
  def write(self, oprot):
28825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28827
      return
28828
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
28829
    if self.sku is not None:
11531 vikram.rag 28830
      oprot.writeFieldBegin('sku', TType.STRING, -1)
10140 vikram.rag 28831
      oprot.writeString(self.sku)
28832
      oprot.writeFieldEnd()
28833
    oprot.writeFieldStop()
28834
    oprot.writeStructEnd()
28835
 
28836
  def validate(self):
28837
    return
28838
 
28839
 
28840
  def __repr__(self):
28841
    L = ['%s=%r' % (key, value)
28842
      for key, value in self.__dict__.iteritems()]
28843
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28844
 
28845
  def __eq__(self, other):
28846
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28847
 
28848
  def __ne__(self, other):
28849
    return not (self == other)
28850
 
28851
class getFlipkartItemBySkyAtFlipkart_result:
28852
  """
28853
  Attributes:
28854
   - success
28855
  """
28856
 
28857
  thrift_spec = (
28858
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
28859
  )
28860
 
28861
  def __init__(self, success=None,):
28862
    self.success = success
28863
 
28864
  def read(self, iprot):
28865
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28866
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28867
      return
28868
    iprot.readStructBegin()
28869
    while True:
28870
      (fname, ftype, fid) = iprot.readFieldBegin()
28871
      if ftype == TType.STOP:
28872
        break
28873
      if fid == 0:
28874
        if ftype == TType.STRUCT:
28875
          self.success = FlipkartItem()
28876
          self.success.read(iprot)
28877
        else:
28878
          iprot.skip(ftype)
28879
      else:
28880
        iprot.skip(ftype)
28881
      iprot.readFieldEnd()
28882
    iprot.readStructEnd()
28883
 
28884
  def write(self, oprot):
28885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28887
      return
28888
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
28889
    if self.success is not None:
28890
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28891
      self.success.write(oprot)
28892
      oprot.writeFieldEnd()
28893
    oprot.writeFieldStop()
28894
    oprot.writeStructEnd()
28895
 
28896
  def validate(self):
28897
    return
28898
 
28899
 
28900
  def __repr__(self):
28901
    L = ['%s=%r' % (key, value)
28902
      for key, value in self.__dict__.iteritems()]
28903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28904
 
28905
  def __eq__(self, other):
28906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28907
 
28908
  def __ne__(self, other):
28909
    return not (self == other)
10909 vikram.rag 28910
 
11015 kshitij.so 28911
class getMarketplaceHistory_args:
28912
  """
28913
  Attributes:
28914
   - source
28915
   - offset
28916
   - itemId
28917
  """
10909 vikram.rag 28918
 
28919
  thrift_spec = (
11015 kshitij.so 28920
    None, # 0
28921
    (1, TType.I64, 'source', None, None, ), # 1
28922
    (2, TType.I64, 'offset', None, None, ), # 2
28923
    (3, TType.I64, 'itemId', None, None, ), # 3
10909 vikram.rag 28924
  )
28925
 
11015 kshitij.so 28926
  def __init__(self, source=None, offset=None, itemId=None,):
28927
    self.source = source
28928
    self.offset = offset
28929
    self.itemId = itemId
28930
 
10909 vikram.rag 28931
  def read(self, iprot):
28932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28934
      return
28935
    iprot.readStructBegin()
28936
    while True:
28937
      (fname, ftype, fid) = iprot.readFieldBegin()
28938
      if ftype == TType.STOP:
28939
        break
11015 kshitij.so 28940
      if fid == 1:
28941
        if ftype == TType.I64:
28942
          self.source = iprot.readI64();
28943
        else:
28944
          iprot.skip(ftype)
28945
      elif fid == 2:
28946
        if ftype == TType.I64:
28947
          self.offset = iprot.readI64();
28948
        else:
28949
          iprot.skip(ftype)
28950
      elif fid == 3:
28951
        if ftype == TType.I64:
28952
          self.itemId = iprot.readI64();
28953
        else:
28954
          iprot.skip(ftype)
10909 vikram.rag 28955
      else:
28956
        iprot.skip(ftype)
28957
      iprot.readFieldEnd()
28958
    iprot.readStructEnd()
28959
 
28960
  def write(self, oprot):
28961
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28962
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28963
      return
11015 kshitij.so 28964
    oprot.writeStructBegin('getMarketplaceHistory_args')
28965
    if self.source is not None:
28966
      oprot.writeFieldBegin('source', TType.I64, 1)
28967
      oprot.writeI64(self.source)
28968
      oprot.writeFieldEnd()
28969
    if self.offset is not None:
28970
      oprot.writeFieldBegin('offset', TType.I64, 2)
28971
      oprot.writeI64(self.offset)
28972
      oprot.writeFieldEnd()
28973
    if self.itemId is not None:
28974
      oprot.writeFieldBegin('itemId', TType.I64, 3)
28975
      oprot.writeI64(self.itemId)
28976
      oprot.writeFieldEnd()
10909 vikram.rag 28977
    oprot.writeFieldStop()
28978
    oprot.writeStructEnd()
28979
 
28980
  def validate(self):
28981
    return
28982
 
28983
 
28984
  def __repr__(self):
28985
    L = ['%s=%r' % (key, value)
28986
      for key, value in self.__dict__.iteritems()]
28987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28988
 
28989
  def __eq__(self, other):
28990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28991
 
28992
  def __ne__(self, other):
28993
    return not (self == other)
28994
 
11015 kshitij.so 28995
class getMarketplaceHistory_result:
10909 vikram.rag 28996
  """
28997
  Attributes:
28998
   - success
28999
  """
29000
 
29001
  thrift_spec = (
11015 kshitij.so 29002
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
10909 vikram.rag 29003
  )
29004
 
29005
  def __init__(self, success=None,):
29006
    self.success = success
29007
 
29008
  def read(self, iprot):
29009
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29010
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29011
      return
29012
    iprot.readStructBegin()
29013
    while True:
29014
      (fname, ftype, fid) = iprot.readFieldBegin()
29015
      if ftype == TType.STOP:
29016
        break
29017
      if fid == 0:
29018
        if ftype == TType.LIST:
29019
          self.success = []
12567 amit.gupta 29020
          (_etype632, _size629) = iprot.readListBegin()
29021
          for _i633 in xrange(_size629):
29022
            _elem634 = MarketplaceHistory()
29023
            _elem634.read(iprot)
29024
            self.success.append(_elem634)
10909 vikram.rag 29025
          iprot.readListEnd()
29026
        else:
29027
          iprot.skip(ftype)
29028
      else:
29029
        iprot.skip(ftype)
29030
      iprot.readFieldEnd()
29031
    iprot.readStructEnd()
29032
 
29033
  def write(self, oprot):
29034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29036
      return
11015 kshitij.so 29037
    oprot.writeStructBegin('getMarketplaceHistory_result')
10909 vikram.rag 29038
    if self.success is not None:
29039
      oprot.writeFieldBegin('success', TType.LIST, 0)
29040
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29041
      for iter635 in self.success:
29042
        iter635.write(oprot)
10909 vikram.rag 29043
      oprot.writeListEnd()
29044
      oprot.writeFieldEnd()
29045
    oprot.writeFieldStop()
29046
    oprot.writeStructEnd()
29047
 
29048
  def validate(self):
29049
    return
29050
 
29051
 
29052
  def __repr__(self):
29053
    L = ['%s=%r' % (key, value)
29054
      for key, value in self.__dict__.iteritems()]
29055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29056
 
29057
  def __eq__(self, other):
29058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29059
 
29060
  def __ne__(self, other):
29061
    return not (self == other)
10924 vikram.rag 29062
 
11015 kshitij.so 29063
class getAllFbbListedItems_args:
10924 vikram.rag 29064
 
29065
  thrift_spec = (
29066
  )
29067
 
29068
  def read(self, iprot):
29069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29071
      return
29072
    iprot.readStructBegin()
29073
    while True:
29074
      (fname, ftype, fid) = iprot.readFieldBegin()
29075
      if ftype == TType.STOP:
29076
        break
29077
      else:
29078
        iprot.skip(ftype)
29079
      iprot.readFieldEnd()
29080
    iprot.readStructEnd()
29081
 
29082
  def write(self, oprot):
29083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29085
      return
11015 kshitij.so 29086
    oprot.writeStructBegin('getAllFbbListedItems_args')
10924 vikram.rag 29087
    oprot.writeFieldStop()
29088
    oprot.writeStructEnd()
29089
 
29090
  def validate(self):
29091
    return
29092
 
29093
 
29094
  def __repr__(self):
29095
    L = ['%s=%r' % (key, value)
29096
      for key, value in self.__dict__.iteritems()]
29097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29098
 
29099
  def __eq__(self, other):
29100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29101
 
29102
  def __ne__(self, other):
29103
    return not (self == other)
29104
 
11015 kshitij.so 29105
class getAllFbbListedItems_result:
10924 vikram.rag 29106
  """
29107
  Attributes:
29108
   - success
29109
  """
29110
 
29111
  thrift_spec = (
29112
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29113
  )
29114
 
29115
  def __init__(self, success=None,):
29116
    self.success = success
29117
 
29118
  def read(self, iprot):
29119
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29120
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29121
      return
29122
    iprot.readStructBegin()
29123
    while True:
29124
      (fname, ftype, fid) = iprot.readFieldBegin()
29125
      if ftype == TType.STOP:
29126
        break
29127
      if fid == 0:
29128
        if ftype == TType.LIST:
29129
          self.success = []
12567 amit.gupta 29130
          (_etype639, _size636) = iprot.readListBegin()
29131
          for _i640 in xrange(_size636):
29132
            _elem641 = Amazonlisted()
29133
            _elem641.read(iprot)
29134
            self.success.append(_elem641)
10924 vikram.rag 29135
          iprot.readListEnd()
29136
        else:
29137
          iprot.skip(ftype)
29138
      else:
29139
        iprot.skip(ftype)
29140
      iprot.readFieldEnd()
29141
    iprot.readStructEnd()
29142
 
29143
  def write(self, oprot):
29144
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29145
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29146
      return
11015 kshitij.so 29147
    oprot.writeStructBegin('getAllFbbListedItems_result')
10924 vikram.rag 29148
    if self.success is not None:
29149
      oprot.writeFieldBegin('success', TType.LIST, 0)
29150
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29151
      for iter642 in self.success:
29152
        iter642.write(oprot)
10924 vikram.rag 29153
      oprot.writeListEnd()
29154
      oprot.writeFieldEnd()
29155
    oprot.writeFieldStop()
29156
    oprot.writeStructEnd()
29157
 
29158
  def validate(self):
29159
    return
29160
 
29161
 
29162
  def __repr__(self):
29163
    L = ['%s=%r' % (key, value)
29164
      for key, value in self.__dict__.iteritems()]
29165
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29166
 
29167
  def __eq__(self, other):
29168
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29169
 
29170
  def __ne__(self, other):
29171
    return not (self == other)
11015 kshitij.so 29172
 
29173
class getAllFbbPricingItems_args:
29174
 
29175
  thrift_spec = (
29176
  )
29177
 
29178
  def read(self, iprot):
29179
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29180
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29181
      return
29182
    iprot.readStructBegin()
29183
    while True:
29184
      (fname, ftype, fid) = iprot.readFieldBegin()
29185
      if ftype == TType.STOP:
29186
        break
29187
      else:
29188
        iprot.skip(ftype)
29189
      iprot.readFieldEnd()
29190
    iprot.readStructEnd()
29191
 
29192
  def write(self, oprot):
29193
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29194
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29195
      return
29196
    oprot.writeStructBegin('getAllFbbPricingItems_args')
29197
    oprot.writeFieldStop()
29198
    oprot.writeStructEnd()
29199
 
29200
  def validate(self):
29201
    return
29202
 
29203
 
29204
  def __repr__(self):
29205
    L = ['%s=%r' % (key, value)
29206
      for key, value in self.__dict__.iteritems()]
29207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29208
 
29209
  def __eq__(self, other):
29210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29211
 
29212
  def __ne__(self, other):
29213
    return not (self == other)
29214
 
29215
class getAllFbbPricingItems_result:
29216
  """
29217
  Attributes:
29218
   - success
29219
  """
29220
 
29221
  thrift_spec = (
29222
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29223
  )
29224
 
29225
  def __init__(self, success=None,):
29226
    self.success = success
29227
 
29228
  def read(self, iprot):
29229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29231
      return
29232
    iprot.readStructBegin()
29233
    while True:
29234
      (fname, ftype, fid) = iprot.readFieldBegin()
29235
      if ftype == TType.STOP:
29236
        break
29237
      if fid == 0:
29238
        if ftype == TType.LIST:
29239
          self.success = []
12567 amit.gupta 29240
          (_etype646, _size643) = iprot.readListBegin()
29241
          for _i647 in xrange(_size643):
29242
            _elem648 = Amazonlisted()
29243
            _elem648.read(iprot)
29244
            self.success.append(_elem648)
11015 kshitij.so 29245
          iprot.readListEnd()
29246
        else:
29247
          iprot.skip(ftype)
29248
      else:
29249
        iprot.skip(ftype)
29250
      iprot.readFieldEnd()
29251
    iprot.readStructEnd()
29252
 
29253
  def write(self, oprot):
29254
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29255
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29256
      return
29257
    oprot.writeStructBegin('getAllFbbPricingItems_result')
29258
    if self.success is not None:
29259
      oprot.writeFieldBegin('success', TType.LIST, 0)
29260
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29261
      for iter649 in self.success:
29262
        iter649.write(oprot)
11015 kshitij.so 29263
      oprot.writeListEnd()
29264
      oprot.writeFieldEnd()
29265
    oprot.writeFieldStop()
29266
    oprot.writeStructEnd()
29267
 
29268
  def validate(self):
29269
    return
29270
 
29271
 
29272
  def __repr__(self):
29273
    L = ['%s=%r' % (key, value)
29274
      for key, value in self.__dict__.iteritems()]
29275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29276
 
29277
  def __eq__(self, other):
29278
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29279
 
29280
  def __ne__(self, other):
29281
    return not (self == other)
29282
 
29283
class getCountForMarketplaceHistory_args:
29284
  """
29285
  Attributes:
29286
   - source
29287
   - itemId
29288
  """
29289
 
29290
  thrift_spec = (
29291
    None, # 0
29292
    (1, TType.I64, 'source', None, None, ), # 1
29293
    (2, TType.I64, 'itemId', None, None, ), # 2
29294
  )
29295
 
29296
  def __init__(self, source=None, itemId=None,):
29297
    self.source = source
29298
    self.itemId = itemId
29299
 
29300
  def read(self, iprot):
29301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29303
      return
29304
    iprot.readStructBegin()
29305
    while True:
29306
      (fname, ftype, fid) = iprot.readFieldBegin()
29307
      if ftype == TType.STOP:
29308
        break
29309
      if fid == 1:
29310
        if ftype == TType.I64:
29311
          self.source = iprot.readI64();
29312
        else:
29313
          iprot.skip(ftype)
29314
      elif fid == 2:
29315
        if ftype == TType.I64:
29316
          self.itemId = iprot.readI64();
29317
        else:
29318
          iprot.skip(ftype)
29319
      else:
29320
        iprot.skip(ftype)
29321
      iprot.readFieldEnd()
29322
    iprot.readStructEnd()
29323
 
29324
  def write(self, oprot):
29325
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29326
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29327
      return
29328
    oprot.writeStructBegin('getCountForMarketplaceHistory_args')
29329
    if self.source is not None:
29330
      oprot.writeFieldBegin('source', TType.I64, 1)
29331
      oprot.writeI64(self.source)
29332
      oprot.writeFieldEnd()
29333
    if self.itemId is not None:
29334
      oprot.writeFieldBegin('itemId', TType.I64, 2)
29335
      oprot.writeI64(self.itemId)
29336
      oprot.writeFieldEnd()
29337
    oprot.writeFieldStop()
29338
    oprot.writeStructEnd()
29339
 
29340
  def validate(self):
29341
    return
29342
 
29343
 
29344
  def __repr__(self):
29345
    L = ['%s=%r' % (key, value)
29346
      for key, value in self.__dict__.iteritems()]
29347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29348
 
29349
  def __eq__(self, other):
29350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29351
 
29352
  def __ne__(self, other):
29353
    return not (self == other)
29354
 
29355
class getCountForMarketplaceHistory_result:
29356
  """
29357
  Attributes:
29358
   - success
29359
  """
29360
 
29361
  thrift_spec = (
29362
    (0, TType.I64, 'success', None, None, ), # 0
29363
  )
29364
 
29365
  def __init__(self, success=None,):
29366
    self.success = success
29367
 
29368
  def read(self, iprot):
29369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29371
      return
29372
    iprot.readStructBegin()
29373
    while True:
29374
      (fname, ftype, fid) = iprot.readFieldBegin()
29375
      if ftype == TType.STOP:
29376
        break
29377
      if fid == 0:
29378
        if ftype == TType.I64:
29379
          self.success = iprot.readI64();
29380
        else:
29381
          iprot.skip(ftype)
29382
      else:
29383
        iprot.skip(ftype)
29384
      iprot.readFieldEnd()
29385
    iprot.readStructEnd()
29386
 
29387
  def write(self, oprot):
29388
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29389
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29390
      return
29391
    oprot.writeStructBegin('getCountForMarketplaceHistory_result')
29392
    if self.success is not None:
29393
      oprot.writeFieldBegin('success', TType.I64, 0)
29394
      oprot.writeI64(self.success)
29395
      oprot.writeFieldEnd()
29396
    oprot.writeFieldStop()
29397
    oprot.writeStructEnd()
29398
 
29399
  def validate(self):
29400
    return
29401
 
29402
 
29403
  def __repr__(self):
29404
    L = ['%s=%r' % (key, value)
29405
      for key, value in self.__dict__.iteritems()]
29406
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29407
 
29408
  def __eq__(self, other):
29409
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29410
 
29411
  def __ne__(self, other):
29412
    return not (self == other)
29413
 
29414
class getMarketplaceHistoryByDate_args:
29415
  """
29416
  Attributes:
29417
   - source
29418
   - startDate
29419
   - endDate
29420
   - offset
29421
   - limit
29422
   - itemId
29423
  """
29424
 
29425
  thrift_spec = (
29426
    None, # 0
29427
    (1, TType.I64, 'source', None, None, ), # 1
29428
    (2, TType.I64, 'startDate', None, None, ), # 2
29429
    (3, TType.I64, 'endDate', None, None, ), # 3
29430
    (4, TType.I64, 'offset', None, None, ), # 4
29431
    (5, TType.I64, 'limit', None, None, ), # 5
29432
    (6, TType.I64, 'itemId', None, None, ), # 6
29433
  )
29434
 
29435
  def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):
29436
    self.source = source
29437
    self.startDate = startDate
29438
    self.endDate = endDate
29439
    self.offset = offset
29440
    self.limit = limit
29441
    self.itemId = itemId
29442
 
29443
  def read(self, iprot):
29444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29446
      return
29447
    iprot.readStructBegin()
29448
    while True:
29449
      (fname, ftype, fid) = iprot.readFieldBegin()
29450
      if ftype == TType.STOP:
29451
        break
29452
      if fid == 1:
29453
        if ftype == TType.I64:
29454
          self.source = iprot.readI64();
29455
        else:
29456
          iprot.skip(ftype)
29457
      elif fid == 2:
29458
        if ftype == TType.I64:
29459
          self.startDate = iprot.readI64();
29460
        else:
29461
          iprot.skip(ftype)
29462
      elif fid == 3:
29463
        if ftype == TType.I64:
29464
          self.endDate = iprot.readI64();
29465
        else:
29466
          iprot.skip(ftype)
29467
      elif fid == 4:
29468
        if ftype == TType.I64:
29469
          self.offset = iprot.readI64();
29470
        else:
29471
          iprot.skip(ftype)
29472
      elif fid == 5:
29473
        if ftype == TType.I64:
29474
          self.limit = iprot.readI64();
29475
        else:
29476
          iprot.skip(ftype)
29477
      elif fid == 6:
29478
        if ftype == TType.I64:
29479
          self.itemId = iprot.readI64();
29480
        else:
29481
          iprot.skip(ftype)
29482
      else:
29483
        iprot.skip(ftype)
29484
      iprot.readFieldEnd()
29485
    iprot.readStructEnd()
29486
 
29487
  def write(self, oprot):
29488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29490
      return
29491
    oprot.writeStructBegin('getMarketplaceHistoryByDate_args')
29492
    if self.source is not None:
29493
      oprot.writeFieldBegin('source', TType.I64, 1)
29494
      oprot.writeI64(self.source)
29495
      oprot.writeFieldEnd()
29496
    if self.startDate is not None:
29497
      oprot.writeFieldBegin('startDate', TType.I64, 2)
29498
      oprot.writeI64(self.startDate)
29499
      oprot.writeFieldEnd()
29500
    if self.endDate is not None:
29501
      oprot.writeFieldBegin('endDate', TType.I64, 3)
29502
      oprot.writeI64(self.endDate)
29503
      oprot.writeFieldEnd()
29504
    if self.offset is not None:
29505
      oprot.writeFieldBegin('offset', TType.I64, 4)
29506
      oprot.writeI64(self.offset)
29507
      oprot.writeFieldEnd()
29508
    if self.limit is not None:
29509
      oprot.writeFieldBegin('limit', TType.I64, 5)
29510
      oprot.writeI64(self.limit)
29511
      oprot.writeFieldEnd()
29512
    if self.itemId is not None:
29513
      oprot.writeFieldBegin('itemId', TType.I64, 6)
29514
      oprot.writeI64(self.itemId)
29515
      oprot.writeFieldEnd()
29516
    oprot.writeFieldStop()
29517
    oprot.writeStructEnd()
29518
 
29519
  def validate(self):
29520
    return
29521
 
29522
 
29523
  def __repr__(self):
29524
    L = ['%s=%r' % (key, value)
29525
      for key, value in self.__dict__.iteritems()]
29526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29527
 
29528
  def __eq__(self, other):
29529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29530
 
29531
  def __ne__(self, other):
29532
    return not (self == other)
29533
 
29534
class getMarketplaceHistoryByDate_result:
29535
  """
29536
  Attributes:
29537
   - success
29538
  """
29539
 
29540
  thrift_spec = (
29541
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
29542
  )
29543
 
29544
  def __init__(self, success=None,):
29545
    self.success = success
29546
 
29547
  def read(self, iprot):
29548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29550
      return
29551
    iprot.readStructBegin()
29552
    while True:
29553
      (fname, ftype, fid) = iprot.readFieldBegin()
29554
      if ftype == TType.STOP:
29555
        break
29556
      if fid == 0:
29557
        if ftype == TType.LIST:
29558
          self.success = []
12567 amit.gupta 29559
          (_etype653, _size650) = iprot.readListBegin()
29560
          for _i654 in xrange(_size650):
29561
            _elem655 = MarketplaceHistory()
29562
            _elem655.read(iprot)
29563
            self.success.append(_elem655)
11015 kshitij.so 29564
          iprot.readListEnd()
29565
        else:
29566
          iprot.skip(ftype)
29567
      else:
29568
        iprot.skip(ftype)
29569
      iprot.readFieldEnd()
29570
    iprot.readStructEnd()
29571
 
29572
  def write(self, oprot):
29573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29575
      return
29576
    oprot.writeStructBegin('getMarketplaceHistoryByDate_result')
29577
    if self.success is not None:
29578
      oprot.writeFieldBegin('success', TType.LIST, 0)
29579
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29580
      for iter656 in self.success:
29581
        iter656.write(oprot)
11015 kshitij.so 29582
      oprot.writeListEnd()
29583
      oprot.writeFieldEnd()
29584
    oprot.writeFieldStop()
29585
    oprot.writeStructEnd()
29586
 
29587
  def validate(self):
29588
    return
29589
 
29590
 
29591
  def __repr__(self):
29592
    L = ['%s=%r' % (key, value)
29593
      for key, value in self.__dict__.iteritems()]
29594
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29595
 
29596
  def __eq__(self, other):
29597
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29598
 
29599
  def __ne__(self, other):
29600
    return not (self == other)
11531 vikram.rag 29601
 
29602
class getPrivateDealDetails_args:
29603
  """
29604
  Attributes:
29605
   - item_id
29606
  """
29607
 
29608
  thrift_spec = (
29609
    None, # 0
29610
    (1, TType.I64, 'item_id', None, None, ), # 1
29611
  )
29612
 
29613
  def __init__(self, item_id=None,):
29614
    self.item_id = item_id
29615
 
29616
  def read(self, iprot):
29617
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29618
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29619
      return
29620
    iprot.readStructBegin()
29621
    while True:
29622
      (fname, ftype, fid) = iprot.readFieldBegin()
29623
      if ftype == TType.STOP:
29624
        break
29625
      if fid == 1:
29626
        if ftype == TType.I64:
29627
          self.item_id = iprot.readI64();
29628
        else:
29629
          iprot.skip(ftype)
29630
      else:
29631
        iprot.skip(ftype)
29632
      iprot.readFieldEnd()
29633
    iprot.readStructEnd()
29634
 
29635
  def write(self, oprot):
29636
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29637
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29638
      return
29639
    oprot.writeStructBegin('getPrivateDealDetails_args')
29640
    if self.item_id is not None:
29641
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29642
      oprot.writeI64(self.item_id)
29643
      oprot.writeFieldEnd()
29644
    oprot.writeFieldStop()
29645
    oprot.writeStructEnd()
29646
 
29647
  def validate(self):
29648
    return
29649
 
29650
 
29651
  def __repr__(self):
29652
    L = ['%s=%r' % (key, value)
29653
      for key, value in self.__dict__.iteritems()]
29654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29655
 
29656
  def __eq__(self, other):
29657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29658
 
29659
  def __ne__(self, other):
29660
    return not (self == other)
29661
 
29662
class getPrivateDealDetails_result:
29663
  """
29664
  Attributes:
29665
   - success
29666
  """
29667
 
29668
  thrift_spec = (
29669
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
29670
  )
29671
 
29672
  def __init__(self, success=None,):
29673
    self.success = success
29674
 
29675
  def read(self, iprot):
29676
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29677
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29678
      return
29679
    iprot.readStructBegin()
29680
    while True:
29681
      (fname, ftype, fid) = iprot.readFieldBegin()
29682
      if ftype == TType.STOP:
29683
        break
29684
      if fid == 0:
29685
        if ftype == TType.STRUCT:
29686
          self.success = PrivateDeal()
29687
          self.success.read(iprot)
29688
        else:
29689
          iprot.skip(ftype)
29690
      else:
29691
        iprot.skip(ftype)
29692
      iprot.readFieldEnd()
29693
    iprot.readStructEnd()
29694
 
29695
  def write(self, oprot):
29696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29698
      return
29699
    oprot.writeStructBegin('getPrivateDealDetails_result')
29700
    if self.success is not None:
29701
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29702
      self.success.write(oprot)
29703
      oprot.writeFieldEnd()
29704
    oprot.writeFieldStop()
29705
    oprot.writeStructEnd()
29706
 
29707
  def validate(self):
29708
    return
29709
 
29710
 
29711
  def __repr__(self):
29712
    L = ['%s=%r' % (key, value)
29713
      for key, value in self.__dict__.iteritems()]
29714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29715
 
29716
  def __eq__(self, other):
29717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29718
 
29719
  def __ne__(self, other):
29720
    return not (self == other)
29721
 
29722
class getPrivateDealItems_args:
29723
  """
29724
  Attributes:
29725
   - offset
29726
   - limit
29727
  """
29728
 
29729
  thrift_spec = (
29730
    None, # 0
29731
    (1, TType.I64, 'offset', None, None, ), # 1
29732
    (2, TType.I64, 'limit', None, None, ), # 2
29733
  )
29734
 
29735
  def __init__(self, offset=None, limit=None,):
29736
    self.offset = offset
29737
    self.limit = limit
29738
 
29739
  def read(self, iprot):
29740
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29741
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29742
      return
29743
    iprot.readStructBegin()
29744
    while True:
29745
      (fname, ftype, fid) = iprot.readFieldBegin()
29746
      if ftype == TType.STOP:
29747
        break
29748
      if fid == 1:
29749
        if ftype == TType.I64:
29750
          self.offset = iprot.readI64();
29751
        else:
29752
          iprot.skip(ftype)
29753
      elif fid == 2:
29754
        if ftype == TType.I64:
29755
          self.limit = iprot.readI64();
29756
        else:
29757
          iprot.skip(ftype)
29758
      else:
29759
        iprot.skip(ftype)
29760
      iprot.readFieldEnd()
29761
    iprot.readStructEnd()
29762
 
29763
  def write(self, oprot):
29764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29766
      return
29767
    oprot.writeStructBegin('getPrivateDealItems_args')
29768
    if self.offset is not None:
29769
      oprot.writeFieldBegin('offset', TType.I64, 1)
29770
      oprot.writeI64(self.offset)
29771
      oprot.writeFieldEnd()
29772
    if self.limit is not None:
29773
      oprot.writeFieldBegin('limit', TType.I64, 2)
29774
      oprot.writeI64(self.limit)
29775
      oprot.writeFieldEnd()
29776
    oprot.writeFieldStop()
29777
    oprot.writeStructEnd()
29778
 
29779
  def validate(self):
29780
    return
29781
 
29782
 
29783
  def __repr__(self):
29784
    L = ['%s=%r' % (key, value)
29785
      for key, value in self.__dict__.iteritems()]
29786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29787
 
29788
  def __eq__(self, other):
29789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29790
 
29791
  def __ne__(self, other):
29792
    return not (self == other)
29793
 
29794
class getPrivateDealItems_result:
29795
  """
29796
  Attributes:
29797
   - success
29798
  """
29799
 
29800
  thrift_spec = (
29801
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
29802
  )
29803
 
29804
  def __init__(self, success=None,):
29805
    self.success = success
29806
 
29807
  def read(self, iprot):
29808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29810
      return
29811
    iprot.readStructBegin()
29812
    while True:
29813
      (fname, ftype, fid) = iprot.readFieldBegin()
29814
      if ftype == TType.STOP:
29815
        break
29816
      if fid == 0:
29817
        if ftype == TType.LIST:
29818
          self.success = []
12567 amit.gupta 29819
          (_etype660, _size657) = iprot.readListBegin()
29820
          for _i661 in xrange(_size657):
29821
            _elem662 = Item()
29822
            _elem662.read(iprot)
29823
            self.success.append(_elem662)
11531 vikram.rag 29824
          iprot.readListEnd()
29825
        else:
29826
          iprot.skip(ftype)
29827
      else:
29828
        iprot.skip(ftype)
29829
      iprot.readFieldEnd()
29830
    iprot.readStructEnd()
29831
 
29832
  def write(self, oprot):
29833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29835
      return
29836
    oprot.writeStructBegin('getPrivateDealItems_result')
29837
    if self.success is not None:
29838
      oprot.writeFieldBegin('success', TType.LIST, 0)
29839
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29840
      for iter663 in self.success:
29841
        iter663.write(oprot)
11531 vikram.rag 29842
      oprot.writeListEnd()
29843
      oprot.writeFieldEnd()
29844
    oprot.writeFieldStop()
29845
    oprot.writeStructEnd()
29846
 
29847
  def validate(self):
29848
    return
29849
 
29850
 
29851
  def __repr__(self):
29852
    L = ['%s=%r' % (key, value)
29853
      for key, value in self.__dict__.iteritems()]
29854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29855
 
29856
  def __eq__(self, other):
29857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29858
 
29859
  def __ne__(self, other):
29860
    return not (self == other)
29861
 
11592 amit.gupta 29862
class getAllActivePrivateDeals_args:
11653 amit.gupta 29863
  """
29864
  Attributes:
29865
   - itemIds
29866
   - daysDelta
29867
  """
11592 amit.gupta 29868
 
29869
  thrift_spec = (
11653 amit.gupta 29870
    None, # 0
29871
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
29872
    (2, TType.I64, 'daysDelta', None, None, ), # 2
11592 amit.gupta 29873
  )
29874
 
11653 amit.gupta 29875
  def __init__(self, itemIds=None, daysDelta=None,):
29876
    self.itemIds = itemIds
29877
    self.daysDelta = daysDelta
29878
 
11592 amit.gupta 29879
  def read(self, iprot):
29880
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29881
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29882
      return
29883
    iprot.readStructBegin()
29884
    while True:
29885
      (fname, ftype, fid) = iprot.readFieldBegin()
29886
      if ftype == TType.STOP:
29887
        break
11653 amit.gupta 29888
      if fid == 1:
29889
        if ftype == TType.LIST:
29890
          self.itemIds = []
12567 amit.gupta 29891
          (_etype667, _size664) = iprot.readListBegin()
29892
          for _i668 in xrange(_size664):
29893
            _elem669 = iprot.readI64();
29894
            self.itemIds.append(_elem669)
11653 amit.gupta 29895
          iprot.readListEnd()
29896
        else:
29897
          iprot.skip(ftype)
29898
      elif fid == 2:
29899
        if ftype == TType.I64:
29900
          self.daysDelta = iprot.readI64();
29901
        else:
29902
          iprot.skip(ftype)
11592 amit.gupta 29903
      else:
29904
        iprot.skip(ftype)
29905
      iprot.readFieldEnd()
29906
    iprot.readStructEnd()
29907
 
29908
  def write(self, oprot):
29909
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29910
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29911
      return
29912
    oprot.writeStructBegin('getAllActivePrivateDeals_args')
11653 amit.gupta 29913
    if self.itemIds is not None:
29914
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
29915
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 29916
      for iter670 in self.itemIds:
29917
        oprot.writeI64(iter670)
11653 amit.gupta 29918
      oprot.writeListEnd()
29919
      oprot.writeFieldEnd()
29920
    if self.daysDelta is not None:
29921
      oprot.writeFieldBegin('daysDelta', TType.I64, 2)
29922
      oprot.writeI64(self.daysDelta)
29923
      oprot.writeFieldEnd()
11592 amit.gupta 29924
    oprot.writeFieldStop()
29925
    oprot.writeStructEnd()
29926
 
29927
  def validate(self):
29928
    return
29929
 
29930
 
29931
  def __repr__(self):
29932
    L = ['%s=%r' % (key, value)
29933
      for key, value in self.__dict__.iteritems()]
29934
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29935
 
29936
  def __eq__(self, other):
29937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29938
 
29939
  def __ne__(self, other):
29940
    return not (self == other)
29941
 
29942
class getAllActivePrivateDeals_result:
29943
  """
29944
  Attributes:
29945
   - success
29946
  """
29947
 
29948
  thrift_spec = (
29949
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.thrift_spec)), None, ), # 0
29950
  )
29951
 
29952
  def __init__(self, success=None,):
29953
    self.success = success
29954
 
29955
  def read(self, iprot):
29956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29958
      return
29959
    iprot.readStructBegin()
29960
    while True:
29961
      (fname, ftype, fid) = iprot.readFieldBegin()
29962
      if ftype == TType.STOP:
29963
        break
29964
      if fid == 0:
29965
        if ftype == TType.MAP:
29966
          self.success = {}
12567 amit.gupta 29967
          (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() 
29968
          for _i675 in xrange(_size671):
29969
            _key676 = iprot.readI64();
29970
            _val677 = PrivateDeal()
29971
            _val677.read(iprot)
29972
            self.success[_key676] = _val677
11592 amit.gupta 29973
          iprot.readMapEnd()
29974
        else:
29975
          iprot.skip(ftype)
29976
      else:
29977
        iprot.skip(ftype)
29978
      iprot.readFieldEnd()
29979
    iprot.readStructEnd()
29980
 
29981
  def write(self, oprot):
29982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29984
      return
29985
    oprot.writeStructBegin('getAllActivePrivateDeals_result')
29986
    if self.success is not None:
29987
      oprot.writeFieldBegin('success', TType.MAP, 0)
29988
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
12567 amit.gupta 29989
      for kiter678,viter679 in self.success.items():
29990
        oprot.writeI64(kiter678)
29991
        viter679.write(oprot)
11592 amit.gupta 29992
      oprot.writeMapEnd()
29993
      oprot.writeFieldEnd()
29994
    oprot.writeFieldStop()
29995
    oprot.writeStructEnd()
29996
 
29997
  def validate(self):
29998
    return
29999
 
30000
 
30001
  def __repr__(self):
30002
    L = ['%s=%r' % (key, value)
30003
      for key, value in self.__dict__.iteritems()]
30004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30005
 
30006
  def __eq__(self, other):
30007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30008
 
30009
  def __ne__(self, other):
30010
    return not (self == other)
30011
 
11531 vikram.rag 30012
class addOrUpdatePrivateDeal_args:
30013
  """
30014
  Attributes:
30015
   - privateDeal
30016
  """
30017
 
30018
  thrift_spec = (
30019
    None, # 0
30020
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
30021
  )
30022
 
30023
  def __init__(self, privateDeal=None,):
30024
    self.privateDeal = privateDeal
30025
 
30026
  def read(self, iprot):
30027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30029
      return
30030
    iprot.readStructBegin()
30031
    while True:
30032
      (fname, ftype, fid) = iprot.readFieldBegin()
30033
      if ftype == TType.STOP:
30034
        break
30035
      if fid == 1:
30036
        if ftype == TType.STRUCT:
30037
          self.privateDeal = PrivateDeal()
30038
          self.privateDeal.read(iprot)
30039
        else:
30040
          iprot.skip(ftype)
30041
      else:
30042
        iprot.skip(ftype)
30043
      iprot.readFieldEnd()
30044
    iprot.readStructEnd()
30045
 
30046
  def write(self, oprot):
30047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30049
      return
30050
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
30051
    if self.privateDeal is not None:
30052
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
30053
      self.privateDeal.write(oprot)
30054
      oprot.writeFieldEnd()
30055
    oprot.writeFieldStop()
30056
    oprot.writeStructEnd()
30057
 
30058
  def validate(self):
30059
    return
30060
 
30061
 
30062
  def __repr__(self):
30063
    L = ['%s=%r' % (key, value)
30064
      for key, value in self.__dict__.iteritems()]
30065
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30066
 
30067
  def __eq__(self, other):
30068
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30069
 
30070
  def __ne__(self, other):
30071
    return not (self == other)
30072
 
30073
class addOrUpdatePrivateDeal_result:
30074
  """
30075
  Attributes:
30076
   - success
30077
  """
30078
 
30079
  thrift_spec = (
30080
    (0, TType.BOOL, 'success', None, None, ), # 0
30081
  )
30082
 
30083
  def __init__(self, success=None,):
30084
    self.success = success
30085
 
30086
  def read(self, iprot):
30087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30089
      return
30090
    iprot.readStructBegin()
30091
    while True:
30092
      (fname, ftype, fid) = iprot.readFieldBegin()
30093
      if ftype == TType.STOP:
30094
        break
30095
      if fid == 0:
30096
        if ftype == TType.BOOL:
30097
          self.success = iprot.readBool();
30098
        else:
30099
          iprot.skip(ftype)
30100
      else:
30101
        iprot.skip(ftype)
30102
      iprot.readFieldEnd()
30103
    iprot.readStructEnd()
30104
 
30105
  def write(self, oprot):
30106
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30107
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30108
      return
30109
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
30110
    if self.success is not None:
30111
      oprot.writeFieldBegin('success', TType.BOOL, 0)
30112
      oprot.writeBool(self.success)
30113
      oprot.writeFieldEnd()
30114
    oprot.writeFieldStop()
30115
    oprot.writeStructEnd()
30116
 
30117
  def validate(self):
30118
    return
30119
 
30120
 
30121
  def __repr__(self):
30122
    L = ['%s=%r' % (key, value)
30123
      for key, value in self.__dict__.iteritems()]
30124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30125
 
30126
  def __eq__(self, other):
30127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30128
 
30129
  def __ne__(self, other):
30130
    return not (self == other)
11635 vikram.rag 30131
 
30132
class getPrivateDealsCatalogIds_args:
30133
  """
30134
  Attributes:
30135
   - beginIndex
30136
   - totalItems
30137
  """
30138
 
30139
  thrift_spec = (
30140
    None, # 0
30141
    (1, TType.I64, 'beginIndex', None, None, ), # 1
30142
    (2, TType.I64, 'totalItems', None, None, ), # 2
30143
  )
30144
 
30145
  def __init__(self, beginIndex=None, totalItems=None,):
30146
    self.beginIndex = beginIndex
30147
    self.totalItems = totalItems
30148
 
30149
  def read(self, iprot):
30150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30152
      return
30153
    iprot.readStructBegin()
30154
    while True:
30155
      (fname, ftype, fid) = iprot.readFieldBegin()
30156
      if ftype == TType.STOP:
30157
        break
30158
      if fid == 1:
30159
        if ftype == TType.I64:
30160
          self.beginIndex = iprot.readI64();
30161
        else:
30162
          iprot.skip(ftype)
30163
      elif fid == 2:
30164
        if ftype == TType.I64:
30165
          self.totalItems = iprot.readI64();
30166
        else:
30167
          iprot.skip(ftype)
30168
      else:
30169
        iprot.skip(ftype)
30170
      iprot.readFieldEnd()
30171
    iprot.readStructEnd()
30172
 
30173
  def write(self, oprot):
30174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30176
      return
30177
    oprot.writeStructBegin('getPrivateDealsCatalogIds_args')
30178
    if self.beginIndex is not None:
30179
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
30180
      oprot.writeI64(self.beginIndex)
30181
      oprot.writeFieldEnd()
30182
    if self.totalItems is not None:
30183
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
30184
      oprot.writeI64(self.totalItems)
30185
      oprot.writeFieldEnd()
30186
    oprot.writeFieldStop()
30187
    oprot.writeStructEnd()
30188
 
30189
  def validate(self):
30190
    return
30191
 
30192
 
30193
  def __repr__(self):
30194
    L = ['%s=%r' % (key, value)
30195
      for key, value in self.__dict__.iteritems()]
30196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30197
 
30198
  def __eq__(self, other):
30199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30200
 
30201
  def __ne__(self, other):
30202
    return not (self == other)
30203
 
30204
class getPrivateDealsCatalogIds_result:
30205
  """
30206
  Attributes:
30207
   - success
30208
   - cex
30209
  """
30210
 
30211
  thrift_spec = (
30212
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
30213
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
30214
  )
30215
 
30216
  def __init__(self, success=None, cex=None,):
30217
    self.success = success
30218
    self.cex = cex
30219
 
30220
  def read(self, iprot):
30221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30223
      return
30224
    iprot.readStructBegin()
30225
    while True:
30226
      (fname, ftype, fid) = iprot.readFieldBegin()
30227
      if ftype == TType.STOP:
30228
        break
30229
      if fid == 0:
30230
        if ftype == TType.LIST:
30231
          self.success = []
12567 amit.gupta 30232
          (_etype683, _size680) = iprot.readListBegin()
30233
          for _i684 in xrange(_size680):
30234
            _elem685 = iprot.readI64();
30235
            self.success.append(_elem685)
11635 vikram.rag 30236
          iprot.readListEnd()
30237
        else:
30238
          iprot.skip(ftype)
30239
      elif fid == 1:
30240
        if ftype == TType.STRUCT:
30241
          self.cex = CatalogServiceException()
30242
          self.cex.read(iprot)
30243
        else:
30244
          iprot.skip(ftype)
30245
      else:
30246
        iprot.skip(ftype)
30247
      iprot.readFieldEnd()
30248
    iprot.readStructEnd()
30249
 
30250
  def write(self, oprot):
30251
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30252
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30253
      return
30254
    oprot.writeStructBegin('getPrivateDealsCatalogIds_result')
30255
    if self.success is not None:
30256
      oprot.writeFieldBegin('success', TType.LIST, 0)
30257
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 30258
      for iter686 in self.success:
30259
        oprot.writeI64(iter686)
11635 vikram.rag 30260
      oprot.writeListEnd()
30261
      oprot.writeFieldEnd()
30262
    if self.cex is not None:
30263
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
30264
      self.cex.write(oprot)
30265
      oprot.writeFieldEnd()
30266
    oprot.writeFieldStop()
30267
    oprot.writeStructEnd()
30268
 
30269
  def validate(self):
30270
    return
30271
 
30272
 
30273
  def __repr__(self):
30274
    L = ['%s=%r' % (key, value)
30275
      for key, value in self.__dict__.iteritems()]
30276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30277
 
30278
  def __eq__(self, other):
30279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30280
 
30281
  def __ne__(self, other):
30282
    return not (self == other)
11645 amit.gupta 30283
 
30284
class getPrivateDealsCount_args:
30285
 
30286
  thrift_spec = (
30287
  )
30288
 
30289
  def read(self, iprot):
30290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30292
      return
30293
    iprot.readStructBegin()
30294
    while True:
30295
      (fname, ftype, fid) = iprot.readFieldBegin()
30296
      if ftype == TType.STOP:
30297
        break
30298
      else:
30299
        iprot.skip(ftype)
30300
      iprot.readFieldEnd()
30301
    iprot.readStructEnd()
30302
 
30303
  def write(self, oprot):
30304
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30305
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30306
      return
30307
    oprot.writeStructBegin('getPrivateDealsCount_args')
30308
    oprot.writeFieldStop()
30309
    oprot.writeStructEnd()
30310
 
30311
  def validate(self):
30312
    return
30313
 
30314
 
30315
  def __repr__(self):
30316
    L = ['%s=%r' % (key, value)
30317
      for key, value in self.__dict__.iteritems()]
30318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30319
 
30320
  def __eq__(self, other):
30321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30322
 
30323
  def __ne__(self, other):
30324
    return not (self == other)
30325
 
30326
class getPrivateDealsCount_result:
30327
  """
30328
  Attributes:
30329
   - success
30330
  """
30331
 
30332
  thrift_spec = (
30333
    (0, TType.I32, 'success', None, None, ), # 0
30334
  )
30335
 
30336
  def __init__(self, success=None,):
30337
    self.success = success
30338
 
30339
  def read(self, iprot):
30340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30342
      return
30343
    iprot.readStructBegin()
30344
    while True:
30345
      (fname, ftype, fid) = iprot.readFieldBegin()
30346
      if ftype == TType.STOP:
30347
        break
30348
      if fid == 0:
30349
        if ftype == TType.I32:
30350
          self.success = iprot.readI32();
30351
        else:
30352
          iprot.skip(ftype)
30353
      else:
30354
        iprot.skip(ftype)
30355
      iprot.readFieldEnd()
30356
    iprot.readStructEnd()
30357
 
30358
  def write(self, oprot):
30359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30361
      return
30362
    oprot.writeStructBegin('getPrivateDealsCount_result')
30363
    if self.success is not None:
30364
      oprot.writeFieldBegin('success', TType.I32, 0)
30365
      oprot.writeI32(self.success)
30366
      oprot.writeFieldEnd()
30367
    oprot.writeFieldStop()
30368
    oprot.writeStructEnd()
30369
 
30370
  def validate(self):
30371
    return
30372
 
30373
 
30374
  def __repr__(self):
30375
    L = ['%s=%r' % (key, value)
30376
      for key, value in self.__dict__.iteritems()]
30377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30378
 
30379
  def __eq__(self, other):
30380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30381
 
30382
  def __ne__(self, other):
30383
    return not (self == other)
11905 kshitij.so 30384
 
30385
class getAmazonOutSyncItems_args:
30386
  """
30387
  Attributes:
30388
   - item_id
30389
  """
30390
 
30391
  thrift_spec = (
30392
    None, # 0
30393
    (1, TType.I64, 'item_id', None, None, ), # 1
30394
  )
30395
 
30396
  def __init__(self, item_id=None,):
30397
    self.item_id = item_id
30398
 
30399
  def read(self, iprot):
30400
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30401
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30402
      return
30403
    iprot.readStructBegin()
30404
    while True:
30405
      (fname, ftype, fid) = iprot.readFieldBegin()
30406
      if ftype == TType.STOP:
30407
        break
30408
      if fid == 1:
30409
        if ftype == TType.I64:
30410
          self.item_id = iprot.readI64();
30411
        else:
30412
          iprot.skip(ftype)
30413
      else:
30414
        iprot.skip(ftype)
30415
      iprot.readFieldEnd()
30416
    iprot.readStructEnd()
30417
 
30418
  def write(self, oprot):
30419
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30420
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30421
      return
30422
    oprot.writeStructBegin('getAmazonOutSyncItems_args')
30423
    if self.item_id is not None:
30424
      oprot.writeFieldBegin('item_id', TType.I64, 1)
30425
      oprot.writeI64(self.item_id)
30426
      oprot.writeFieldEnd()
30427
    oprot.writeFieldStop()
30428
    oprot.writeStructEnd()
30429
 
30430
  def validate(self):
30431
    return
30432
 
30433
 
30434
  def __repr__(self):
30435
    L = ['%s=%r' % (key, value)
30436
      for key, value in self.__dict__.iteritems()]
30437
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30438
 
30439
  def __eq__(self, other):
30440
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30441
 
30442
  def __ne__(self, other):
30443
    return not (self == other)
30444
 
30445
class getAmazonOutSyncItems_result:
30446
  """
30447
  Attributes:
30448
   - success
30449
  """
30450
 
30451
  thrift_spec = (
30452
    (0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.thrift_spec), None, ), # 0
30453
  )
30454
 
30455
  def __init__(self, success=None,):
30456
    self.success = success
30457
 
30458
  def read(self, iprot):
30459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30461
      return
30462
    iprot.readStructBegin()
30463
    while True:
30464
      (fname, ftype, fid) = iprot.readFieldBegin()
30465
      if ftype == TType.STOP:
30466
        break
30467
      if fid == 0:
30468
        if ftype == TType.STRUCT:
30469
          self.success = AmazonOutOfSync()
30470
          self.success.read(iprot)
30471
        else:
30472
          iprot.skip(ftype)
30473
      else:
30474
        iprot.skip(ftype)
30475
      iprot.readFieldEnd()
30476
    iprot.readStructEnd()
30477
 
30478
  def write(self, oprot):
30479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30481
      return
30482
    oprot.writeStructBegin('getAmazonOutSyncItems_result')
30483
    if self.success is not None:
30484
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
30485
      self.success.write(oprot)
30486
      oprot.writeFieldEnd()
30487
    oprot.writeFieldStop()
30488
    oprot.writeStructEnd()
30489
 
30490
  def validate(self):
30491
    return
30492
 
30493
 
30494
  def __repr__(self):
30495
    L = ['%s=%r' % (key, value)
30496
      for key, value in self.__dict__.iteritems()]
30497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30498
 
30499
  def __eq__(self, other):
30500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30501
 
30502
  def __ne__(self, other):
30503
    return not (self == other)
30504
 
30505
class getAllPrivateDealsComparison_args:
30506
 
30507
  thrift_spec = (
30508
  )
30509
 
30510
  def read(self, iprot):
30511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30513
      return
30514
    iprot.readStructBegin()
30515
    while True:
30516
      (fname, ftype, fid) = iprot.readFieldBegin()
30517
      if ftype == TType.STOP:
30518
        break
30519
      else:
30520
        iprot.skip(ftype)
30521
      iprot.readFieldEnd()
30522
    iprot.readStructEnd()
30523
 
30524
  def write(self, oprot):
30525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30527
      return
30528
    oprot.writeStructBegin('getAllPrivateDealsComparison_args')
30529
    oprot.writeFieldStop()
30530
    oprot.writeStructEnd()
30531
 
30532
  def validate(self):
30533
    return
30534
 
30535
 
30536
  def __repr__(self):
30537
    L = ['%s=%r' % (key, value)
30538
      for key, value in self.__dict__.iteritems()]
30539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30540
 
30541
  def __eq__(self, other):
30542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30543
 
30544
  def __ne__(self, other):
30545
    return not (self == other)
30546
 
30547
class getAllPrivateDealsComparison_result:
30548
  """
30549
  Attributes:
30550
   - success
30551
  """
30552
 
30553
  thrift_spec = (
30554
    (0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.thrift_spec)), None, ), # 0
30555
  )
30556
 
30557
  def __init__(self, success=None,):
30558
    self.success = success
30559
 
30560
  def read(self, iprot):
30561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30563
      return
30564
    iprot.readStructBegin()
30565
    while True:
30566
      (fname, ftype, fid) = iprot.readFieldBegin()
30567
      if ftype == TType.STOP:
30568
        break
30569
      if fid == 0:
30570
        if ftype == TType.LIST:
30571
          self.success = []
12567 amit.gupta 30572
          (_etype690, _size687) = iprot.readListBegin()
30573
          for _i691 in xrange(_size687):
30574
            _elem692 = PdPriceComp()
30575
            _elem692.read(iprot)
30576
            self.success.append(_elem692)
11905 kshitij.so 30577
          iprot.readListEnd()
30578
        else:
30579
          iprot.skip(ftype)
30580
      else:
30581
        iprot.skip(ftype)
30582
      iprot.readFieldEnd()
30583
    iprot.readStructEnd()
30584
 
30585
  def write(self, oprot):
30586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30588
      return
30589
    oprot.writeStructBegin('getAllPrivateDealsComparison_result')
30590
    if self.success is not None:
30591
      oprot.writeFieldBegin('success', TType.LIST, 0)
30592
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30593
      for iter693 in self.success:
30594
        iter693.write(oprot)
11905 kshitij.so 30595
      oprot.writeListEnd()
30596
      oprot.writeFieldEnd()
30597
    oprot.writeFieldStop()
30598
    oprot.writeStructEnd()
30599
 
30600
  def validate(self):
30601
    return
30602
 
30603
 
30604
  def __repr__(self):
30605
    L = ['%s=%r' % (key, value)
30606
      for key, value in self.__dict__.iteritems()]
30607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30608
 
30609
  def __eq__(self, other):
30610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30611
 
30612
  def __ne__(self, other):
30613
    return not (self == other)
12133 kshitij.so 30614
 
30615
class getAllSnapdealMarketplaceItem_args:
30616
 
30617
  thrift_spec = (
30618
  )
30619
 
30620
  def read(self, iprot):
30621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30623
      return
30624
    iprot.readStructBegin()
30625
    while True:
30626
      (fname, ftype, fid) = iprot.readFieldBegin()
30627
      if ftype == TType.STOP:
30628
        break
30629
      else:
30630
        iprot.skip(ftype)
30631
      iprot.readFieldEnd()
30632
    iprot.readStructEnd()
30633
 
30634
  def write(self, oprot):
30635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30637
      return
30638
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_args')
30639
    oprot.writeFieldStop()
30640
    oprot.writeStructEnd()
30641
 
30642
  def validate(self):
30643
    return
30644
 
30645
 
30646
  def __repr__(self):
30647
    L = ['%s=%r' % (key, value)
30648
      for key, value in self.__dict__.iteritems()]
30649
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30650
 
30651
  def __eq__(self, other):
30652
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30653
 
30654
  def __ne__(self, other):
30655
    return not (self == other)
30656
 
30657
class getAllSnapdealMarketplaceItem_result:
30658
  """
30659
  Attributes:
30660
   - success
30661
  """
30662
 
30663
  thrift_spec = (
30664
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
30665
  )
30666
 
30667
  def __init__(self, success=None,):
30668
    self.success = success
30669
 
30670
  def read(self, iprot):
30671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30673
      return
30674
    iprot.readStructBegin()
30675
    while True:
30676
      (fname, ftype, fid) = iprot.readFieldBegin()
30677
      if ftype == TType.STOP:
30678
        break
30679
      if fid == 0:
30680
        if ftype == TType.LIST:
30681
          self.success = []
12567 amit.gupta 30682
          (_etype697, _size694) = iprot.readListBegin()
30683
          for _i698 in xrange(_size694):
30684
            _elem699 = SnapdealItem()
30685
            _elem699.read(iprot)
30686
            self.success.append(_elem699)
12133 kshitij.so 30687
          iprot.readListEnd()
30688
        else:
30689
          iprot.skip(ftype)
30690
      else:
30691
        iprot.skip(ftype)
30692
      iprot.readFieldEnd()
30693
    iprot.readStructEnd()
30694
 
30695
  def write(self, oprot):
30696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30698
      return
30699
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_result')
30700
    if self.success is not None:
30701
      oprot.writeFieldBegin('success', TType.LIST, 0)
30702
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30703
      for iter700 in self.success:
30704
        iter700.write(oprot)
12133 kshitij.so 30705
      oprot.writeListEnd()
30706
      oprot.writeFieldEnd()
30707
    oprot.writeFieldStop()
30708
    oprot.writeStructEnd()
30709
 
30710
  def validate(self):
30711
    return
30712
 
30713
 
30714
  def __repr__(self):
30715
    L = ['%s=%r' % (key, value)
30716
      for key, value in self.__dict__.iteritems()]
30717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30718
 
30719
  def __eq__(self, other):
30720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30721
 
30722
  def __ne__(self, other):
30723
    return not (self == other)
30724
 
30725
class getAllFlipkartMarketplaceItem_args:
30726
 
30727
  thrift_spec = (
30728
  )
30729
 
30730
  def read(self, iprot):
30731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30733
      return
30734
    iprot.readStructBegin()
30735
    while True:
30736
      (fname, ftype, fid) = iprot.readFieldBegin()
30737
      if ftype == TType.STOP:
30738
        break
30739
      else:
30740
        iprot.skip(ftype)
30741
      iprot.readFieldEnd()
30742
    iprot.readStructEnd()
30743
 
30744
  def write(self, oprot):
30745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30747
      return
30748
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_args')
30749
    oprot.writeFieldStop()
30750
    oprot.writeStructEnd()
30751
 
30752
  def validate(self):
30753
    return
30754
 
30755
 
30756
  def __repr__(self):
30757
    L = ['%s=%r' % (key, value)
30758
      for key, value in self.__dict__.iteritems()]
30759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30760
 
30761
  def __eq__(self, other):
30762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30763
 
30764
  def __ne__(self, other):
30765
    return not (self == other)
30766
 
30767
class getAllFlipkartMarketplaceItem_result:
30768
  """
30769
  Attributes:
30770
   - success
30771
  """
30772
 
30773
  thrift_spec = (
30774
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
30775
  )
30776
 
30777
  def __init__(self, success=None,):
30778
    self.success = success
30779
 
30780
  def read(self, iprot):
30781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30783
      return
30784
    iprot.readStructBegin()
30785
    while True:
30786
      (fname, ftype, fid) = iprot.readFieldBegin()
30787
      if ftype == TType.STOP:
30788
        break
30789
      if fid == 0:
30790
        if ftype == TType.LIST:
30791
          self.success = []
12567 amit.gupta 30792
          (_etype704, _size701) = iprot.readListBegin()
30793
          for _i705 in xrange(_size701):
30794
            _elem706 = FlipkartItem()
30795
            _elem706.read(iprot)
30796
            self.success.append(_elem706)
12133 kshitij.so 30797
          iprot.readListEnd()
30798
        else:
30799
          iprot.skip(ftype)
30800
      else:
30801
        iprot.skip(ftype)
30802
      iprot.readFieldEnd()
30803
    iprot.readStructEnd()
30804
 
30805
  def write(self, oprot):
30806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30808
      return
30809
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_result')
30810
    if self.success is not None:
30811
      oprot.writeFieldBegin('success', TType.LIST, 0)
30812
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30813
      for iter707 in self.success:
30814
        iter707.write(oprot)
12133 kshitij.so 30815
      oprot.writeListEnd()
30816
      oprot.writeFieldEnd()
30817
    oprot.writeFieldStop()
30818
    oprot.writeStructEnd()
30819
 
30820
  def validate(self):
30821
    return
30822
 
30823
 
30824
  def __repr__(self):
30825
    L = ['%s=%r' % (key, value)
30826
      for key, value in self.__dict__.iteritems()]
30827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30828
 
30829
  def __eq__(self, other):
30830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30831
 
30832
  def __ne__(self, other):
30833
    return not (self == other)
12243 kshitij.so 30834
 
30835
class addCompetitorScraping_args:
30836
  """
30837
  Attributes:
30838
   - competitorPricingMap
30839
  """
30840
 
30841
  thrift_spec = (
30842
    None, # 0
30843
    (1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1
30844
  )
30845
 
30846
  def __init__(self, competitorPricingMap=None,):
30847
    self.competitorPricingMap = competitorPricingMap
30848
 
30849
  def read(self, iprot):
30850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30852
      return
30853
    iprot.readStructBegin()
30854
    while True:
30855
      (fname, ftype, fid) = iprot.readFieldBegin()
30856
      if ftype == TType.STOP:
30857
        break
30858
      if fid == 1:
30859
        if ftype == TType.MAP:
30860
          self.competitorPricingMap = {}
12567 amit.gupta 30861
          (_ktype709, _vtype710, _size708 ) = iprot.readMapBegin() 
30862
          for _i712 in xrange(_size708):
30863
            _key713 = iprot.readI64();
30864
            _val714 = CompetitorPricing()
30865
            _val714.read(iprot)
30866
            self.competitorPricingMap[_key713] = _val714
12243 kshitij.so 30867
          iprot.readMapEnd()
30868
        else:
30869
          iprot.skip(ftype)
30870
      else:
30871
        iprot.skip(ftype)
30872
      iprot.readFieldEnd()
30873
    iprot.readStructEnd()
30874
 
30875
  def write(self, oprot):
30876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30878
      return
30879
    oprot.writeStructBegin('addCompetitorScraping_args')
30880
    if self.competitorPricingMap is not None:
30881
      oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)
30882
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))
12567 amit.gupta 30883
      for kiter715,viter716 in self.competitorPricingMap.items():
30884
        oprot.writeI64(kiter715)
30885
        viter716.write(oprot)
12243 kshitij.so 30886
      oprot.writeMapEnd()
30887
      oprot.writeFieldEnd()
30888
    oprot.writeFieldStop()
30889
    oprot.writeStructEnd()
30890
 
30891
  def validate(self):
30892
    return
30893
 
30894
 
30895
  def __repr__(self):
30896
    L = ['%s=%r' % (key, value)
30897
      for key, value in self.__dict__.iteritems()]
30898
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30899
 
30900
  def __eq__(self, other):
30901
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30902
 
30903
  def __ne__(self, other):
30904
    return not (self == other)
30905
 
30906
class addCompetitorScraping_result:
30907
 
30908
  thrift_spec = (
30909
  )
30910
 
30911
  def read(self, iprot):
30912
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30913
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30914
      return
30915
    iprot.readStructBegin()
30916
    while True:
30917
      (fname, ftype, fid) = iprot.readFieldBegin()
30918
      if ftype == TType.STOP:
30919
        break
30920
      else:
30921
        iprot.skip(ftype)
30922
      iprot.readFieldEnd()
30923
    iprot.readStructEnd()
30924
 
30925
  def write(self, oprot):
30926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30928
      return
30929
    oprot.writeStructBegin('addCompetitorScraping_result')
30930
    oprot.writeFieldStop()
30931
    oprot.writeStructEnd()
30932
 
30933
  def validate(self):
30934
    return
30935
 
30936
 
30937
  def __repr__(self):
30938
    L = ['%s=%r' % (key, value)
30939
      for key, value in self.__dict__.iteritems()]
30940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30941
 
30942
  def __eq__(self, other):
30943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30944
 
30945
  def __ne__(self, other):
30946
    return not (self == other)
30947
 
30948
class getPreviousCompetitorScraping_args:
30949
  """
30950
  Attributes:
30951
   - delta
30952
  """
30953
 
30954
  thrift_spec = (
30955
    None, # 0
30956
    (1, TType.I64, 'delta', None, None, ), # 1
30957
  )
30958
 
30959
  def __init__(self, delta=None,):
30960
    self.delta = delta
30961
 
30962
  def read(self, iprot):
30963
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30965
      return
30966
    iprot.readStructBegin()
30967
    while True:
30968
      (fname, ftype, fid) = iprot.readFieldBegin()
30969
      if ftype == TType.STOP:
30970
        break
30971
      if fid == 1:
30972
        if ftype == TType.I64:
30973
          self.delta = iprot.readI64();
30974
        else:
30975
          iprot.skip(ftype)
30976
      else:
30977
        iprot.skip(ftype)
30978
      iprot.readFieldEnd()
30979
    iprot.readStructEnd()
30980
 
30981
  def write(self, oprot):
30982
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30983
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30984
      return
30985
    oprot.writeStructBegin('getPreviousCompetitorScraping_args')
30986
    if self.delta is not None:
30987
      oprot.writeFieldBegin('delta', TType.I64, 1)
30988
      oprot.writeI64(self.delta)
30989
      oprot.writeFieldEnd()
30990
    oprot.writeFieldStop()
30991
    oprot.writeStructEnd()
30992
 
30993
  def validate(self):
30994
    return
30995
 
30996
 
30997
  def __repr__(self):
30998
    L = ['%s=%r' % (key, value)
30999
      for key, value in self.__dict__.iteritems()]
31000
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31001
 
31002
  def __eq__(self, other):
31003
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31004
 
31005
  def __ne__(self, other):
31006
    return not (self == other)
31007
 
31008
class getPreviousCompetitorScraping_result:
31009
  """
31010
  Attributes:
31011
   - success
31012
  """
31013
 
31014
  thrift_spec = (
31015
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31016
  )
31017
 
31018
  def __init__(self, success=None,):
31019
    self.success = success
31020
 
31021
  def read(self, iprot):
31022
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31023
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31024
      return
31025
    iprot.readStructBegin()
31026
    while True:
31027
      (fname, ftype, fid) = iprot.readFieldBegin()
31028
      if ftype == TType.STOP:
31029
        break
31030
      if fid == 0:
31031
        if ftype == TType.LIST:
31032
          self.success = []
12567 amit.gupta 31033
          (_etype720, _size717) = iprot.readListBegin()
31034
          for _i721 in xrange(_size717):
31035
            _elem722 = CompetitorPricing()
31036
            _elem722.read(iprot)
31037
            self.success.append(_elem722)
12243 kshitij.so 31038
          iprot.readListEnd()
31039
        else:
31040
          iprot.skip(ftype)
31041
      else:
31042
        iprot.skip(ftype)
31043
      iprot.readFieldEnd()
31044
    iprot.readStructEnd()
31045
 
31046
  def write(self, oprot):
31047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31049
      return
31050
    oprot.writeStructBegin('getPreviousCompetitorScraping_result')
31051
    if self.success is not None:
31052
      oprot.writeFieldBegin('success', TType.LIST, 0)
31053
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31054
      for iter723 in self.success:
31055
        iter723.write(oprot)
12243 kshitij.so 31056
      oprot.writeListEnd()
31057
      oprot.writeFieldEnd()
31058
    oprot.writeFieldStop()
31059
    oprot.writeStructEnd()
31060
 
31061
  def validate(self):
31062
    return
31063
 
31064
 
31065
  def __repr__(self):
31066
    L = ['%s=%r' % (key, value)
31067
      for key, value in self.__dict__.iteritems()]
31068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31069
 
31070
  def __eq__(self, other):
31071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31072
 
31073
  def __ne__(self, other):
31074
    return not (self == other)
12256 kshitij.so 31075
 
31076
class getUploadResultById_args:
31077
  """
31078
  Attributes:
31079
   - uploadId
31080
  """
31081
 
31082
  thrift_spec = (
31083
    None, # 0
31084
    (1, TType.I64, 'uploadId', None, None, ), # 1
31085
  )
31086
 
31087
  def __init__(self, uploadId=None,):
31088
    self.uploadId = uploadId
31089
 
31090
  def read(self, iprot):
31091
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31092
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31093
      return
31094
    iprot.readStructBegin()
31095
    while True:
31096
      (fname, ftype, fid) = iprot.readFieldBegin()
31097
      if ftype == TType.STOP:
31098
        break
31099
      if fid == 1:
31100
        if ftype == TType.I64:
31101
          self.uploadId = iprot.readI64();
31102
        else:
31103
          iprot.skip(ftype)
31104
      else:
31105
        iprot.skip(ftype)
31106
      iprot.readFieldEnd()
31107
    iprot.readStructEnd()
31108
 
31109
  def write(self, oprot):
31110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31112
      return
31113
    oprot.writeStructBegin('getUploadResultById_args')
31114
    if self.uploadId is not None:
31115
      oprot.writeFieldBegin('uploadId', TType.I64, 1)
31116
      oprot.writeI64(self.uploadId)
31117
      oprot.writeFieldEnd()
31118
    oprot.writeFieldStop()
31119
    oprot.writeStructEnd()
31120
 
31121
  def validate(self):
31122
    return
31123
 
31124
 
31125
  def __repr__(self):
31126
    L = ['%s=%r' % (key, value)
31127
      for key, value in self.__dict__.iteritems()]
31128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31129
 
31130
  def __eq__(self, other):
31131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31132
 
31133
  def __ne__(self, other):
31134
    return not (self == other)
31135
 
31136
class getUploadResultById_result:
31137
  """
31138
  Attributes:
31139
   - success
31140
  """
31141
 
31142
  thrift_spec = (
31143
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
31144
  )
31145
 
31146
  def __init__(self, success=None,):
31147
    self.success = success
31148
 
31149
  def read(self, iprot):
31150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31152
      return
31153
    iprot.readStructBegin()
31154
    while True:
31155
      (fname, ftype, fid) = iprot.readFieldBegin()
31156
      if ftype == TType.STOP:
31157
        break
31158
      if fid == 0:
31159
        if ftype == TType.LIST:
31160
          self.success = []
12567 amit.gupta 31161
          (_etype727, _size724) = iprot.readListBegin()
31162
          for _i728 in xrange(_size724):
31163
            _elem729 = CompetitorPricing()
31164
            _elem729.read(iprot)
31165
            self.success.append(_elem729)
12256 kshitij.so 31166
          iprot.readListEnd()
31167
        else:
31168
          iprot.skip(ftype)
31169
      else:
31170
        iprot.skip(ftype)
31171
      iprot.readFieldEnd()
31172
    iprot.readStructEnd()
31173
 
31174
  def write(self, oprot):
31175
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31176
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31177
      return
31178
    oprot.writeStructBegin('getUploadResultById_result')
31179
    if self.success is not None:
31180
      oprot.writeFieldBegin('success', TType.LIST, 0)
31181
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31182
      for iter730 in self.success:
31183
        iter730.write(oprot)
12256 kshitij.so 31184
      oprot.writeListEnd()
31185
      oprot.writeFieldEnd()
31186
    oprot.writeFieldStop()
31187
    oprot.writeStructEnd()
31188
 
31189
  def validate(self):
31190
    return
31191
 
31192
 
31193
  def __repr__(self):
31194
    L = ['%s=%r' % (key, value)
31195
      for key, value in self.__dict__.iteritems()]
31196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31197
 
31198
  def __eq__(self, other):
31199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31200
 
31201
  def __ne__(self, other):
31202
    return not (self == other)
12363 kshitij.so 31203
 
31204
class addAmazonPromotion_args:
31205
  """
31206
  Attributes:
31207
   - amazonPromotions
31208
  """
31209
 
31210
  thrift_spec = (
31211
    None, # 0
31212
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31213
  )
31214
 
31215
  def __init__(self, amazonPromotions=None,):
31216
    self.amazonPromotions = amazonPromotions
31217
 
31218
  def read(self, iprot):
31219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31221
      return
31222
    iprot.readStructBegin()
31223
    while True:
31224
      (fname, ftype, fid) = iprot.readFieldBegin()
31225
      if ftype == TType.STOP:
31226
        break
31227
      if fid == 1:
31228
        if ftype == TType.MAP:
31229
          self.amazonPromotions = {}
12567 amit.gupta 31230
          (_ktype732, _vtype733, _size731 ) = iprot.readMapBegin() 
31231
          for _i735 in xrange(_size731):
31232
            _key736 = iprot.readString();
31233
            _val737 = AmazonPromotion()
31234
            _val737.read(iprot)
31235
            self.amazonPromotions[_key736] = _val737
12363 kshitij.so 31236
          iprot.readMapEnd()
31237
        else:
31238
          iprot.skip(ftype)
31239
      else:
31240
        iprot.skip(ftype)
31241
      iprot.readFieldEnd()
31242
    iprot.readStructEnd()
31243
 
31244
  def write(self, oprot):
31245
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31246
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31247
      return
31248
    oprot.writeStructBegin('addAmazonPromotion_args')
31249
    if self.amazonPromotions is not None:
31250
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
31251
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
12567 amit.gupta 31252
      for kiter738,viter739 in self.amazonPromotions.items():
31253
        oprot.writeString(kiter738)
31254
        viter739.write(oprot)
12363 kshitij.so 31255
      oprot.writeMapEnd()
31256
      oprot.writeFieldEnd()
31257
    oprot.writeFieldStop()
31258
    oprot.writeStructEnd()
31259
 
31260
  def validate(self):
31261
    return
31262
 
31263
 
31264
  def __repr__(self):
31265
    L = ['%s=%r' % (key, value)
31266
      for key, value in self.__dict__.iteritems()]
31267
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31268
 
31269
  def __eq__(self, other):
31270
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31271
 
31272
  def __ne__(self, other):
31273
    return not (self == other)
31274
 
31275
class addAmazonPromotion_result:
31276
  """
31277
  Attributes:
31278
   - success
12947 kshitij.so 31279
   - cex
12363 kshitij.so 31280
  """
31281
 
31282
  thrift_spec = (
12947 kshitij.so 31283
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
31284
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12363 kshitij.so 31285
  )
31286
 
12947 kshitij.so 31287
  def __init__(self, success=None, cex=None,):
12363 kshitij.so 31288
    self.success = success
12947 kshitij.so 31289
    self.cex = cex
12363 kshitij.so 31290
 
31291
  def read(self, iprot):
31292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31294
      return
31295
    iprot.readStructBegin()
31296
    while True:
31297
      (fname, ftype, fid) = iprot.readFieldBegin()
31298
      if ftype == TType.STOP:
31299
        break
31300
      if fid == 0:
12947 kshitij.so 31301
        if ftype == TType.LIST:
31302
          self.success = []
31303
          (_etype743, _size740) = iprot.readListBegin()
31304
          for _i744 in xrange(_size740):
31305
            _elem745 = iprot.readString();
31306
            self.success.append(_elem745)
31307
          iprot.readListEnd()
12363 kshitij.so 31308
        else:
31309
          iprot.skip(ftype)
12947 kshitij.so 31310
      elif fid == 1:
31311
        if ftype == TType.STRUCT:
31312
          self.cex = CatalogServiceException()
31313
          self.cex.read(iprot)
31314
        else:
31315
          iprot.skip(ftype)
12363 kshitij.so 31316
      else:
31317
        iprot.skip(ftype)
31318
      iprot.readFieldEnd()
31319
    iprot.readStructEnd()
31320
 
31321
  def write(self, oprot):
31322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31324
      return
31325
    oprot.writeStructBegin('addAmazonPromotion_result')
31326
    if self.success is not None:
12947 kshitij.so 31327
      oprot.writeFieldBegin('success', TType.LIST, 0)
31328
      oprot.writeListBegin(TType.STRING, len(self.success))
31329
      for iter746 in self.success:
31330
        oprot.writeString(iter746)
31331
      oprot.writeListEnd()
12363 kshitij.so 31332
      oprot.writeFieldEnd()
12947 kshitij.so 31333
    if self.cex is not None:
31334
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
31335
      self.cex.write(oprot)
31336
      oprot.writeFieldEnd()
12363 kshitij.so 31337
    oprot.writeFieldStop()
31338
    oprot.writeStructEnd()
31339
 
31340
  def validate(self):
31341
    return
31342
 
31343
 
31344
  def __repr__(self):
31345
    L = ['%s=%r' % (key, value)
31346
      for key, value in self.__dict__.iteritems()]
31347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31348
 
31349
  def __eq__(self, other):
31350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31351
 
31352
  def __ne__(self, other):
31353
    return not (self == other)
31354
 
31355
class getAmazonPromotion_args:
31356
  """
31357
  Attributes:
31358
   - startDate
31359
   - endDate
31360
  """
31361
 
31362
  thrift_spec = (
31363
    None, # 0
31364
    (1, TType.I64, 'startDate', None, None, ), # 1
31365
    (2, TType.I64, 'endDate', None, None, ), # 2
31366
  )
31367
 
31368
  def __init__(self, startDate=None, endDate=None,):
31369
    self.startDate = startDate
31370
    self.endDate = endDate
31371
 
31372
  def read(self, iprot):
31373
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31374
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31375
      return
31376
    iprot.readStructBegin()
31377
    while True:
31378
      (fname, ftype, fid) = iprot.readFieldBegin()
31379
      if ftype == TType.STOP:
31380
        break
31381
      if fid == 1:
31382
        if ftype == TType.I64:
31383
          self.startDate = iprot.readI64();
31384
        else:
31385
          iprot.skip(ftype)
31386
      elif fid == 2:
31387
        if ftype == TType.I64:
31388
          self.endDate = iprot.readI64();
31389
        else:
31390
          iprot.skip(ftype)
31391
      else:
31392
        iprot.skip(ftype)
31393
      iprot.readFieldEnd()
31394
    iprot.readStructEnd()
31395
 
31396
  def write(self, oprot):
31397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31399
      return
31400
    oprot.writeStructBegin('getAmazonPromotion_args')
31401
    if self.startDate is not None:
31402
      oprot.writeFieldBegin('startDate', TType.I64, 1)
31403
      oprot.writeI64(self.startDate)
31404
      oprot.writeFieldEnd()
31405
    if self.endDate is not None:
31406
      oprot.writeFieldBegin('endDate', TType.I64, 2)
31407
      oprot.writeI64(self.endDate)
31408
      oprot.writeFieldEnd()
31409
    oprot.writeFieldStop()
31410
    oprot.writeStructEnd()
31411
 
31412
  def validate(self):
31413
    return
31414
 
31415
 
31416
  def __repr__(self):
31417
    L = ['%s=%r' % (key, value)
31418
      for key, value in self.__dict__.iteritems()]
31419
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31420
 
31421
  def __eq__(self, other):
31422
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31423
 
31424
  def __ne__(self, other):
31425
    return not (self == other)
31426
 
31427
class getAmazonPromotion_result:
31428
  """
31429
  Attributes:
31430
   - success
31431
  """
31432
 
31433
  thrift_spec = (
31434
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
31435
  )
31436
 
31437
  def __init__(self, success=None,):
31438
    self.success = success
31439
 
31440
  def read(self, iprot):
31441
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31442
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31443
      return
31444
    iprot.readStructBegin()
31445
    while True:
31446
      (fname, ftype, fid) = iprot.readFieldBegin()
31447
      if ftype == TType.STOP:
31448
        break
31449
      if fid == 0:
31450
        if ftype == TType.LIST:
31451
          self.success = []
12947 kshitij.so 31452
          (_etype750, _size747) = iprot.readListBegin()
31453
          for _i751 in xrange(_size747):
31454
            _elem752 = AmazonPromotion()
31455
            _elem752.read(iprot)
31456
            self.success.append(_elem752)
12363 kshitij.so 31457
          iprot.readListEnd()
31458
        else:
31459
          iprot.skip(ftype)
31460
      else:
31461
        iprot.skip(ftype)
31462
      iprot.readFieldEnd()
31463
    iprot.readStructEnd()
31464
 
31465
  def write(self, oprot):
31466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31468
      return
31469
    oprot.writeStructBegin('getAmazonPromotion_result')
31470
    if self.success is not None:
31471
      oprot.writeFieldBegin('success', TType.LIST, 0)
31472
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12947 kshitij.so 31473
      for iter753 in self.success:
31474
        iter753.write(oprot)
12363 kshitij.so 31475
      oprot.writeListEnd()
31476
      oprot.writeFieldEnd()
31477
    oprot.writeFieldStop()
31478
    oprot.writeStructEnd()
31479
 
31480
  def validate(self):
31481
    return
31482
 
31483
 
31484
  def __repr__(self):
31485
    L = ['%s=%r' % (key, value)
31486
      for key, value in self.__dict__.iteritems()]
31487
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31488
 
31489
  def __eq__(self, other):
31490
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31491
 
31492
  def __ne__(self, other):
31493
    return not (self == other)
31494
 
31495
class updateAmazonPromotion_args:
31496
  """
31497
  Attributes:
31498
   - amazonPromotions
31499
  """
31500
 
31501
  thrift_spec = (
31502
    None, # 0
31503
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31504
  )
31505
 
31506
  def __init__(self, amazonPromotions=None,):
31507
    self.amazonPromotions = amazonPromotions
31508
 
31509
  def read(self, iprot):
31510
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31511
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31512
      return
31513
    iprot.readStructBegin()
31514
    while True:
31515
      (fname, ftype, fid) = iprot.readFieldBegin()
31516
      if ftype == TType.STOP:
31517
        break
31518
      if fid == 1:
31519
        if ftype == TType.LIST:
31520
          self.amazonPromotions = []
12947 kshitij.so 31521
          (_etype757, _size754) = iprot.readListBegin()
31522
          for _i758 in xrange(_size754):
31523
            _elem759 = AmazonPromotion()
31524
            _elem759.read(iprot)
31525
            self.amazonPromotions.append(_elem759)
12363 kshitij.so 31526
          iprot.readListEnd()
31527
        else:
31528
          iprot.skip(ftype)
31529
      else:
31530
        iprot.skip(ftype)
31531
      iprot.readFieldEnd()
31532
    iprot.readStructEnd()
31533
 
31534
  def write(self, oprot):
31535
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31536
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31537
      return
31538
    oprot.writeStructBegin('updateAmazonPromotion_args')
31539
    if self.amazonPromotions is not None:
31540
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
31541
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
12947 kshitij.so 31542
      for iter760 in self.amazonPromotions:
31543
        iter760.write(oprot)
12363 kshitij.so 31544
      oprot.writeListEnd()
31545
      oprot.writeFieldEnd()
31546
    oprot.writeFieldStop()
31547
    oprot.writeStructEnd()
31548
 
31549
  def validate(self):
31550
    return
31551
 
31552
 
31553
  def __repr__(self):
31554
    L = ['%s=%r' % (key, value)
31555
      for key, value in self.__dict__.iteritems()]
31556
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31557
 
31558
  def __eq__(self, other):
31559
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31560
 
31561
  def __ne__(self, other):
31562
    return not (self == other)
31563
 
31564
class updateAmazonPromotion_result:
31565
  """
31566
  Attributes:
31567
   - success
31568
  """
31569
 
31570
  thrift_spec = (
31571
    (0, TType.BOOL, 'success', None, None, ), # 0
31572
  )
31573
 
31574
  def __init__(self, success=None,):
31575
    self.success = success
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 == 0:
31587
        if ftype == TType.BOOL:
31588
          self.success = iprot.readBool();
31589
        else:
31590
          iprot.skip(ftype)
31591
      else:
31592
        iprot.skip(ftype)
31593
      iprot.readFieldEnd()
31594
    iprot.readStructEnd()
31595
 
31596
  def write(self, oprot):
31597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31599
      return
31600
    oprot.writeStructBegin('updateAmazonPromotion_result')
31601
    if self.success is not None:
31602
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31603
      oprot.writeBool(self.success)
31604
      oprot.writeFieldEnd()
31605
    oprot.writeFieldStop()
31606
    oprot.writeStructEnd()
31607
 
31608
  def validate(self):
31609
    return
31610
 
31611
 
31612
  def __repr__(self):
31613
    L = ['%s=%r' % (key, value)
31614
      for key, value in self.__dict__.iteritems()]
31615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31616
 
31617
  def __eq__(self, other):
31618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31619
 
31620
  def __ne__(self, other):
31621
    return not (self == other)
12567 amit.gupta 31622
 
31623
class markPartiallyActive_args:
31624
  """
31625
  Attributes:
31626
   - itemId
31627
   - categoryId
31628
  """
31629
 
31630
  thrift_spec = (
31631
    None, # 0
31632
    (1, TType.I64, 'itemId', None, None, ), # 1
31633
    (2, TType.I64, 'categoryId', None, None, ), # 2
31634
  )
31635
 
31636
  def __init__(self, itemId=None, categoryId=None,):
31637
    self.itemId = itemId
31638
    self.categoryId = categoryId
31639
 
31640
  def read(self, iprot):
31641
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31642
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31643
      return
31644
    iprot.readStructBegin()
31645
    while True:
31646
      (fname, ftype, fid) = iprot.readFieldBegin()
31647
      if ftype == TType.STOP:
31648
        break
31649
      if fid == 1:
31650
        if ftype == TType.I64:
31651
          self.itemId = iprot.readI64();
31652
        else:
31653
          iprot.skip(ftype)
31654
      elif fid == 2:
31655
        if ftype == TType.I64:
31656
          self.categoryId = iprot.readI64();
31657
        else:
31658
          iprot.skip(ftype)
31659
      else:
31660
        iprot.skip(ftype)
31661
      iprot.readFieldEnd()
31662
    iprot.readStructEnd()
31663
 
31664
  def write(self, oprot):
31665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31667
      return
31668
    oprot.writeStructBegin('markPartiallyActive_args')
31669
    if self.itemId is not None:
31670
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31671
      oprot.writeI64(self.itemId)
31672
      oprot.writeFieldEnd()
31673
    if self.categoryId is not None:
31674
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
31675
      oprot.writeI64(self.categoryId)
31676
      oprot.writeFieldEnd()
31677
    oprot.writeFieldStop()
31678
    oprot.writeStructEnd()
31679
 
31680
  def validate(self):
31681
    return
31682
 
31683
 
31684
  def __repr__(self):
31685
    L = ['%s=%r' % (key, value)
31686
      for key, value in self.__dict__.iteritems()]
31687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31688
 
31689
  def __eq__(self, other):
31690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31691
 
31692
  def __ne__(self, other):
31693
    return not (self == other)
31694
 
31695
class markPartiallyActive_result:
31696
  """
31697
  Attributes:
31698
   - success
31699
  """
31700
 
31701
  thrift_spec = (
31702
    (0, TType.BOOL, 'success', None, None, ), # 0
31703
  )
31704
 
31705
  def __init__(self, success=None,):
31706
    self.success = success
31707
 
31708
  def read(self, iprot):
31709
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31710
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31711
      return
31712
    iprot.readStructBegin()
31713
    while True:
31714
      (fname, ftype, fid) = iprot.readFieldBegin()
31715
      if ftype == TType.STOP:
31716
        break
31717
      if fid == 0:
31718
        if ftype == TType.BOOL:
31719
          self.success = iprot.readBool();
31720
        else:
31721
          iprot.skip(ftype)
31722
      else:
31723
        iprot.skip(ftype)
31724
      iprot.readFieldEnd()
31725
    iprot.readStructEnd()
31726
 
31727
  def write(self, oprot):
31728
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31729
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31730
      return
31731
    oprot.writeStructBegin('markPartiallyActive_result')
31732
    if self.success is not None:
31733
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31734
      oprot.writeBool(self.success)
31735
      oprot.writeFieldEnd()
31736
    oprot.writeFieldStop()
31737
    oprot.writeStructEnd()
31738
 
31739
  def validate(self):
31740
    return
31741
 
31742
 
31743
  def __repr__(self):
31744
    L = ['%s=%r' % (key, value)
31745
      for key, value in self.__dict__.iteritems()]
31746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31747
 
31748
  def __eq__(self, other):
31749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31750
 
31751
  def __ne__(self, other):
31752
    return not (self == other)
31753
 
31754
class updateItemStateVat_args:
31755
  """
31756
  Attributes:
31757
   - itemId
31758
   - statevat
31759
  """
31760
 
31761
  thrift_spec = (
31762
    None, # 0
31763
    (1, TType.I64, 'itemId', None, None, ), # 1
31764
    (2, TType.MAP, 'statevat', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
31765
  )
31766
 
31767
  def __init__(self, itemId=None, statevat=None,):
31768
    self.itemId = itemId
31769
    self.statevat = statevat
31770
 
31771
  def read(self, iprot):
31772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31774
      return
31775
    iprot.readStructBegin()
31776
    while True:
31777
      (fname, ftype, fid) = iprot.readFieldBegin()
31778
      if ftype == TType.STOP:
31779
        break
31780
      if fid == 1:
31781
        if ftype == TType.I64:
31782
          self.itemId = iprot.readI64();
31783
        else:
31784
          iprot.skip(ftype)
31785
      elif fid == 2:
31786
        if ftype == TType.MAP:
31787
          self.statevat = {}
12947 kshitij.so 31788
          (_ktype762, _vtype763, _size761 ) = iprot.readMapBegin() 
31789
          for _i765 in xrange(_size761):
31790
            _key766 = iprot.readI64();
31791
            _val767 = iprot.readDouble();
31792
            self.statevat[_key766] = _val767
12567 amit.gupta 31793
          iprot.readMapEnd()
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('updateItemStateVat_args')
31806
    if self.itemId is not None:
31807
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31808
      oprot.writeI64(self.itemId)
31809
      oprot.writeFieldEnd()
31810
    if self.statevat is not None:
31811
      oprot.writeFieldBegin('statevat', TType.MAP, 2)
31812
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.statevat))
12947 kshitij.so 31813
      for kiter768,viter769 in self.statevat.items():
31814
        oprot.writeI64(kiter768)
31815
        oprot.writeDouble(viter769)
12567 amit.gupta 31816
      oprot.writeMapEnd()
31817
      oprot.writeFieldEnd()
31818
    oprot.writeFieldStop()
31819
    oprot.writeStructEnd()
31820
 
31821
  def validate(self):
31822
    return
31823
 
31824
 
31825
  def __repr__(self):
31826
    L = ['%s=%r' % (key, value)
31827
      for key, value in self.__dict__.iteritems()]
31828
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31829
 
31830
  def __eq__(self, other):
31831
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31832
 
31833
  def __ne__(self, other):
31834
    return not (self == other)
31835
 
31836
class updateItemStateVat_result:
31837
  """
31838
  Attributes:
31839
   - success
31840
  """
31841
 
31842
  thrift_spec = (
31843
    (0, TType.BOOL, 'success', None, None, ), # 0
31844
  )
31845
 
31846
  def __init__(self, success=None,):
31847
    self.success = success
31848
 
31849
  def read(self, iprot):
31850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31852
      return
31853
    iprot.readStructBegin()
31854
    while True:
31855
      (fname, ftype, fid) = iprot.readFieldBegin()
31856
      if ftype == TType.STOP:
31857
        break
31858
      if fid == 0:
31859
        if ftype == TType.BOOL:
31860
          self.success = iprot.readBool();
31861
        else:
31862
          iprot.skip(ftype)
31863
      else:
31864
        iprot.skip(ftype)
31865
      iprot.readFieldEnd()
31866
    iprot.readStructEnd()
31867
 
31868
  def write(self, oprot):
31869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31871
      return
31872
    oprot.writeStructBegin('updateItemStateVat_result')
31873
    if self.success is not None:
31874
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31875
      oprot.writeBool(self.success)
31876
      oprot.writeFieldEnd()
31877
    oprot.writeFieldStop()
31878
    oprot.writeStructEnd()
31879
 
31880
  def validate(self):
31881
    return
31882
 
31883
 
31884
  def __repr__(self):
31885
    L = ['%s=%r' % (key, value)
31886
      for key, value in self.__dict__.iteritems()]
31887
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31888
 
31889
  def __eq__(self, other):
31890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31891
 
31892
  def __ne__(self, other):
31893
    return not (self == other)
12620 amit.gupta 31894
 
31895
class getExAffiliateItemInfo_args:
31896
 
31897
  thrift_spec = (
31898
  )
31899
 
31900
  def read(self, iprot):
31901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31903
      return
31904
    iprot.readStructBegin()
31905
    while True:
31906
      (fname, ftype, fid) = iprot.readFieldBegin()
31907
      if ftype == TType.STOP:
31908
        break
31909
      else:
31910
        iprot.skip(ftype)
31911
      iprot.readFieldEnd()
31912
    iprot.readStructEnd()
31913
 
31914
  def write(self, oprot):
31915
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31916
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31917
      return
31918
    oprot.writeStructBegin('getExAffiliateItemInfo_args')
31919
    oprot.writeFieldStop()
31920
    oprot.writeStructEnd()
31921
 
31922
  def validate(self):
31923
    return
31924
 
31925
 
31926
  def __repr__(self):
31927
    L = ['%s=%r' % (key, value)
31928
      for key, value in self.__dict__.iteritems()]
31929
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31930
 
31931
  def __eq__(self, other):
31932
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31933
 
31934
  def __ne__(self, other):
31935
    return not (self == other)
31936
 
31937
class getExAffiliateItemInfo_result:
31938
  """
31939
  Attributes:
31940
   - success
31941
  """
31942
 
31943
  thrift_spec = (
31944
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo.thrift_spec)), None, ), # 0
31945
  )
31946
 
31947
  def __init__(self, success=None,):
31948
    self.success = success
31949
 
31950
  def read(self, iprot):
31951
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31952
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31953
      return
31954
    iprot.readStructBegin()
31955
    while True:
31956
      (fname, ftype, fid) = iprot.readFieldBegin()
31957
      if ftype == TType.STOP:
31958
        break
31959
      if fid == 0:
31960
        if ftype == TType.MAP:
31961
          self.success = {}
12947 kshitij.so 31962
          (_ktype771, _vtype772, _size770 ) = iprot.readMapBegin() 
31963
          for _i774 in xrange(_size770):
31964
            _key775 = iprot.readI64();
31965
            _val776 = ExclusiveAffiliateItemInfo()
31966
            _val776.read(iprot)
31967
            self.success[_key775] = _val776
12620 amit.gupta 31968
          iprot.readMapEnd()
31969
        else:
31970
          iprot.skip(ftype)
31971
      else:
31972
        iprot.skip(ftype)
31973
      iprot.readFieldEnd()
31974
    iprot.readStructEnd()
31975
 
31976
  def write(self, oprot):
31977
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31978
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31979
      return
31980
    oprot.writeStructBegin('getExAffiliateItemInfo_result')
31981
    if self.success is not None:
31982
      oprot.writeFieldBegin('success', TType.MAP, 0)
31983
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
12947 kshitij.so 31984
      for kiter777,viter778 in self.success.items():
31985
        oprot.writeI64(kiter777)
31986
        viter778.write(oprot)
12620 amit.gupta 31987
      oprot.writeMapEnd()
31988
      oprot.writeFieldEnd()
31989
    oprot.writeFieldStop()
31990
    oprot.writeStructEnd()
31991
 
31992
  def validate(self):
31993
    return
31994
 
31995
 
31996
  def __repr__(self):
31997
    L = ['%s=%r' % (key, value)
31998
      for key, value in self.__dict__.iteritems()]
31999
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32000
 
32001
  def __eq__(self, other):
32002
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32003
 
32004
  def __ne__(self, other):
32005
    return not (self == other)
12888 kshitij.so 32006
 
32007
class getAllItemstoListOnFbg_args:
32008
 
32009
  thrift_spec = (
32010
  )
32011
 
32012
  def read(self, iprot):
32013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32015
      return
32016
    iprot.readStructBegin()
32017
    while True:
32018
      (fname, ftype, fid) = iprot.readFieldBegin()
32019
      if ftype == TType.STOP:
32020
        break
32021
      else:
32022
        iprot.skip(ftype)
32023
      iprot.readFieldEnd()
32024
    iprot.readStructEnd()
32025
 
32026
  def write(self, oprot):
32027
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32028
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32029
      return
32030
    oprot.writeStructBegin('getAllItemstoListOnFbg_args')
32031
    oprot.writeFieldStop()
32032
    oprot.writeStructEnd()
32033
 
32034
  def validate(self):
32035
    return
32036
 
32037
 
32038
  def __repr__(self):
32039
    L = ['%s=%r' % (key, value)
32040
      for key, value in self.__dict__.iteritems()]
32041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32042
 
32043
  def __eq__(self, other):
32044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32045
 
32046
  def __ne__(self, other):
32047
    return not (self == other)
32048
 
32049
class getAllItemstoListOnFbg_result:
32050
  """
32051
  Attributes:
32052
   - success
32053
  """
32054
 
32055
  thrift_spec = (
32056
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
32057
  )
32058
 
32059
  def __init__(self, success=None,):
32060
    self.success = success
32061
 
32062
  def read(self, iprot):
32063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32065
      return
32066
    iprot.readStructBegin()
32067
    while True:
32068
      (fname, ftype, fid) = iprot.readFieldBegin()
32069
      if ftype == TType.STOP:
32070
        break
32071
      if fid == 0:
32072
        if ftype == TType.LIST:
32073
          self.success = []
12947 kshitij.so 32074
          (_etype782, _size779) = iprot.readListBegin()
32075
          for _i783 in xrange(_size779):
32076
            _elem784 = Amazonlisted()
32077
            _elem784.read(iprot)
32078
            self.success.append(_elem784)
12888 kshitij.so 32079
          iprot.readListEnd()
32080
        else:
32081
          iprot.skip(ftype)
32082
      else:
32083
        iprot.skip(ftype)
32084
      iprot.readFieldEnd()
32085
    iprot.readStructEnd()
32086
 
32087
  def write(self, oprot):
32088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32090
      return
32091
    oprot.writeStructBegin('getAllItemstoListOnFbg_result')
32092
    if self.success is not None:
32093
      oprot.writeFieldBegin('success', TType.LIST, 0)
32094
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12947 kshitij.so 32095
      for iter785 in self.success:
32096
        iter785.write(oprot)
12888 kshitij.so 32097
      oprot.writeListEnd()
32098
      oprot.writeFieldEnd()
32099
    oprot.writeFieldStop()
32100
    oprot.writeStructEnd()
32101
 
32102
  def validate(self):
32103
    return
32104
 
32105
 
32106
  def __repr__(self):
32107
    L = ['%s=%r' % (key, value)
32108
      for key, value in self.__dict__.iteritems()]
32109
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32110
 
32111
  def __eq__(self, other):
32112
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32113
 
32114
  def __ne__(self, other):
32115
    return not (self == other)
12892 kshitij.so 32116
 
32117
class getAllFbgListedItems_args:
32118
 
32119
  thrift_spec = (
32120
  )
32121
 
32122
  def read(self, iprot):
32123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32125
      return
32126
    iprot.readStructBegin()
32127
    while True:
32128
      (fname, ftype, fid) = iprot.readFieldBegin()
32129
      if ftype == TType.STOP:
32130
        break
32131
      else:
32132
        iprot.skip(ftype)
32133
      iprot.readFieldEnd()
32134
    iprot.readStructEnd()
32135
 
32136
  def write(self, oprot):
32137
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32138
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32139
      return
32140
    oprot.writeStructBegin('getAllFbgListedItems_args')
32141
    oprot.writeFieldStop()
32142
    oprot.writeStructEnd()
32143
 
32144
  def validate(self):
32145
    return
32146
 
32147
 
32148
  def __repr__(self):
32149
    L = ['%s=%r' % (key, value)
32150
      for key, value in self.__dict__.iteritems()]
32151
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32152
 
32153
  def __eq__(self, other):
32154
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32155
 
32156
  def __ne__(self, other):
32157
    return not (self == other)
32158
 
32159
class getAllFbgListedItems_result:
32160
  """
32161
  Attributes:
32162
   - success
32163
  """
32164
 
32165
  thrift_spec = (
32166
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
32167
  )
32168
 
32169
  def __init__(self, success=None,):
32170
    self.success = success
32171
 
32172
  def read(self, iprot):
32173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32175
      return
32176
    iprot.readStructBegin()
32177
    while True:
32178
      (fname, ftype, fid) = iprot.readFieldBegin()
32179
      if ftype == TType.STOP:
32180
        break
32181
      if fid == 0:
32182
        if ftype == TType.LIST:
32183
          self.success = []
12947 kshitij.so 32184
          (_etype789, _size786) = iprot.readListBegin()
32185
          for _i790 in xrange(_size786):
32186
            _elem791 = Amazonlisted()
32187
            _elem791.read(iprot)
32188
            self.success.append(_elem791)
12892 kshitij.so 32189
          iprot.readListEnd()
32190
        else:
32191
          iprot.skip(ftype)
32192
      else:
32193
        iprot.skip(ftype)
32194
      iprot.readFieldEnd()
32195
    iprot.readStructEnd()
32196
 
32197
  def write(self, oprot):
32198
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32199
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32200
      return
32201
    oprot.writeStructBegin('getAllFbgListedItems_result')
32202
    if self.success is not None:
32203
      oprot.writeFieldBegin('success', TType.LIST, 0)
32204
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12947 kshitij.so 32205
      for iter792 in self.success:
32206
        iter792.write(oprot)
12892 kshitij.so 32207
      oprot.writeListEnd()
32208
      oprot.writeFieldEnd()
32209
    oprot.writeFieldStop()
32210
    oprot.writeStructEnd()
32211
 
32212
  def validate(self):
32213
    return
32214
 
32215
 
32216
  def __repr__(self):
32217
    L = ['%s=%r' % (key, value)
32218
      for key, value in self.__dict__.iteritems()]
32219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32220
 
32221
  def __eq__(self, other):
32222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32223
 
32224
  def __ne__(self, other):
32225
    return not (self == other)
13136 amit.gupta 32226
 
32227
class checkServices_args:
32228
  """
32229
  Attributes:
32230
   - lines
32231
  """
32232
 
32233
  thrift_spec = (
32234
    None, # 0
32235
    (1, TType.MAP, 'lines', (TType.I64,None,TType.MAP,(TType.STRING,None,TType.I64,None)), None, ), # 1
32236
  )
32237
 
32238
  def __init__(self, lines=None,):
32239
    self.lines = lines
32240
 
32241
  def read(self, iprot):
32242
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32243
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32244
      return
32245
    iprot.readStructBegin()
32246
    while True:
32247
      (fname, ftype, fid) = iprot.readFieldBegin()
32248
      if ftype == TType.STOP:
32249
        break
32250
      if fid == 1:
32251
        if ftype == TType.MAP:
32252
          self.lines = {}
32253
          (_ktype794, _vtype795, _size793 ) = iprot.readMapBegin() 
32254
          for _i797 in xrange(_size793):
32255
            _key798 = iprot.readI64();
32256
            _val799 = {}
32257
            (_ktype801, _vtype802, _size800 ) = iprot.readMapBegin() 
32258
            for _i804 in xrange(_size800):
32259
              _key805 = iprot.readString();
32260
              _val806 = iprot.readI64();
32261
              _val799[_key805] = _val806
32262
            iprot.readMapEnd()
32263
            self.lines[_key798] = _val799
32264
          iprot.readMapEnd()
32265
        else:
32266
          iprot.skip(ftype)
32267
      else:
32268
        iprot.skip(ftype)
32269
      iprot.readFieldEnd()
32270
    iprot.readStructEnd()
32271
 
32272
  def write(self, oprot):
32273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32275
      return
32276
    oprot.writeStructBegin('checkServices_args')
32277
    if self.lines is not None:
32278
      oprot.writeFieldBegin('lines', TType.MAP, 1)
32279
      oprot.writeMapBegin(TType.I64, TType.MAP, len(self.lines))
32280
      for kiter807,viter808 in self.lines.items():
32281
        oprot.writeI64(kiter807)
32282
        oprot.writeMapBegin(TType.STRING, TType.I64, len(viter808))
32283
        for kiter809,viter810 in viter808.items():
32284
          oprot.writeString(kiter809)
32285
          oprot.writeI64(viter810)
32286
        oprot.writeMapEnd()
32287
      oprot.writeMapEnd()
32288
      oprot.writeFieldEnd()
32289
    oprot.writeFieldStop()
32290
    oprot.writeStructEnd()
32291
 
32292
  def validate(self):
32293
    return
32294
 
32295
 
32296
  def __repr__(self):
32297
    L = ['%s=%r' % (key, value)
32298
      for key, value in self.__dict__.iteritems()]
32299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32300
 
32301
  def __eq__(self, other):
32302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32303
 
32304
  def __ne__(self, other):
32305
    return not (self == other)
32306
 
32307
class checkServices_result:
32308
  """
32309
  Attributes:
32310
   - success
32311
   - cex
32312
  """
32313
 
32314
  thrift_spec = (
32315
    (0, TType.MAP, 'success', (TType.I64,None,TType.MAP,(TType.STRING,None,TType.I64,None)), None, ), # 0
32316
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
32317
  )
32318
 
32319
  def __init__(self, success=None, cex=None,):
32320
    self.success = success
32321
    self.cex = cex
32322
 
32323
  def read(self, iprot):
32324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
32325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
32326
      return
32327
    iprot.readStructBegin()
32328
    while True:
32329
      (fname, ftype, fid) = iprot.readFieldBegin()
32330
      if ftype == TType.STOP:
32331
        break
32332
      if fid == 0:
32333
        if ftype == TType.MAP:
32334
          self.success = {}
32335
          (_ktype812, _vtype813, _size811 ) = iprot.readMapBegin() 
32336
          for _i815 in xrange(_size811):
32337
            _key816 = iprot.readI64();
32338
            _val817 = {}
32339
            (_ktype819, _vtype820, _size818 ) = iprot.readMapBegin() 
32340
            for _i822 in xrange(_size818):
32341
              _key823 = iprot.readString();
32342
              _val824 = iprot.readI64();
32343
              _val817[_key823] = _val824
32344
            iprot.readMapEnd()
32345
            self.success[_key816] = _val817
32346
          iprot.readMapEnd()
32347
        else:
32348
          iprot.skip(ftype)
32349
      elif fid == 1:
32350
        if ftype == TType.STRUCT:
32351
          self.cex = CatalogServiceException()
32352
          self.cex.read(iprot)
32353
        else:
32354
          iprot.skip(ftype)
32355
      else:
32356
        iprot.skip(ftype)
32357
      iprot.readFieldEnd()
32358
    iprot.readStructEnd()
32359
 
32360
  def write(self, oprot):
32361
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
32362
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
32363
      return
32364
    oprot.writeStructBegin('checkServices_result')
32365
    if self.success is not None:
32366
      oprot.writeFieldBegin('success', TType.MAP, 0)
32367
      oprot.writeMapBegin(TType.I64, TType.MAP, len(self.success))
32368
      for kiter825,viter826 in self.success.items():
32369
        oprot.writeI64(kiter825)
32370
        oprot.writeMapBegin(TType.STRING, TType.I64, len(viter826))
32371
        for kiter827,viter828 in viter826.items():
32372
          oprot.writeString(kiter827)
32373
          oprot.writeI64(viter828)
32374
        oprot.writeMapEnd()
32375
      oprot.writeMapEnd()
32376
      oprot.writeFieldEnd()
32377
    if self.cex is not None:
32378
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
32379
      self.cex.write(oprot)
32380
      oprot.writeFieldEnd()
32381
    oprot.writeFieldStop()
32382
    oprot.writeStructEnd()
32383
 
32384
  def validate(self):
32385
    return
32386
 
32387
 
32388
  def __repr__(self):
32389
    L = ['%s=%r' % (key, value)
32390
      for key, value in self.__dict__.iteritems()]
32391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
32392
 
32393
  def __eq__(self, other):
32394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
32395
 
32396
  def __ne__(self, other):
32397
    return not (self == other)