Subversion Repositories SmartDukaan

Rev

Rev 12363 | Rev 12620 | 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
 
1273
 
5944 mandeep.dh 1274
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1275
  def __init__(self, iprot, oprot=None):
1276
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1277
 
1278
  def addItem(self, item):
1279
    """
1280
    Availability and inventory attributes
1281
 
1282
    Parameters:
1283
     - item
1284
    """
1285
    self.send_addItem(item)
1286
    return self.recv_addItem()
1287
 
1288
  def send_addItem(self, item):
1289
    self._oprot.writeMessageBegin('addItem', TMessageType.CALL, self._seqid)
1290
    args = addItem_args()
1291
    args.item = item
1292
    args.write(self._oprot)
1293
    self._oprot.writeMessageEnd()
1294
    self._oprot.trans.flush()
1295
 
1296
  def recv_addItem(self, ):
1297
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1298
    if mtype == TMessageType.EXCEPTION:
1299
      x = TApplicationException()
1300
      x.read(self._iprot)
1301
      self._iprot.readMessageEnd()
1302
      raise x
1303
    result = addItem_result()
1304
    result.read(self._iprot)
1305
    self._iprot.readMessageEnd()
1306
    if result.success is not None:
1307
      return result.success
1308
    if result.cex is not None:
1309
      raise result.cex
1310
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItem failed: unknown result");
1311
 
1312
  def updateItem(self, item):
1313
    """
1314
    Parameters:
1315
     - item
1316
    """
1317
    self.send_updateItem(item)
1318
    return self.recv_updateItem()
1319
 
1320
  def send_updateItem(self, item):
1321
    self._oprot.writeMessageBegin('updateItem', TMessageType.CALL, self._seqid)
1322
    args = updateItem_args()
1323
    args.item = item
1324
    args.write(self._oprot)
1325
    self._oprot.writeMessageEnd()
1326
    self._oprot.trans.flush()
1327
 
1328
  def recv_updateItem(self, ):
1329
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1330
    if mtype == TMessageType.EXCEPTION:
1331
      x = TApplicationException()
1332
      x.read(self._iprot)
1333
      self._iprot.readMessageEnd()
1334
      raise x
1335
    result = updateItem_result()
1336
    result.read(self._iprot)
1337
    self._iprot.readMessageEnd()
1338
    if result.success is not None:
1339
      return result.success
1340
    if result.cex is not None:
1341
      raise result.cex
1342
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItem failed: unknown result");
1343
 
1344
  def isActive(self, itemId):
1345
    """
1346
    Checks if the item given to the corresponding itemId is active. If it's active,
1347
    whether it's risky and if it's risky, its inventory position.
1348
 
1349
    Parameters:
1350
     - itemId
1351
    """
1352
    self.send_isActive(itemId)
1353
    return self.recv_isActive()
1354
 
1355
  def send_isActive(self, itemId):
1356
    self._oprot.writeMessageBegin('isActive', TMessageType.CALL, self._seqid)
1357
    args = isActive_args()
1358
    args.itemId = itemId
1359
    args.write(self._oprot)
1360
    self._oprot.writeMessageEnd()
1361
    self._oprot.trans.flush()
1362
 
1363
  def recv_isActive(self, ):
1364
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1365
    if mtype == TMessageType.EXCEPTION:
1366
      x = TApplicationException()
1367
      x.read(self._iprot)
1368
      self._iprot.readMessageEnd()
1369
      raise x
1370
    result = isActive_result()
1371
    result.read(self._iprot)
1372
    self._iprot.readMessageEnd()
1373
    if result.success is not None:
1374
      return result.success
1375
    if result.isex is not None:
1376
      raise result.isex
1377
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isActive failed: unknown result");
1378
 
7438 amit.gupta 1379
  def getItemsStatus(self, itemIds):
1380
    """
1381
    Parameters:
1382
     - itemIds
1383
    """
1384
    self.send_getItemsStatus(itemIds)
1385
    return self.recv_getItemsStatus()
1386
 
1387
  def send_getItemsStatus(self, itemIds):
1388
    self._oprot.writeMessageBegin('getItemsStatus', TMessageType.CALL, self._seqid)
1389
    args = getItemsStatus_args()
1390
    args.itemIds = itemIds
1391
    args.write(self._oprot)
1392
    self._oprot.writeMessageEnd()
1393
    self._oprot.trans.flush()
1394
 
1395
  def recv_getItemsStatus(self, ):
1396
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1397
    if mtype == TMessageType.EXCEPTION:
1398
      x = TApplicationException()
1399
      x.read(self._iprot)
1400
      self._iprot.readMessageEnd()
1401
      raise x
1402
    result = getItemsStatus_result()
1403
    result.read(self._iprot)
1404
    self._iprot.readMessageEnd()
1405
    if result.success is not None:
1406
      return result.success
1407
    if result.isex is not None:
1408
      raise result.isex
1409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsStatus failed: unknown result");
1410
 
5944 mandeep.dh 1411
  def getItemStatusDescription(self, itemId):
1412
    """
1413
    Parameters:
1414
     - itemId
1415
    """
1416
    self.send_getItemStatusDescription(itemId)
1417
    return self.recv_getItemStatusDescription()
1418
 
1419
  def send_getItemStatusDescription(self, itemId):
1420
    self._oprot.writeMessageBegin('getItemStatusDescription', TMessageType.CALL, self._seqid)
1421
    args = getItemStatusDescription_args()
1422
    args.itemId = itemId
1423
    args.write(self._oprot)
1424
    self._oprot.writeMessageEnd()
1425
    self._oprot.trans.flush()
1426
 
1427
  def recv_getItemStatusDescription(self, ):
1428
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1429
    if mtype == TMessageType.EXCEPTION:
1430
      x = TApplicationException()
1431
      x.read(self._iprot)
1432
      self._iprot.readMessageEnd()
1433
      raise x
1434
    result = getItemStatusDescription_result()
1435
    result.read(self._iprot)
1436
    self._iprot.readMessageEnd()
1437
    if result.success is not None:
1438
      return result.success
1439
    if result.isex is not None:
1440
      raise result.isex
1441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemStatusDescription failed: unknown result");
1442
 
1443
  def startItemOn(self, item_id, timestamp):
1444
    """
1445
    Parameters:
1446
     - item_id
1447
     - timestamp
1448
    """
1449
    self.send_startItemOn(item_id, timestamp)
1450
    self.recv_startItemOn()
1451
 
1452
  def send_startItemOn(self, item_id, timestamp):
1453
    self._oprot.writeMessageBegin('startItemOn', TMessageType.CALL, self._seqid)
1454
    args = startItemOn_args()
1455
    args.item_id = item_id
1456
    args.timestamp = timestamp
1457
    args.write(self._oprot)
1458
    self._oprot.writeMessageEnd()
1459
    self._oprot.trans.flush()
1460
 
1461
  def recv_startItemOn(self, ):
1462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1463
    if mtype == TMessageType.EXCEPTION:
1464
      x = TApplicationException()
1465
      x.read(self._iprot)
1466
      self._iprot.readMessageEnd()
1467
      raise x
1468
    result = startItemOn_result()
1469
    result.read(self._iprot)
1470
    self._iprot.readMessageEnd()
1471
    if result.cex is not None:
1472
      raise result.cex
1473
    return
1474
 
1475
  def retireItemOn(self, item_id, timestamp):
1476
    """
1477
    Parameters:
1478
     - item_id
1479
     - timestamp
1480
    """
1481
    self.send_retireItemOn(item_id, timestamp)
1482
    self.recv_retireItemOn()
1483
 
1484
  def send_retireItemOn(self, item_id, timestamp):
1485
    self._oprot.writeMessageBegin('retireItemOn', TMessageType.CALL, self._seqid)
1486
    args = retireItemOn_args()
1487
    args.item_id = item_id
1488
    args.timestamp = timestamp
1489
    args.write(self._oprot)
1490
    self._oprot.writeMessageEnd()
1491
    self._oprot.trans.flush()
1492
 
1493
  def recv_retireItemOn(self, ):
1494
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1495
    if mtype == TMessageType.EXCEPTION:
1496
      x = TApplicationException()
1497
      x.read(self._iprot)
1498
      self._iprot.readMessageEnd()
1499
      raise x
1500
    result = retireItemOn_result()
1501
    result.read(self._iprot)
1502
    self._iprot.readMessageEnd()
1503
    if result.cex is not None:
1504
      raise result.cex
1505
    return
1506
 
1507
  def changeItemStatus(self, item_id, timestamp, newstatus):
1508
    """
1509
    Parameters:
1510
     - item_id
1511
     - timestamp
1512
     - newstatus
1513
    """
1514
    self.send_changeItemStatus(item_id, timestamp, newstatus)
1515
    self.recv_changeItemStatus()
1516
 
1517
  def send_changeItemStatus(self, item_id, timestamp, newstatus):
1518
    self._oprot.writeMessageBegin('changeItemStatus', TMessageType.CALL, self._seqid)
1519
    args = changeItemStatus_args()
1520
    args.item_id = item_id
1521
    args.timestamp = timestamp
1522
    args.newstatus = newstatus
1523
    args.write(self._oprot)
1524
    self._oprot.writeMessageEnd()
1525
    self._oprot.trans.flush()
1526
 
1527
  def recv_changeItemStatus(self, ):
1528
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1529
    if mtype == TMessageType.EXCEPTION:
1530
      x = TApplicationException()
1531
      x.read(self._iprot)
1532
      self._iprot.readMessageEnd()
1533
      raise x
1534
    result = changeItemStatus_result()
1535
    result.read(self._iprot)
1536
    self._iprot.readMessageEnd()
1537
    if result.cex is not None:
1538
      raise result.cex
1539
    return
1540
 
1541
  def getItem(self, item_id):
1542
    """
1543
    Parameters:
1544
     - item_id
1545
    """
1546
    self.send_getItem(item_id)
1547
    return self.recv_getItem()
1548
 
1549
  def send_getItem(self, item_id):
1550
    self._oprot.writeMessageBegin('getItem', TMessageType.CALL, self._seqid)
1551
    args = getItem_args()
1552
    args.item_id = item_id
1553
    args.write(self._oprot)
1554
    self._oprot.writeMessageEnd()
1555
    self._oprot.trans.flush()
1556
 
1557
  def recv_getItem(self, ):
1558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1559
    if mtype == TMessageType.EXCEPTION:
1560
      x = TApplicationException()
1561
      x.read(self._iprot)
1562
      self._iprot.readMessageEnd()
1563
      raise x
1564
    result = getItem_result()
1565
    result.read(self._iprot)
1566
    self._iprot.readMessageEnd()
1567
    if result.success is not None:
1568
      return result.success
1569
    if result.cex is not None:
1570
      raise result.cex
1571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItem failed: unknown result");
1572
 
1573
  def getItemsByCatalogId(self, catalog_item_id):
1574
    """
1575
    Parameters:
1576
     - catalog_item_id
1577
    """
1578
    self.send_getItemsByCatalogId(catalog_item_id)
1579
    return self.recv_getItemsByCatalogId()
1580
 
1581
  def send_getItemsByCatalogId(self, catalog_item_id):
1582
    self._oprot.writeMessageBegin('getItemsByCatalogId', TMessageType.CALL, self._seqid)
1583
    args = getItemsByCatalogId_args()
1584
    args.catalog_item_id = catalog_item_id
1585
    args.write(self._oprot)
1586
    self._oprot.writeMessageEnd()
1587
    self._oprot.trans.flush()
1588
 
1589
  def recv_getItemsByCatalogId(self, ):
1590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1591
    if mtype == TMessageType.EXCEPTION:
1592
      x = TApplicationException()
1593
      x.read(self._iprot)
1594
      self._iprot.readMessageEnd()
1595
      raise x
1596
    result = getItemsByCatalogId_result()
1597
    result.read(self._iprot)
1598
    self._iprot.readMessageEnd()
1599
    if result.success is not None:
1600
      return result.success
1601
    if result.cex is not None:
1602
      raise result.cex
1603
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByCatalogId failed: unknown result");
1604
 
1605
  def getValidItemsByCatalogId(self, catalog_item_id):
1606
    """
1607
    Parameters:
1608
     - catalog_item_id
1609
    """
1610
    self.send_getValidItemsByCatalogId(catalog_item_id)
1611
    return self.recv_getValidItemsByCatalogId()
1612
 
1613
  def send_getValidItemsByCatalogId(self, catalog_item_id):
1614
    self._oprot.writeMessageBegin('getValidItemsByCatalogId', TMessageType.CALL, self._seqid)
1615
    args = getValidItemsByCatalogId_args()
1616
    args.catalog_item_id = catalog_item_id
1617
    args.write(self._oprot)
1618
    self._oprot.writeMessageEnd()
1619
    self._oprot.trans.flush()
1620
 
1621
  def recv_getValidItemsByCatalogId(self, ):
1622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1623
    if mtype == TMessageType.EXCEPTION:
1624
      x = TApplicationException()
1625
      x.read(self._iprot)
1626
      self._iprot.readMessageEnd()
1627
      raise x
1628
    result = getValidItemsByCatalogId_result()
1629
    result.read(self._iprot)
1630
    self._iprot.readMessageEnd()
1631
    if result.success is not None:
1632
      return result.success
1633
    if result.cex is not None:
1634
      raise result.cex
1635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidItemsByCatalogId failed: unknown result");
1636
 
1637
  def getAllItems(self, isActive):
1638
    """
1639
    Parameters:
1640
     - isActive
1641
    """
1642
    self.send_getAllItems(isActive)
1643
    return self.recv_getAllItems()
1644
 
1645
  def send_getAllItems(self, isActive):
1646
    self._oprot.writeMessageBegin('getAllItems', TMessageType.CALL, self._seqid)
1647
    args = getAllItems_args()
1648
    args.isActive = isActive
1649
    args.write(self._oprot)
1650
    self._oprot.writeMessageEnd()
1651
    self._oprot.trans.flush()
1652
 
1653
  def recv_getAllItems(self, ):
1654
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1655
    if mtype == TMessageType.EXCEPTION:
1656
      x = TApplicationException()
1657
      x.read(self._iprot)
1658
      self._iprot.readMessageEnd()
1659
      raise x
1660
    result = getAllItems_result()
1661
    result.read(self._iprot)
1662
    self._iprot.readMessageEnd()
1663
    if result.success is not None:
1664
      return result.success
1665
    if result.cex is not None:
1666
      raise result.cex
1667
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItems failed: unknown result");
1668
 
1669
  def getAllItemsByStatus(self, itemStatus):
1670
    """
1671
    Parameters:
1672
     - itemStatus
1673
    """
1674
    self.send_getAllItemsByStatus(itemStatus)
1675
    return self.recv_getAllItemsByStatus()
1676
 
1677
  def send_getAllItemsByStatus(self, itemStatus):
1678
    self._oprot.writeMessageBegin('getAllItemsByStatus', TMessageType.CALL, self._seqid)
1679
    args = getAllItemsByStatus_args()
1680
    args.itemStatus = itemStatus
1681
    args.write(self._oprot)
1682
    self._oprot.writeMessageEnd()
1683
    self._oprot.trans.flush()
1684
 
1685
  def recv_getAllItemsByStatus(self, ):
1686
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1687
    if mtype == TMessageType.EXCEPTION:
1688
      x = TApplicationException()
1689
      x.read(self._iprot)
1690
      self._iprot.readMessageEnd()
1691
      raise x
1692
    result = getAllItemsByStatus_result()
1693
    result.read(self._iprot)
1694
    self._iprot.readMessageEnd()
1695
    if result.success is not None:
1696
      return result.success
1697
    if result.cex is not None:
1698
      raise result.cex
1699
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatus failed: unknown result");
1700
 
9253 rajveer 1701
  def markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1702
    """
1703
    Parameters:
1704
     - entityId
1705
     - category
1706
     - brand
1707
     - modelName
1708
     - modelNumber
9253 rajveer 1709
     - isAndroid
5944 mandeep.dh 1710
    """
9253 rajveer 1711
    self.send_markItemAsContentComplete(entityId, category, brand, modelName, modelNumber, isAndroid)
5944 mandeep.dh 1712
    return self.recv_markItemAsContentComplete()
1713
 
9253 rajveer 1714
  def send_markItemAsContentComplete(self, entityId, category, brand, modelName, modelNumber, isAndroid):
5944 mandeep.dh 1715
    self._oprot.writeMessageBegin('markItemAsContentComplete', TMessageType.CALL, self._seqid)
1716
    args = markItemAsContentComplete_args()
1717
    args.entityId = entityId
1718
    args.category = category
1719
    args.brand = brand
1720
    args.modelName = modelName
1721
    args.modelNumber = modelNumber
9253 rajveer 1722
    args.isAndroid = isAndroid
5944 mandeep.dh 1723
    args.write(self._oprot)
1724
    self._oprot.writeMessageEnd()
1725
    self._oprot.trans.flush()
1726
 
1727
  def recv_markItemAsContentComplete(self, ):
1728
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1729
    if mtype == TMessageType.EXCEPTION:
1730
      x = TApplicationException()
1731
      x.read(self._iprot)
1732
      self._iprot.readMessageEnd()
1733
      raise x
1734
    result = markItemAsContentComplete_result()
1735
    result.read(self._iprot)
1736
    self._iprot.readMessageEnd()
1737
    if result.success is not None:
1738
      return result.success
1739
    if result.cex is not None:
1740
      raise result.cex
1741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markItemAsContentComplete failed: unknown result");
1742
 
12567 amit.gupta 1743
  def getVatRates(self, itemId, categoryId):
1744
    """
1745
    Parameters:
1746
     - itemId
1747
     - categoryId
1748
    """
1749
    self.send_getVatRates(itemId, categoryId)
1750
    return self.recv_getVatRates()
1751
 
1752
  def send_getVatRates(self, itemId, categoryId):
1753
    self._oprot.writeMessageBegin('getVatRates', TMessageType.CALL, self._seqid)
1754
    args = getVatRates_args()
1755
    args.itemId = itemId
1756
    args.categoryId = categoryId
1757
    args.write(self._oprot)
1758
    self._oprot.writeMessageEnd()
1759
    self._oprot.trans.flush()
1760
 
1761
  def recv_getVatRates(self, ):
1762
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1763
    if mtype == TMessageType.EXCEPTION:
1764
      x = TApplicationException()
1765
      x.read(self._iprot)
1766
      self._iprot.readMessageEnd()
1767
      raise x
1768
    result = getVatRates_result()
1769
    result.read(self._iprot)
1770
    self._iprot.readMessageEnd()
1771
    if result.success is not None:
1772
      return result.success
1773
    if result.cex is not None:
1774
      raise result.cex
1775
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatRates failed: unknown result");
1776
 
5944 mandeep.dh 1777
  def getAllItemsInRange(self, offset, limit):
1778
    """
1779
    Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
1780
 
1781
    Parameters:
1782
     - offset
1783
     - limit
1784
    """
1785
    self.send_getAllItemsInRange(offset, limit)
1786
    return self.recv_getAllItemsInRange()
1787
 
1788
  def send_getAllItemsInRange(self, offset, limit):
1789
    self._oprot.writeMessageBegin('getAllItemsInRange', TMessageType.CALL, self._seqid)
1790
    args = getAllItemsInRange_args()
1791
    args.offset = offset
1792
    args.limit = limit
1793
    args.write(self._oprot)
1794
    self._oprot.writeMessageEnd()
1795
    self._oprot.trans.flush()
1796
 
1797
  def recv_getAllItemsInRange(self, ):
1798
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1799
    if mtype == TMessageType.EXCEPTION:
1800
      x = TApplicationException()
1801
      x.read(self._iprot)
1802
      self._iprot.readMessageEnd()
1803
      raise x
1804
    result = getAllItemsInRange_result()
1805
    result.read(self._iprot)
1806
    self._iprot.readMessageEnd()
1807
    if result.success is not None:
1808
      return result.success
1809
    if result.cex is not None:
1810
      raise result.cex
1811
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsInRange failed: unknown result");
1812
 
1813
  def getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1814
    """
1815
    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.
1816
 
1817
    Parameters:
1818
     - itemStatus
1819
     - offset
1820
     - limit
1821
    """
1822
    self.send_getAllItemsByStatusInRange(itemStatus, offset, limit)
1823
    return self.recv_getAllItemsByStatusInRange()
1824
 
1825
  def send_getAllItemsByStatusInRange(self, itemStatus, offset, limit):
1826
    self._oprot.writeMessageBegin('getAllItemsByStatusInRange', TMessageType.CALL, self._seqid)
1827
    args = getAllItemsByStatusInRange_args()
1828
    args.itemStatus = itemStatus
1829
    args.offset = offset
1830
    args.limit = limit
1831
    args.write(self._oprot)
1832
    self._oprot.writeMessageEnd()
1833
    self._oprot.trans.flush()
1834
 
1835
  def recv_getAllItemsByStatusInRange(self, ):
1836
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1837
    if mtype == TMessageType.EXCEPTION:
1838
      x = TApplicationException()
1839
      x.read(self._iprot)
1840
      self._iprot.readMessageEnd()
1841
      raise x
1842
    result = getAllItemsByStatusInRange_result()
1843
    result.read(self._iprot)
1844
    self._iprot.readMessageEnd()
1845
    if result.success is not None:
1846
      return result.success
1847
    if result.cex is not None:
1848
      raise result.cex
1849
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemsByStatusInRange failed: unknown result");
1850
 
1851
  def getItemCountByStatus(self, useStatus, itemStatus):
1852
    """
1853
    Gets a count of all items by status
1854
 
1855
    Parameters:
1856
     - useStatus
1857
     - itemStatus
1858
    """
1859
    self.send_getItemCountByStatus(useStatus, itemStatus)
1860
    return self.recv_getItemCountByStatus()
1861
 
1862
  def send_getItemCountByStatus(self, useStatus, itemStatus):
1863
    self._oprot.writeMessageBegin('getItemCountByStatus', TMessageType.CALL, self._seqid)
1864
    args = getItemCountByStatus_args()
1865
    args.useStatus = useStatus
1866
    args.itemStatus = itemStatus
1867
    args.write(self._oprot)
1868
    self._oprot.writeMessageEnd()
1869
    self._oprot.trans.flush()
1870
 
1871
  def recv_getItemCountByStatus(self, ):
1872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1873
    if mtype == TMessageType.EXCEPTION:
1874
      x = TApplicationException()
1875
      x.read(self._iprot)
1876
      self._iprot.readMessageEnd()
1877
      raise x
1878
    result = getItemCountByStatus_result()
1879
    result.read(self._iprot)
1880
    self._iprot.readMessageEnd()
1881
    if result.success is not None:
1882
      return result.success
1883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemCountByStatus failed: unknown result");
1884
 
1885
  def getBestSellers(self, ):
1886
    self.send_getBestSellers()
1887
    return self.recv_getBestSellers()
1888
 
1889
  def send_getBestSellers(self, ):
1890
    self._oprot.writeMessageBegin('getBestSellers', TMessageType.CALL, self._seqid)
1891
    args = getBestSellers_args()
1892
    args.write(self._oprot)
1893
    self._oprot.writeMessageEnd()
1894
    self._oprot.trans.flush()
1895
 
1896
  def recv_getBestSellers(self, ):
1897
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1898
    if mtype == TMessageType.EXCEPTION:
1899
      x = TApplicationException()
1900
      x.read(self._iprot)
1901
      self._iprot.readMessageEnd()
1902
      raise x
1903
    result = getBestSellers_result()
1904
    result.read(self._iprot)
1905
    self._iprot.readMessageEnd()
1906
    if result.success is not None:
1907
      return result.success
1908
    if result.isex is not None:
1909
      raise result.isex
1910
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellers failed: unknown result");
1911
 
1912
  def getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1913
    """
1914
    Parameters:
1915
     - beginIndex
1916
     - totalItems
1917
     - brand
1918
     - category
1919
    """
1920
    self.send_getBestSellersCatalogIds(beginIndex, totalItems, brand, category)
1921
    return self.recv_getBestSellersCatalogIds()
1922
 
1923
  def send_getBestSellersCatalogIds(self, beginIndex, totalItems, brand, category):
1924
    self._oprot.writeMessageBegin('getBestSellersCatalogIds', TMessageType.CALL, self._seqid)
1925
    args = getBestSellersCatalogIds_args()
1926
    args.beginIndex = beginIndex
1927
    args.totalItems = totalItems
1928
    args.brand = brand
1929
    args.category = category
1930
    args.write(self._oprot)
1931
    self._oprot.writeMessageEnd()
1932
    self._oprot.trans.flush()
1933
 
1934
  def recv_getBestSellersCatalogIds(self, ):
1935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1936
    if mtype == TMessageType.EXCEPTION:
1937
      x = TApplicationException()
1938
      x.read(self._iprot)
1939
      self._iprot.readMessageEnd()
1940
      raise x
1941
    result = getBestSellersCatalogIds_result()
1942
    result.read(self._iprot)
1943
    self._iprot.readMessageEnd()
1944
    if result.success is not None:
1945
      return result.success
1946
    if result.cex is not None:
1947
      raise result.cex
1948
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCatalogIds failed: unknown result");
1949
 
1950
  def getBestSellersCount(self, ):
1951
    self.send_getBestSellersCount()
1952
    return self.recv_getBestSellersCount()
1953
 
1954
  def send_getBestSellersCount(self, ):
1955
    self._oprot.writeMessageBegin('getBestSellersCount', TMessageType.CALL, self._seqid)
1956
    args = getBestSellersCount_args()
1957
    args.write(self._oprot)
1958
    self._oprot.writeMessageEnd()
1959
    self._oprot.trans.flush()
1960
 
1961
  def recv_getBestSellersCount(self, ):
1962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1963
    if mtype == TMessageType.EXCEPTION:
1964
      x = TApplicationException()
1965
      x.read(self._iprot)
1966
      self._iprot.readMessageEnd()
1967
      raise x
1968
    result = getBestSellersCount_result()
1969
    result.read(self._iprot)
1970
    self._iprot.readMessageEnd()
1971
    if result.success is not None:
1972
      return result.success
1973
    if result.cex is not None:
1974
      raise result.cex
1975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestSellersCount failed: unknown result");
1976
 
1977
  def getBestDeals(self, ):
1978
    self.send_getBestDeals()
1979
    return self.recv_getBestDeals()
1980
 
1981
  def send_getBestDeals(self, ):
1982
    self._oprot.writeMessageBegin('getBestDeals', TMessageType.CALL, self._seqid)
1983
    args = getBestDeals_args()
1984
    args.write(self._oprot)
1985
    self._oprot.writeMessageEnd()
1986
    self._oprot.trans.flush()
1987
 
1988
  def recv_getBestDeals(self, ):
1989
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1990
    if mtype == TMessageType.EXCEPTION:
1991
      x = TApplicationException()
1992
      x.read(self._iprot)
1993
      self._iprot.readMessageEnd()
1994
      raise x
1995
    result = getBestDeals_result()
1996
    result.read(self._iprot)
1997
    self._iprot.readMessageEnd()
1998
    if result.success is not None:
1999
      return result.success
2000
    if result.isex is not None:
2001
      raise result.isex
2002
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDeals failed: unknown result");
2003
 
2004
  def getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2005
    """
2006
    Parameters:
2007
     - beginIndex
2008
     - totalItems
2009
     - brand
2010
     - category
2011
    """
2012
    self.send_getBestDealsCatalogIds(beginIndex, totalItems, brand, category)
2013
    return self.recv_getBestDealsCatalogIds()
2014
 
2015
  def send_getBestDealsCatalogIds(self, beginIndex, totalItems, brand, category):
2016
    self._oprot.writeMessageBegin('getBestDealsCatalogIds', TMessageType.CALL, self._seqid)
2017
    args = getBestDealsCatalogIds_args()
2018
    args.beginIndex = beginIndex
2019
    args.totalItems = totalItems
2020
    args.brand = brand
2021
    args.category = category
2022
    args.write(self._oprot)
2023
    self._oprot.writeMessageEnd()
2024
    self._oprot.trans.flush()
2025
 
2026
  def recv_getBestDealsCatalogIds(self, ):
2027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2028
    if mtype == TMessageType.EXCEPTION:
2029
      x = TApplicationException()
2030
      x.read(self._iprot)
2031
      self._iprot.readMessageEnd()
2032
      raise x
2033
    result = getBestDealsCatalogIds_result()
2034
    result.read(self._iprot)
2035
    self._iprot.readMessageEnd()
2036
    if result.success is not None:
2037
      return result.success
2038
    if result.cex is not None:
2039
      raise result.cex
2040
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCatalogIds failed: unknown result");
2041
 
2042
  def getBestDealsCount(self, ):
2043
    self.send_getBestDealsCount()
2044
    return self.recv_getBestDealsCount()
2045
 
2046
  def send_getBestDealsCount(self, ):
2047
    self._oprot.writeMessageBegin('getBestDealsCount', TMessageType.CALL, self._seqid)
2048
    args = getBestDealsCount_args()
2049
    args.write(self._oprot)
2050
    self._oprot.writeMessageEnd()
2051
    self._oprot.trans.flush()
2052
 
2053
  def recv_getBestDealsCount(self, ):
2054
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2055
    if mtype == TMessageType.EXCEPTION:
2056
      x = TApplicationException()
2057
      x.read(self._iprot)
2058
      self._iprot.readMessageEnd()
2059
      raise x
2060
    result = getBestDealsCount_result()
2061
    result.read(self._iprot)
2062
    self._iprot.readMessageEnd()
2063
    if result.success is not None:
2064
      return result.success
2065
    if result.cex is not None:
2066
      raise result.cex
2067
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBestDealsCount failed: unknown result");
2068
 
2069
  def getComingSoon(self, ):
2070
    self.send_getComingSoon()
2071
    return self.recv_getComingSoon()
2072
 
2073
  def send_getComingSoon(self, ):
2074
    self._oprot.writeMessageBegin('getComingSoon', TMessageType.CALL, self._seqid)
2075
    args = getComingSoon_args()
2076
    args.write(self._oprot)
2077
    self._oprot.writeMessageEnd()
2078
    self._oprot.trans.flush()
2079
 
2080
  def recv_getComingSoon(self, ):
2081
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2082
    if mtype == TMessageType.EXCEPTION:
2083
      x = TApplicationException()
2084
      x.read(self._iprot)
2085
      self._iprot.readMessageEnd()
2086
      raise x
2087
    result = getComingSoon_result()
2088
    result.read(self._iprot)
2089
    self._iprot.readMessageEnd()
2090
    if result.success is not None:
2091
      return result.success
2092
    if result.isex is not None:
2093
      raise result.isex
2094
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoon failed: unknown result");
2095
 
2096
  def getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2097
    """
2098
    Parameters:
2099
     - beginIndex
2100
     - totalItems
2101
     - brand
2102
     - category
2103
    """
2104
    self.send_getComingSoonCatalogIds(beginIndex, totalItems, brand, category)
2105
    return self.recv_getComingSoonCatalogIds()
2106
 
2107
  def send_getComingSoonCatalogIds(self, beginIndex, totalItems, brand, category):
2108
    self._oprot.writeMessageBegin('getComingSoonCatalogIds', TMessageType.CALL, self._seqid)
2109
    args = getComingSoonCatalogIds_args()
2110
    args.beginIndex = beginIndex
2111
    args.totalItems = totalItems
2112
    args.brand = brand
2113
    args.category = category
2114
    args.write(self._oprot)
2115
    self._oprot.writeMessageEnd()
2116
    self._oprot.trans.flush()
2117
 
2118
  def recv_getComingSoonCatalogIds(self, ):
2119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2120
    if mtype == TMessageType.EXCEPTION:
2121
      x = TApplicationException()
2122
      x.read(self._iprot)
2123
      self._iprot.readMessageEnd()
2124
      raise x
2125
    result = getComingSoonCatalogIds_result()
2126
    result.read(self._iprot)
2127
    self._iprot.readMessageEnd()
2128
    if result.success is not None:
2129
      return result.success
2130
    if result.cex is not None:
2131
      raise result.cex
2132
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCatalogIds failed: unknown result");
2133
 
2134
  def getComingSoonCount(self, ):
2135
    self.send_getComingSoonCount()
2136
    return self.recv_getComingSoonCount()
2137
 
2138
  def send_getComingSoonCount(self, ):
2139
    self._oprot.writeMessageBegin('getComingSoonCount', TMessageType.CALL, self._seqid)
2140
    args = getComingSoonCount_args()
2141
    args.write(self._oprot)
2142
    self._oprot.writeMessageEnd()
2143
    self._oprot.trans.flush()
2144
 
2145
  def recv_getComingSoonCount(self, ):
2146
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2147
    if mtype == TMessageType.EXCEPTION:
2148
      x = TApplicationException()
2149
      x.read(self._iprot)
2150
      self._iprot.readMessageEnd()
2151
      raise x
2152
    result = getComingSoonCount_result()
2153
    result.read(self._iprot)
2154
    self._iprot.readMessageEnd()
2155
    if result.success is not None:
2156
      return result.success
2157
    if result.cex is not None:
2158
      raise result.cex
2159
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getComingSoonCount failed: unknown result");
2160
 
2161
  def getLatestArrivals(self, ):
2162
    """
2163
    Returns a list of items sorted in the descending order by start date.
2164
    The list is limited to the 'latest_arrivals_count' configuraiton parameter.
2165
    """
2166
    self.send_getLatestArrivals()
2167
    return self.recv_getLatestArrivals()
2168
 
2169
  def send_getLatestArrivals(self, ):
2170
    self._oprot.writeMessageBegin('getLatestArrivals', TMessageType.CALL, self._seqid)
2171
    args = getLatestArrivals_args()
2172
    args.write(self._oprot)
2173
    self._oprot.writeMessageEnd()
2174
    self._oprot.trans.flush()
2175
 
2176
  def recv_getLatestArrivals(self, ):
2177
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2178
    if mtype == TMessageType.EXCEPTION:
2179
      x = TApplicationException()
2180
      x.read(self._iprot)
2181
      self._iprot.readMessageEnd()
2182
      raise x
2183
    result = getLatestArrivals_result()
2184
    result.read(self._iprot)
2185
    self._iprot.readMessageEnd()
2186
    if result.success is not None:
2187
      return result.success
2188
    if result.isex is not None:
2189
      raise result.isex
2190
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivals failed: unknown result");
2191
 
2192
  def getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2193
    """
2194
    Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
2195
    To ignore the categories, pass the list as empty. To ignore brand, pass it as null.
2196
 
2197
    Parameters:
2198
     - beginIndex
2199
     - totalItems
2200
     - brand
2201
     - categories
2202
    """
2203
    self.send_getLatestArrivalsCatalogIds(beginIndex, totalItems, brand, categories)
2204
    return self.recv_getLatestArrivalsCatalogIds()
2205
 
2206
  def send_getLatestArrivalsCatalogIds(self, beginIndex, totalItems, brand, categories):
2207
    self._oprot.writeMessageBegin('getLatestArrivalsCatalogIds', TMessageType.CALL, self._seqid)
2208
    args = getLatestArrivalsCatalogIds_args()
2209
    args.beginIndex = beginIndex
2210
    args.totalItems = totalItems
2211
    args.brand = brand
2212
    args.categories = categories
2213
    args.write(self._oprot)
2214
    self._oprot.writeMessageEnd()
2215
    self._oprot.trans.flush()
2216
 
2217
  def recv_getLatestArrivalsCatalogIds(self, ):
2218
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2219
    if mtype == TMessageType.EXCEPTION:
2220
      x = TApplicationException()
2221
      x.read(self._iprot)
2222
      self._iprot.readMessageEnd()
2223
      raise x
2224
    result = getLatestArrivalsCatalogIds_result()
2225
    result.read(self._iprot)
2226
    self._iprot.readMessageEnd()
2227
    if result.success is not None:
2228
      return result.success
2229
    if result.cex is not None:
2230
      raise result.cex
2231
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCatalogIds failed: unknown result");
2232
 
2233
  def getLatestArrivalsCount(self, ):
2234
    """
2235
    Get the total number of latest arrivals we are willing to show.
2236
    The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
2237
    """
2238
    self.send_getLatestArrivalsCount()
2239
    return self.recv_getLatestArrivalsCount()
2240
 
2241
  def send_getLatestArrivalsCount(self, ):
2242
    self._oprot.writeMessageBegin('getLatestArrivalsCount', TMessageType.CALL, self._seqid)
2243
    args = getLatestArrivalsCount_args()
2244
    args.write(self._oprot)
2245
    self._oprot.writeMessageEnd()
2246
    self._oprot.trans.flush()
2247
 
2248
  def recv_getLatestArrivalsCount(self, ):
2249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2250
    if mtype == TMessageType.EXCEPTION:
2251
      x = TApplicationException()
2252
      x.read(self._iprot)
2253
      self._iprot.readMessageEnd()
2254
      raise x
2255
    result = getLatestArrivalsCount_result()
2256
    result.read(self._iprot)
2257
    self._iprot.readMessageEnd()
2258
    if result.success is not None:
2259
      return result.success
2260
    if result.cex is not None:
2261
      raise result.cex
2262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLatestArrivalsCount failed: unknown result");
2263
 
2264
  def generateNewEntityID(self, ):
2265
    self.send_generateNewEntityID()
2266
    return self.recv_generateNewEntityID()
2267
 
2268
  def send_generateNewEntityID(self, ):
2269
    self._oprot.writeMessageBegin('generateNewEntityID', TMessageType.CALL, self._seqid)
2270
    args = generateNewEntityID_args()
2271
    args.write(self._oprot)
2272
    self._oprot.writeMessageEnd()
2273
    self._oprot.trans.flush()
2274
 
2275
  def recv_generateNewEntityID(self, ):
2276
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2277
    if mtype == TMessageType.EXCEPTION:
2278
      x = TApplicationException()
2279
      x.read(self._iprot)
2280
      self._iprot.readMessageEnd()
2281
      raise x
2282
    result = generateNewEntityID_result()
2283
    result.read(self._iprot)
2284
    self._iprot.readMessageEnd()
2285
    if result.success is not None:
2286
      return result.success
2287
    raise TApplicationException(TApplicationException.MISSING_RESULT, "generateNewEntityID failed: unknown result");
2288
 
2289
  def addCategory(self, category):
2290
    """
2291
    All category related functions
2292
 
2293
    Parameters:
2294
     - category
2295
    """
2296
    self.send_addCategory(category)
2297
    return self.recv_addCategory()
2298
 
2299
  def send_addCategory(self, category):
2300
    self._oprot.writeMessageBegin('addCategory', TMessageType.CALL, self._seqid)
2301
    args = addCategory_args()
2302
    args.category = category
2303
    args.write(self._oprot)
2304
    self._oprot.writeMessageEnd()
2305
    self._oprot.trans.flush()
2306
 
2307
  def recv_addCategory(self, ):
2308
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2309
    if mtype == TMessageType.EXCEPTION:
2310
      x = TApplicationException()
2311
      x.read(self._iprot)
2312
      self._iprot.readMessageEnd()
2313
      raise x
2314
    result = addCategory_result()
2315
    result.read(self._iprot)
2316
    self._iprot.readMessageEnd()
2317
    if result.success is not None:
2318
      return result.success
2319
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addCategory failed: unknown result");
2320
 
2321
  def getCategory(self, id):
2322
    """
2323
    Parameters:
2324
     - id
2325
    """
2326
    self.send_getCategory(id)
2327
    return self.recv_getCategory()
2328
 
2329
  def send_getCategory(self, id):
2330
    self._oprot.writeMessageBegin('getCategory', TMessageType.CALL, self._seqid)
2331
    args = getCategory_args()
2332
    args.id = id
2333
    args.write(self._oprot)
2334
    self._oprot.writeMessageEnd()
2335
    self._oprot.trans.flush()
2336
 
2337
  def recv_getCategory(self, ):
2338
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2339
    if mtype == TMessageType.EXCEPTION:
2340
      x = TApplicationException()
2341
      x.read(self._iprot)
2342
      self._iprot.readMessageEnd()
2343
      raise x
2344
    result = getCategory_result()
2345
    result.read(self._iprot)
2346
    self._iprot.readMessageEnd()
2347
    if result.success is not None:
2348
      return result.success
2349
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCategory failed: unknown result");
2350
 
2351
  def getAllCategories(self, ):
2352
    self.send_getAllCategories()
2353
    return self.recv_getAllCategories()
2354
 
2355
  def send_getAllCategories(self, ):
2356
    self._oprot.writeMessageBegin('getAllCategories', TMessageType.CALL, self._seqid)
2357
    args = getAllCategories_args()
2358
    args.write(self._oprot)
2359
    self._oprot.writeMessageEnd()
2360
    self._oprot.trans.flush()
2361
 
2362
  def recv_getAllCategories(self, ):
2363
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2364
    if mtype == TMessageType.EXCEPTION:
2365
      x = TApplicationException()
2366
      x.read(self._iprot)
2367
      self._iprot.readMessageEnd()
2368
      raise x
2369
    result = getAllCategories_result()
2370
    result.read(self._iprot)
2371
    self._iprot.readMessageEnd()
2372
    if result.success is not None:
2373
      return result.success
2374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCategories failed: unknown result");
2375
 
2376
  def getAllSimilarItems(self, itemId):
2377
    """
2378
    Returns the list of similar items.
2379
 
2380
    Parameters:
2381
     - itemId
2382
    """
2383
    self.send_getAllSimilarItems(itemId)
2384
    return self.recv_getAllSimilarItems()
2385
 
2386
  def send_getAllSimilarItems(self, itemId):
2387
    self._oprot.writeMessageBegin('getAllSimilarItems', TMessageType.CALL, self._seqid)
2388
    args = getAllSimilarItems_args()
2389
    args.itemId = itemId
2390
    args.write(self._oprot)
2391
    self._oprot.writeMessageEnd()
2392
    self._oprot.trans.flush()
2393
 
2394
  def recv_getAllSimilarItems(self, ):
2395
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2396
    if mtype == TMessageType.EXCEPTION:
2397
      x = TApplicationException()
2398
      x.read(self._iprot)
2399
      self._iprot.readMessageEnd()
2400
      raise x
2401
    result = getAllSimilarItems_result()
2402
    result.read(self._iprot)
2403
    self._iprot.readMessageEnd()
2404
    if result.success is not None:
2405
      return result.success
2406
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSimilarItems failed: unknown result");
2407
 
2408
  def addSimilarItem(self, itemId, catalogItemId):
2409
    """
2410
    Adds similar item.
2411
 
2412
    Parameters:
2413
     - itemId
2414
     - catalogItemId
2415
    """
2416
    self.send_addSimilarItem(itemId, catalogItemId)
2417
    return self.recv_addSimilarItem()
2418
 
2419
  def send_addSimilarItem(self, itemId, catalogItemId):
2420
    self._oprot.writeMessageBegin('addSimilarItem', TMessageType.CALL, self._seqid)
2421
    args = addSimilarItem_args()
2422
    args.itemId = itemId
2423
    args.catalogItemId = catalogItemId
2424
    args.write(self._oprot)
2425
    self._oprot.writeMessageEnd()
2426
    self._oprot.trans.flush()
2427
 
2428
  def recv_addSimilarItem(self, ):
2429
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2430
    if mtype == TMessageType.EXCEPTION:
2431
      x = TApplicationException()
2432
      x.read(self._iprot)
2433
      self._iprot.readMessageEnd()
2434
      raise x
2435
    result = addSimilarItem_result()
2436
    result.read(self._iprot)
2437
    self._iprot.readMessageEnd()
2438
    if result.success is not None:
2439
      return result.success
2440
    if result.cex is not None:
2441
      raise result.cex
2442
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSimilarItem failed: unknown result");
2443
 
6512 kshitij.so 2444
  def addTag(self, displayName, itemId):
2445
    """
2446
    Tag Related
2447
 
2448
    Parameters:
2449
     - displayName
2450
     - itemId
2451
    """
2452
    self.send_addTag(displayName, itemId)
2453
    return self.recv_addTag()
2454
 
2455
  def send_addTag(self, displayName, itemId):
2456
    self._oprot.writeMessageBegin('addTag', TMessageType.CALL, self._seqid)
2457
    args = addTag_args()
2458
    args.displayName = displayName
2459
    args.itemId = itemId
2460
    args.write(self._oprot)
2461
    self._oprot.writeMessageEnd()
2462
    self._oprot.trans.flush()
2463
 
2464
  def recv_addTag(self, ):
2465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2466
    if mtype == TMessageType.EXCEPTION:
2467
      x = TApplicationException()
2468
      x.read(self._iprot)
2469
      self._iprot.readMessageEnd()
2470
      raise x
2471
    result = addTag_result()
2472
    result.read(self._iprot)
2473
    self._iprot.readMessageEnd()
2474
    if result.success is not None:
2475
      return result.success
2476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTag failed: unknown result");
2477
 
2478
  def deleteEntityTag(self, displayName, itemId):
2479
    """
2480
    Parameters:
2481
     - displayName
2482
     - itemId
2483
    """
2484
    self.send_deleteEntityTag(displayName, itemId)
2485
    return self.recv_deleteEntityTag()
2486
 
2487
  def send_deleteEntityTag(self, displayName, itemId):
2488
    self._oprot.writeMessageBegin('deleteEntityTag', TMessageType.CALL, self._seqid)
2489
    args = deleteEntityTag_args()
2490
    args.displayName = displayName
2491
    args.itemId = itemId
2492
    args.write(self._oprot)
2493
    self._oprot.writeMessageEnd()
2494
    self._oprot.trans.flush()
2495
 
2496
  def recv_deleteEntityTag(self, ):
2497
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2498
    if mtype == TMessageType.EXCEPTION:
2499
      x = TApplicationException()
2500
      x.read(self._iprot)
2501
      self._iprot.readMessageEnd()
2502
      raise x
2503
    result = deleteEntityTag_result()
2504
    result.read(self._iprot)
2505
    self._iprot.readMessageEnd()
2506
    if result.success is not None:
2507
      return result.success
2508
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteEntityTag failed: unknown result");
2509
 
2510
  def deleteTag(self, displayName):
2511
    """
2512
    Parameters:
2513
     - displayName
2514
    """
2515
    self.send_deleteTag(displayName)
2516
    return self.recv_deleteTag()
2517
 
2518
  def send_deleteTag(self, displayName):
2519
    self._oprot.writeMessageBegin('deleteTag', TMessageType.CALL, self._seqid)
2520
    args = deleteTag_args()
2521
    args.displayName = displayName
2522
    args.write(self._oprot)
2523
    self._oprot.writeMessageEnd()
2524
    self._oprot.trans.flush()
2525
 
2526
  def recv_deleteTag(self, ):
2527
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2528
    if mtype == TMessageType.EXCEPTION:
2529
      x = TApplicationException()
2530
      x.read(self._iprot)
2531
      self._iprot.readMessageEnd()
2532
      raise x
2533
    result = deleteTag_result()
2534
    result.read(self._iprot)
2535
    self._iprot.readMessageEnd()
2536
    if result.success is not None:
2537
      return result.success
2538
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteTag failed: unknown result");
2539
 
2540
  def getAllTags(self, ):
2541
    self.send_getAllTags()
2542
    return self.recv_getAllTags()
2543
 
2544
  def send_getAllTags(self, ):
2545
    self._oprot.writeMessageBegin('getAllTags', TMessageType.CALL, self._seqid)
2546
    args = getAllTags_args()
2547
    args.write(self._oprot)
2548
    self._oprot.writeMessageEnd()
2549
    self._oprot.trans.flush()
2550
 
2551
  def recv_getAllTags(self, ):
2552
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2553
    if mtype == TMessageType.EXCEPTION:
2554
      x = TApplicationException()
2555
      x.read(self._iprot)
2556
      self._iprot.readMessageEnd()
2557
      raise x
2558
    result = getAllTags_result()
2559
    result.read(self._iprot)
2560
    self._iprot.readMessageEnd()
2561
    if result.success is not None:
2562
      return result.success
2563
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTags failed: unknown result");
2564
 
2565
  def getAllEntitiesByTagName(self, displayName):
2566
    """
2567
    Parameters:
2568
     - displayName
2569
    """
2570
    self.send_getAllEntitiesByTagName(displayName)
2571
    return self.recv_getAllEntitiesByTagName()
2572
 
2573
  def send_getAllEntitiesByTagName(self, displayName):
2574
    self._oprot.writeMessageBegin('getAllEntitiesByTagName', TMessageType.CALL, self._seqid)
2575
    args = getAllEntitiesByTagName_args()
2576
    args.displayName = displayName
2577
    args.write(self._oprot)
2578
    self._oprot.writeMessageEnd()
2579
    self._oprot.trans.flush()
2580
 
2581
  def recv_getAllEntitiesByTagName(self, ):
2582
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2583
    if mtype == TMessageType.EXCEPTION:
2584
      x = TApplicationException()
2585
      x.read(self._iprot)
2586
      self._iprot.readMessageEnd()
2587
      raise x
2588
    result = getAllEntitiesByTagName_result()
2589
    result.read(self._iprot)
2590
    self._iprot.readMessageEnd()
2591
    if result.success is not None:
2592
      return result.success
2593
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntitiesByTagName failed: unknown result");
2594
 
6845 amit.gupta 2595
  def getAllEntityTags(self, ):
2596
    self.send_getAllEntityTags()
2597
    return self.recv_getAllEntityTags()
2598
 
2599
  def send_getAllEntityTags(self, ):
2600
    self._oprot.writeMessageBegin('getAllEntityTags', TMessageType.CALL, self._seqid)
2601
    args = getAllEntityTags_args()
2602
    args.write(self._oprot)
2603
    self._oprot.writeMessageEnd()
2604
    self._oprot.trans.flush()
2605
 
2606
  def recv_getAllEntityTags(self, ):
2607
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2608
    if mtype == TMessageType.EXCEPTION:
2609
      x = TApplicationException()
2610
      x.read(self._iprot)
2611
      self._iprot.readMessageEnd()
2612
      raise x
2613
    result = getAllEntityTags_result()
2614
    result.read(self._iprot)
2615
    self._iprot.readMessageEnd()
2616
    if result.success is not None:
2617
      return result.success
2618
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllEntityTags failed: unknown result");
2619
 
8590 kshitij.so 2620
  def addBanner(self, bannerCongregate):
6850 kshitij.so 2621
    """
8579 kshitij.so 2622
    Banner Related
2623
 
6850 kshitij.so 2624
    Parameters:
8590 kshitij.so 2625
     - bannerCongregate
6850 kshitij.so 2626
    """
8590 kshitij.so 2627
    self.send_addBanner(bannerCongregate)
10097 kshitij.so 2628
    return self.recv_addBanner()
6850 kshitij.so 2629
 
8590 kshitij.so 2630
  def send_addBanner(self, bannerCongregate):
6850 kshitij.so 2631
    self._oprot.writeMessageBegin('addBanner', TMessageType.CALL, self._seqid)
2632
    args = addBanner_args()
8590 kshitij.so 2633
    args.bannerCongregate = bannerCongregate
6850 kshitij.so 2634
    args.write(self._oprot)
2635
    self._oprot.writeMessageEnd()
2636
    self._oprot.trans.flush()
2637
 
2638
  def recv_addBanner(self, ):
2639
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2640
    if mtype == TMessageType.EXCEPTION:
2641
      x = TApplicationException()
2642
      x.read(self._iprot)
2643
      self._iprot.readMessageEnd()
2644
      raise x
2645
    result = addBanner_result()
2646
    result.read(self._iprot)
2647
    self._iprot.readMessageEnd()
10097 kshitij.so 2648
    if result.success is not None:
2649
      return result.success
2650
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBanner failed: unknown result");
6850 kshitij.so 2651
 
8579 kshitij.so 2652
  def updateBanner(self, banner):
2653
    """
2654
    Parameters:
2655
     - banner
2656
    """
2657
    self.send_updateBanner(banner)
2658
    return self.recv_updateBanner()
2659
 
2660
  def send_updateBanner(self, banner):
2661
    self._oprot.writeMessageBegin('updateBanner', TMessageType.CALL, self._seqid)
2662
    args = updateBanner_args()
2663
    args.banner = banner
2664
    args.write(self._oprot)
2665
    self._oprot.writeMessageEnd()
2666
    self._oprot.trans.flush()
2667
 
2668
  def recv_updateBanner(self, ):
2669
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2670
    if mtype == TMessageType.EXCEPTION:
2671
      x = TApplicationException()
2672
      x.read(self._iprot)
2673
      self._iprot.readMessageEnd()
2674
      raise x
2675
    result = updateBanner_result()
2676
    result.read(self._iprot)
2677
    self._iprot.readMessageEnd()
2678
    if result.success is not None:
2679
      return result.success
2680
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBanner failed: unknown result");
2681
 
6850 kshitij.so 2682
  def getAllBanners(self, ):
2683
    self.send_getAllBanners()
2684
    return self.recv_getAllBanners()
2685
 
2686
  def send_getAllBanners(self, ):
2687
    self._oprot.writeMessageBegin('getAllBanners', TMessageType.CALL, self._seqid)
2688
    args = getAllBanners_args()
2689
    args.write(self._oprot)
2690
    self._oprot.writeMessageEnd()
2691
    self._oprot.trans.flush()
2692
 
2693
  def recv_getAllBanners(self, ):
2694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2695
    if mtype == TMessageType.EXCEPTION:
2696
      x = TApplicationException()
2697
      x.read(self._iprot)
2698
      self._iprot.readMessageEnd()
2699
      raise x
2700
    result = getAllBanners_result()
2701
    result.read(self._iprot)
2702
    self._iprot.readMessageEnd()
2703
    if result.success is not None:
2704
      return result.success
2705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBanners failed: unknown result");
2706
 
9155 kshitij.so 2707
  def deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2708
    """
2709
    Parameters:
2710
     - bannerName
9155 kshitij.so 2711
     - bannerType
6850 kshitij.so 2712
    """
9155 kshitij.so 2713
    self.send_deleteBanner(bannerName, bannerType)
6850 kshitij.so 2714
    return self.recv_deleteBanner()
2715
 
9155 kshitij.so 2716
  def send_deleteBanner(self, bannerName, bannerType):
6850 kshitij.so 2717
    self._oprot.writeMessageBegin('deleteBanner', TMessageType.CALL, self._seqid)
2718
    args = deleteBanner_args()
2719
    args.bannerName = bannerName
9155 kshitij.so 2720
    args.bannerType = bannerType
6850 kshitij.so 2721
    args.write(self._oprot)
2722
    self._oprot.writeMessageEnd()
2723
    self._oprot.trans.flush()
2724
 
2725
  def recv_deleteBanner(self, ):
2726
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2727
    if mtype == TMessageType.EXCEPTION:
2728
      x = TApplicationException()
2729
      x.read(self._iprot)
2730
      self._iprot.readMessageEnd()
2731
      raise x
2732
    result = deleteBanner_result()
2733
    result.read(self._iprot)
2734
    self._iprot.readMessageEnd()
2735
    if result.success is not None:
2736
      return result.success
2737
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBanner failed: unknown result");
2738
 
9155 kshitij.so 2739
  def getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2740
    """
2741
    Parameters:
2742
     - bannerName
9155 kshitij.so 2743
     - bannerType
6850 kshitij.so 2744
    """
9155 kshitij.so 2745
    self.send_getBannerDetails(bannerName, bannerType)
6850 kshitij.so 2746
    return self.recv_getBannerDetails()
2747
 
9155 kshitij.so 2748
  def send_getBannerDetails(self, bannerName, bannerType):
6850 kshitij.so 2749
    self._oprot.writeMessageBegin('getBannerDetails', TMessageType.CALL, self._seqid)
2750
    args = getBannerDetails_args()
2751
    args.bannerName = bannerName
9155 kshitij.so 2752
    args.bannerType = bannerType
6850 kshitij.so 2753
    args.write(self._oprot)
2754
    self._oprot.writeMessageEnd()
2755
    self._oprot.trans.flush()
2756
 
2757
  def recv_getBannerDetails(self, ):
2758
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2759
    if mtype == TMessageType.EXCEPTION:
2760
      x = TApplicationException()
2761
      x.read(self._iprot)
2762
      self._iprot.readMessageEnd()
2763
      raise x
2764
    result = getBannerDetails_result()
2765
    result.read(self._iprot)
2766
    self._iprot.readMessageEnd()
2767
    if result.success is not None:
2768
      return result.success
2769
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerDetails failed: unknown result");
2770
 
2771
  def getActiveBanners(self, ):
2772
    self.send_getActiveBanners()
2773
    return self.recv_getActiveBanners()
2774
 
2775
  def send_getActiveBanners(self, ):
2776
    self._oprot.writeMessageBegin('getActiveBanners', TMessageType.CALL, self._seqid)
2777
    args = getActiveBanners_args()
2778
    args.write(self._oprot)
2779
    self._oprot.writeMessageEnd()
2780
    self._oprot.trans.flush()
2781
 
2782
  def recv_getActiveBanners(self, ):
2783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2784
    if mtype == TMessageType.EXCEPTION:
2785
      x = TApplicationException()
2786
      x.read(self._iprot)
2787
      self._iprot.readMessageEnd()
2788
      raise x
2789
    result = getActiveBanners_result()
2790
    result.read(self._iprot)
2791
    self._iprot.readMessageEnd()
2792
    if result.success is not None:
2793
      return result.success
2794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBanners failed: unknown result");
2795
 
8579 kshitij.so 2796
  def addBannerMap(self, bannerMaps):
6849 kshitij.so 2797
    """
2798
    Parameters:
8579 kshitij.so 2799
     - bannerMaps
6849 kshitij.so 2800
    """
8579 kshitij.so 2801
    self.send_addBannerMap(bannerMaps)
6849 kshitij.so 2802
    return self.recv_addBannerMap()
2803
 
8579 kshitij.so 2804
  def send_addBannerMap(self, bannerMaps):
6849 kshitij.so 2805
    self._oprot.writeMessageBegin('addBannerMap', TMessageType.CALL, self._seqid)
2806
    args = addBannerMap_args()
8579 kshitij.so 2807
    args.bannerMaps = bannerMaps
6849 kshitij.so 2808
    args.write(self._oprot)
2809
    self._oprot.writeMessageEnd()
2810
    self._oprot.trans.flush()
2811
 
2812
  def recv_addBannerMap(self, ):
2813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2814
    if mtype == TMessageType.EXCEPTION:
2815
      x = TApplicationException()
2816
      x.read(self._iprot)
2817
      self._iprot.readMessageEnd()
2818
      raise x
2819
    result = addBannerMap_result()
2820
    result.read(self._iprot)
2821
    self._iprot.readMessageEnd()
2822
    if result.success is not None:
2823
      return result.success
2824
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBannerMap failed: unknown result");
2825
 
8579 kshitij.so 2826
  def updateBannerMap(self, bannerMap):
2827
    """
2828
    Parameters:
2829
     - bannerMap
2830
    """
2831
    self.send_updateBannerMap(bannerMap)
2832
    return self.recv_updateBannerMap()
2833
 
2834
  def send_updateBannerMap(self, bannerMap):
2835
    self._oprot.writeMessageBegin('updateBannerMap', TMessageType.CALL, self._seqid)
2836
    args = updateBannerMap_args()
2837
    args.bannerMap = bannerMap
2838
    args.write(self._oprot)
2839
    self._oprot.writeMessageEnd()
2840
    self._oprot.trans.flush()
2841
 
2842
  def recv_updateBannerMap(self, ):
2843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2844
    if mtype == TMessageType.EXCEPTION:
2845
      x = TApplicationException()
2846
      x.read(self._iprot)
2847
      self._iprot.readMessageEnd()
2848
      raise x
2849
    result = updateBannerMap_result()
2850
    result.read(self._iprot)
2851
    self._iprot.readMessageEnd()
2852
    if result.success is not None:
2853
      return result.success
2854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateBannerMap failed: unknown result");
2855
 
6849 kshitij.so 2856
  def deleteBannerMap(self, bannerName):
2857
    """
2858
    Parameters:
2859
     - bannerName
2860
    """
2861
    self.send_deleteBannerMap(bannerName)
2862
    return self.recv_deleteBannerMap()
2863
 
2864
  def send_deleteBannerMap(self, bannerName):
2865
    self._oprot.writeMessageBegin('deleteBannerMap', TMessageType.CALL, self._seqid)
2866
    args = deleteBannerMap_args()
2867
    args.bannerName = bannerName
2868
    args.write(self._oprot)
2869
    self._oprot.writeMessageEnd()
2870
    self._oprot.trans.flush()
2871
 
2872
  def recv_deleteBannerMap(self, ):
2873
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2874
    if mtype == TMessageType.EXCEPTION:
2875
      x = TApplicationException()
2876
      x.read(self._iprot)
2877
      self._iprot.readMessageEnd()
2878
      raise x
2879
    result = deleteBannerMap_result()
2880
    result.read(self._iprot)
2881
    self._iprot.readMessageEnd()
2882
    if result.success is not None:
2883
      return result.success
2884
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteBannerMap failed: unknown result");
2885
 
9155 kshitij.so 2886
  def getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2887
    """
2888
    Parameters:
2889
     - bannerName
9155 kshitij.so 2890
     - bannerType
6849 kshitij.so 2891
    """
9155 kshitij.so 2892
    self.send_getBannerMapDetails(bannerName, bannerType)
6849 kshitij.so 2893
    return self.recv_getBannerMapDetails()
2894
 
9155 kshitij.so 2895
  def send_getBannerMapDetails(self, bannerName, bannerType):
6849 kshitij.so 2896
    self._oprot.writeMessageBegin('getBannerMapDetails', TMessageType.CALL, self._seqid)
2897
    args = getBannerMapDetails_args()
2898
    args.bannerName = bannerName
9155 kshitij.so 2899
    args.bannerType = bannerType
6849 kshitij.so 2900
    args.write(self._oprot)
2901
    self._oprot.writeMessageEnd()
2902
    self._oprot.trans.flush()
2903
 
2904
  def recv_getBannerMapDetails(self, ):
2905
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2906
    if mtype == TMessageType.EXCEPTION:
2907
      x = TApplicationException()
2908
      x.read(self._iprot)
2909
      self._iprot.readMessageEnd()
2910
      raise x
2911
    result = getBannerMapDetails_result()
2912
    result.read(self._iprot)
2913
    self._iprot.readMessageEnd()
2914
    if result.success is not None:
2915
      return result.success
2916
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBannerMapDetails failed: unknown result");
2917
 
8579 kshitij.so 2918
  def addBannerUri(self, bannerUriMappings):
2919
    """
2920
    Parameters:
2921
     - bannerUriMappings
2922
    """
2923
    self.send_addBannerUri(bannerUriMappings)
2924
    self.recv_addBannerUri()
2925
 
2926
  def send_addBannerUri(self, bannerUriMappings):
2927
    self._oprot.writeMessageBegin('addBannerUri', TMessageType.CALL, self._seqid)
2928
    args = addBannerUri_args()
2929
    args.bannerUriMappings = bannerUriMappings
2930
    args.write(self._oprot)
2931
    self._oprot.writeMessageEnd()
2932
    self._oprot.trans.flush()
2933
 
2934
  def recv_addBannerUri(self, ):
2935
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2936
    if mtype == TMessageType.EXCEPTION:
2937
      x = TApplicationException()
2938
      x.read(self._iprot)
2939
      self._iprot.readMessageEnd()
2940
      raise x
2941
    result = addBannerUri_result()
2942
    result.read(self._iprot)
2943
    self._iprot.readMessageEnd()
2944
    return
2945
 
9155 kshitij.so 2946
  def getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2947
    """
2948
    Parameters:
2949
     - bannerName
9155 kshitij.so 2950
     - bannerType
8579 kshitij.so 2951
    """
9155 kshitij.so 2952
    self.send_getUriMapping(bannerName, bannerType)
8579 kshitij.so 2953
    return self.recv_getUriMapping()
2954
 
9155 kshitij.so 2955
  def send_getUriMapping(self, bannerName, bannerType):
8579 kshitij.so 2956
    self._oprot.writeMessageBegin('getUriMapping', TMessageType.CALL, self._seqid)
2957
    args = getUriMapping_args()
2958
    args.bannerName = bannerName
9155 kshitij.so 2959
    args.bannerType = bannerType
8579 kshitij.so 2960
    args.write(self._oprot)
2961
    self._oprot.writeMessageEnd()
2962
    self._oprot.trans.flush()
2963
 
2964
  def recv_getUriMapping(self, ):
2965
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2966
    if mtype == TMessageType.EXCEPTION:
2967
      x = TApplicationException()
2968
      x.read(self._iprot)
2969
      self._iprot.readMessageEnd()
2970
      raise x
2971
    result = getUriMapping_result()
2972
    result.read(self._iprot)
2973
    self._iprot.readMessageEnd()
2974
    if result.success is not None:
2975
      return result.success
2976
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUriMapping failed: unknown result");
2977
 
2978
  def addCampaign(self, campaign):
2979
    """
2980
    Parameters:
2981
     - campaign
2982
    """
2983
    self.send_addCampaign(campaign)
2984
    self.recv_addCampaign()
2985
 
2986
  def send_addCampaign(self, campaign):
2987
    self._oprot.writeMessageBegin('addCampaign', TMessageType.CALL, self._seqid)
2988
    args = addCampaign_args()
2989
    args.campaign = campaign
2990
    args.write(self._oprot)
2991
    self._oprot.writeMessageEnd()
2992
    self._oprot.trans.flush()
2993
 
2994
  def recv_addCampaign(self, ):
2995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2996
    if mtype == TMessageType.EXCEPTION:
2997
      x = TApplicationException()
2998
      x.read(self._iprot)
2999
      self._iprot.readMessageEnd()
3000
      raise x
3001
    result = addCampaign_result()
3002
    result.read(self._iprot)
3003
    self._iprot.readMessageEnd()
3004
    return
3005
 
3006
  def getCampaigns(self, campaignName):
3007
    """
3008
    Parameters:
3009
     - campaignName
3010
    """
3011
    self.send_getCampaigns(campaignName)
3012
    return self.recv_getCampaigns()
3013
 
3014
  def send_getCampaigns(self, campaignName):
3015
    self._oprot.writeMessageBegin('getCampaigns', TMessageType.CALL, self._seqid)
3016
    args = getCampaigns_args()
3017
    args.campaignName = campaignName
3018
    args.write(self._oprot)
3019
    self._oprot.writeMessageEnd()
3020
    self._oprot.trans.flush()
3021
 
3022
  def recv_getCampaigns(self, ):
3023
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3024
    if mtype == TMessageType.EXCEPTION:
3025
      x = TApplicationException()
3026
      x.read(self._iprot)
3027
      self._iprot.readMessageEnd()
3028
      raise x
3029
    result = getCampaigns_result()
3030
    result.read(self._iprot)
3031
    self._iprot.readMessageEnd()
3032
    if result.success is not None:
3033
      return result.success
3034
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCampaigns failed: unknown result");
3035
 
3036
  def deleteCampaign(self, campaignId):
3037
    """
3038
    Parameters:
3039
     - campaignId
3040
    """
3041
    self.send_deleteCampaign(campaignId)
3042
    self.recv_deleteCampaign()
3043
 
3044
  def send_deleteCampaign(self, campaignId):
3045
    self._oprot.writeMessageBegin('deleteCampaign', TMessageType.CALL, self._seqid)
3046
    args = deleteCampaign_args()
3047
    args.campaignId = campaignId
3048
    args.write(self._oprot)
3049
    self._oprot.writeMessageEnd()
3050
    self._oprot.trans.flush()
3051
 
3052
  def recv_deleteCampaign(self, ):
3053
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3054
    if mtype == TMessageType.EXCEPTION:
3055
      x = TApplicationException()
3056
      x.read(self._iprot)
3057
      self._iprot.readMessageEnd()
3058
      raise x
3059
    result = deleteCampaign_result()
3060
    result.read(self._iprot)
3061
    self._iprot.readMessageEnd()
3062
    return
3063
 
3064
  def getAllCampaigns(self, ):
3065
    self.send_getAllCampaigns()
3066
    return self.recv_getAllCampaigns()
3067
 
3068
  def send_getAllCampaigns(self, ):
3069
    self._oprot.writeMessageBegin('getAllCampaigns', TMessageType.CALL, self._seqid)
3070
    args = getAllCampaigns_args()
3071
    args.write(self._oprot)
3072
    self._oprot.writeMessageEnd()
3073
    self._oprot.trans.flush()
3074
 
3075
  def recv_getAllCampaigns(self, ):
3076
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3077
    if mtype == TMessageType.EXCEPTION:
3078
      x = TApplicationException()
3079
      x.read(self._iprot)
3080
      self._iprot.readMessageEnd()
3081
      raise x
3082
    result = getAllCampaigns_result()
3083
    result.read(self._iprot)
3084
    self._iprot.readMessageEnd()
3085
    if result.success is not None:
3086
      return result.success
3087
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllCampaigns failed: unknown result");
3088
 
9155 kshitij.so 3089
  def getActiveBannersForMobileSite(self, ):
3090
    self.send_getActiveBannersForMobileSite()
3091
    return self.recv_getActiveBannersForMobileSite()
3092
 
3093
  def send_getActiveBannersForMobileSite(self, ):
3094
    self._oprot.writeMessageBegin('getActiveBannersForMobileSite', TMessageType.CALL, self._seqid)
3095
    args = getActiveBannersForMobileSite_args()
3096
    args.write(self._oprot)
3097
    self._oprot.writeMessageEnd()
3098
    self._oprot.trans.flush()
3099
 
3100
  def recv_getActiveBannersForMobileSite(self, ):
3101
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3102
    if mtype == TMessageType.EXCEPTION:
3103
      x = TApplicationException()
3104
      x.read(self._iprot)
3105
      self._iprot.readMessageEnd()
3106
      raise x
3107
    result = getActiveBannersForMobileSite_result()
3108
    result.read(self._iprot)
3109
    self._iprot.readMessageEnd()
3110
    if result.success is not None:
3111
      return result.success
3112
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getActiveBannersForMobileSite failed: unknown result");
3113
 
5944 mandeep.dh 3114
  def deleteSimilarItem(self, itemId, catalogItemId):
3115
    """
3116
    Delete similar item.
3117
 
3118
    Parameters:
3119
     - itemId
3120
     - catalogItemId
3121
    """
3122
    self.send_deleteSimilarItem(itemId, catalogItemId)
3123
    return self.recv_deleteSimilarItem()
3124
 
3125
  def send_deleteSimilarItem(self, itemId, catalogItemId):
3126
    self._oprot.writeMessageBegin('deleteSimilarItem', TMessageType.CALL, self._seqid)
3127
    args = deleteSimilarItem_args()
3128
    args.itemId = itemId
3129
    args.catalogItemId = catalogItemId
3130
    args.write(self._oprot)
3131
    self._oprot.writeMessageEnd()
3132
    self._oprot.trans.flush()
3133
 
3134
  def recv_deleteSimilarItem(self, ):
3135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3136
    if mtype == TMessageType.EXCEPTION:
3137
      x = TApplicationException()
3138
      x.read(self._iprot)
3139
      self._iprot.readMessageEnd()
3140
      raise x
3141
    result = deleteSimilarItem_result()
3142
    result.read(self._iprot)
3143
    self._iprot.readMessageEnd()
3144
    if result.success is not None:
3145
      return result.success
3146
    if result.cex is not None:
3147
      raise result.cex
3148
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteSimilarItem failed: unknown result");
3149
 
3150
  def checkSimilarItem(self, brand, modelNumber, modelName, color):
3151
    """
3152
    Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
3153
    If yes, returns the itemId else returns 0
3154
 
3155
    Parameters:
3156
     - brand
3157
     - modelNumber
3158
     - modelName
3159
     - color
3160
    """
3161
    self.send_checkSimilarItem(brand, modelNumber, modelName, color)
3162
    return self.recv_checkSimilarItem()
3163
 
3164
  def send_checkSimilarItem(self, brand, modelNumber, modelName, color):
3165
    self._oprot.writeMessageBegin('checkSimilarItem', TMessageType.CALL, self._seqid)
3166
    args = checkSimilarItem_args()
3167
    args.brand = brand
3168
    args.modelNumber = modelNumber
3169
    args.modelName = modelName
3170
    args.color = color
3171
    args.write(self._oprot)
3172
    self._oprot.writeMessageEnd()
3173
    self._oprot.trans.flush()
3174
 
3175
  def recv_checkSimilarItem(self, ):
3176
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3177
    if mtype == TMessageType.EXCEPTION:
3178
      x = TApplicationException()
3179
      x.read(self._iprot)
3180
      self._iprot.readMessageEnd()
3181
      raise x
3182
    result = checkSimilarItem_result()
3183
    result.read(self._iprot)
3184
    self._iprot.readMessageEnd()
3185
    if result.success is not None:
3186
      return result.success
3187
    raise TApplicationException(TApplicationException.MISSING_RESULT, "checkSimilarItem failed: unknown result");
3188
 
3189
  def validateRiskyStatus(self, itemId):
3190
    """
3191
    Check wether item is risky and change status if inventory is not available for risky items
3192
 
3193
    Parameters:
3194
     - itemId
3195
    """
3196
    self.send_validateRiskyStatus(itemId)
3197
    self.recv_validateRiskyStatus()
3198
 
3199
  def send_validateRiskyStatus(self, itemId):
3200
    self._oprot.writeMessageBegin('validateRiskyStatus', TMessageType.CALL, self._seqid)
3201
    args = validateRiskyStatus_args()
3202
    args.itemId = itemId
3203
    args.write(self._oprot)
3204
    self._oprot.writeMessageEnd()
3205
    self._oprot.trans.flush()
3206
 
3207
  def recv_validateRiskyStatus(self, ):
3208
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3209
    if mtype == TMessageType.EXCEPTION:
3210
      x = TApplicationException()
3211
      x.read(self._iprot)
3212
      self._iprot.readMessageEnd()
3213
      raise x
3214
    result = validateRiskyStatus_result()
3215
    result.read(self._iprot)
3216
    self._iprot.readMessageEnd()
3217
    return
3218
 
3219
  def changeItemRiskyFlag(self, itemId, risky):
3220
    """
3221
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
3222
 
3223
    Parameters:
3224
     - itemId
3225
     - risky
3226
    """
3227
    self.send_changeItemRiskyFlag(itemId, risky)
3228
    self.recv_changeItemRiskyFlag()
3229
 
3230
  def send_changeItemRiskyFlag(self, itemId, risky):
3231
    self._oprot.writeMessageBegin('changeItemRiskyFlag', TMessageType.CALL, self._seqid)
3232
    args = changeItemRiskyFlag_args()
3233
    args.itemId = itemId
3234
    args.risky = risky
3235
    args.write(self._oprot)
3236
    self._oprot.writeMessageEnd()
3237
    self._oprot.trans.flush()
3238
 
3239
  def recv_changeItemRiskyFlag(self, ):
3240
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3241
    if mtype == TMessageType.EXCEPTION:
3242
      x = TApplicationException()
3243
      x.read(self._iprot)
3244
      self._iprot.readMessageEnd()
3245
      raise x
3246
    result = changeItemRiskyFlag_result()
3247
    result.read(self._iprot)
3248
    self._iprot.readMessageEnd()
3249
    return
3250
 
3251
  def getItemsByRiskyFlag(self, ):
3252
    """
3253
    Returns list of items marked as risky.
3254
    """
3255
    self.send_getItemsByRiskyFlag()
3256
    return self.recv_getItemsByRiskyFlag()
3257
 
3258
  def send_getItemsByRiskyFlag(self, ):
3259
    self._oprot.writeMessageBegin('getItemsByRiskyFlag', TMessageType.CALL, self._seqid)
3260
    args = getItemsByRiskyFlag_args()
3261
    args.write(self._oprot)
3262
    self._oprot.writeMessageEnd()
3263
    self._oprot.trans.flush()
3264
 
3265
  def recv_getItemsByRiskyFlag(self, ):
3266
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3267
    if mtype == TMessageType.EXCEPTION:
3268
      x = TApplicationException()
3269
      x.read(self._iprot)
3270
      self._iprot.readMessageEnd()
3271
      raise x
3272
    result = getItemsByRiskyFlag_result()
3273
    result.read(self._iprot)
3274
    self._iprot.readMessageEnd()
3275
    if result.success is not None:
3276
      return result.success
3277
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsByRiskyFlag failed: unknown result");
3278
 
3279
  def getItemsForMasterSheet(self, category, brand):
3280
    """
3281
    Returns list of items with any status except PHASED_OUT and filtered by category, brand.
3282
 
3283
    Parameters:
3284
     - category
3285
     - brand
3286
    """
3287
    self.send_getItemsForMasterSheet(category, brand)
3288
    return self.recv_getItemsForMasterSheet()
3289
 
3290
  def send_getItemsForMasterSheet(self, category, brand):
3291
    self._oprot.writeMessageBegin('getItemsForMasterSheet', TMessageType.CALL, self._seqid)
3292
    args = getItemsForMasterSheet_args()
3293
    args.category = category
3294
    args.brand = brand
3295
    args.write(self._oprot)
3296
    self._oprot.writeMessageEnd()
3297
    self._oprot.trans.flush()
3298
 
3299
  def recv_getItemsForMasterSheet(self, ):
3300
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3301
    if mtype == TMessageType.EXCEPTION:
3302
      x = TApplicationException()
3303
      x.read(self._iprot)
3304
      self._iprot.readMessageEnd()
3305
      raise x
3306
    result = getItemsForMasterSheet_result()
3307
    result.read(self._iprot)
3308
    self._iprot.readMessageEnd()
3309
    if result.success is not None:
3310
      return result.success
3311
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemsForMasterSheet failed: unknown result");
3312
 
3313
  def getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3314
    """
3315
    Returns list of catalog ids of items with same similarity index as of the given itemId
3316
 
3317
    Parameters:
3318
     - beginIndex
3319
     - totalItems
3320
     - itemId
3321
    """
3322
    self.send_getSimilarItemsCatalogIds(beginIndex, totalItems, itemId)
3323
    return self.recv_getSimilarItemsCatalogIds()
3324
 
3325
  def send_getSimilarItemsCatalogIds(self, beginIndex, totalItems, itemId):
3326
    self._oprot.writeMessageBegin('getSimilarItemsCatalogIds', TMessageType.CALL, self._seqid)
3327
    args = getSimilarItemsCatalogIds_args()
3328
    args.beginIndex = beginIndex
3329
    args.totalItems = totalItems
3330
    args.itemId = itemId
3331
    args.write(self._oprot)
3332
    self._oprot.writeMessageEnd()
3333
    self._oprot.trans.flush()
3334
 
3335
  def recv_getSimilarItemsCatalogIds(self, ):
3336
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3337
    if mtype == TMessageType.EXCEPTION:
3338
      x = TApplicationException()
3339
      x.read(self._iprot)
3340
      self._iprot.readMessageEnd()
3341
      raise x
3342
    result = getSimilarItemsCatalogIds_result()
3343
    result.read(self._iprot)
3344
    self._iprot.readMessageEnd()
3345
    if result.success is not None:
3346
      return result.success
3347
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSimilarItemsCatalogIds failed: unknown result");
3348
 
3349
  def addProductNotification(self, itemId, email):
3350
    """
3351
    Add user requests for out of stock items. Once user will ask for notify me an entry will
3352
 
3353
    Parameters:
3354
     - itemId
3355
     - email
3356
    """
3357
    self.send_addProductNotification(itemId, email)
3358
    return self.recv_addProductNotification()
3359
 
3360
  def send_addProductNotification(self, itemId, email):
3361
    self._oprot.writeMessageBegin('addProductNotification', TMessageType.CALL, self._seqid)
3362
    args = addProductNotification_args()
3363
    args.itemId = itemId
3364
    args.email = email
3365
    args.write(self._oprot)
3366
    self._oprot.writeMessageEnd()
3367
    self._oprot.trans.flush()
3368
 
3369
  def recv_addProductNotification(self, ):
3370
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3371
    if mtype == TMessageType.EXCEPTION:
3372
      x = TApplicationException()
3373
      x.read(self._iprot)
3374
      self._iprot.readMessageEnd()
3375
      raise x
3376
    result = addProductNotification_result()
3377
    result.read(self._iprot)
3378
    self._iprot.readMessageEnd()
3379
    if result.success is not None:
3380
      return result.success
3381
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductNotification failed: unknown result");
3382
 
3383
  def sendProductNotifications(self, ):
3384
    """
3385
    Send the product notifications to the users for items which has stock.
3386
    """
3387
    self.send_sendProductNotifications()
3388
    return self.recv_sendProductNotifications()
3389
 
3390
  def send_sendProductNotifications(self, ):
3391
    self._oprot.writeMessageBegin('sendProductNotifications', TMessageType.CALL, self._seqid)
3392
    args = sendProductNotifications_args()
3393
    args.write(self._oprot)
3394
    self._oprot.writeMessageEnd()
3395
    self._oprot.trans.flush()
3396
 
3397
  def recv_sendProductNotifications(self, ):
3398
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3399
    if mtype == TMessageType.EXCEPTION:
3400
      x = TApplicationException()
3401
      x.read(self._iprot)
3402
      self._iprot.readMessageEnd()
3403
      raise x
3404
    result = sendProductNotifications_result()
3405
    result.read(self._iprot)
3406
    self._iprot.readMessageEnd()
3407
    if result.success is not None:
3408
      return result.success
3409
    raise TApplicationException(TApplicationException.MISSING_RESULT, "sendProductNotifications failed: unknown result");
3410
 
3411
  def getAllBrandsByCategory(self, categoryId):
3412
    """
3413
    Returns list of brand names for a given category Id
3414
 
3415
    Parameters:
3416
     - categoryId
3417
    """
3418
    self.send_getAllBrandsByCategory(categoryId)
3419
    return self.recv_getAllBrandsByCategory()
3420
 
3421
  def send_getAllBrandsByCategory(self, categoryId):
3422
    self._oprot.writeMessageBegin('getAllBrandsByCategory', TMessageType.CALL, self._seqid)
3423
    args = getAllBrandsByCategory_args()
3424
    args.categoryId = categoryId
3425
    args.write(self._oprot)
3426
    self._oprot.writeMessageEnd()
3427
    self._oprot.trans.flush()
3428
 
3429
  def recv_getAllBrandsByCategory(self, ):
3430
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3431
    if mtype == TMessageType.EXCEPTION:
3432
      x = TApplicationException()
3433
      x.read(self._iprot)
3434
      self._iprot.readMessageEnd()
3435
      raise x
3436
    result = getAllBrandsByCategory_result()
3437
    result.read(self._iprot)
3438
    self._iprot.readMessageEnd()
3439
    if result.success is not None:
3440
      return result.success
3441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrandsByCategory failed: unknown result");
3442
 
3443
  def getAllBrands(self, ):
3444
    """
3445
    Returns list of brand names
3446
    """
3447
    self.send_getAllBrands()
3448
    return self.recv_getAllBrands()
3449
 
3450
  def send_getAllBrands(self, ):
3451
    self._oprot.writeMessageBegin('getAllBrands', TMessageType.CALL, self._seqid)
3452
    args = getAllBrands_args()
3453
    args.write(self._oprot)
3454
    self._oprot.writeMessageEnd()
3455
    self._oprot.trans.flush()
3456
 
3457
  def recv_getAllBrands(self, ):
3458
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3459
    if mtype == TMessageType.EXCEPTION:
3460
      x = TApplicationException()
3461
      x.read(self._iprot)
3462
      self._iprot.readMessageEnd()
3463
      raise x
3464
    result = getAllBrands_result()
3465
    result.read(self._iprot)
3466
    self._iprot.readMessageEnd()
3467
    if result.success is not None:
3468
      return result.success
3469
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllBrands failed: unknown result");
3470
 
3471
  def getAllSources(self, ):
3472
    """
3473
    Return list of all sources
3474
    """
3475
    self.send_getAllSources()
3476
    return self.recv_getAllSources()
3477
 
3478
  def send_getAllSources(self, ):
3479
    self._oprot.writeMessageBegin('getAllSources', TMessageType.CALL, self._seqid)
3480
    args = getAllSources_args()
3481
    args.write(self._oprot)
3482
    self._oprot.writeMessageEnd()
3483
    self._oprot.trans.flush()
3484
 
3485
  def recv_getAllSources(self, ):
3486
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3487
    if mtype == TMessageType.EXCEPTION:
3488
      x = TApplicationException()
3489
      x.read(self._iprot)
3490
      self._iprot.readMessageEnd()
3491
      raise x
3492
    result = getAllSources_result()
3493
    result.read(self._iprot)
3494
    self._iprot.readMessageEnd()
3495
    if result.success is not None:
3496
      return result.success
3497
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSources failed: unknown result");
3498
 
3499
  def getItemPricingBySource(self, itemId, sourceId):
3500
    """
3501
    Returns the pricing information of an item. If no information is found, exception will be thrown.
3502
 
3503
    Parameters:
3504
     - itemId
3505
     - sourceId
3506
    """
3507
    self.send_getItemPricingBySource(itemId, sourceId)
3508
    return self.recv_getItemPricingBySource()
3509
 
3510
  def send_getItemPricingBySource(self, itemId, sourceId):
3511
    self._oprot.writeMessageBegin('getItemPricingBySource', TMessageType.CALL, self._seqid)
3512
    args = getItemPricingBySource_args()
3513
    args.itemId = itemId
3514
    args.sourceId = sourceId
3515
    args.write(self._oprot)
3516
    self._oprot.writeMessageEnd()
3517
    self._oprot.trans.flush()
3518
 
3519
  def recv_getItemPricingBySource(self, ):
3520
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3521
    if mtype == TMessageType.EXCEPTION:
3522
      x = TApplicationException()
3523
      x.read(self._iprot)
3524
      self._iprot.readMessageEnd()
3525
      raise x
3526
    result = getItemPricingBySource_result()
3527
    result.read(self._iprot)
3528
    self._iprot.readMessageEnd()
3529
    if result.success is not None:
3530
      return result.success
3531
    if result.cex is not None:
3532
      raise result.cex
3533
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemPricingBySource failed: unknown result");
3534
 
3535
  def addSourceItemPricing(self, sourceItemPricing):
3536
    """
3537
    Adds prices to be displayed corresponding to the item if user comes from a source.
3538
    If item is not found or source is not found, it will throw exception.
3539
 
3540
    Parameters:
3541
     - sourceItemPricing
3542
    """
3543
    self.send_addSourceItemPricing(sourceItemPricing)
3544
    self.recv_addSourceItemPricing()
3545
 
3546
  def send_addSourceItemPricing(self, sourceItemPricing):
3547
    self._oprot.writeMessageBegin('addSourceItemPricing', TMessageType.CALL, self._seqid)
3548
    args = addSourceItemPricing_args()
3549
    args.sourceItemPricing = sourceItemPricing
3550
    args.write(self._oprot)
3551
    self._oprot.writeMessageEnd()
3552
    self._oprot.trans.flush()
3553
 
3554
  def recv_addSourceItemPricing(self, ):
3555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3556
    if mtype == TMessageType.EXCEPTION:
3557
      x = TApplicationException()
3558
      x.read(self._iprot)
3559
      self._iprot.readMessageEnd()
3560
      raise x
3561
    result = addSourceItemPricing_result()
3562
    result.read(self._iprot)
3563
    self._iprot.readMessageEnd()
3564
    if result.cex is not None:
3565
      raise result.cex
3566
    return
3567
 
3568
  def getAllSourcePricing(self, itemId):
3569
    """
3570
    Returns the list of source pricing information of an item.
3571
    Raises an exception if item not found corresponding to itemId
3572
 
3573
    Parameters:
3574
     - itemId
3575
    """
3576
    self.send_getAllSourcePricing(itemId)
3577
    return self.recv_getAllSourcePricing()
3578
 
3579
  def send_getAllSourcePricing(self, itemId):
3580
    self._oprot.writeMessageBegin('getAllSourcePricing', TMessageType.CALL, self._seqid)
3581
    args = getAllSourcePricing_args()
3582
    args.itemId = itemId
3583
    args.write(self._oprot)
3584
    self._oprot.writeMessageEnd()
3585
    self._oprot.trans.flush()
3586
 
3587
  def recv_getAllSourcePricing(self, ):
3588
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3589
    if mtype == TMessageType.EXCEPTION:
3590
      x = TApplicationException()
3591
      x.read(self._iprot)
3592
      self._iprot.readMessageEnd()
3593
      raise x
3594
    result = getAllSourcePricing_result()
3595
    result.read(self._iprot)
3596
    self._iprot.readMessageEnd()
3597
    if result.success is not None:
3598
      return result.success
3599
    if result.cex is not None:
3600
      raise result.cex
3601
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSourcePricing failed: unknown result");
3602
 
3603
  def getItemForSource(self, item_id, sourceId):
3604
    """
3605
    Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
3606
 
3607
    Parameters:
3608
     - item_id
3609
     - sourceId
3610
    """
3611
    self.send_getItemForSource(item_id, sourceId)
3612
    return self.recv_getItemForSource()
3613
 
3614
  def send_getItemForSource(self, item_id, sourceId):
3615
    self._oprot.writeMessageBegin('getItemForSource', TMessageType.CALL, self._seqid)
3616
    args = getItemForSource_args()
3617
    args.item_id = item_id
3618
    args.sourceId = sourceId
3619
    args.write(self._oprot)
3620
    self._oprot.writeMessageEnd()
3621
    self._oprot.trans.flush()
3622
 
3623
  def recv_getItemForSource(self, ):
3624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3625
    if mtype == TMessageType.EXCEPTION:
3626
      x = TApplicationException()
3627
      x.read(self._iprot)
3628
      self._iprot.readMessageEnd()
3629
      raise x
3630
    result = getItemForSource_result()
3631
    result.read(self._iprot)
3632
    self._iprot.readMessageEnd()
3633
    if result.success is not None:
3634
      return result.success
3635
    if result.cex is not None:
3636
      raise result.cex
3637
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemForSource failed: unknown result");
3638
 
3639
  def searchItemsInRange(self, searchTerms, offset, limit):
3640
    """
3641
    Searches items matching the the given terms in the catalog and returns results within the specified range.
3642
 
3643
    Parameters:
3644
     - searchTerms
3645
     - offset
3646
     - limit
3647
    """
3648
    self.send_searchItemsInRange(searchTerms, offset, limit)
3649
    return self.recv_searchItemsInRange()
3650
 
3651
  def send_searchItemsInRange(self, searchTerms, offset, limit):
3652
    self._oprot.writeMessageBegin('searchItemsInRange', TMessageType.CALL, self._seqid)
3653
    args = searchItemsInRange_args()
3654
    args.searchTerms = searchTerms
3655
    args.offset = offset
3656
    args.limit = limit
3657
    args.write(self._oprot)
3658
    self._oprot.writeMessageEnd()
3659
    self._oprot.trans.flush()
3660
 
3661
  def recv_searchItemsInRange(self, ):
3662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3663
    if mtype == TMessageType.EXCEPTION:
3664
      x = TApplicationException()
3665
      x.read(self._iprot)
3666
      self._iprot.readMessageEnd()
3667
      raise x
3668
    result = searchItemsInRange_result()
3669
    result.read(self._iprot)
3670
    self._iprot.readMessageEnd()
3671
    if result.success is not None:
3672
      return result.success
3673
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchItemsInRange failed: unknown result");
3674
 
3675
  def getSearchResultCount(self, searchTerms):
3676
    """
3677
    Gets the count of search results for the given search terms so that the user can go through all the pages.
3678
 
3679
    Parameters:
3680
     - searchTerms
3681
    """
3682
    self.send_getSearchResultCount(searchTerms)
3683
    return self.recv_getSearchResultCount()
3684
 
3685
  def send_getSearchResultCount(self, searchTerms):
3686
    self._oprot.writeMessageBegin('getSearchResultCount', TMessageType.CALL, self._seqid)
3687
    args = getSearchResultCount_args()
3688
    args.searchTerms = searchTerms
3689
    args.write(self._oprot)
3690
    self._oprot.writeMessageEnd()
3691
    self._oprot.trans.flush()
3692
 
3693
  def recv_getSearchResultCount(self, ):
3694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3695
    if mtype == TMessageType.EXCEPTION:
3696
      x = TApplicationException()
3697
      x.read(self._iprot)
3698
      self._iprot.readMessageEnd()
3699
      raise x
3700
    result = getSearchResultCount_result()
3701
    result.read(self._iprot)
3702
    self._iprot.readMessageEnd()
3703
    if result.success is not None:
3704
      return result.success
3705
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSearchResultCount failed: unknown result");
3706
 
3707
  def getProductNotifications(self, startDateTime):
3708
    """
3709
    Returns a list of product notifications added after a supplied datetime
3710
 
3711
    Parameters:
3712
     - startDateTime
3713
    """
3714
    self.send_getProductNotifications(startDateTime)
3715
    return self.recv_getProductNotifications()
3716
 
3717
  def send_getProductNotifications(self, startDateTime):
3718
    self._oprot.writeMessageBegin('getProductNotifications', TMessageType.CALL, self._seqid)
3719
    args = getProductNotifications_args()
3720
    args.startDateTime = startDateTime
3721
    args.write(self._oprot)
3722
    self._oprot.writeMessageEnd()
3723
    self._oprot.trans.flush()
3724
 
3725
  def recv_getProductNotifications(self, ):
3726
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3727
    if mtype == TMessageType.EXCEPTION:
3728
      x = TApplicationException()
3729
      x.read(self._iprot)
3730
      self._iprot.readMessageEnd()
3731
      raise x
3732
    result = getProductNotifications_result()
3733
    result.read(self._iprot)
3734
    self._iprot.readMessageEnd()
3735
    if result.success is not None:
3736
      return result.success
3737
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotifications failed: unknown result");
3738
 
7897 amar.kumar 3739
  def getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3740
    """
3741
    Returns a list of count of requests for product notification against each item
3742
 
3743
    Parameters:
3744
     - startDateTime
7897 amar.kumar 3745
     - categoryId
5944 mandeep.dh 3746
    """
7897 amar.kumar 3747
    self.send_getProductNotificationRequestCount(startDateTime, categoryId)
5944 mandeep.dh 3748
    return self.recv_getProductNotificationRequestCount()
3749
 
7897 amar.kumar 3750
  def send_getProductNotificationRequestCount(self, startDateTime, categoryId):
5944 mandeep.dh 3751
    self._oprot.writeMessageBegin('getProductNotificationRequestCount', TMessageType.CALL, self._seqid)
3752
    args = getProductNotificationRequestCount_args()
3753
    args.startDateTime = startDateTime
7897 amar.kumar 3754
    args.categoryId = categoryId
5944 mandeep.dh 3755
    args.write(self._oprot)
3756
    self._oprot.writeMessageEnd()
3757
    self._oprot.trans.flush()
3758
 
3759
  def recv_getProductNotificationRequestCount(self, ):
3760
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3761
    if mtype == TMessageType.EXCEPTION:
3762
      x = TApplicationException()
3763
      x.read(self._iprot)
3764
      self._iprot.readMessageEnd()
3765
      raise x
3766
    result = getProductNotificationRequestCount_result()
3767
    result.read(self._iprot)
3768
    self._iprot.readMessageEnd()
3769
    if result.success is not None:
3770
      return result.success
3771
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductNotificationRequestCount failed: unknown result");
3772
 
3773
  def addAuthorizationLog(self, itemId, username, reason):
3774
    """
3775
    This method adds a log to authorize table with Item Id, username who authorized the change, reason.
3776
 
3777
    Parameters:
3778
     - itemId
3779
     - username
3780
     - reason
3781
    """
3782
    self.send_addAuthorizationLog(itemId, username, reason)
3783
    return self.recv_addAuthorizationLog()
3784
 
3785
  def send_addAuthorizationLog(self, itemId, username, reason):
3786
    self._oprot.writeMessageBegin('addAuthorizationLog', TMessageType.CALL, self._seqid)
3787
    args = addAuthorizationLog_args()
3788
    args.itemId = itemId
3789
    args.username = username
3790
    args.reason = reason
3791
    args.write(self._oprot)
3792
    self._oprot.writeMessageEnd()
3793
    self._oprot.trans.flush()
3794
 
3795
  def recv_addAuthorizationLog(self, ):
3796
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3797
    if mtype == TMessageType.EXCEPTION:
3798
      x = TApplicationException()
3799
      x.read(self._iprot)
3800
      self._iprot.readMessageEnd()
3801
      raise x
3802
    result = addAuthorizationLog_result()
3803
    result.read(self._iprot)
3804
    self._iprot.readMessageEnd()
3805
    if result.success is not None:
3806
      return result.success
3807
    if result.cex is not None:
3808
      raise result.cex
3809
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAuthorizationLog failed: unknown result");
3810
 
3811
  def addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3812
    """
3813
    Parameters:
3814
     - catalog_item_id
3815
     - voucherType
3816
     - voucherAmount
3817
    """
3818
    self.send_addupdateVoucherForItem(catalog_item_id, voucherType, voucherAmount)
3819
    return self.recv_addupdateVoucherForItem()
3820
 
3821
  def send_addupdateVoucherForItem(self, catalog_item_id, voucherType, voucherAmount):
3822
    self._oprot.writeMessageBegin('addupdateVoucherForItem', TMessageType.CALL, self._seqid)
3823
    args = addupdateVoucherForItem_args()
3824
    args.catalog_item_id = catalog_item_id
3825
    args.voucherType = voucherType
3826
    args.voucherAmount = voucherAmount
3827
    args.write(self._oprot)
3828
    self._oprot.writeMessageEnd()
3829
    self._oprot.trans.flush()
3830
 
3831
  def recv_addupdateVoucherForItem(self, ):
3832
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3833
    if mtype == TMessageType.EXCEPTION:
3834
      x = TApplicationException()
3835
      x.read(self._iprot)
3836
      self._iprot.readMessageEnd()
3837
      raise x
3838
    result = addupdateVoucherForItem_result()
3839
    result.read(self._iprot)
3840
    self._iprot.readMessageEnd()
3841
    if result.success is not None:
3842
      return result.success
3843
    if result.cex is not None:
3844
      raise result.cex
3845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addupdateVoucherForItem failed: unknown result");
3846
 
3847
  def deleteVoucherForItem(self, catalog_item_id, voucherType):
3848
    """
3849
    Parameters:
3850
     - catalog_item_id
3851
     - voucherType
3852
    """
3853
    self.send_deleteVoucherForItem(catalog_item_id, voucherType)
3854
    return self.recv_deleteVoucherForItem()
3855
 
3856
  def send_deleteVoucherForItem(self, catalog_item_id, voucherType):
3857
    self._oprot.writeMessageBegin('deleteVoucherForItem', TMessageType.CALL, self._seqid)
3858
    args = deleteVoucherForItem_args()
3859
    args.catalog_item_id = catalog_item_id
3860
    args.voucherType = voucherType
3861
    args.write(self._oprot)
3862
    self._oprot.writeMessageEnd()
3863
    self._oprot.trans.flush()
3864
 
3865
  def recv_deleteVoucherForItem(self, ):
3866
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3867
    if mtype == TMessageType.EXCEPTION:
3868
      x = TApplicationException()
3869
      x.read(self._iprot)
3870
      self._iprot.readMessageEnd()
3871
      raise x
3872
    result = deleteVoucherForItem_result()
3873
    result.read(self._iprot)
3874
    self._iprot.readMessageEnd()
3875
    if result.success is not None:
3876
      return result.success
3877
    if result.cex is not None:
3878
      raise result.cex
3879
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteVoucherForItem failed: unknown result");
3880
 
3881
  def getVoucherAmount(self, itemId, voucherType):
3882
    """
3883
    Parameters:
3884
     - itemId
3885
     - voucherType
3886
    """
3887
    self.send_getVoucherAmount(itemId, voucherType)
3888
    return self.recv_getVoucherAmount()
3889
 
3890
  def send_getVoucherAmount(self, itemId, voucherType):
3891
    self._oprot.writeMessageBegin('getVoucherAmount', TMessageType.CALL, self._seqid)
3892
    args = getVoucherAmount_args()
3893
    args.itemId = itemId
3894
    args.voucherType = voucherType
3895
    args.write(self._oprot)
3896
    self._oprot.writeMessageEnd()
3897
    self._oprot.trans.flush()
3898
 
3899
  def recv_getVoucherAmount(self, ):
3900
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3901
    if mtype == TMessageType.EXCEPTION:
3902
      x = TApplicationException()
3903
      x.read(self._iprot)
3904
      self._iprot.readMessageEnd()
3905
      raise x
3906
    result = getVoucherAmount_result()
3907
    result.read(self._iprot)
3908
    self._iprot.readMessageEnd()
3909
    if result.success is not None:
3910
      return result.success
3911
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVoucherAmount failed: unknown result");
3912
 
3913
  def getAllItemVouchers(self, itemId):
3914
    """
3915
    Parameters:
3916
     - itemId
3917
    """
3918
    self.send_getAllItemVouchers(itemId)
3919
    return self.recv_getAllItemVouchers()
3920
 
3921
  def send_getAllItemVouchers(self, itemId):
3922
    self._oprot.writeMessageBegin('getAllItemVouchers', TMessageType.CALL, self._seqid)
3923
    args = getAllItemVouchers_args()
3924
    args.itemId = itemId
3925
    args.write(self._oprot)
3926
    self._oprot.writeMessageEnd()
3927
    self._oprot.trans.flush()
3928
 
3929
  def recv_getAllItemVouchers(self, ):
3930
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3931
    if mtype == TMessageType.EXCEPTION:
3932
      x = TApplicationException()
3933
      x.read(self._iprot)
3934
      self._iprot.readMessageEnd()
3935
      raise x
3936
    result = getAllItemVouchers_result()
3937
    result.read(self._iprot)
3938
    self._iprot.readMessageEnd()
3939
    if result.success is not None:
3940
      return result.success
3941
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemVouchers failed: unknown result");
3942
 
3943
  def isValidCatalogItemId(self, catalog_item_id):
3944
    """
3945
    Parameters:
3946
     - catalog_item_id
3947
    """
3948
    self.send_isValidCatalogItemId(catalog_item_id)
3949
    return self.recv_isValidCatalogItemId()
3950
 
3951
  def send_isValidCatalogItemId(self, catalog_item_id):
3952
    self._oprot.writeMessageBegin('isValidCatalogItemId', TMessageType.CALL, self._seqid)
3953
    args = isValidCatalogItemId_args()
3954
    args.catalog_item_id = catalog_item_id
3955
    args.write(self._oprot)
3956
    self._oprot.writeMessageEnd()
3957
    self._oprot.trans.flush()
3958
 
3959
  def recv_isValidCatalogItemId(self, ):
3960
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3961
    if mtype == TMessageType.EXCEPTION:
3962
      x = TApplicationException()
3963
      x.read(self._iprot)
3964
      self._iprot.readMessageEnd()
3965
      raise x
3966
    result = isValidCatalogItemId_result()
3967
    result.read(self._iprot)
3968
    self._iprot.readMessageEnd()
3969
    if result.success is not None:
3970
      return result.success
3971
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isValidCatalogItemId failed: unknown result");
3972
 
7330 amit.gupta 3973
  def getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3974
    """
3975
    Parameters:
3976
     - itemId
7330 amit.gupta 3977
     - stateId
6039 amit.gupta 3978
     - price
3979
    """
7330 amit.gupta 3980
    self.send_getVatPercentageForItem(itemId, stateId, price)
6039 amit.gupta 3981
    return self.recv_getVatPercentageForItem()
5944 mandeep.dh 3982
 
7330 amit.gupta 3983
  def send_getVatPercentageForItem(self, itemId, stateId, price):
6039 amit.gupta 3984
    self._oprot.writeMessageBegin('getVatPercentageForItem', TMessageType.CALL, self._seqid)
3985
    args = getVatPercentageForItem_args()
3986
    args.itemId = itemId
7330 amit.gupta 3987
    args.stateId = stateId
6039 amit.gupta 3988
    args.price = price
3989
    args.write(self._oprot)
3990
    self._oprot.writeMessageEnd()
3991
    self._oprot.trans.flush()
3992
 
3993
  def recv_getVatPercentageForItem(self, ):
3994
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3995
    if mtype == TMessageType.EXCEPTION:
3996
      x = TApplicationException()
3997
      x.read(self._iprot)
3998
      self._iprot.readMessageEnd()
3999
      raise x
4000
    result = getVatPercentageForItem_result()
4001
    result.read(self._iprot)
4002
    self._iprot.readMessageEnd()
4003
    if result.success is not None:
4004
      return result.success
7340 amit.gupta 4005
    if result.cex is not None:
4006
      raise result.cex
6039 amit.gupta 4007
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatPercentageForItem failed: unknown result");
4008
 
4009
  def getVatAmountForItem(self, itemId, price):
4010
    """
4011
    Parameters:
4012
     - itemId
4013
     - price
4014
    """
4015
    self.send_getVatAmountForItem(itemId, price)
4016
    return self.recv_getVatAmountForItem()
4017
 
4018
  def send_getVatAmountForItem(self, itemId, price):
4019
    self._oprot.writeMessageBegin('getVatAmountForItem', TMessageType.CALL, self._seqid)
4020
    args = getVatAmountForItem_args()
4021
    args.itemId = itemId
4022
    args.price = price
4023
    args.write(self._oprot)
4024
    self._oprot.writeMessageEnd()
4025
    self._oprot.trans.flush()
4026
 
4027
  def recv_getVatAmountForItem(self, ):
4028
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4029
    if mtype == TMessageType.EXCEPTION:
4030
      x = TApplicationException()
4031
      x.read(self._iprot)
4032
      self._iprot.readMessageEnd()
4033
      raise x
4034
    result = getVatAmountForItem_result()
4035
    result.read(self._iprot)
4036
    self._iprot.readMessageEnd()
4037
    if result.success is not None:
4038
      return result.success
4039
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getVatAmountForItem failed: unknown result");
4040
 
6531 vikram.rag 4041
  def getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4042
    """
4043
    Parameters:
4044
     - offset
4045
     - limit
4046
    """
4047
    self.send_getAllIgnoredInventoryUpdateItemsList(offset, limit)
4048
    return self.recv_getAllIgnoredInventoryUpdateItemsList()
6039 amit.gupta 4049
 
6531 vikram.rag 4050
  def send_getAllIgnoredInventoryUpdateItemsList(self, offset, limit):
4051
    self._oprot.writeMessageBegin('getAllIgnoredInventoryUpdateItemsList', TMessageType.CALL, self._seqid)
4052
    args = getAllIgnoredInventoryUpdateItemsList_args()
4053
    args.offset = offset
4054
    args.limit = limit
4055
    args.write(self._oprot)
4056
    self._oprot.writeMessageEnd()
4057
    self._oprot.trans.flush()
4058
 
4059
  def recv_getAllIgnoredInventoryUpdateItemsList(self, ):
4060
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4061
    if mtype == TMessageType.EXCEPTION:
4062
      x = TApplicationException()
4063
      x.read(self._iprot)
4064
      self._iprot.readMessageEnd()
4065
      raise x
4066
    result = getAllIgnoredInventoryUpdateItemsList_result()
4067
    result.read(self._iprot)
4068
    self._iprot.readMessageEnd()
4069
    if result.success is not None:
4070
      return result.success
4071
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllIgnoredInventoryUpdateItemsList failed: unknown result");
4072
 
6821 amar.kumar 4073
  def getAllAliveItems(self, ):
4074
    self.send_getAllAliveItems()
4075
    return self.recv_getAllAliveItems()
4076
 
4077
  def send_getAllAliveItems(self, ):
4078
    self._oprot.writeMessageBegin('getAllAliveItems', TMessageType.CALL, self._seqid)
4079
    args = getAllAliveItems_args()
4080
    args.write(self._oprot)
4081
    self._oprot.writeMessageEnd()
4082
    self._oprot.trans.flush()
4083
 
4084
  def recv_getAllAliveItems(self, ):
4085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4086
    if mtype == TMessageType.EXCEPTION:
4087
      x = TApplicationException()
4088
      x.read(self._iprot)
4089
      self._iprot.readMessageEnd()
4090
      raise x
4091
    result = getAllAliveItems_result()
4092
    result.read(self._iprot)
4093
    self._iprot.readMessageEnd()
4094
    if result.success is not None:
4095
      return result.success
4096
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAliveItems failed: unknown result");
4097
 
6921 anupam.sin 4098
  def getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4099
    """
4100
    This method returns the insurance amount needed to insure the given item for a given quantity.
6531 vikram.rag 4101
 
6805 anupam.sin 4102
    Parameters:
4103
     - itemId
6921 anupam.sin 4104
     - price
6805 anupam.sin 4105
     - insurerId
4106
     - quantity
4107
    """
6921 anupam.sin 4108
    self.send_getInsuranceAmount(itemId, price, insurerId, quantity)
6805 anupam.sin 4109
    return self.recv_getInsuranceAmount()
4110
 
6921 anupam.sin 4111
  def send_getInsuranceAmount(self, itemId, price, insurerId, quantity):
6805 anupam.sin 4112
    self._oprot.writeMessageBegin('getInsuranceAmount', TMessageType.CALL, self._seqid)
4113
    args = getInsuranceAmount_args()
4114
    args.itemId = itemId
6921 anupam.sin 4115
    args.price = price
6805 anupam.sin 4116
    args.insurerId = insurerId
4117
    args.quantity = quantity
4118
    args.write(self._oprot)
4119
    self._oprot.writeMessageEnd()
4120
    self._oprot.trans.flush()
4121
 
4122
  def recv_getInsuranceAmount(self, ):
4123
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4124
    if mtype == TMessageType.EXCEPTION:
4125
      x = TApplicationException()
4126
      x.read(self._iprot)
4127
      self._iprot.readMessageEnd()
4128
      raise x
4129
    result = getInsuranceAmount_result()
4130
    result.read(self._iprot)
4131
    self._iprot.readMessageEnd()
4132
    if result.success is not None:
4133
      return result.success
4134
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsuranceAmount failed: unknown result");
4135
 
4136
  def getInsurer(self, insurerId):
4137
    """
4138
    Parameters:
4139
     - insurerId
4140
    """
4141
    self.send_getInsurer(insurerId)
4142
    return self.recv_getInsurer()
4143
 
4144
  def send_getInsurer(self, insurerId):
4145
    self._oprot.writeMessageBegin('getInsurer', TMessageType.CALL, self._seqid)
4146
    args = getInsurer_args()
4147
    args.insurerId = insurerId
4148
    args.write(self._oprot)
4149
    self._oprot.writeMessageEnd()
4150
    self._oprot.trans.flush()
4151
 
4152
  def recv_getInsurer(self, ):
4153
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4154
    if mtype == TMessageType.EXCEPTION:
4155
      x = TApplicationException()
4156
      x.read(self._iprot)
4157
      self._iprot.readMessageEnd()
4158
      raise x
4159
    result = getInsurer_result()
4160
    result.read(self._iprot)
4161
    self._iprot.readMessageEnd()
4162
    if result.success is not None:
4163
      return result.success
4164
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInsurer failed: unknown result");
4165
 
6838 vikram.rag 4166
  def getAllInsurers(self, ):
4167
    self.send_getAllInsurers()
4168
    return self.recv_getAllInsurers()
6805 anupam.sin 4169
 
6838 vikram.rag 4170
  def send_getAllInsurers(self, ):
4171
    self._oprot.writeMessageBegin('getAllInsurers', TMessageType.CALL, self._seqid)
4172
    args = getAllInsurers_args()
4173
    args.write(self._oprot)
4174
    self._oprot.writeMessageEnd()
4175
    self._oprot.trans.flush()
4176
 
4177
  def recv_getAllInsurers(self, ):
4178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4179
    if mtype == TMessageType.EXCEPTION:
4180
      x = TApplicationException()
4181
      x.read(self._iprot)
4182
      self._iprot.readMessageEnd()
4183
      raise x
4184
    result = getAllInsurers_result()
4185
    result.read(self._iprot)
4186
    self._iprot.readMessageEnd()
4187
    if result.success is not None:
4188
      return result.success
4189
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllInsurers failed: unknown result");
4190
 
6962 rajveer 4191
  def updateInsuranceDeclaredAmount(self, insurerId, amount):
4192
    """
4193
    Parameters:
4194
     - insurerId
4195
     - amount
4196
    """
4197
    self.send_updateInsuranceDeclaredAmount(insurerId, amount)
4198
    self.recv_updateInsuranceDeclaredAmount()
6838 vikram.rag 4199
 
6962 rajveer 4200
  def send_updateInsuranceDeclaredAmount(self, insurerId, amount):
4201
    self._oprot.writeMessageBegin('updateInsuranceDeclaredAmount', TMessageType.CALL, self._seqid)
4202
    args = updateInsuranceDeclaredAmount_args()
4203
    args.insurerId = insurerId
4204
    args.amount = amount
4205
    args.write(self._oprot)
4206
    self._oprot.writeMessageEnd()
4207
    self._oprot.trans.flush()
4208
 
4209
  def recv_updateInsuranceDeclaredAmount(self, ):
4210
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4211
    if mtype == TMessageType.EXCEPTION:
4212
      x = TApplicationException()
4213
      x.read(self._iprot)
4214
      self._iprot.readMessageEnd()
4215
      raise x
4216
    result = updateInsuranceDeclaredAmount_result()
4217
    result.read(self._iprot)
4218
    self._iprot.readMessageEnd()
4219
    return
4220
 
7190 amar.kumar 4221
  def getFreebieForItem(self, itemId):
4222
    """
4223
    Parameters:
4224
     - itemId
4225
    """
4226
    self.send_getFreebieForItem(itemId)
4227
    return self.recv_getFreebieForItem()
6962 rajveer 4228
 
7190 amar.kumar 4229
  def send_getFreebieForItem(self, itemId):
4230
    self._oprot.writeMessageBegin('getFreebieForItem', TMessageType.CALL, self._seqid)
4231
    args = getFreebieForItem_args()
4232
    args.itemId = itemId
4233
    args.write(self._oprot)
4234
    self._oprot.writeMessageEnd()
4235
    self._oprot.trans.flush()
4236
 
4237
  def recv_getFreebieForItem(self, ):
4238
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4239
    if mtype == TMessageType.EXCEPTION:
4240
      x = TApplicationException()
4241
      x.read(self._iprot)
4242
      self._iprot.readMessageEnd()
4243
      raise x
4244
    result = getFreebieForItem_result()
4245
    result.read(self._iprot)
4246
    self._iprot.readMessageEnd()
4247
    if result.success is not None:
4248
      return result.success
4249
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFreebieForItem failed: unknown result");
4250
 
4251
  def addOrUpdateFreebieForItem(self, freebieItem):
4252
    """
4253
    Parameters:
4254
     - freebieItem
4255
    """
4256
    self.send_addOrUpdateFreebieForItem(freebieItem)
4257
    self.recv_addOrUpdateFreebieForItem()
4258
 
4259
  def send_addOrUpdateFreebieForItem(self, freebieItem):
4260
    self._oprot.writeMessageBegin('addOrUpdateFreebieForItem', TMessageType.CALL, self._seqid)
4261
    args = addOrUpdateFreebieForItem_args()
4262
    args.freebieItem = freebieItem
4263
    args.write(self._oprot)
4264
    self._oprot.writeMessageEnd()
4265
    self._oprot.trans.flush()
4266
 
4267
  def recv_addOrUpdateFreebieForItem(self, ):
4268
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4269
    if mtype == TMessageType.EXCEPTION:
4270
      x = TApplicationException()
4271
      x.read(self._iprot)
4272
      self._iprot.readMessageEnd()
4273
      raise x
4274
    result = addOrUpdateFreebieForItem_result()
4275
    result.read(self._iprot)
4276
    self._iprot.readMessageEnd()
4277
    return
4278
 
7272 amit.gupta 4279
  def addOrUpdateBrandInfo(self, brandInfo):
4280
    """
4281
    Parameters:
4282
     - brandInfo
4283
    """
4284
    self.send_addOrUpdateBrandInfo(brandInfo)
4285
    self.recv_addOrUpdateBrandInfo()
4286
 
4287
  def send_addOrUpdateBrandInfo(self, brandInfo):
4288
    self._oprot.writeMessageBegin('addOrUpdateBrandInfo', TMessageType.CALL, self._seqid)
4289
    args = addOrUpdateBrandInfo_args()
4290
    args.brandInfo = brandInfo
4291
    args.write(self._oprot)
4292
    self._oprot.writeMessageEnd()
4293
    self._oprot.trans.flush()
4294
 
4295
  def recv_addOrUpdateBrandInfo(self, ):
4296
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4297
    if mtype == TMessageType.EXCEPTION:
4298
      x = TApplicationException()
4299
      x.read(self._iprot)
4300
      self._iprot.readMessageEnd()
4301
      raise x
4302
    result = addOrUpdateBrandInfo_result()
4303
    result.read(self._iprot)
4304
    self._iprot.readMessageEnd()
4305
    return
4306
 
4307
  def getBrandInfo(self, ):
4308
    self.send_getBrandInfo()
4309
    return self.recv_getBrandInfo()
4310
 
4311
  def send_getBrandInfo(self, ):
4312
    self._oprot.writeMessageBegin('getBrandInfo', TMessageType.CALL, self._seqid)
4313
    args = getBrandInfo_args()
4314
    args.write(self._oprot)
4315
    self._oprot.writeMessageEnd()
4316
    self._oprot.trans.flush()
4317
 
4318
  def recv_getBrandInfo(self, ):
4319
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4320
    if mtype == TMessageType.EXCEPTION:
4321
      x = TApplicationException()
4322
      x.read(self._iprot)
4323
      self._iprot.readMessageEnd()
4324
      raise x
4325
    result = getBrandInfo_result()
4326
    result.read(self._iprot)
4327
    self._iprot.readMessageEnd()
4328
    if result.success is not None:
4329
      return result.success
4330
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBrandInfo failed: unknown result");
4331
 
7256 rajveer 4332
  def getStorePricing(self, itemId):
4333
    """
4334
    Parameters:
4335
     - itemId
4336
    """
4337
    self.send_getStorePricing(itemId)
4338
    return self.recv_getStorePricing()
7190 amar.kumar 4339
 
7256 rajveer 4340
  def send_getStorePricing(self, itemId):
4341
    self._oprot.writeMessageBegin('getStorePricing', TMessageType.CALL, self._seqid)
4342
    args = getStorePricing_args()
4343
    args.itemId = itemId
4344
    args.write(self._oprot)
4345
    self._oprot.writeMessageEnd()
4346
    self._oprot.trans.flush()
4347
 
4348
  def recv_getStorePricing(self, ):
4349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4350
    if mtype == TMessageType.EXCEPTION:
4351
      x = TApplicationException()
4352
      x.read(self._iprot)
4353
      self._iprot.readMessageEnd()
4354
      raise x
4355
    result = getStorePricing_result()
4356
    result.read(self._iprot)
4357
    self._iprot.readMessageEnd()
4358
    if result.success is not None:
4359
      return result.success
4360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricing failed: unknown result");
4361
 
7306 rajveer 4362
  def getStorePricings(self, itemIds):
4363
    """
4364
    Parameters:
4365
     - itemIds
4366
    """
4367
    self.send_getStorePricings(itemIds)
4368
    return self.recv_getStorePricings()
4369
 
4370
  def send_getStorePricings(self, itemIds):
4371
    self._oprot.writeMessageBegin('getStorePricings', TMessageType.CALL, self._seqid)
4372
    args = getStorePricings_args()
4373
    args.itemIds = itemIds
4374
    args.write(self._oprot)
4375
    self._oprot.writeMessageEnd()
4376
    self._oprot.trans.flush()
4377
 
4378
  def recv_getStorePricings(self, ):
4379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4380
    if mtype == TMessageType.EXCEPTION:
4381
      x = TApplicationException()
4382
      x.read(self._iprot)
4383
      self._iprot.readMessageEnd()
4384
      raise x
4385
    result = getStorePricings_result()
4386
    result.read(self._iprot)
4387
    self._iprot.readMessageEnd()
4388
    if result.success is not None:
4389
      return result.success
4390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
4391
 
7382 rajveer 4392
  def updateStorePricing(self, sp, allColors):
7265 rajveer 4393
    """
4394
    Parameters:
4395
     - sp
7382 rajveer 4396
     - allColors
7265 rajveer 4397
    """
7382 rajveer 4398
    self.send_updateStorePricing(sp, allColors)
7265 rajveer 4399
    self.recv_updateStorePricing()
7256 rajveer 4400
 
7382 rajveer 4401
  def send_updateStorePricing(self, sp, allColors):
7265 rajveer 4402
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
4403
    args = updateStorePricing_args()
4404
    args.sp = sp
7382 rajveer 4405
    args.allColors = allColors
7265 rajveer 4406
    args.write(self._oprot)
4407
    self._oprot.writeMessageEnd()
4408
    self._oprot.trans.flush()
4409
 
4410
  def recv_updateStorePricing(self, ):
4411
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4412
    if mtype == TMessageType.EXCEPTION:
4413
      x = TApplicationException()
4414
      x.read(self._iprot)
4415
      self._iprot.readMessageEnd()
4416
      raise x
4417
    result = updateStorePricing_result()
4418
    result.read(self._iprot)
4419
    self._iprot.readMessageEnd()
4420
    return
4421
 
7281 kshitij.so 4422
  def getAllAmazonListedItems(self, ):
4423
    self.send_getAllAmazonListedItems()
4424
    return self.recv_getAllAmazonListedItems()
7265 rajveer 4425
 
7281 kshitij.so 4426
  def send_getAllAmazonListedItems(self, ):
4427
    self._oprot.writeMessageBegin('getAllAmazonListedItems', TMessageType.CALL, self._seqid)
4428
    args = getAllAmazonListedItems_args()
4429
    args.write(self._oprot)
4430
    self._oprot.writeMessageEnd()
4431
    self._oprot.trans.flush()
4432
 
4433
  def recv_getAllAmazonListedItems(self, ):
4434
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4435
    if mtype == TMessageType.EXCEPTION:
4436
      x = TApplicationException()
4437
      x.read(self._iprot)
4438
      self._iprot.readMessageEnd()
4439
      raise x
4440
    result = getAllAmazonListedItems_result()
4441
    result.read(self._iprot)
4442
    self._iprot.readMessageEnd()
4443
    if result.success is not None:
4444
      return result.success
4445
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllAmazonListedItems failed: unknown result");
4446
 
8619 kshitij.so 4447
  def searchAmazonItems(self, searchTerm, offset, limit):
4448
    """
4449
    Parameters:
4450
     - searchTerm
4451
     - offset
4452
     - limit
4453
    """
4454
    self.send_searchAmazonItems(searchTerm, offset, limit)
4455
    return self.recv_searchAmazonItems()
4456
 
4457
  def send_searchAmazonItems(self, searchTerm, offset, limit):
4458
    self._oprot.writeMessageBegin('searchAmazonItems', TMessageType.CALL, self._seqid)
4459
    args = searchAmazonItems_args()
4460
    args.searchTerm = searchTerm
4461
    args.offset = offset
4462
    args.limit = limit
4463
    args.write(self._oprot)
4464
    self._oprot.writeMessageEnd()
4465
    self._oprot.trans.flush()
4466
 
4467
  def recv_searchAmazonItems(self, ):
4468
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4469
    if mtype == TMessageType.EXCEPTION:
4470
      x = TApplicationException()
4471
      x.read(self._iprot)
4472
      self._iprot.readMessageEnd()
4473
      raise x
4474
    result = searchAmazonItems_result()
4475
    result.read(self._iprot)
4476
    self._iprot.readMessageEnd()
4477
    if result.success is not None:
4478
      return result.success
4479
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchAmazonItems failed: unknown result");
4480
 
4481
  def getAmazonSearchResultCount(self, searchTerm):
4482
    """
4483
    Parameters:
4484
     - searchTerm
4485
    """
4486
    self.send_getAmazonSearchResultCount(searchTerm)
4487
    return self.recv_getAmazonSearchResultCount()
4488
 
4489
  def send_getAmazonSearchResultCount(self, searchTerm):
4490
    self._oprot.writeMessageBegin('getAmazonSearchResultCount', TMessageType.CALL, self._seqid)
4491
    args = getAmazonSearchResultCount_args()
4492
    args.searchTerm = searchTerm
4493
    args.write(self._oprot)
4494
    self._oprot.writeMessageEnd()
4495
    self._oprot.trans.flush()
4496
 
4497
  def recv_getAmazonSearchResultCount(self, ):
4498
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4499
    if mtype == TMessageType.EXCEPTION:
4500
      x = TApplicationException()
4501
      x.read(self._iprot)
4502
      self._iprot.readMessageEnd()
4503
      raise x
4504
    result = getAmazonSearchResultCount_result()
4505
    result.read(self._iprot)
4506
    self._iprot.readMessageEnd()
4507
    if result.success is not None:
4508
      return result.success
4509
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonSearchResultCount failed: unknown result");
4510
 
4511
  def getCountForAmazonlistedItems(self, ):
4512
    self.send_getCountForAmazonlistedItems()
4513
    return self.recv_getCountForAmazonlistedItems()
4514
 
4515
  def send_getCountForAmazonlistedItems(self, ):
4516
    self._oprot.writeMessageBegin('getCountForAmazonlistedItems', TMessageType.CALL, self._seqid)
4517
    args = getCountForAmazonlistedItems_args()
4518
    args.write(self._oprot)
4519
    self._oprot.writeMessageEnd()
4520
    self._oprot.trans.flush()
4521
 
4522
  def recv_getCountForAmazonlistedItems(self, ):
4523
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4524
    if mtype == TMessageType.EXCEPTION:
4525
      x = TApplicationException()
4526
      x.read(self._iprot)
4527
      self._iprot.readMessageEnd()
4528
      raise x
4529
    result = getCountForAmazonlistedItems_result()
4530
    result.read(self._iprot)
4531
    self._iprot.readMessageEnd()
4532
    if result.success is not None:
4533
      return result.success
4534
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForAmazonlistedItems failed: unknown result");
4535
 
7281 kshitij.so 4536
  def getAmazonItemDetails(self, itemId):
4537
    """
4538
    Parameters:
4539
     - itemId
4540
    """
4541
    self.send_getAmazonItemDetails(itemId)
4542
    return self.recv_getAmazonItemDetails()
4543
 
4544
  def send_getAmazonItemDetails(self, itemId):
4545
    self._oprot.writeMessageBegin('getAmazonItemDetails', TMessageType.CALL, self._seqid)
4546
    args = getAmazonItemDetails_args()
4547
    args.itemId = itemId
4548
    args.write(self._oprot)
4549
    self._oprot.writeMessageEnd()
4550
    self._oprot.trans.flush()
4551
 
4552
  def recv_getAmazonItemDetails(self, ):
4553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4554
    if mtype == TMessageType.EXCEPTION:
4555
      x = TApplicationException()
4556
      x.read(self._iprot)
4557
      self._iprot.readMessageEnd()
4558
      raise x
4559
    result = getAmazonItemDetails_result()
4560
    result.read(self._iprot)
4561
    self._iprot.readMessageEnd()
4562
    if result.success is not None:
4563
      return result.success
4564
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonItemDetails failed: unknown result");
4565
 
8168 kshitij.so 4566
  def updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4567
    """
4568
    Parameters:
8168 kshitij.so 4569
     - amazonlisted
7281 kshitij.so 4570
    """
8168 kshitij.so 4571
    self.send_updateAmazonItemDetails(amazonlisted)
7281 kshitij.so 4572
    self.recv_updateAmazonItemDetails()
4573
 
8168 kshitij.so 4574
  def send_updateAmazonItemDetails(self, amazonlisted):
7281 kshitij.so 4575
    self._oprot.writeMessageBegin('updateAmazonItemDetails', TMessageType.CALL, self._seqid)
4576
    args = updateAmazonItemDetails_args()
8168 kshitij.so 4577
    args.amazonlisted = amazonlisted
7281 kshitij.so 4578
    args.write(self._oprot)
4579
    self._oprot.writeMessageEnd()
4580
    self._oprot.trans.flush()
4581
 
4582
  def recv_updateAmazonItemDetails(self, ):
4583
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4584
    if mtype == TMessageType.EXCEPTION:
4585
      x = TApplicationException()
4586
      x.read(self._iprot)
4587
      self._iprot.readMessageEnd()
4588
      raise x
4589
    result = updateAmazonItemDetails_result()
4590
    result.read(self._iprot)
4591
    self._iprot.readMessageEnd()
4592
    return
4593
 
4594
  def addAmazonItem(self, amazonlisted):
4595
    """
4596
    Parameters:
4597
     - amazonlisted
4598
    """
4599
    self.send_addAmazonItem(amazonlisted)
4600
    self.recv_addAmazonItem()
4601
 
4602
  def send_addAmazonItem(self, amazonlisted):
4603
    self._oprot.writeMessageBegin('addAmazonItem', TMessageType.CALL, self._seqid)
4604
    args = addAmazonItem_args()
4605
    args.amazonlisted = amazonlisted
4606
    args.write(self._oprot)
4607
    self._oprot.writeMessageEnd()
4608
    self._oprot.trans.flush()
4609
 
4610
  def recv_addAmazonItem(self, ):
4611
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4612
    if mtype == TMessageType.EXCEPTION:
4613
      x = TApplicationException()
4614
      x.read(self._iprot)
4615
      self._iprot.readMessageEnd()
4616
      raise x
4617
    result = addAmazonItem_result()
4618
    result.read(self._iprot)
4619
    self._iprot.readMessageEnd()
4620
    return
4621
 
7291 vikram.rag 4622
  def getAsinItems(self, ):
4623
    self.send_getAsinItems()
4624
    return self.recv_getAsinItems()
7281 kshitij.so 4625
 
7291 vikram.rag 4626
  def send_getAsinItems(self, ):
4627
    self._oprot.writeMessageBegin('getAsinItems', TMessageType.CALL, self._seqid)
4628
    args = getAsinItems_args()
4629
    args.write(self._oprot)
4630
    self._oprot.writeMessageEnd()
4631
    self._oprot.trans.flush()
4632
 
4633
  def recv_getAsinItems(self, ):
4634
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4635
    if mtype == TMessageType.EXCEPTION:
4636
      x = TApplicationException()
4637
      x.read(self._iprot)
4638
      self._iprot.readMessageEnd()
4639
      raise x
4640
    result = getAsinItems_result()
4641
    result.read(self._iprot)
4642
    self._iprot.readMessageEnd()
4643
    if result.success is not None:
4644
      return result.success
4645
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAsinItems failed: unknown result");
4646
 
4647
  def getAllFbaListedItems(self, ):
4648
    self.send_getAllFbaListedItems()
4649
    return self.recv_getAllFbaListedItems()
4650
 
4651
  def send_getAllFbaListedItems(self, ):
4652
    self._oprot.writeMessageBegin('getAllFbaListedItems', TMessageType.CALL, self._seqid)
4653
    args = getAllFbaListedItems_args()
4654
    args.write(self._oprot)
4655
    self._oprot.writeMessageEnd()
4656
    self._oprot.trans.flush()
4657
 
4658
  def recv_getAllFbaListedItems(self, ):
4659
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4660
    if mtype == TMessageType.EXCEPTION:
4661
      x = TApplicationException()
4662
      x.read(self._iprot)
4663
      self._iprot.readMessageEnd()
4664
      raise x
4665
    result = getAllFbaListedItems_result()
4666
    result.read(self._iprot)
4667
    self._iprot.readMessageEnd()
4668
    if result.success is not None:
4669
      return result.success
4670
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbaListedItems failed: unknown result");
4671
 
4672
  def getAllNonFbaListedItems(self, ):
4673
    self.send_getAllNonFbaListedItems()
4674
    return self.recv_getAllNonFbaListedItems()
4675
 
4676
  def send_getAllNonFbaListedItems(self, ):
4677
    self._oprot.writeMessageBegin('getAllNonFbaListedItems', TMessageType.CALL, self._seqid)
4678
    args = getAllNonFbaListedItems_args()
4679
    args.write(self._oprot)
4680
    self._oprot.writeMessageEnd()
4681
    self._oprot.trans.flush()
4682
 
4683
  def recv_getAllNonFbaListedItems(self, ):
4684
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4685
    if mtype == TMessageType.EXCEPTION:
4686
      x = TApplicationException()
4687
      x.read(self._iprot)
4688
      self._iprot.readMessageEnd()
4689
      raise x
4690
    result = getAllNonFbaListedItems_result()
4691
    result.read(self._iprot)
4692
    self._iprot.readMessageEnd()
4693
    if result.success is not None:
4694
      return result.success
4695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllNonFbaListedItems failed: unknown result");
4696
 
7460 kshitij.so 4697
  def updateItemInventory(self, itemId, holdInventory, defaultInventory):
4698
    """
4699
    Parameters:
4700
     - itemId
4701
     - holdInventory
4702
     - defaultInventory
4703
    """
4704
    self.send_updateItemInventory(itemId, holdInventory, defaultInventory)
4705
    return self.recv_updateItemInventory()
7291 vikram.rag 4706
 
7460 kshitij.so 4707
  def send_updateItemInventory(self, itemId, holdInventory, defaultInventory):
4708
    self._oprot.writeMessageBegin('updateItemInventory', TMessageType.CALL, self._seqid)
4709
    args = updateItemInventory_args()
4710
    args.itemId = itemId
4711
    args.holdInventory = holdInventory
4712
    args.defaultInventory = defaultInventory
4713
    args.write(self._oprot)
4714
    self._oprot.writeMessageEnd()
4715
    self._oprot.trans.flush()
4716
 
4717
  def recv_updateItemInventory(self, ):
4718
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4719
    if mtype == TMessageType.EXCEPTION:
4720
      x = TApplicationException()
4721
      x.read(self._iprot)
4722
      self._iprot.readMessageEnd()
4723
      raise x
4724
    result = updateItemInventory_result()
4725
    result.read(self._iprot)
4726
    self._iprot.readMessageEnd()
4727
    if result.success is not None:
4728
      return result.success
4729
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemInventory failed: unknown result");
4730
 
7770 kshitij.so 4731
  def updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4732
    """
4733
    Parameters:
4734
     - type
4735
     - sku
4736
     - timestamp
4737
    """
4738
    self.send_updateTimestampForAmazonFeeds(type, sku, timestamp)
4739
    return self.recv_updateTimestampForAmazonFeeds()
7460 kshitij.so 4740
 
7770 kshitij.so 4741
  def send_updateTimestampForAmazonFeeds(self, type, sku, timestamp):
4742
    self._oprot.writeMessageBegin('updateTimestampForAmazonFeeds', TMessageType.CALL, self._seqid)
4743
    args = updateTimestampForAmazonFeeds_args()
4744
    args.type = type
4745
    args.sku = sku
4746
    args.timestamp = timestamp
4747
    args.write(self._oprot)
4748
    self._oprot.writeMessageEnd()
4749
    self._oprot.trans.flush()
4750
 
4751
  def recv_updateTimestampForAmazonFeeds(self, ):
4752
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4753
    if mtype == TMessageType.EXCEPTION:
4754
      x = TApplicationException()
4755
      x.read(self._iprot)
4756
      self._iprot.readMessageEnd()
4757
      raise x
4758
    result = updateTimestampForAmazonFeeds_result()
4759
    result.read(self._iprot)
4760
    self._iprot.readMessageEnd()
4761
    if result.success is not None:
4762
      return result.success
4763
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateTimestampForAmazonFeeds failed: unknown result");
4764
 
7897 amar.kumar 4765
  def getAllParentCategories(self, ):
4766
    self.send_getAllParentCategories()
4767
    return self.recv_getAllParentCategories()
7770 kshitij.so 4768
 
7897 amar.kumar 4769
  def send_getAllParentCategories(self, ):
4770
    self._oprot.writeMessageBegin('getAllParentCategories', TMessageType.CALL, self._seqid)
4771
    args = getAllParentCategories_args()
4772
    args.write(self._oprot)
4773
    self._oprot.writeMessageEnd()
4774
    self._oprot.trans.flush()
4775
 
4776
  def recv_getAllParentCategories(self, ):
4777
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4778
    if mtype == TMessageType.EXCEPTION:
4779
      x = TApplicationException()
4780
      x.read(self._iprot)
4781
      self._iprot.readMessageEnd()
4782
      raise x
4783
    result = getAllParentCategories_result()
4784
    result.read(self._iprot)
4785
    self._iprot.readMessageEnd()
4786
    if result.success is not None:
4787
      return result.success
4788
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
4789
 
7977 kshitij.so 4790
  def addPageViewEvent(self, pageViewEvents):
4791
    """
4792
    Parameters:
4793
     - pageViewEvents
4794
    """
4795
    self.send_addPageViewEvent(pageViewEvents)
4796
    self.recv_addPageViewEvent()
7897 amar.kumar 4797
 
7977 kshitij.so 4798
  def send_addPageViewEvent(self, pageViewEvents):
4799
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
4800
    args = addPageViewEvent_args()
4801
    args.pageViewEvents = pageViewEvents
4802
    args.write(self._oprot)
4803
    self._oprot.writeMessageEnd()
4804
    self._oprot.trans.flush()
4805
 
4806
  def recv_addPageViewEvent(self, ):
4807
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4808
    if mtype == TMessageType.EXCEPTION:
4809
      x = TApplicationException()
4810
      x.read(self._iprot)
4811
      self._iprot.readMessageEnd()
4812
      raise x
4813
    result = addPageViewEvent_result()
4814
    result.read(self._iprot)
4815
    self._iprot.readMessageEnd()
4816
    return
4817
 
4818
  def addCartEvent(self, cartEvents):
4819
    """
4820
    Parameters:
4821
     - cartEvents
4822
    """
4823
    self.send_addCartEvent(cartEvents)
4824
    self.recv_addCartEvent()
4825
 
4826
  def send_addCartEvent(self, cartEvents):
4827
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
4828
    args = addCartEvent_args()
4829
    args.cartEvents = cartEvents
4830
    args.write(self._oprot)
4831
    self._oprot.writeMessageEnd()
4832
    self._oprot.trans.flush()
4833
 
4834
  def recv_addCartEvent(self, ):
4835
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4836
    if mtype == TMessageType.EXCEPTION:
4837
      x = TApplicationException()
4838
      x.read(self._iprot)
4839
      self._iprot.readMessageEnd()
4840
      raise x
4841
    result = addCartEvent_result()
4842
    result.read(self._iprot)
4843
    self._iprot.readMessageEnd()
4844
    return
4845
 
8182 amar.kumar 4846
  def addEbayItem(self, ebayItem):
4847
    """
4848
    Parameters:
4849
     - ebayItem
4850
    """
4851
    self.send_addEbayItem(ebayItem)
4852
    self.recv_addEbayItem()
4853
 
4854
  def send_addEbayItem(self, ebayItem):
4855
    self._oprot.writeMessageBegin('addEbayItem', TMessageType.CALL, self._seqid)
4856
    args = addEbayItem_args()
4857
    args.ebayItem = ebayItem
4858
    args.write(self._oprot)
4859
    self._oprot.writeMessageEnd()
4860
    self._oprot.trans.flush()
4861
 
4862
  def recv_addEbayItem(self, ):
4863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4864
    if mtype == TMessageType.EXCEPTION:
4865
      x = TApplicationException()
4866
      x.read(self._iprot)
4867
      self._iprot.readMessageEnd()
4868
      raise x
4869
    result = addEbayItem_result()
4870
    result.read(self._iprot)
4871
    self._iprot.readMessageEnd()
4872
    return
4873
 
4874
  def getEbayItem(self, listingId):
4875
    """
4876
    Parameters:
4877
     - listingId
4878
    """
4879
    self.send_getEbayItem(listingId)
4880
    return self.recv_getEbayItem()
4881
 
4882
  def send_getEbayItem(self, listingId):
4883
    self._oprot.writeMessageBegin('getEbayItem', TMessageType.CALL, self._seqid)
4884
    args = getEbayItem_args()
4885
    args.listingId = listingId
4886
    args.write(self._oprot)
4887
    self._oprot.writeMessageEnd()
4888
    self._oprot.trans.flush()
4889
 
4890
  def recv_getEbayItem(self, ):
4891
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4892
    if mtype == TMessageType.EXCEPTION:
4893
      x = TApplicationException()
4894
      x.read(self._iprot)
4895
      self._iprot.readMessageEnd()
4896
      raise x
4897
    result = getEbayItem_result()
4898
    result.read(self._iprot)
4899
    self._iprot.readMessageEnd()
4900
    if result.success is not None:
4901
      return result.success
4902
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEbayItem failed: unknown result");
4903
 
4904
  def updateEbayItem(self, ebayItem):
4905
    """
4906
    Parameters:
4907
     - ebayItem
4908
    """
4909
    self.send_updateEbayItem(ebayItem)
4910
    self.recv_updateEbayItem()
4911
 
4912
  def send_updateEbayItem(self, ebayItem):
4913
    self._oprot.writeMessageBegin('updateEbayItem', TMessageType.CALL, self._seqid)
4914
    args = updateEbayItem_args()
4915
    args.ebayItem = ebayItem
4916
    args.write(self._oprot)
4917
    self._oprot.writeMessageEnd()
4918
    self._oprot.trans.flush()
4919
 
4920
  def recv_updateEbayItem(self, ):
4921
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4922
    if mtype == TMessageType.EXCEPTION:
4923
      x = TApplicationException()
4924
      x.read(self._iprot)
4925
      self._iprot.readMessageEnd()
4926
      raise x
4927
    result = updateEbayItem_result()
4928
    result.read(self._iprot)
4929
    self._iprot.readMessageEnd()
4930
    return
4931
 
8139 kshitij.so 4932
  def getAmazonListedItems(self, offset, limit):
4933
    """
4934
    Parameters:
4935
     - offset
4936
     - limit
4937
    """
4938
    self.send_getAmazonListedItems(offset, limit)
4939
    return self.recv_getAmazonListedItems()
7977 kshitij.so 4940
 
8139 kshitij.so 4941
  def send_getAmazonListedItems(self, offset, limit):
4942
    self._oprot.writeMessageBegin('getAmazonListedItems', TMessageType.CALL, self._seqid)
4943
    args = getAmazonListedItems_args()
4944
    args.offset = offset
4945
    args.limit = limit
4946
    args.write(self._oprot)
4947
    self._oprot.writeMessageEnd()
4948
    self._oprot.trans.flush()
4949
 
4950
  def recv_getAmazonListedItems(self, ):
4951
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4952
    if mtype == TMessageType.EXCEPTION:
4953
      x = TApplicationException()
4954
      x.read(self._iprot)
4955
      self._iprot.readMessageEnd()
4956
      raise x
4957
    result = getAmazonListedItems_result()
4958
    result.read(self._iprot)
4959
    self._iprot.readMessageEnd()
4960
    if result.success is not None:
4961
      return result.success
4962
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonListedItems failed: unknown result");
4963
 
8168 kshitij.so 4964
  def updateAmazonAttributesInBulk(self, amazonlisted):
4965
    """
4966
    Parameters:
4967
     - amazonlisted
4968
    """
4969
    self.send_updateAmazonAttributesInBulk(amazonlisted)
4970
    return self.recv_updateAmazonAttributesInBulk()
8139 kshitij.so 4971
 
8168 kshitij.so 4972
  def send_updateAmazonAttributesInBulk(self, amazonlisted):
4973
    self._oprot.writeMessageBegin('updateAmazonAttributesInBulk', TMessageType.CALL, self._seqid)
4974
    args = updateAmazonAttributesInBulk_args()
4975
    args.amazonlisted = amazonlisted
4976
    args.write(self._oprot)
4977
    self._oprot.writeMessageEnd()
4978
    self._oprot.trans.flush()
4979
 
4980
  def recv_updateAmazonAttributesInBulk(self, ):
4981
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4982
    if mtype == TMessageType.EXCEPTION:
4983
      x = TApplicationException()
4984
      x.read(self._iprot)
4985
      self._iprot.readMessageEnd()
4986
      raise x
4987
    result = updateAmazonAttributesInBulk_result()
4988
    result.read(self._iprot)
4989
    self._iprot.readMessageEnd()
4990
    if result.success is not None:
4991
      return result.success
4992
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4993
 
8379 vikram.rag 4994
  def getAllItemstoListOnFba(self, ):
4995
    self.send_getAllItemstoListOnFba()
4996
    return self.recv_getAllItemstoListOnFba()
8168 kshitij.so 4997
 
8379 vikram.rag 4998
  def send_getAllItemstoListOnFba(self, ):
4999
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
5000
    args = getAllItemstoListOnFba_args()
5001
    args.write(self._oprot)
5002
    self._oprot.writeMessageEnd()
5003
    self._oprot.trans.flush()
5004
 
5005
  def recv_getAllItemstoListOnFba(self, ):
5006
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5007
    if mtype == TMessageType.EXCEPTION:
5008
      x = TApplicationException()
5009
      x.read(self._iprot)
5010
      self._iprot.readMessageEnd()
5011
      raise x
5012
    result = getAllItemstoListOnFba_result()
5013
    result.read(self._iprot)
5014
    self._iprot.readMessageEnd()
5015
    if result.success is not None:
5016
      return result.success
5017
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
5018
 
5019
  def getAllItemstoListOnNonFba(self, ):
5020
    self.send_getAllItemstoListOnNonFba()
5021
    return self.recv_getAllItemstoListOnNonFba()
5022
 
5023
  def send_getAllItemstoListOnNonFba(self, ):
5024
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
5025
    args = getAllItemstoListOnNonFba_args()
5026
    args.write(self._oprot)
5027
    self._oprot.writeMessageEnd()
5028
    self._oprot.trans.flush()
5029
 
5030
  def recv_getAllItemstoListOnNonFba(self, ):
5031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5032
    if mtype == TMessageType.EXCEPTION:
5033
      x = TApplicationException()
5034
      x.read(self._iprot)
5035
      self._iprot.readMessageEnd()
5036
      raise x
5037
    result = getAllItemstoListOnNonFba_result()
5038
    result.read(self._iprot)
5039
    self._iprot.readMessageEnd()
5040
    if result.success is not None:
5041
      return result.success
5042
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
5043
 
8619 kshitij.so 5044
  def updateAsin(self, item):
5045
    """
5046
    Parameters:
5047
     - item
5048
    """
5049
    self.send_updateAsin(item)
5050
    self.recv_updateAsin()
8616 vikram.rag 5051
 
8619 kshitij.so 5052
  def send_updateAsin(self, item):
5053
    self._oprot.writeMessageBegin('updateAsin', TMessageType.CALL, self._seqid)
5054
    args = updateAsin_args()
5055
    args.item = item
5056
    args.write(self._oprot)
5057
    self._oprot.writeMessageEnd()
5058
    self._oprot.trans.flush()
5059
 
5060
  def recv_updateAsin(self, ):
5061
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5062
    if mtype == TMessageType.EXCEPTION:
5063
      x = TApplicationException()
5064
      x.read(self._iprot)
5065
      self._iprot.readMessageEnd()
5066
      raise x
5067
    result = updateAsin_result()
5068
    result.read(self._iprot)
5069
    self._iprot.readMessageEnd()
5070
    return
5071
 
8739 vikram.rag 5072
  def addOrUpdateSnapdealItem(self, snapdealitem):
5073
    """
5074
    Parameters:
5075
     - snapdealitem
5076
    """
5077
    self.send_addOrUpdateSnapdealItem(snapdealitem)
5078
    return self.recv_addOrUpdateSnapdealItem()
8619 kshitij.so 5079
 
8739 vikram.rag 5080
  def send_addOrUpdateSnapdealItem(self, snapdealitem):
5081
    self._oprot.writeMessageBegin('addOrUpdateSnapdealItem', TMessageType.CALL, self._seqid)
5082
    args = addOrUpdateSnapdealItem_args()
5083
    args.snapdealitem = snapdealitem
5084
    args.write(self._oprot)
5085
    self._oprot.writeMessageEnd()
5086
    self._oprot.trans.flush()
5087
 
5088
  def recv_addOrUpdateSnapdealItem(self, ):
5089
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5090
    if mtype == TMessageType.EXCEPTION:
5091
      x = TApplicationException()
5092
      x.read(self._iprot)
5093
      self._iprot.readMessageEnd()
5094
      raise x
5095
    result = addOrUpdateSnapdealItem_result()
5096
    result.read(self._iprot)
5097
    self._iprot.readMessageEnd()
5098
    if result.success is not None:
5099
      return result.success
5100
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateSnapdealItem failed: unknown result");
5101
 
5102
  def getSnapdealItem(self, item_id):
5103
    """
5104
    Parameters:
5105
     - item_id
5106
    """
5107
    self.send_getSnapdealItem(item_id)
5108
    return self.recv_getSnapdealItem()
5109
 
5110
  def send_getSnapdealItem(self, item_id):
5111
    self._oprot.writeMessageBegin('getSnapdealItem', TMessageType.CALL, self._seqid)
5112
    args = getSnapdealItem_args()
5113
    args.item_id = item_id
5114
    args.write(self._oprot)
5115
    self._oprot.writeMessageEnd()
5116
    self._oprot.trans.flush()
5117
 
5118
  def recv_getSnapdealItem(self, ):
5119
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5120
    if mtype == TMessageType.EXCEPTION:
5121
      x = TApplicationException()
5122
      x.read(self._iprot)
5123
      self._iprot.readMessageEnd()
5124
      raise x
5125
    result = getSnapdealItem_result()
5126
    result.read(self._iprot)
5127
    self._iprot.readMessageEnd()
5128
    if result.success is not None:
5129
      return result.success
5130
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItem failed: unknown result");
5131
 
9242 kshitij.so 5132
  def getSnapdealItemDetails(self, item_id):
5133
    """
5134
    Parameters:
5135
     - item_id
5136
    """
5137
    self.send_getSnapdealItemDetails(item_id)
5138
    return self.recv_getSnapdealItemDetails()
5139
 
5140
  def send_getSnapdealItemDetails(self, item_id):
5141
    self._oprot.writeMessageBegin('getSnapdealItemDetails', TMessageType.CALL, self._seqid)
5142
    args = getSnapdealItemDetails_args()
5143
    args.item_id = item_id
5144
    args.write(self._oprot)
5145
    self._oprot.writeMessageEnd()
5146
    self._oprot.trans.flush()
5147
 
5148
  def recv_getSnapdealItemDetails(self, ):
5149
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5150
    if mtype == TMessageType.EXCEPTION:
5151
      x = TApplicationException()
5152
      x.read(self._iprot)
5153
      self._iprot.readMessageEnd()
5154
      raise x
5155
    result = getSnapdealItemDetails_result()
5156
    result.read(self._iprot)
5157
    self._iprot.readMessageEnd()
5158
    if result.success is not None:
5159
      return result.success
5160
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItemDetails failed: unknown result");
5161
 
8739 vikram.rag 5162
  def getAllSnapdealItems(self, ):
5163
    self.send_getAllSnapdealItems()
5164
    return self.recv_getAllSnapdealItems()
5165
 
5166
  def send_getAllSnapdealItems(self, ):
5167
    self._oprot.writeMessageBegin('getAllSnapdealItems', TMessageType.CALL, self._seqid)
5168
    args = getAllSnapdealItems_args()
5169
    args.write(self._oprot)
5170
    self._oprot.writeMessageEnd()
5171
    self._oprot.trans.flush()
5172
 
5173
  def recv_getAllSnapdealItems(self, ):
5174
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5175
    if mtype == TMessageType.EXCEPTION:
5176
      x = TApplicationException()
5177
      x.read(self._iprot)
5178
      self._iprot.readMessageEnd()
5179
      raise x
5180
    result = getAllSnapdealItems_result()
5181
    result.read(self._iprot)
5182
    self._iprot.readMessageEnd()
5183
    if result.success is not None:
5184
      return result.success
5185
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealItems failed: unknown result");
5186
 
9242 kshitij.so 5187
  def getSnapdealItems(self, offset, limit):
5188
    """
5189
    Parameters:
5190
     - offset
5191
     - limit
5192
    """
5193
    self.send_getSnapdealItems(offset, limit)
5194
    return self.recv_getSnapdealItems()
8739 vikram.rag 5195
 
9242 kshitij.so 5196
  def send_getSnapdealItems(self, offset, limit):
5197
    self._oprot.writeMessageBegin('getSnapdealItems', TMessageType.CALL, self._seqid)
5198
    args = getSnapdealItems_args()
5199
    args.offset = offset
5200
    args.limit = limit
5201
    args.write(self._oprot)
5202
    self._oprot.writeMessageEnd()
5203
    self._oprot.trans.flush()
5204
 
5205
  def recv_getSnapdealItems(self, ):
5206
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5207
    if mtype == TMessageType.EXCEPTION:
5208
      x = TApplicationException()
5209
      x.read(self._iprot)
5210
      self._iprot.readMessageEnd()
5211
      raise x
5212
    result = getSnapdealItems_result()
5213
    result.read(self._iprot)
5214
    self._iprot.readMessageEnd()
5215
    if result.success is not None:
5216
      return result.success
5217
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItems failed: unknown result");
5218
 
5219
  def searchSnapdealItems(self, searchTerm, offset, limit):
5220
    """
5221
    Parameters:
5222
     - searchTerm
5223
     - offset
5224
     - limit
5225
    """
5226
    self.send_searchSnapdealItems(searchTerm, offset, limit)
5227
    return self.recv_searchSnapdealItems()
5228
 
5229
  def send_searchSnapdealItems(self, searchTerm, offset, limit):
5230
    self._oprot.writeMessageBegin('searchSnapdealItems', TMessageType.CALL, self._seqid)
5231
    args = searchSnapdealItems_args()
5232
    args.searchTerm = searchTerm
5233
    args.offset = offset
5234
    args.limit = limit
5235
    args.write(self._oprot)
5236
    self._oprot.writeMessageEnd()
5237
    self._oprot.trans.flush()
5238
 
5239
  def recv_searchSnapdealItems(self, ):
5240
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5241
    if mtype == TMessageType.EXCEPTION:
5242
      x = TApplicationException()
5243
      x.read(self._iprot)
5244
      self._iprot.readMessageEnd()
5245
      raise x
5246
    result = searchSnapdealItems_result()
5247
    result.read(self._iprot)
5248
    self._iprot.readMessageEnd()
5249
    if result.success is not None:
5250
      return result.success
5251
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchSnapdealItems failed: unknown result");
5252
 
5253
  def getCountForSnapdealItems(self, ):
5254
    self.send_getCountForSnapdealItems()
5255
    return self.recv_getCountForSnapdealItems()
5256
 
5257
  def send_getCountForSnapdealItems(self, ):
5258
    self._oprot.writeMessageBegin('getCountForSnapdealItems', TMessageType.CALL, self._seqid)
5259
    args = getCountForSnapdealItems_args()
5260
    args.write(self._oprot)
5261
    self._oprot.writeMessageEnd()
5262
    self._oprot.trans.flush()
5263
 
5264
  def recv_getCountForSnapdealItems(self, ):
5265
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5266
    if mtype == TMessageType.EXCEPTION:
5267
      x = TApplicationException()
5268
      x.read(self._iprot)
5269
      self._iprot.readMessageEnd()
5270
      raise x
5271
    result = getCountForSnapdealItems_result()
5272
    result.read(self._iprot)
5273
    self._iprot.readMessageEnd()
5274
    if result.success is not None:
5275
      return result.success
5276
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForSnapdealItems failed: unknown result");
5277
 
5278
  def getSnapdealSearchResultCount(self, searchTerm):
5279
    """
5280
    Parameters:
5281
     - searchTerm
5282
    """
5283
    self.send_getSnapdealSearchResultCount(searchTerm)
5284
    return self.recv_getSnapdealSearchResultCount()
5285
 
5286
  def send_getSnapdealSearchResultCount(self, searchTerm):
5287
    self._oprot.writeMessageBegin('getSnapdealSearchResultCount', TMessageType.CALL, self._seqid)
5288
    args = getSnapdealSearchResultCount_args()
5289
    args.searchTerm = searchTerm
5290
    args.write(self._oprot)
5291
    self._oprot.writeMessageEnd()
5292
    self._oprot.trans.flush()
5293
 
5294
  def recv_getSnapdealSearchResultCount(self, ):
5295
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5296
    if mtype == TMessageType.EXCEPTION:
5297
      x = TApplicationException()
5298
      x.read(self._iprot)
5299
      self._iprot.readMessageEnd()
5300
      raise x
5301
    result = getSnapdealSearchResultCount_result()
5302
    result.read(self._iprot)
5303
    self._iprot.readMessageEnd()
5304
    if result.success is not None:
5305
      return result.success
5306
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealSearchResultCount failed: unknown result");
5307
 
9299 kshitij.so 5308
  def getPrefferedInsurerForItem(self, itemId, insurerType):
5309
    """
5310
    Parameters:
5311
     - itemId
5312
     - insurerType
5313
    """
5314
    self.send_getPrefferedInsurerForItem(itemId, insurerType)
5315
    return self.recv_getPrefferedInsurerForItem()
9242 kshitij.so 5316
 
9299 kshitij.so 5317
  def send_getPrefferedInsurerForItem(self, itemId, insurerType):
5318
    self._oprot.writeMessageBegin('getPrefferedInsurerForItem', TMessageType.CALL, self._seqid)
5319
    args = getPrefferedInsurerForItem_args()
5320
    args.itemId = itemId
5321
    args.insurerType = insurerType
5322
    args.write(self._oprot)
5323
    self._oprot.writeMessageEnd()
5324
    self._oprot.trans.flush()
5325
 
5326
  def recv_getPrefferedInsurerForItem(self, ):
5327
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5328
    if mtype == TMessageType.EXCEPTION:
5329
      x = TApplicationException()
5330
      x.read(self._iprot)
5331
      self._iprot.readMessageEnd()
5332
      raise x
5333
    result = getPrefferedInsurerForItem_result()
5334
    result.read(self._iprot)
5335
    self._iprot.readMessageEnd()
5336
    if result.success is not None:
5337
      return result.success
5338
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrefferedInsurerForItem failed: unknown result");
5339
 
9456 vikram.rag 5340
  def getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5341
    """
5342
    Parameters:
5343
     - skuAtSnapdeal
5344
    """
5345
    self.send_getSnapdealItembySkuAtSnapdeal(skuAtSnapdeal)
5346
    return self.recv_getSnapdealItembySkuAtSnapdeal()
9299 kshitij.so 5347
 
9456 vikram.rag 5348
  def send_getSnapdealItembySkuAtSnapdeal(self, skuAtSnapdeal):
5349
    self._oprot.writeMessageBegin('getSnapdealItembySkuAtSnapdeal', TMessageType.CALL, self._seqid)
5350
    args = getSnapdealItembySkuAtSnapdeal_args()
5351
    args.skuAtSnapdeal = skuAtSnapdeal
5352
    args.write(self._oprot)
5353
    self._oprot.writeMessageEnd()
5354
    self._oprot.trans.flush()
5355
 
5356
  def recv_getSnapdealItembySkuAtSnapdeal(self, ):
5357
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5358
    if mtype == TMessageType.EXCEPTION:
5359
      x = TApplicationException()
5360
      x.read(self._iprot)
5361
      self._iprot.readMessageEnd()
5362
      raise x
5363
    result = getSnapdealItembySkuAtSnapdeal_result()
5364
    result.read(self._iprot)
5365
    self._iprot.readMessageEnd()
5366
    if result.success is not None:
5367
      return result.success
5368
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSnapdealItembySkuAtSnapdeal failed: unknown result");
5369
 
9621 manish.sha 5370
  def getProductFeedSubmit(self, catalogItemId):
5371
    """
5372
    Parameters:
5373
     - catalogItemId
5374
    """
5375
    self.send_getProductFeedSubmit(catalogItemId)
5376
    return self.recv_getProductFeedSubmit()
9456 vikram.rag 5377
 
9621 manish.sha 5378
  def send_getProductFeedSubmit(self, catalogItemId):
5379
    self._oprot.writeMessageBegin('getProductFeedSubmit', TMessageType.CALL, self._seqid)
5380
    args = getProductFeedSubmit_args()
5381
    args.catalogItemId = catalogItemId
5382
    args.write(self._oprot)
5383
    self._oprot.writeMessageEnd()
5384
    self._oprot.trans.flush()
5385
 
5386
  def recv_getProductFeedSubmit(self, ):
5387
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5388
    if mtype == TMessageType.EXCEPTION:
5389
      x = TApplicationException()
5390
      x.read(self._iprot)
5391
      self._iprot.readMessageEnd()
5392
      raise x
5393
    result = getProductFeedSubmit_result()
5394
    result.read(self._iprot)
5395
    self._iprot.readMessageEnd()
5396
    if result.success is not None:
5397
      return result.success
5398
    if result.cex is not None:
5399
      raise result.cex
5400
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getProductFeedSubmit failed: unknown result");
5401
 
5402
  def addProductFeedSubmit(self, productFeedSubmit):
5403
    """
5404
    Parameters:
5405
     - productFeedSubmit
5406
    """
5407
    self.send_addProductFeedSubmit(productFeedSubmit)
5408
    return self.recv_addProductFeedSubmit()
5409
 
5410
  def send_addProductFeedSubmit(self, productFeedSubmit):
5411
    self._oprot.writeMessageBegin('addProductFeedSubmit', TMessageType.CALL, self._seqid)
5412
    args = addProductFeedSubmit_args()
5413
    args.productFeedSubmit = productFeedSubmit
5414
    args.write(self._oprot)
5415
    self._oprot.writeMessageEnd()
5416
    self._oprot.trans.flush()
5417
 
5418
  def recv_addProductFeedSubmit(self, ):
5419
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5420
    if mtype == TMessageType.EXCEPTION:
5421
      x = TApplicationException()
5422
      x.read(self._iprot)
5423
      self._iprot.readMessageEnd()
5424
      raise x
5425
    result = addProductFeedSubmit_result()
5426
    result.read(self._iprot)
5427
    self._iprot.readMessageEnd()
5428
    if result.success is not None:
5429
      return result.success
5430
    if result.cex is not None:
5431
      raise result.cex
5432
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addProductFeedSubmit failed: unknown result");
5433
 
5434
  def updateProductFeedSubmit(self, productFeedSubmit):
5435
    """
5436
    Parameters:
5437
     - productFeedSubmit
5438
    """
5439
    self.send_updateProductFeedSubmit(productFeedSubmit)
5440
    return self.recv_updateProductFeedSubmit()
5441
 
5442
  def send_updateProductFeedSubmit(self, productFeedSubmit):
5443
    self._oprot.writeMessageBegin('updateProductFeedSubmit', TMessageType.CALL, self._seqid)
5444
    args = updateProductFeedSubmit_args()
5445
    args.productFeedSubmit = productFeedSubmit
5446
    args.write(self._oprot)
5447
    self._oprot.writeMessageEnd()
5448
    self._oprot.trans.flush()
5449
 
5450
  def recv_updateProductFeedSubmit(self, ):
5451
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5452
    if mtype == TMessageType.EXCEPTION:
5453
      x = TApplicationException()
5454
      x.read(self._iprot)
5455
      self._iprot.readMessageEnd()
5456
      raise x
5457
    result = updateProductFeedSubmit_result()
5458
    result.read(self._iprot)
5459
    self._iprot.readMessageEnd()
5460
    if result.success is not None:
5461
      return result.success
5462
    if result.cex is not None:
5463
      raise result.cex
5464
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateProductFeedSubmit failed: unknown result");
5465
 
5466
  def deleteProductFeedSubmit(self, catalogItemId):
5467
    """
5468
    Parameters:
5469
     - catalogItemId
5470
    """
5471
    self.send_deleteProductFeedSubmit(catalogItemId)
5472
    return self.recv_deleteProductFeedSubmit()
5473
 
5474
  def send_deleteProductFeedSubmit(self, catalogItemId):
5475
    self._oprot.writeMessageBegin('deleteProductFeedSubmit', TMessageType.CALL, self._seqid)
5476
    args = deleteProductFeedSubmit_args()
5477
    args.catalogItemId = catalogItemId
5478
    args.write(self._oprot)
5479
    self._oprot.writeMessageEnd()
5480
    self._oprot.trans.flush()
5481
 
5482
  def recv_deleteProductFeedSubmit(self, ):
5483
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5484
    if mtype == TMessageType.EXCEPTION:
5485
      x = TApplicationException()
5486
      x.read(self._iprot)
5487
      self._iprot.readMessageEnd()
5488
      raise x
5489
    result = deleteProductFeedSubmit_result()
5490
    result.read(self._iprot)
5491
    self._iprot.readMessageEnd()
5492
    if result.success is not None:
5493
      return result.success
5494
    if result.cex is not None:
5495
      raise result.cex
5496
    raise TApplicationException(TApplicationException.MISSING_RESULT, "deleteProductFeedSubmit failed: unknown result");
5497
 
5498
  def getAllProductFeedSubmit(self, ):
5499
    self.send_getAllProductFeedSubmit()
5500
    return self.recv_getAllProductFeedSubmit()
5501
 
5502
  def send_getAllProductFeedSubmit(self, ):
5503
    self._oprot.writeMessageBegin('getAllProductFeedSubmit', TMessageType.CALL, self._seqid)
5504
    args = getAllProductFeedSubmit_args()
5505
    args.write(self._oprot)
5506
    self._oprot.writeMessageEnd()
5507
    self._oprot.trans.flush()
5508
 
5509
  def recv_getAllProductFeedSubmit(self, ):
5510
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5511
    if mtype == TMessageType.EXCEPTION:
5512
      x = TApplicationException()
5513
      x.read(self._iprot)
5514
      self._iprot.readMessageEnd()
5515
      raise x
5516
    result = getAllProductFeedSubmit_result()
5517
    result.read(self._iprot)
5518
    self._iprot.readMessageEnd()
5519
    if result.success is not None:
5520
      return result.success
5521
    if result.cex is not None:
5522
      raise result.cex
5523
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllProductFeedSubmit failed: unknown result");
5524
 
9724 kshitij.so 5525
  def getMarketplacedetailsForItem(self, itemId, sourceId):
5526
    """
5527
    Parameters:
5528
     - itemId
5529
     - sourceId
5530
    """
5531
    self.send_getMarketplacedetailsForItem(itemId, sourceId)
5532
    return self.recv_getMarketplacedetailsForItem()
9621 manish.sha 5533
 
9724 kshitij.so 5534
  def send_getMarketplacedetailsForItem(self, itemId, sourceId):
5535
    self._oprot.writeMessageBegin('getMarketplacedetailsForItem', TMessageType.CALL, self._seqid)
5536
    args = getMarketplacedetailsForItem_args()
5537
    args.itemId = itemId
5538
    args.sourceId = sourceId
5539
    args.write(self._oprot)
5540
    self._oprot.writeMessageEnd()
5541
    self._oprot.trans.flush()
5542
 
5543
  def recv_getMarketplacedetailsForItem(self, ):
5544
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5545
    if mtype == TMessageType.EXCEPTION:
5546
      x = TApplicationException()
5547
      x.read(self._iprot)
5548
      self._iprot.readMessageEnd()
5549
      raise x
5550
    result = getMarketplacedetailsForItem_result()
5551
    result.read(self._iprot)
5552
    self._iprot.readMessageEnd()
5553
    if result.success is not None:
5554
      return result.success
5555
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplacedetailsForItem failed: unknown result");
5556
 
5557
  def updateMarketplaceAttributesForItem(self, marketPlaceItem):
5558
    """
5559
    Parameters:
5560
     - marketPlaceItem
5561
    """
5562
    self.send_updateMarketplaceAttributesForItem(marketPlaceItem)
5563
    return self.recv_updateMarketplaceAttributesForItem()
5564
 
5565
  def send_updateMarketplaceAttributesForItem(self, marketPlaceItem):
5566
    self._oprot.writeMessageBegin('updateMarketplaceAttributesForItem', TMessageType.CALL, self._seqid)
5567
    args = updateMarketplaceAttributesForItem_args()
5568
    args.marketPlaceItem = marketPlaceItem
5569
    args.write(self._oprot)
5570
    self._oprot.writeMessageEnd()
5571
    self._oprot.trans.flush()
5572
 
5573
  def recv_updateMarketplaceAttributesForItem(self, ):
5574
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5575
    if mtype == TMessageType.EXCEPTION:
5576
      x = TApplicationException()
5577
      x.read(self._iprot)
5578
      self._iprot.readMessageEnd()
5579
      raise x
5580
    result = updateMarketplaceAttributesForItem_result()
5581
    result.read(self._iprot)
5582
    self._iprot.readMessageEnd()
5583
    if result.success is not None:
5584
      return result.success
5585
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateMarketplaceAttributesForItem failed: unknown result");
5586
 
9779 kshitij.so 5587
  def getCostingForMarketplace(self, source, item_id):
5588
    """
5589
    Parameters:
5590
     - source
5591
     - item_id
5592
    """
5593
    self.send_getCostingForMarketplace(source, item_id)
5594
    return self.recv_getCostingForMarketplace()
5595
 
5596
  def send_getCostingForMarketplace(self, source, item_id):
5597
    self._oprot.writeMessageBegin('getCostingForMarketplace', TMessageType.CALL, self._seqid)
5598
    args = getCostingForMarketplace_args()
5599
    args.source = source
5600
    args.item_id = item_id
5601
    args.write(self._oprot)
5602
    self._oprot.writeMessageEnd()
5603
    self._oprot.trans.flush()
5604
 
5605
  def recv_getCostingForMarketplace(self, ):
5606
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5607
    if mtype == TMessageType.EXCEPTION:
5608
      x = TApplicationException()
5609
      x.read(self._iprot)
5610
      self._iprot.readMessageEnd()
5611
      raise x
5612
    result = getCostingForMarketplace_result()
5613
    result.read(self._iprot)
5614
    self._iprot.readMessageEnd()
5615
    if result.success is not None:
5616
      return result.success
5617
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCostingForMarketplace failed: unknown result");
5618
 
9776 vikram.rag 5619
  def getMarketPlaceItemsForPriceUpdate(self, source):
5620
    """
5621
    Parameters:
5622
     - source
5623
    """
5624
    self.send_getMarketPlaceItemsForPriceUpdate(source)
5625
    return self.recv_getMarketPlaceItemsForPriceUpdate()
9724 kshitij.so 5626
 
9776 vikram.rag 5627
  def send_getMarketPlaceItemsForPriceUpdate(self, source):
5628
    self._oprot.writeMessageBegin('getMarketPlaceItemsForPriceUpdate', TMessageType.CALL, self._seqid)
5629
    args = getMarketPlaceItemsForPriceUpdate_args()
5630
    args.source = source
5631
    args.write(self._oprot)
5632
    self._oprot.writeMessageEnd()
5633
    self._oprot.trans.flush()
5634
 
5635
  def recv_getMarketPlaceItemsForPriceUpdate(self, ):
5636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5637
    if mtype == TMessageType.EXCEPTION:
5638
      x = TApplicationException()
5639
      x.read(self._iprot)
5640
      self._iprot.readMessageEnd()
5641
      raise x
5642
    result = getMarketPlaceItemsForPriceUpdate_result()
5643
    result.read(self._iprot)
5644
    self._iprot.readMessageEnd()
5645
    if result.success is not None:
5646
      return result.success
5647
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketPlaceItemsForPriceUpdate failed: unknown result");
5648
 
9816 kshitij.so 5649
  def updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5650
    """
5651
    Parameters:
5652
     - skulist
5653
     - timestamp
9816 kshitij.so 5654
     - source
9776 vikram.rag 5655
    """
9816 kshitij.so 5656
    self.send_updateMarketPlacePriceUpdateStatus(skulist, timestamp, source)
9776 vikram.rag 5657
    self.recv_updateMarketPlacePriceUpdateStatus()
5658
 
9816 kshitij.so 5659
  def send_updateMarketPlacePriceUpdateStatus(self, skulist, timestamp, source):
9776 vikram.rag 5660
    self._oprot.writeMessageBegin('updateMarketPlacePriceUpdateStatus', TMessageType.CALL, self._seqid)
5661
    args = updateMarketPlacePriceUpdateStatus_args()
5662
    args.skulist = skulist
5663
    args.timestamp = timestamp
9816 kshitij.so 5664
    args.source = source
9776 vikram.rag 5665
    args.write(self._oprot)
5666
    self._oprot.writeMessageEnd()
5667
    self._oprot.trans.flush()
5668
 
5669
  def recv_updateMarketPlacePriceUpdateStatus(self, ):
5670
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5671
    if mtype == TMessageType.EXCEPTION:
5672
      x = TApplicationException()
5673
      x.read(self._iprot)
5674
      self._iprot.readMessageEnd()
5675
      raise x
5676
    result = updateMarketPlacePriceUpdateStatus_result()
5677
    result.read(self._iprot)
5678
    self._iprot.readMessageEnd()
5679
    return
5680
 
9861 rajveer 5681
  def updateItemHoldInventory(self, itemHoldMap):
5682
    """
5683
    Parameters:
5684
     - itemHoldMap
5685
    """
5686
    self.send_updateItemHoldInventory(itemHoldMap)
5687
    self.recv_updateItemHoldInventory()
9776 vikram.rag 5688
 
9861 rajveer 5689
  def send_updateItemHoldInventory(self, itemHoldMap):
5690
    self._oprot.writeMessageBegin('updateItemHoldInventory', TMessageType.CALL, self._seqid)
5691
    args = updateItemHoldInventory_args()
5692
    args.itemHoldMap = itemHoldMap
5693
    args.write(self._oprot)
5694
    self._oprot.writeMessageEnd()
5695
    self._oprot.trans.flush()
5696
 
5697
  def recv_updateItemHoldInventory(self, ):
5698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5699
    if mtype == TMessageType.EXCEPTION:
5700
      x = TApplicationException()
5701
      x.read(self._iprot)
5702
      self._iprot.readMessageEnd()
5703
      raise x
5704
    result = updateItemHoldInventory_result()
5705
    result.read(self._iprot)
5706
    self._iprot.readMessageEnd()
5707
    return
5708
 
9895 vikram.rag 5709
  def updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5710
    """
5711
    Parameters:
5712
     - item_id
5713
     - vendor_id
5714
     - nlc
5715
    """
5716
    self.send_updateNlcAtMarketplaces(item_id, vendor_id, nlc)
5717
    self.recv_updateNlcAtMarketplaces()
9861 rajveer 5718
 
9895 vikram.rag 5719
  def send_updateNlcAtMarketplaces(self, item_id, vendor_id, nlc):
5720
    self._oprot.writeMessageBegin('updateNlcAtMarketplaces', TMessageType.CALL, self._seqid)
5721
    args = updateNlcAtMarketplaces_args()
5722
    args.item_id = item_id
5723
    args.vendor_id = vendor_id
5724
    args.nlc = nlc
5725
    args.write(self._oprot)
5726
    self._oprot.writeMessageEnd()
5727
    self._oprot.trans.flush()
5728
 
5729
  def recv_updateNlcAtMarketplaces(self, ):
5730
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5731
    if mtype == TMessageType.EXCEPTION:
5732
      x = TApplicationException()
5733
      x.read(self._iprot)
5734
      self._iprot.readMessageEnd()
5735
      raise x
5736
    result = updateNlcAtMarketplaces_result()
5737
    result.read(self._iprot)
5738
    self._iprot.readMessageEnd()
5739
    return
5740
 
9945 vikram.rag 5741
  def getAllFlipkartItems(self, ):
5742
    self.send_getAllFlipkartItems()
5743
    return self.recv_getAllFlipkartItems()
9895 vikram.rag 5744
 
9945 vikram.rag 5745
  def send_getAllFlipkartItems(self, ):
5746
    self._oprot.writeMessageBegin('getAllFlipkartItems', TMessageType.CALL, self._seqid)
5747
    args = getAllFlipkartItems_args()
5748
    args.write(self._oprot)
5749
    self._oprot.writeMessageEnd()
5750
    self._oprot.trans.flush()
5751
 
5752
  def recv_getAllFlipkartItems(self, ):
5753
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5754
    if mtype == TMessageType.EXCEPTION:
5755
      x = TApplicationException()
5756
      x.read(self._iprot)
5757
      self._iprot.readMessageEnd()
5758
      raise x
5759
    result = getAllFlipkartItems_result()
5760
    result.read(self._iprot)
5761
    self._iprot.readMessageEnd()
5762
    if result.success is not None:
5763
      return result.success
5764
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartItems failed: unknown result");
5765
 
10097 kshitij.so 5766
  def addOrUpdateFlipkartItem(self, flipkartitem):
5767
    """
5768
    Parameters:
5769
     - flipkartitem
5770
    """
5771
    self.send_addOrUpdateFlipkartItem(flipkartitem)
5772
    return self.recv_addOrUpdateFlipkartItem()
9945 vikram.rag 5773
 
10097 kshitij.so 5774
  def send_addOrUpdateFlipkartItem(self, flipkartitem):
5775
    self._oprot.writeMessageBegin('addOrUpdateFlipkartItem', TMessageType.CALL, self._seqid)
5776
    args = addOrUpdateFlipkartItem_args()
5777
    args.flipkartitem = flipkartitem
5778
    args.write(self._oprot)
5779
    self._oprot.writeMessageEnd()
5780
    self._oprot.trans.flush()
5781
 
5782
  def recv_addOrUpdateFlipkartItem(self, ):
5783
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5784
    if mtype == TMessageType.EXCEPTION:
5785
      x = TApplicationException()
5786
      x.read(self._iprot)
5787
      self._iprot.readMessageEnd()
5788
      raise x
5789
    result = addOrUpdateFlipkartItem_result()
5790
    result.read(self._iprot)
5791
    self._iprot.readMessageEnd()
5792
    if result.success is not None:
5793
      return result.success
5794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdateFlipkartItem failed: unknown result");
5795
 
5796
  def getFlipkartItem(self, item_id):
5797
    """
5798
    Parameters:
5799
     - item_id
5800
    """
5801
    self.send_getFlipkartItem(item_id)
5802
    return self.recv_getFlipkartItem()
5803
 
5804
  def send_getFlipkartItem(self, item_id):
5805
    self._oprot.writeMessageBegin('getFlipkartItem', TMessageType.CALL, self._seqid)
5806
    args = getFlipkartItem_args()
5807
    args.item_id = item_id
5808
    args.write(self._oprot)
5809
    self._oprot.writeMessageEnd()
5810
    self._oprot.trans.flush()
5811
 
5812
  def recv_getFlipkartItem(self, ):
5813
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5814
    if mtype == TMessageType.EXCEPTION:
5815
      x = TApplicationException()
5816
      x.read(self._iprot)
5817
      self._iprot.readMessageEnd()
5818
      raise x
5819
    result = getFlipkartItem_result()
5820
    result.read(self._iprot)
5821
    self._iprot.readMessageEnd()
5822
    if result.success is not None:
5823
      return result.success
5824
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItem failed: unknown result");
5825
 
5826
  def getFlipkartItemDetails(self, item_id):
5827
    """
5828
    Parameters:
5829
     - item_id
5830
    """
5831
    self.send_getFlipkartItemDetails(item_id)
5832
    return self.recv_getFlipkartItemDetails()
5833
 
5834
  def send_getFlipkartItemDetails(self, item_id):
5835
    self._oprot.writeMessageBegin('getFlipkartItemDetails', TMessageType.CALL, self._seqid)
5836
    args = getFlipkartItemDetails_args()
5837
    args.item_id = item_id
5838
    args.write(self._oprot)
5839
    self._oprot.writeMessageEnd()
5840
    self._oprot.trans.flush()
5841
 
5842
  def recv_getFlipkartItemDetails(self, ):
5843
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5844
    if mtype == TMessageType.EXCEPTION:
5845
      x = TApplicationException()
5846
      x.read(self._iprot)
5847
      self._iprot.readMessageEnd()
5848
      raise x
5849
    result = getFlipkartItemDetails_result()
5850
    result.read(self._iprot)
5851
    self._iprot.readMessageEnd()
5852
    if result.success is not None:
5853
      return result.success
5854
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemDetails failed: unknown result");
5855
 
5856
  def getFlipkartItems(self, offset, limit):
5857
    """
5858
    Parameters:
5859
     - offset
5860
     - limit
5861
    """
5862
    self.send_getFlipkartItems(offset, limit)
5863
    return self.recv_getFlipkartItems()
5864
 
5865
  def send_getFlipkartItems(self, offset, limit):
5866
    self._oprot.writeMessageBegin('getFlipkartItems', TMessageType.CALL, self._seqid)
5867
    args = getFlipkartItems_args()
5868
    args.offset = offset
5869
    args.limit = limit
5870
    args.write(self._oprot)
5871
    self._oprot.writeMessageEnd()
5872
    self._oprot.trans.flush()
5873
 
5874
  def recv_getFlipkartItems(self, ):
5875
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5876
    if mtype == TMessageType.EXCEPTION:
5877
      x = TApplicationException()
5878
      x.read(self._iprot)
5879
      self._iprot.readMessageEnd()
5880
      raise x
5881
    result = getFlipkartItems_result()
5882
    result.read(self._iprot)
5883
    self._iprot.readMessageEnd()
5884
    if result.success is not None:
5885
      return result.success
5886
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItems failed: unknown result");
5887
 
5888
  def searchFlipkartItems(self, searchTerm, offset, limit):
5889
    """
5890
    Parameters:
5891
     - searchTerm
5892
     - offset
5893
     - limit
5894
    """
5895
    self.send_searchFlipkartItems(searchTerm, offset, limit)
5896
    return self.recv_searchFlipkartItems()
5897
 
5898
  def send_searchFlipkartItems(self, searchTerm, offset, limit):
5899
    self._oprot.writeMessageBegin('searchFlipkartItems', TMessageType.CALL, self._seqid)
5900
    args = searchFlipkartItems_args()
5901
    args.searchTerm = searchTerm
5902
    args.offset = offset
5903
    args.limit = limit
5904
    args.write(self._oprot)
5905
    self._oprot.writeMessageEnd()
5906
    self._oprot.trans.flush()
5907
 
5908
  def recv_searchFlipkartItems(self, ):
5909
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5910
    if mtype == TMessageType.EXCEPTION:
5911
      x = TApplicationException()
5912
      x.read(self._iprot)
5913
      self._iprot.readMessageEnd()
5914
      raise x
5915
    result = searchFlipkartItems_result()
5916
    result.read(self._iprot)
5917
    self._iprot.readMessageEnd()
5918
    if result.success is not None:
5919
      return result.success
5920
    raise TApplicationException(TApplicationException.MISSING_RESULT, "searchFlipkartItems failed: unknown result");
5921
 
5922
  def getCountForFlipkartItems(self, ):
5923
    self.send_getCountForFlipkartItems()
5924
    return self.recv_getCountForFlipkartItems()
5925
 
5926
  def send_getCountForFlipkartItems(self, ):
5927
    self._oprot.writeMessageBegin('getCountForFlipkartItems', TMessageType.CALL, self._seqid)
5928
    args = getCountForFlipkartItems_args()
5929
    args.write(self._oprot)
5930
    self._oprot.writeMessageEnd()
5931
    self._oprot.trans.flush()
5932
 
5933
  def recv_getCountForFlipkartItems(self, ):
5934
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5935
    if mtype == TMessageType.EXCEPTION:
5936
      x = TApplicationException()
5937
      x.read(self._iprot)
5938
      self._iprot.readMessageEnd()
5939
      raise x
5940
    result = getCountForFlipkartItems_result()
5941
    result.read(self._iprot)
5942
    self._iprot.readMessageEnd()
5943
    if result.success is not None:
5944
      return result.success
5945
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForFlipkartItems failed: unknown result");
5946
 
5947
  def getFlipkartSearchResultCount(self, searchTerm):
5948
    """
5949
    Parameters:
5950
     - searchTerm
5951
    """
5952
    self.send_getFlipkartSearchResultCount(searchTerm)
5953
    return self.recv_getFlipkartSearchResultCount()
5954
 
5955
  def send_getFlipkartSearchResultCount(self, searchTerm):
5956
    self._oprot.writeMessageBegin('getFlipkartSearchResultCount', TMessageType.CALL, self._seqid)
5957
    args = getFlipkartSearchResultCount_args()
5958
    args.searchTerm = searchTerm
5959
    args.write(self._oprot)
5960
    self._oprot.writeMessageEnd()
5961
    self._oprot.trans.flush()
5962
 
5963
  def recv_getFlipkartSearchResultCount(self, ):
5964
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5965
    if mtype == TMessageType.EXCEPTION:
5966
      x = TApplicationException()
5967
      x.read(self._iprot)
5968
      self._iprot.readMessageEnd()
5969
      raise x
5970
    result = getFlipkartSearchResultCount_result()
5971
    result.read(self._iprot)
5972
    self._iprot.readMessageEnd()
5973
    if result.success is not None:
5974
      return result.success
5975
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartSearchResultCount failed: unknown result");
5976
 
5977
  def getAllFkItems(self, ):
5978
    self.send_getAllFkItems()
5979
    return self.recv_getAllFkItems()
5980
 
5981
  def send_getAllFkItems(self, ):
5982
    self._oprot.writeMessageBegin('getAllFkItems', TMessageType.CALL, self._seqid)
5983
    args = getAllFkItems_args()
5984
    args.write(self._oprot)
5985
    self._oprot.writeMessageEnd()
5986
    self._oprot.trans.flush()
5987
 
5988
  def recv_getAllFkItems(self, ):
5989
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5990
    if mtype == TMessageType.EXCEPTION:
5991
      x = TApplicationException()
5992
      x.read(self._iprot)
5993
      self._iprot.readMessageEnd()
5994
      raise x
5995
    result = getAllFkItems_result()
5996
    result.read(self._iprot)
5997
    self._iprot.readMessageEnd()
5998
    if result.success is not None:
5999
      return result.success
6000
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFkItems failed: unknown result");
6001
 
10140 vikram.rag 6002
  def getFlipkartItemBySkyAtFlipkart(self, sku):
6003
    """
6004
    Parameters:
6005
     - sku
6006
    """
6007
    self.send_getFlipkartItemBySkyAtFlipkart(sku)
6008
    return self.recv_getFlipkartItemBySkyAtFlipkart()
10097 kshitij.so 6009
 
10140 vikram.rag 6010
  def send_getFlipkartItemBySkyAtFlipkart(self, sku):
6011
    self._oprot.writeMessageBegin('getFlipkartItemBySkyAtFlipkart', TMessageType.CALL, self._seqid)
6012
    args = getFlipkartItemBySkyAtFlipkart_args()
6013
    args.sku = sku
6014
    args.write(self._oprot)
6015
    self._oprot.writeMessageEnd()
6016
    self._oprot.trans.flush()
6017
 
6018
  def recv_getFlipkartItemBySkyAtFlipkart(self, ):
6019
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6020
    if mtype == TMessageType.EXCEPTION:
6021
      x = TApplicationException()
6022
      x.read(self._iprot)
6023
      self._iprot.readMessageEnd()
6024
      raise x
6025
    result = getFlipkartItemBySkyAtFlipkart_result()
6026
    result.read(self._iprot)
6027
    self._iprot.readMessageEnd()
6028
    if result.success is not None:
6029
      return result.success
6030
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getFlipkartItemBySkyAtFlipkart failed: unknown result");
6031
 
11015 kshitij.so 6032
  def getMarketplaceHistory(self, source, offset, itemId):
6033
    """
6034
    Parameters:
6035
     - source
6036
     - offset
6037
     - itemId
6038
    """
6039
    self.send_getMarketplaceHistory(source, offset, itemId)
6040
    return self.recv_getMarketplaceHistory()
6041
 
6042
  def send_getMarketplaceHistory(self, source, offset, itemId):
6043
    self._oprot.writeMessageBegin('getMarketplaceHistory', TMessageType.CALL, self._seqid)
6044
    args = getMarketplaceHistory_args()
6045
    args.source = source
6046
    args.offset = offset
6047
    args.itemId = itemId
6048
    args.write(self._oprot)
6049
    self._oprot.writeMessageEnd()
6050
    self._oprot.trans.flush()
6051
 
6052
  def recv_getMarketplaceHistory(self, ):
6053
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6054
    if mtype == TMessageType.EXCEPTION:
6055
      x = TApplicationException()
6056
      x.read(self._iprot)
6057
      self._iprot.readMessageEnd()
6058
      raise x
6059
    result = getMarketplaceHistory_result()
6060
    result.read(self._iprot)
6061
    self._iprot.readMessageEnd()
6062
    if result.success is not None:
6063
      return result.success
6064
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistory failed: unknown result");
6065
 
10909 vikram.rag 6066
  def getAllFbbListedItems(self, ):
6067
    self.send_getAllFbbListedItems()
6068
    return self.recv_getAllFbbListedItems()
10140 vikram.rag 6069
 
10909 vikram.rag 6070
  def send_getAllFbbListedItems(self, ):
6071
    self._oprot.writeMessageBegin('getAllFbbListedItems', TMessageType.CALL, self._seqid)
6072
    args = getAllFbbListedItems_args()
6073
    args.write(self._oprot)
6074
    self._oprot.writeMessageEnd()
6075
    self._oprot.trans.flush()
6076
 
6077
  def recv_getAllFbbListedItems(self, ):
6078
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6079
    if mtype == TMessageType.EXCEPTION:
6080
      x = TApplicationException()
6081
      x.read(self._iprot)
6082
      self._iprot.readMessageEnd()
6083
      raise x
6084
    result = getAllFbbListedItems_result()
6085
    result.read(self._iprot)
6086
    self._iprot.readMessageEnd()
6087
    if result.success is not None:
6088
      return result.success
6089
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbListedItems failed: unknown result");
6090
 
10924 vikram.rag 6091
  def getAllFbbPricingItems(self, ):
6092
    self.send_getAllFbbPricingItems()
6093
    return self.recv_getAllFbbPricingItems()
10909 vikram.rag 6094
 
10924 vikram.rag 6095
  def send_getAllFbbPricingItems(self, ):
6096
    self._oprot.writeMessageBegin('getAllFbbPricingItems', TMessageType.CALL, self._seqid)
6097
    args = getAllFbbPricingItems_args()
6098
    args.write(self._oprot)
6099
    self._oprot.writeMessageEnd()
6100
    self._oprot.trans.flush()
6101
 
6102
  def recv_getAllFbbPricingItems(self, ):
6103
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6104
    if mtype == TMessageType.EXCEPTION:
6105
      x = TApplicationException()
6106
      x.read(self._iprot)
6107
      self._iprot.readMessageEnd()
6108
      raise x
6109
    result = getAllFbbPricingItems_result()
6110
    result.read(self._iprot)
6111
    self._iprot.readMessageEnd()
6112
    if result.success is not None:
6113
      return result.success
6114
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbbPricingItems failed: unknown result");
6115
 
11015 kshitij.so 6116
  def getCountForMarketplaceHistory(self, source, itemId):
6117
    """
6118
    Parameters:
6119
     - source
6120
     - itemId
6121
    """
6122
    self.send_getCountForMarketplaceHistory(source, itemId)
6123
    return self.recv_getCountForMarketplaceHistory()
10924 vikram.rag 6124
 
11015 kshitij.so 6125
  def send_getCountForMarketplaceHistory(self, source, itemId):
6126
    self._oprot.writeMessageBegin('getCountForMarketplaceHistory', TMessageType.CALL, self._seqid)
6127
    args = getCountForMarketplaceHistory_args()
6128
    args.source = source
6129
    args.itemId = itemId
6130
    args.write(self._oprot)
6131
    self._oprot.writeMessageEnd()
6132
    self._oprot.trans.flush()
6133
 
6134
  def recv_getCountForMarketplaceHistory(self, ):
6135
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6136
    if mtype == TMessageType.EXCEPTION:
6137
      x = TApplicationException()
6138
      x.read(self._iprot)
6139
      self._iprot.readMessageEnd()
6140
      raise x
6141
    result = getCountForMarketplaceHistory_result()
6142
    result.read(self._iprot)
6143
    self._iprot.readMessageEnd()
6144
    if result.success is not None:
6145
      return result.success
6146
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCountForMarketplaceHistory failed: unknown result");
6147
 
6148
  def getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6149
    """
6150
    Parameters:
6151
     - source
6152
     - startDate
6153
     - endDate
6154
     - offset
6155
     - limit
6156
     - itemId
6157
    """
6158
    self.send_getMarketplaceHistoryByDate(source, startDate, endDate, offset, limit, itemId)
6159
    return self.recv_getMarketplaceHistoryByDate()
6160
 
6161
  def send_getMarketplaceHistoryByDate(self, source, startDate, endDate, offset, limit, itemId):
6162
    self._oprot.writeMessageBegin('getMarketplaceHistoryByDate', TMessageType.CALL, self._seqid)
6163
    args = getMarketplaceHistoryByDate_args()
6164
    args.source = source
6165
    args.startDate = startDate
6166
    args.endDate = endDate
6167
    args.offset = offset
6168
    args.limit = limit
6169
    args.itemId = itemId
6170
    args.write(self._oprot)
6171
    self._oprot.writeMessageEnd()
6172
    self._oprot.trans.flush()
6173
 
6174
  def recv_getMarketplaceHistoryByDate(self, ):
6175
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6176
    if mtype == TMessageType.EXCEPTION:
6177
      x = TApplicationException()
6178
      x.read(self._iprot)
6179
      self._iprot.readMessageEnd()
6180
      raise x
6181
    result = getMarketplaceHistoryByDate_result()
6182
    result.read(self._iprot)
6183
    self._iprot.readMessageEnd()
6184
    if result.success is not None:
6185
      return result.success
6186
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getMarketplaceHistoryByDate failed: unknown result");
6187
 
11531 vikram.rag 6188
  def getPrivateDealDetails(self, item_id):
6189
    """
6190
    Parameters:
6191
     - item_id
6192
    """
6193
    self.send_getPrivateDealDetails(item_id)
6194
    return self.recv_getPrivateDealDetails()
11015 kshitij.so 6195
 
11531 vikram.rag 6196
  def send_getPrivateDealDetails(self, item_id):
6197
    self._oprot.writeMessageBegin('getPrivateDealDetails', TMessageType.CALL, self._seqid)
6198
    args = getPrivateDealDetails_args()
6199
    args.item_id = item_id
6200
    args.write(self._oprot)
6201
    self._oprot.writeMessageEnd()
6202
    self._oprot.trans.flush()
6203
 
6204
  def recv_getPrivateDealDetails(self, ):
6205
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6206
    if mtype == TMessageType.EXCEPTION:
6207
      x = TApplicationException()
6208
      x.read(self._iprot)
6209
      self._iprot.readMessageEnd()
6210
      raise x
6211
    result = getPrivateDealDetails_result()
6212
    result.read(self._iprot)
6213
    self._iprot.readMessageEnd()
6214
    if result.success is not None:
6215
      return result.success
6216
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealDetails failed: unknown result");
6217
 
6218
  def getPrivateDealItems(self, offset, limit):
6219
    """
6220
    Parameters:
6221
     - offset
6222
     - limit
6223
    """
6224
    self.send_getPrivateDealItems(offset, limit)
6225
    return self.recv_getPrivateDealItems()
6226
 
6227
  def send_getPrivateDealItems(self, offset, limit):
6228
    self._oprot.writeMessageBegin('getPrivateDealItems', TMessageType.CALL, self._seqid)
6229
    args = getPrivateDealItems_args()
6230
    args.offset = offset
6231
    args.limit = limit
6232
    args.write(self._oprot)
6233
    self._oprot.writeMessageEnd()
6234
    self._oprot.trans.flush()
6235
 
6236
  def recv_getPrivateDealItems(self, ):
6237
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6238
    if mtype == TMessageType.EXCEPTION:
6239
      x = TApplicationException()
6240
      x.read(self._iprot)
6241
      self._iprot.readMessageEnd()
6242
      raise x
6243
    result = getPrivateDealItems_result()
6244
    result.read(self._iprot)
6245
    self._iprot.readMessageEnd()
6246
    if result.success is not None:
6247
      return result.success
6248
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealItems failed: unknown result");
6249
 
11653 amit.gupta 6250
  def getAllActivePrivateDeals(self, itemIds, daysDelta):
6251
    """
6252
    Parameters:
6253
     - itemIds
6254
     - daysDelta
6255
    """
6256
    self.send_getAllActivePrivateDeals(itemIds, daysDelta)
11592 amit.gupta 6257
    return self.recv_getAllActivePrivateDeals()
6258
 
11653 amit.gupta 6259
  def send_getAllActivePrivateDeals(self, itemIds, daysDelta):
11592 amit.gupta 6260
    self._oprot.writeMessageBegin('getAllActivePrivateDeals', TMessageType.CALL, self._seqid)
6261
    args = getAllActivePrivateDeals_args()
11653 amit.gupta 6262
    args.itemIds = itemIds
6263
    args.daysDelta = daysDelta
11592 amit.gupta 6264
    args.write(self._oprot)
6265
    self._oprot.writeMessageEnd()
6266
    self._oprot.trans.flush()
6267
 
6268
  def recv_getAllActivePrivateDeals(self, ):
6269
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6270
    if mtype == TMessageType.EXCEPTION:
6271
      x = TApplicationException()
6272
      x.read(self._iprot)
6273
      self._iprot.readMessageEnd()
6274
      raise x
6275
    result = getAllActivePrivateDeals_result()
6276
    result.read(self._iprot)
6277
    self._iprot.readMessageEnd()
6278
    if result.success is not None:
6279
      return result.success
6280
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllActivePrivateDeals failed: unknown result");
6281
 
11531 vikram.rag 6282
  def addOrUpdatePrivateDeal(self, privateDeal):
6283
    """
6284
    Parameters:
6285
     - privateDeal
6286
    """
6287
    self.send_addOrUpdatePrivateDeal(privateDeal)
6288
    return self.recv_addOrUpdatePrivateDeal()
6289
 
6290
  def send_addOrUpdatePrivateDeal(self, privateDeal):
6291
    self._oprot.writeMessageBegin('addOrUpdatePrivateDeal', TMessageType.CALL, self._seqid)
6292
    args = addOrUpdatePrivateDeal_args()
6293
    args.privateDeal = privateDeal
6294
    args.write(self._oprot)
6295
    self._oprot.writeMessageEnd()
6296
    self._oprot.trans.flush()
6297
 
6298
  def recv_addOrUpdatePrivateDeal(self, ):
6299
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6300
    if mtype == TMessageType.EXCEPTION:
6301
      x = TApplicationException()
6302
      x.read(self._iprot)
6303
      self._iprot.readMessageEnd()
6304
      raise x
6305
    result = addOrUpdatePrivateDeal_result()
6306
    result.read(self._iprot)
6307
    self._iprot.readMessageEnd()
6308
    if result.success is not None:
6309
      return result.success
6310
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addOrUpdatePrivateDeal failed: unknown result");
6311
 
11635 vikram.rag 6312
  def getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6313
    """
6314
    Parameters:
6315
     - beginIndex
6316
     - totalItems
6317
    """
6318
    self.send_getPrivateDealsCatalogIds(beginIndex, totalItems)
6319
    return self.recv_getPrivateDealsCatalogIds()
11531 vikram.rag 6320
 
11635 vikram.rag 6321
  def send_getPrivateDealsCatalogIds(self, beginIndex, totalItems):
6322
    self._oprot.writeMessageBegin('getPrivateDealsCatalogIds', TMessageType.CALL, self._seqid)
6323
    args = getPrivateDealsCatalogIds_args()
6324
    args.beginIndex = beginIndex
6325
    args.totalItems = totalItems
6326
    args.write(self._oprot)
6327
    self._oprot.writeMessageEnd()
6328
    self._oprot.trans.flush()
6329
 
6330
  def recv_getPrivateDealsCatalogIds(self, ):
6331
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6332
    if mtype == TMessageType.EXCEPTION:
6333
      x = TApplicationException()
6334
      x.read(self._iprot)
6335
      self._iprot.readMessageEnd()
6336
      raise x
6337
    result = getPrivateDealsCatalogIds_result()
6338
    result.read(self._iprot)
6339
    self._iprot.readMessageEnd()
6340
    if result.success is not None:
6341
      return result.success
6342
    if result.cex is not None:
6343
      raise result.cex
6344
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCatalogIds failed: unknown result");
6345
 
11645 amit.gupta 6346
  def getPrivateDealsCount(self, ):
6347
    self.send_getPrivateDealsCount()
6348
    return self.recv_getPrivateDealsCount()
11635 vikram.rag 6349
 
11645 amit.gupta 6350
  def send_getPrivateDealsCount(self, ):
6351
    self._oprot.writeMessageBegin('getPrivateDealsCount', TMessageType.CALL, self._seqid)
6352
    args = getPrivateDealsCount_args()
6353
    args.write(self._oprot)
6354
    self._oprot.writeMessageEnd()
6355
    self._oprot.trans.flush()
6356
 
6357
  def recv_getPrivateDealsCount(self, ):
6358
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6359
    if mtype == TMessageType.EXCEPTION:
6360
      x = TApplicationException()
6361
      x.read(self._iprot)
6362
      self._iprot.readMessageEnd()
6363
      raise x
6364
    result = getPrivateDealsCount_result()
6365
    result.read(self._iprot)
6366
    self._iprot.readMessageEnd()
6367
    if result.success is not None:
6368
      return result.success
6369
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrivateDealsCount failed: unknown result");
6370
 
11905 kshitij.so 6371
  def getAmazonOutSyncItems(self, item_id):
6372
    """
6373
    Parameters:
6374
     - item_id
6375
    """
6376
    self.send_getAmazonOutSyncItems(item_id)
6377
    return self.recv_getAmazonOutSyncItems()
11645 amit.gupta 6378
 
11905 kshitij.so 6379
  def send_getAmazonOutSyncItems(self, item_id):
6380
    self._oprot.writeMessageBegin('getAmazonOutSyncItems', TMessageType.CALL, self._seqid)
6381
    args = getAmazonOutSyncItems_args()
6382
    args.item_id = item_id
6383
    args.write(self._oprot)
6384
    self._oprot.writeMessageEnd()
6385
    self._oprot.trans.flush()
6386
 
6387
  def recv_getAmazonOutSyncItems(self, ):
6388
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6389
    if mtype == TMessageType.EXCEPTION:
6390
      x = TApplicationException()
6391
      x.read(self._iprot)
6392
      self._iprot.readMessageEnd()
6393
      raise x
6394
    result = getAmazonOutSyncItems_result()
6395
    result.read(self._iprot)
6396
    self._iprot.readMessageEnd()
6397
    if result.success is not None:
6398
      return result.success
6399
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonOutSyncItems failed: unknown result");
6400
 
6401
  def getAllPrivateDealsComparison(self, ):
6402
    self.send_getAllPrivateDealsComparison()
6403
    return self.recv_getAllPrivateDealsComparison()
6404
 
6405
  def send_getAllPrivateDealsComparison(self, ):
6406
    self._oprot.writeMessageBegin('getAllPrivateDealsComparison', TMessageType.CALL, self._seqid)
6407
    args = getAllPrivateDealsComparison_args()
6408
    args.write(self._oprot)
6409
    self._oprot.writeMessageEnd()
6410
    self._oprot.trans.flush()
6411
 
6412
  def recv_getAllPrivateDealsComparison(self, ):
6413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6414
    if mtype == TMessageType.EXCEPTION:
6415
      x = TApplicationException()
6416
      x.read(self._iprot)
6417
      self._iprot.readMessageEnd()
6418
      raise x
6419
    result = getAllPrivateDealsComparison_result()
6420
    result.read(self._iprot)
6421
    self._iprot.readMessageEnd()
6422
    if result.success is not None:
6423
      return result.success
6424
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPrivateDealsComparison failed: unknown result");
6425
 
12133 kshitij.so 6426
  def getAllSnapdealMarketplaceItem(self, ):
6427
    self.send_getAllSnapdealMarketplaceItem()
6428
    return self.recv_getAllSnapdealMarketplaceItem()
11905 kshitij.so 6429
 
12133 kshitij.so 6430
  def send_getAllSnapdealMarketplaceItem(self, ):
6431
    self._oprot.writeMessageBegin('getAllSnapdealMarketplaceItem', TMessageType.CALL, self._seqid)
6432
    args = getAllSnapdealMarketplaceItem_args()
6433
    args.write(self._oprot)
6434
    self._oprot.writeMessageEnd()
6435
    self._oprot.trans.flush()
6436
 
6437
  def recv_getAllSnapdealMarketplaceItem(self, ):
6438
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6439
    if mtype == TMessageType.EXCEPTION:
6440
      x = TApplicationException()
6441
      x.read(self._iprot)
6442
      self._iprot.readMessageEnd()
6443
      raise x
6444
    result = getAllSnapdealMarketplaceItem_result()
6445
    result.read(self._iprot)
6446
    self._iprot.readMessageEnd()
6447
    if result.success is not None:
6448
      return result.success
6449
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealMarketplaceItem failed: unknown result");
6450
 
6451
  def getAllFlipkartMarketplaceItem(self, ):
6452
    self.send_getAllFlipkartMarketplaceItem()
6453
    return self.recv_getAllFlipkartMarketplaceItem()
6454
 
6455
  def send_getAllFlipkartMarketplaceItem(self, ):
6456
    self._oprot.writeMessageBegin('getAllFlipkartMarketplaceItem', TMessageType.CALL, self._seqid)
6457
    args = getAllFlipkartMarketplaceItem_args()
6458
    args.write(self._oprot)
6459
    self._oprot.writeMessageEnd()
6460
    self._oprot.trans.flush()
6461
 
6462
  def recv_getAllFlipkartMarketplaceItem(self, ):
6463
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6464
    if mtype == TMessageType.EXCEPTION:
6465
      x = TApplicationException()
6466
      x.read(self._iprot)
6467
      self._iprot.readMessageEnd()
6468
      raise x
6469
    result = getAllFlipkartMarketplaceItem_result()
6470
    result.read(self._iprot)
6471
    self._iprot.readMessageEnd()
6472
    if result.success is not None:
6473
      return result.success
6474
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFlipkartMarketplaceItem failed: unknown result");
6475
 
12243 kshitij.so 6476
  def addCompetitorScraping(self, competitorPricingMap):
6477
    """
6478
    Parameters:
6479
     - competitorPricingMap
6480
    """
6481
    self.send_addCompetitorScraping(competitorPricingMap)
6482
    self.recv_addCompetitorScraping()
12133 kshitij.so 6483
 
12243 kshitij.so 6484
  def send_addCompetitorScraping(self, competitorPricingMap):
6485
    self._oprot.writeMessageBegin('addCompetitorScraping', TMessageType.CALL, self._seqid)
6486
    args = addCompetitorScraping_args()
6487
    args.competitorPricingMap = competitorPricingMap
6488
    args.write(self._oprot)
6489
    self._oprot.writeMessageEnd()
6490
    self._oprot.trans.flush()
6491
 
6492
  def recv_addCompetitorScraping(self, ):
6493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6494
    if mtype == TMessageType.EXCEPTION:
6495
      x = TApplicationException()
6496
      x.read(self._iprot)
6497
      self._iprot.readMessageEnd()
6498
      raise x
6499
    result = addCompetitorScraping_result()
6500
    result.read(self._iprot)
6501
    self._iprot.readMessageEnd()
6502
    return
6503
 
6504
  def getPreviousCompetitorScraping(self, delta):
6505
    """
6506
    Parameters:
6507
     - delta
6508
    """
6509
    self.send_getPreviousCompetitorScraping(delta)
6510
    return self.recv_getPreviousCompetitorScraping()
6511
 
6512
  def send_getPreviousCompetitorScraping(self, delta):
6513
    self._oprot.writeMessageBegin('getPreviousCompetitorScraping', TMessageType.CALL, self._seqid)
6514
    args = getPreviousCompetitorScraping_args()
6515
    args.delta = delta
6516
    args.write(self._oprot)
6517
    self._oprot.writeMessageEnd()
6518
    self._oprot.trans.flush()
6519
 
6520
  def recv_getPreviousCompetitorScraping(self, ):
6521
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6522
    if mtype == TMessageType.EXCEPTION:
6523
      x = TApplicationException()
6524
      x.read(self._iprot)
6525
      self._iprot.readMessageEnd()
6526
      raise x
6527
    result = getPreviousCompetitorScraping_result()
6528
    result.read(self._iprot)
6529
    self._iprot.readMessageEnd()
6530
    if result.success is not None:
6531
      return result.success
6532
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPreviousCompetitorScraping failed: unknown result");
6533
 
12256 kshitij.so 6534
  def getUploadResultById(self, uploadId):
6535
    """
6536
    Parameters:
6537
     - uploadId
6538
    """
6539
    self.send_getUploadResultById(uploadId)
6540
    return self.recv_getUploadResultById()
12243 kshitij.so 6541
 
12256 kshitij.so 6542
  def send_getUploadResultById(self, uploadId):
6543
    self._oprot.writeMessageBegin('getUploadResultById', TMessageType.CALL, self._seqid)
6544
    args = getUploadResultById_args()
6545
    args.uploadId = uploadId
6546
    args.write(self._oprot)
6547
    self._oprot.writeMessageEnd()
6548
    self._oprot.trans.flush()
6549
 
6550
  def recv_getUploadResultById(self, ):
6551
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6552
    if mtype == TMessageType.EXCEPTION:
6553
      x = TApplicationException()
6554
      x.read(self._iprot)
6555
      self._iprot.readMessageEnd()
6556
      raise x
6557
    result = getUploadResultById_result()
6558
    result.read(self._iprot)
6559
    self._iprot.readMessageEnd()
6560
    if result.success is not None:
6561
      return result.success
6562
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUploadResultById failed: unknown result");
6563
 
12363 kshitij.so 6564
  def addAmazonPromotion(self, amazonPromotions):
6565
    """
6566
    Parameters:
6567
     - amazonPromotions
6568
    """
6569
    self.send_addAmazonPromotion(amazonPromotions)
6570
    return self.recv_addAmazonPromotion()
12256 kshitij.so 6571
 
12363 kshitij.so 6572
  def send_addAmazonPromotion(self, amazonPromotions):
6573
    self._oprot.writeMessageBegin('addAmazonPromotion', TMessageType.CALL, self._seqid)
6574
    args = addAmazonPromotion_args()
6575
    args.amazonPromotions = amazonPromotions
6576
    args.write(self._oprot)
6577
    self._oprot.writeMessageEnd()
6578
    self._oprot.trans.flush()
6579
 
6580
  def recv_addAmazonPromotion(self, ):
6581
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6582
    if mtype == TMessageType.EXCEPTION:
6583
      x = TApplicationException()
6584
      x.read(self._iprot)
6585
      self._iprot.readMessageEnd()
6586
      raise x
6587
    result = addAmazonPromotion_result()
6588
    result.read(self._iprot)
6589
    self._iprot.readMessageEnd()
6590
    if result.success is not None:
6591
      return result.success
6592
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addAmazonPromotion failed: unknown result");
6593
 
6594
  def getAmazonPromotion(self, startDate, endDate):
6595
    """
6596
    Parameters:
6597
     - startDate
6598
     - endDate
6599
    """
6600
    self.send_getAmazonPromotion(startDate, endDate)
6601
    return self.recv_getAmazonPromotion()
6602
 
6603
  def send_getAmazonPromotion(self, startDate, endDate):
6604
    self._oprot.writeMessageBegin('getAmazonPromotion', TMessageType.CALL, self._seqid)
6605
    args = getAmazonPromotion_args()
6606
    args.startDate = startDate
6607
    args.endDate = endDate
6608
    args.write(self._oprot)
6609
    self._oprot.writeMessageEnd()
6610
    self._oprot.trans.flush()
6611
 
6612
  def recv_getAmazonPromotion(self, ):
6613
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6614
    if mtype == TMessageType.EXCEPTION:
6615
      x = TApplicationException()
6616
      x.read(self._iprot)
6617
      self._iprot.readMessageEnd()
6618
      raise x
6619
    result = getAmazonPromotion_result()
6620
    result.read(self._iprot)
6621
    self._iprot.readMessageEnd()
6622
    if result.success is not None:
6623
      return result.success
6624
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAmazonPromotion failed: unknown result");
6625
 
6626
  def updateAmazonPromotion(self, amazonPromotions):
6627
    """
6628
    Parameters:
6629
     - amazonPromotions
6630
    """
6631
    self.send_updateAmazonPromotion(amazonPromotions)
6632
    return self.recv_updateAmazonPromotion()
6633
 
6634
  def send_updateAmazonPromotion(self, amazonPromotions):
6635
    self._oprot.writeMessageBegin('updateAmazonPromotion', TMessageType.CALL, self._seqid)
6636
    args = updateAmazonPromotion_args()
6637
    args.amazonPromotions = amazonPromotions
6638
    args.write(self._oprot)
6639
    self._oprot.writeMessageEnd()
6640
    self._oprot.trans.flush()
6641
 
6642
  def recv_updateAmazonPromotion(self, ):
6643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6644
    if mtype == TMessageType.EXCEPTION:
6645
      x = TApplicationException()
6646
      x.read(self._iprot)
6647
      self._iprot.readMessageEnd()
6648
      raise x
6649
    result = updateAmazonPromotion_result()
6650
    result.read(self._iprot)
6651
    self._iprot.readMessageEnd()
6652
    if result.success is not None:
6653
      return result.success
6654
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonPromotion failed: unknown result");
6655
 
12567 amit.gupta 6656
  def markPartiallyActive(self, itemId, categoryId):
6657
    """
6658
    Parameters:
6659
     - itemId
6660
     - categoryId
6661
    """
6662
    self.send_markPartiallyActive(itemId, categoryId)
6663
    return self.recv_markPartiallyActive()
12363 kshitij.so 6664
 
12567 amit.gupta 6665
  def send_markPartiallyActive(self, itemId, categoryId):
6666
    self._oprot.writeMessageBegin('markPartiallyActive', TMessageType.CALL, self._seqid)
6667
    args = markPartiallyActive_args()
6668
    args.itemId = itemId
6669
    args.categoryId = categoryId
6670
    args.write(self._oprot)
6671
    self._oprot.writeMessageEnd()
6672
    self._oprot.trans.flush()
6673
 
6674
  def recv_markPartiallyActive(self, ):
6675
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6676
    if mtype == TMessageType.EXCEPTION:
6677
      x = TApplicationException()
6678
      x.read(self._iprot)
6679
      self._iprot.readMessageEnd()
6680
      raise x
6681
    result = markPartiallyActive_result()
6682
    result.read(self._iprot)
6683
    self._iprot.readMessageEnd()
6684
    if result.success is not None:
6685
      return result.success
6686
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPartiallyActive failed: unknown result");
6687
 
6688
  def updateItemStateVat(self, itemId, statevat):
6689
    """
6690
    Parameters:
6691
     - itemId
6692
     - statevat
6693
    """
6694
    self.send_updateItemStateVat(itemId, statevat)
6695
    return self.recv_updateItemStateVat()
6696
 
6697
  def send_updateItemStateVat(self, itemId, statevat):
6698
    self._oprot.writeMessageBegin('updateItemStateVat', TMessageType.CALL, self._seqid)
6699
    args = updateItemStateVat_args()
6700
    args.itemId = itemId
6701
    args.statevat = statevat
6702
    args.write(self._oprot)
6703
    self._oprot.writeMessageEnd()
6704
    self._oprot.trans.flush()
6705
 
6706
  def recv_updateItemStateVat(self, ):
6707
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
6708
    if mtype == TMessageType.EXCEPTION:
6709
      x = TApplicationException()
6710
      x.read(self._iprot)
6711
      self._iprot.readMessageEnd()
6712
      raise x
6713
    result = updateItemStateVat_result()
6714
    result.read(self._iprot)
6715
    self._iprot.readMessageEnd()
6716
    if result.success is not None:
6717
      return result.success
6718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6719
 
6720
 
5944 mandeep.dh 6721
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6722
  def __init__(self, handler):
6723
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6724
    self._processMap["addItem"] = Processor.process_addItem
6725
    self._processMap["updateItem"] = Processor.process_updateItem
6726
    self._processMap["isActive"] = Processor.process_isActive
7438 amit.gupta 6727
    self._processMap["getItemsStatus"] = Processor.process_getItemsStatus
5944 mandeep.dh 6728
    self._processMap["getItemStatusDescription"] = Processor.process_getItemStatusDescription
6729
    self._processMap["startItemOn"] = Processor.process_startItemOn
6730
    self._processMap["retireItemOn"] = Processor.process_retireItemOn
6731
    self._processMap["changeItemStatus"] = Processor.process_changeItemStatus
6732
    self._processMap["getItem"] = Processor.process_getItem
6733
    self._processMap["getItemsByCatalogId"] = Processor.process_getItemsByCatalogId
6734
    self._processMap["getValidItemsByCatalogId"] = Processor.process_getValidItemsByCatalogId
6735
    self._processMap["getAllItems"] = Processor.process_getAllItems
6736
    self._processMap["getAllItemsByStatus"] = Processor.process_getAllItemsByStatus
6737
    self._processMap["markItemAsContentComplete"] = Processor.process_markItemAsContentComplete
12567 amit.gupta 6738
    self._processMap["getVatRates"] = Processor.process_getVatRates
5944 mandeep.dh 6739
    self._processMap["getAllItemsInRange"] = Processor.process_getAllItemsInRange
6740
    self._processMap["getAllItemsByStatusInRange"] = Processor.process_getAllItemsByStatusInRange
6741
    self._processMap["getItemCountByStatus"] = Processor.process_getItemCountByStatus
6742
    self._processMap["getBestSellers"] = Processor.process_getBestSellers
6743
    self._processMap["getBestSellersCatalogIds"] = Processor.process_getBestSellersCatalogIds
6744
    self._processMap["getBestSellersCount"] = Processor.process_getBestSellersCount
6745
    self._processMap["getBestDeals"] = Processor.process_getBestDeals
6746
    self._processMap["getBestDealsCatalogIds"] = Processor.process_getBestDealsCatalogIds
6747
    self._processMap["getBestDealsCount"] = Processor.process_getBestDealsCount
6748
    self._processMap["getComingSoon"] = Processor.process_getComingSoon
6749
    self._processMap["getComingSoonCatalogIds"] = Processor.process_getComingSoonCatalogIds
6750
    self._processMap["getComingSoonCount"] = Processor.process_getComingSoonCount
6751
    self._processMap["getLatestArrivals"] = Processor.process_getLatestArrivals
6752
    self._processMap["getLatestArrivalsCatalogIds"] = Processor.process_getLatestArrivalsCatalogIds
6753
    self._processMap["getLatestArrivalsCount"] = Processor.process_getLatestArrivalsCount
6754
    self._processMap["generateNewEntityID"] = Processor.process_generateNewEntityID
6755
    self._processMap["addCategory"] = Processor.process_addCategory
6756
    self._processMap["getCategory"] = Processor.process_getCategory
6757
    self._processMap["getAllCategories"] = Processor.process_getAllCategories
6758
    self._processMap["getAllSimilarItems"] = Processor.process_getAllSimilarItems
6759
    self._processMap["addSimilarItem"] = Processor.process_addSimilarItem
6512 kshitij.so 6760
    self._processMap["addTag"] = Processor.process_addTag
6761
    self._processMap["deleteEntityTag"] = Processor.process_deleteEntityTag
6762
    self._processMap["deleteTag"] = Processor.process_deleteTag
6763
    self._processMap["getAllTags"] = Processor.process_getAllTags
6764
    self._processMap["getAllEntitiesByTagName"] = Processor.process_getAllEntitiesByTagName
6845 amit.gupta 6765
    self._processMap["getAllEntityTags"] = Processor.process_getAllEntityTags
6850 kshitij.so 6766
    self._processMap["addBanner"] = Processor.process_addBanner
8579 kshitij.so 6767
    self._processMap["updateBanner"] = Processor.process_updateBanner
6850 kshitij.so 6768
    self._processMap["getAllBanners"] = Processor.process_getAllBanners
6769
    self._processMap["deleteBanner"] = Processor.process_deleteBanner
6770
    self._processMap["getBannerDetails"] = Processor.process_getBannerDetails
6771
    self._processMap["getActiveBanners"] = Processor.process_getActiveBanners
6849 kshitij.so 6772
    self._processMap["addBannerMap"] = Processor.process_addBannerMap
8579 kshitij.so 6773
    self._processMap["updateBannerMap"] = Processor.process_updateBannerMap
6849 kshitij.so 6774
    self._processMap["deleteBannerMap"] = Processor.process_deleteBannerMap
6775
    self._processMap["getBannerMapDetails"] = Processor.process_getBannerMapDetails
8579 kshitij.so 6776
    self._processMap["addBannerUri"] = Processor.process_addBannerUri
6777
    self._processMap["getUriMapping"] = Processor.process_getUriMapping
6778
    self._processMap["addCampaign"] = Processor.process_addCampaign
6779
    self._processMap["getCampaigns"] = Processor.process_getCampaigns
6780
    self._processMap["deleteCampaign"] = Processor.process_deleteCampaign
6781
    self._processMap["getAllCampaigns"] = Processor.process_getAllCampaigns
9155 kshitij.so 6782
    self._processMap["getActiveBannersForMobileSite"] = Processor.process_getActiveBannersForMobileSite
5944 mandeep.dh 6783
    self._processMap["deleteSimilarItem"] = Processor.process_deleteSimilarItem
6784
    self._processMap["checkSimilarItem"] = Processor.process_checkSimilarItem
6785
    self._processMap["validateRiskyStatus"] = Processor.process_validateRiskyStatus
6786
    self._processMap["changeItemRiskyFlag"] = Processor.process_changeItemRiskyFlag
6787
    self._processMap["getItemsByRiskyFlag"] = Processor.process_getItemsByRiskyFlag
6788
    self._processMap["getItemsForMasterSheet"] = Processor.process_getItemsForMasterSheet
6789
    self._processMap["getSimilarItemsCatalogIds"] = Processor.process_getSimilarItemsCatalogIds
6790
    self._processMap["addProductNotification"] = Processor.process_addProductNotification
6791
    self._processMap["sendProductNotifications"] = Processor.process_sendProductNotifications
6792
    self._processMap["getAllBrandsByCategory"] = Processor.process_getAllBrandsByCategory
6793
    self._processMap["getAllBrands"] = Processor.process_getAllBrands
6794
    self._processMap["getAllSources"] = Processor.process_getAllSources
6795
    self._processMap["getItemPricingBySource"] = Processor.process_getItemPricingBySource
6796
    self._processMap["addSourceItemPricing"] = Processor.process_addSourceItemPricing
6797
    self._processMap["getAllSourcePricing"] = Processor.process_getAllSourcePricing
6798
    self._processMap["getItemForSource"] = Processor.process_getItemForSource
6799
    self._processMap["searchItemsInRange"] = Processor.process_searchItemsInRange
6800
    self._processMap["getSearchResultCount"] = Processor.process_getSearchResultCount
6801
    self._processMap["getProductNotifications"] = Processor.process_getProductNotifications
6802
    self._processMap["getProductNotificationRequestCount"] = Processor.process_getProductNotificationRequestCount
6803
    self._processMap["addAuthorizationLog"] = Processor.process_addAuthorizationLog
6804
    self._processMap["addupdateVoucherForItem"] = Processor.process_addupdateVoucherForItem
6805
    self._processMap["deleteVoucherForItem"] = Processor.process_deleteVoucherForItem
6806
    self._processMap["getVoucherAmount"] = Processor.process_getVoucherAmount
6807
    self._processMap["getAllItemVouchers"] = Processor.process_getAllItemVouchers
6808
    self._processMap["isValidCatalogItemId"] = Processor.process_isValidCatalogItemId
6039 amit.gupta 6809
    self._processMap["getVatPercentageForItem"] = Processor.process_getVatPercentageForItem
6810
    self._processMap["getVatAmountForItem"] = Processor.process_getVatAmountForItem
6531 vikram.rag 6811
    self._processMap["getAllIgnoredInventoryUpdateItemsList"] = Processor.process_getAllIgnoredInventoryUpdateItemsList
6821 amar.kumar 6812
    self._processMap["getAllAliveItems"] = Processor.process_getAllAliveItems
6805 anupam.sin 6813
    self._processMap["getInsuranceAmount"] = Processor.process_getInsuranceAmount
6814
    self._processMap["getInsurer"] = Processor.process_getInsurer
6838 vikram.rag 6815
    self._processMap["getAllInsurers"] = Processor.process_getAllInsurers
6962 rajveer 6816
    self._processMap["updateInsuranceDeclaredAmount"] = Processor.process_updateInsuranceDeclaredAmount
7190 amar.kumar 6817
    self._processMap["getFreebieForItem"] = Processor.process_getFreebieForItem
6818
    self._processMap["addOrUpdateFreebieForItem"] = Processor.process_addOrUpdateFreebieForItem
7272 amit.gupta 6819
    self._processMap["addOrUpdateBrandInfo"] = Processor.process_addOrUpdateBrandInfo
6820
    self._processMap["getBrandInfo"] = Processor.process_getBrandInfo
7256 rajveer 6821
    self._processMap["getStorePricing"] = Processor.process_getStorePricing
7306 rajveer 6822
    self._processMap["getStorePricings"] = Processor.process_getStorePricings
7265 rajveer 6823
    self._processMap["updateStorePricing"] = Processor.process_updateStorePricing
7281 kshitij.so 6824
    self._processMap["getAllAmazonListedItems"] = Processor.process_getAllAmazonListedItems
8619 kshitij.so 6825
    self._processMap["searchAmazonItems"] = Processor.process_searchAmazonItems
6826
    self._processMap["getAmazonSearchResultCount"] = Processor.process_getAmazonSearchResultCount
6827
    self._processMap["getCountForAmazonlistedItems"] = Processor.process_getCountForAmazonlistedItems
7281 kshitij.so 6828
    self._processMap["getAmazonItemDetails"] = Processor.process_getAmazonItemDetails
6829
    self._processMap["updateAmazonItemDetails"] = Processor.process_updateAmazonItemDetails
6830
    self._processMap["addAmazonItem"] = Processor.process_addAmazonItem
7291 vikram.rag 6831
    self._processMap["getAsinItems"] = Processor.process_getAsinItems
6832
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
6833
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
7460 kshitij.so 6834
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
7770 kshitij.so 6835
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
7897 amar.kumar 6836
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
7977 kshitij.so 6837
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
6838
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
8182 amar.kumar 6839
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
6840
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
6841
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
8139 kshitij.so 6842
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
8168 kshitij.so 6843
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
8379 vikram.rag 6844
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
6845
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
8619 kshitij.so 6846
    self._processMap["updateAsin"] = Processor.process_updateAsin
8739 vikram.rag 6847
    self._processMap["addOrUpdateSnapdealItem"] = Processor.process_addOrUpdateSnapdealItem
6848
    self._processMap["getSnapdealItem"] = Processor.process_getSnapdealItem
9242 kshitij.so 6849
    self._processMap["getSnapdealItemDetails"] = Processor.process_getSnapdealItemDetails
8739 vikram.rag 6850
    self._processMap["getAllSnapdealItems"] = Processor.process_getAllSnapdealItems
9242 kshitij.so 6851
    self._processMap["getSnapdealItems"] = Processor.process_getSnapdealItems
6852
    self._processMap["searchSnapdealItems"] = Processor.process_searchSnapdealItems
6853
    self._processMap["getCountForSnapdealItems"] = Processor.process_getCountForSnapdealItems
6854
    self._processMap["getSnapdealSearchResultCount"] = Processor.process_getSnapdealSearchResultCount
9299 kshitij.so 6855
    self._processMap["getPrefferedInsurerForItem"] = Processor.process_getPrefferedInsurerForItem
9456 vikram.rag 6856
    self._processMap["getSnapdealItembySkuAtSnapdeal"] = Processor.process_getSnapdealItembySkuAtSnapdeal
9621 manish.sha 6857
    self._processMap["getProductFeedSubmit"] = Processor.process_getProductFeedSubmit
6858
    self._processMap["addProductFeedSubmit"] = Processor.process_addProductFeedSubmit
6859
    self._processMap["updateProductFeedSubmit"] = Processor.process_updateProductFeedSubmit
6860
    self._processMap["deleteProductFeedSubmit"] = Processor.process_deleteProductFeedSubmit
6861
    self._processMap["getAllProductFeedSubmit"] = Processor.process_getAllProductFeedSubmit
9724 kshitij.so 6862
    self._processMap["getMarketplacedetailsForItem"] = Processor.process_getMarketplacedetailsForItem
6863
    self._processMap["updateMarketplaceAttributesForItem"] = Processor.process_updateMarketplaceAttributesForItem
9779 kshitij.so 6864
    self._processMap["getCostingForMarketplace"] = Processor.process_getCostingForMarketplace
9776 vikram.rag 6865
    self._processMap["getMarketPlaceItemsForPriceUpdate"] = Processor.process_getMarketPlaceItemsForPriceUpdate
6866
    self._processMap["updateMarketPlacePriceUpdateStatus"] = Processor.process_updateMarketPlacePriceUpdateStatus
9861 rajveer 6867
    self._processMap["updateItemHoldInventory"] = Processor.process_updateItemHoldInventory
9895 vikram.rag 6868
    self._processMap["updateNlcAtMarketplaces"] = Processor.process_updateNlcAtMarketplaces
9945 vikram.rag 6869
    self._processMap["getAllFlipkartItems"] = Processor.process_getAllFlipkartItems
10097 kshitij.so 6870
    self._processMap["addOrUpdateFlipkartItem"] = Processor.process_addOrUpdateFlipkartItem
6871
    self._processMap["getFlipkartItem"] = Processor.process_getFlipkartItem
6872
    self._processMap["getFlipkartItemDetails"] = Processor.process_getFlipkartItemDetails
6873
    self._processMap["getFlipkartItems"] = Processor.process_getFlipkartItems
6874
    self._processMap["searchFlipkartItems"] = Processor.process_searchFlipkartItems
6875
    self._processMap["getCountForFlipkartItems"] = Processor.process_getCountForFlipkartItems
6876
    self._processMap["getFlipkartSearchResultCount"] = Processor.process_getFlipkartSearchResultCount
6877
    self._processMap["getAllFkItems"] = Processor.process_getAllFkItems
10140 vikram.rag 6878
    self._processMap["getFlipkartItemBySkyAtFlipkart"] = Processor.process_getFlipkartItemBySkyAtFlipkart
11015 kshitij.so 6879
    self._processMap["getMarketplaceHistory"] = Processor.process_getMarketplaceHistory
10909 vikram.rag 6880
    self._processMap["getAllFbbListedItems"] = Processor.process_getAllFbbListedItems
10924 vikram.rag 6881
    self._processMap["getAllFbbPricingItems"] = Processor.process_getAllFbbPricingItems
11015 kshitij.so 6882
    self._processMap["getCountForMarketplaceHistory"] = Processor.process_getCountForMarketplaceHistory
6883
    self._processMap["getMarketplaceHistoryByDate"] = Processor.process_getMarketplaceHistoryByDate
11531 vikram.rag 6884
    self._processMap["getPrivateDealDetails"] = Processor.process_getPrivateDealDetails
6885
    self._processMap["getPrivateDealItems"] = Processor.process_getPrivateDealItems
11592 amit.gupta 6886
    self._processMap["getAllActivePrivateDeals"] = Processor.process_getAllActivePrivateDeals
11531 vikram.rag 6887
    self._processMap["addOrUpdatePrivateDeal"] = Processor.process_addOrUpdatePrivateDeal
11635 vikram.rag 6888
    self._processMap["getPrivateDealsCatalogIds"] = Processor.process_getPrivateDealsCatalogIds
11645 amit.gupta 6889
    self._processMap["getPrivateDealsCount"] = Processor.process_getPrivateDealsCount
11905 kshitij.so 6890
    self._processMap["getAmazonOutSyncItems"] = Processor.process_getAmazonOutSyncItems
6891
    self._processMap["getAllPrivateDealsComparison"] = Processor.process_getAllPrivateDealsComparison
12133 kshitij.so 6892
    self._processMap["getAllSnapdealMarketplaceItem"] = Processor.process_getAllSnapdealMarketplaceItem
6893
    self._processMap["getAllFlipkartMarketplaceItem"] = Processor.process_getAllFlipkartMarketplaceItem
12243 kshitij.so 6894
    self._processMap["addCompetitorScraping"] = Processor.process_addCompetitorScraping
6895
    self._processMap["getPreviousCompetitorScraping"] = Processor.process_getPreviousCompetitorScraping
12256 kshitij.so 6896
    self._processMap["getUploadResultById"] = Processor.process_getUploadResultById
12363 kshitij.so 6897
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
6898
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6899
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
12567 amit.gupta 6900
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6901
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
5944 mandeep.dh 6902
 
6903
  def process(self, iprot, oprot):
6904
    (name, type, seqid) = iprot.readMessageBegin()
6905
    if name not in self._processMap:
6906
      iprot.skip(TType.STRUCT)
6907
      iprot.readMessageEnd()
6908
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
6909
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
6910
      x.write(oprot)
6911
      oprot.writeMessageEnd()
6912
      oprot.trans.flush()
6913
      return
6914
    else:
6915
      self._processMap[name](self, seqid, iprot, oprot)
6916
    return True
6917
 
6918
  def process_addItem(self, seqid, iprot, oprot):
6919
    args = addItem_args()
6920
    args.read(iprot)
6921
    iprot.readMessageEnd()
6922
    result = addItem_result()
6923
    try:
6924
      result.success = self._handler.addItem(args.item)
6925
    except CatalogServiceException, cex:
6926
      result.cex = cex
6927
    oprot.writeMessageBegin("addItem", TMessageType.REPLY, seqid)
6928
    result.write(oprot)
6929
    oprot.writeMessageEnd()
6930
    oprot.trans.flush()
6931
 
6932
  def process_updateItem(self, seqid, iprot, oprot):
6933
    args = updateItem_args()
6934
    args.read(iprot)
6935
    iprot.readMessageEnd()
6936
    result = updateItem_result()
6937
    try:
6938
      result.success = self._handler.updateItem(args.item)
6939
    except CatalogServiceException, cex:
6940
      result.cex = cex
6941
    oprot.writeMessageBegin("updateItem", TMessageType.REPLY, seqid)
6942
    result.write(oprot)
6943
    oprot.writeMessageEnd()
6944
    oprot.trans.flush()
6945
 
6946
  def process_isActive(self, seqid, iprot, oprot):
6947
    args = isActive_args()
6948
    args.read(iprot)
6949
    iprot.readMessageEnd()
6950
    result = isActive_result()
6951
    try:
6952
      result.success = self._handler.isActive(args.itemId)
6953
    except CatalogServiceException, isex:
6954
      result.isex = isex
6955
    oprot.writeMessageBegin("isActive", TMessageType.REPLY, seqid)
6956
    result.write(oprot)
6957
    oprot.writeMessageEnd()
6958
    oprot.trans.flush()
6959
 
7438 amit.gupta 6960
  def process_getItemsStatus(self, seqid, iprot, oprot):
6961
    args = getItemsStatus_args()
6962
    args.read(iprot)
6963
    iprot.readMessageEnd()
6964
    result = getItemsStatus_result()
6965
    try:
6966
      result.success = self._handler.getItemsStatus(args.itemIds)
6967
    except CatalogServiceException, isex:
6968
      result.isex = isex
6969
    oprot.writeMessageBegin("getItemsStatus", TMessageType.REPLY, seqid)
6970
    result.write(oprot)
6971
    oprot.writeMessageEnd()
6972
    oprot.trans.flush()
6973
 
5944 mandeep.dh 6974
  def process_getItemStatusDescription(self, seqid, iprot, oprot):
6975
    args = getItemStatusDescription_args()
6976
    args.read(iprot)
6977
    iprot.readMessageEnd()
6978
    result = getItemStatusDescription_result()
6979
    try:
6980
      result.success = self._handler.getItemStatusDescription(args.itemId)
6981
    except CatalogServiceException, isex:
6982
      result.isex = isex
6983
    oprot.writeMessageBegin("getItemStatusDescription", TMessageType.REPLY, seqid)
6984
    result.write(oprot)
6985
    oprot.writeMessageEnd()
6986
    oprot.trans.flush()
6987
 
6988
  def process_startItemOn(self, seqid, iprot, oprot):
6989
    args = startItemOn_args()
6990
    args.read(iprot)
6991
    iprot.readMessageEnd()
6992
    result = startItemOn_result()
6993
    try:
6994
      self._handler.startItemOn(args.item_id, args.timestamp)
6995
    except CatalogServiceException, cex:
6996
      result.cex = cex
6997
    oprot.writeMessageBegin("startItemOn", TMessageType.REPLY, seqid)
6998
    result.write(oprot)
6999
    oprot.writeMessageEnd()
7000
    oprot.trans.flush()
7001
 
7002
  def process_retireItemOn(self, seqid, iprot, oprot):
7003
    args = retireItemOn_args()
7004
    args.read(iprot)
7005
    iprot.readMessageEnd()
7006
    result = retireItemOn_result()
7007
    try:
7008
      self._handler.retireItemOn(args.item_id, args.timestamp)
7009
    except CatalogServiceException, cex:
7010
      result.cex = cex
7011
    oprot.writeMessageBegin("retireItemOn", TMessageType.REPLY, seqid)
7012
    result.write(oprot)
7013
    oprot.writeMessageEnd()
7014
    oprot.trans.flush()
7015
 
7016
  def process_changeItemStatus(self, seqid, iprot, oprot):
7017
    args = changeItemStatus_args()
7018
    args.read(iprot)
7019
    iprot.readMessageEnd()
7020
    result = changeItemStatus_result()
7021
    try:
7022
      self._handler.changeItemStatus(args.item_id, args.timestamp, args.newstatus)
7023
    except CatalogServiceException, cex:
7024
      result.cex = cex
7025
    oprot.writeMessageBegin("changeItemStatus", TMessageType.REPLY, seqid)
7026
    result.write(oprot)
7027
    oprot.writeMessageEnd()
7028
    oprot.trans.flush()
7029
 
7030
  def process_getItem(self, seqid, iprot, oprot):
7031
    args = getItem_args()
7032
    args.read(iprot)
7033
    iprot.readMessageEnd()
7034
    result = getItem_result()
7035
    try:
7036
      result.success = self._handler.getItem(args.item_id)
7037
    except CatalogServiceException, cex:
7038
      result.cex = cex
7039
    oprot.writeMessageBegin("getItem", TMessageType.REPLY, seqid)
7040
    result.write(oprot)
7041
    oprot.writeMessageEnd()
7042
    oprot.trans.flush()
7043
 
7044
  def process_getItemsByCatalogId(self, seqid, iprot, oprot):
7045
    args = getItemsByCatalogId_args()
7046
    args.read(iprot)
7047
    iprot.readMessageEnd()
7048
    result = getItemsByCatalogId_result()
7049
    try:
7050
      result.success = self._handler.getItemsByCatalogId(args.catalog_item_id)
7051
    except CatalogServiceException, cex:
7052
      result.cex = cex
7053
    oprot.writeMessageBegin("getItemsByCatalogId", TMessageType.REPLY, seqid)
7054
    result.write(oprot)
7055
    oprot.writeMessageEnd()
7056
    oprot.trans.flush()
7057
 
7058
  def process_getValidItemsByCatalogId(self, seqid, iprot, oprot):
7059
    args = getValidItemsByCatalogId_args()
7060
    args.read(iprot)
7061
    iprot.readMessageEnd()
7062
    result = getValidItemsByCatalogId_result()
7063
    try:
7064
      result.success = self._handler.getValidItemsByCatalogId(args.catalog_item_id)
7065
    except CatalogServiceException, cex:
7066
      result.cex = cex
7067
    oprot.writeMessageBegin("getValidItemsByCatalogId", TMessageType.REPLY, seqid)
7068
    result.write(oprot)
7069
    oprot.writeMessageEnd()
7070
    oprot.trans.flush()
7071
 
7072
  def process_getAllItems(self, seqid, iprot, oprot):
7073
    args = getAllItems_args()
7074
    args.read(iprot)
7075
    iprot.readMessageEnd()
7076
    result = getAllItems_result()
7077
    try:
7078
      result.success = self._handler.getAllItems(args.isActive)
7079
    except CatalogServiceException, cex:
7080
      result.cex = cex
7081
    oprot.writeMessageBegin("getAllItems", TMessageType.REPLY, seqid)
7082
    result.write(oprot)
7083
    oprot.writeMessageEnd()
7084
    oprot.trans.flush()
7085
 
7086
  def process_getAllItemsByStatus(self, seqid, iprot, oprot):
7087
    args = getAllItemsByStatus_args()
7088
    args.read(iprot)
7089
    iprot.readMessageEnd()
7090
    result = getAllItemsByStatus_result()
7091
    try:
7092
      result.success = self._handler.getAllItemsByStatus(args.itemStatus)
7093
    except CatalogServiceException, cex:
7094
      result.cex = cex
7095
    oprot.writeMessageBegin("getAllItemsByStatus", TMessageType.REPLY, seqid)
7096
    result.write(oprot)
7097
    oprot.writeMessageEnd()
7098
    oprot.trans.flush()
7099
 
7100
  def process_markItemAsContentComplete(self, seqid, iprot, oprot):
7101
    args = markItemAsContentComplete_args()
7102
    args.read(iprot)
7103
    iprot.readMessageEnd()
7104
    result = markItemAsContentComplete_result()
7105
    try:
9253 rajveer 7106
      result.success = self._handler.markItemAsContentComplete(args.entityId, args.category, args.brand, args.modelName, args.modelNumber, args.isAndroid)
5944 mandeep.dh 7107
    except CatalogServiceException, cex:
7108
      result.cex = cex
7109
    oprot.writeMessageBegin("markItemAsContentComplete", TMessageType.REPLY, seqid)
7110
    result.write(oprot)
7111
    oprot.writeMessageEnd()
7112
    oprot.trans.flush()
7113
 
12567 amit.gupta 7114
  def process_getVatRates(self, seqid, iprot, oprot):
7115
    args = getVatRates_args()
7116
    args.read(iprot)
7117
    iprot.readMessageEnd()
7118
    result = getVatRates_result()
7119
    try:
7120
      result.success = self._handler.getVatRates(args.itemId, args.categoryId)
7121
    except CatalogServiceException, cex:
7122
      result.cex = cex
7123
    oprot.writeMessageBegin("getVatRates", TMessageType.REPLY, seqid)
7124
    result.write(oprot)
7125
    oprot.writeMessageEnd()
7126
    oprot.trans.flush()
7127
 
5944 mandeep.dh 7128
  def process_getAllItemsInRange(self, seqid, iprot, oprot):
7129
    args = getAllItemsInRange_args()
7130
    args.read(iprot)
7131
    iprot.readMessageEnd()
7132
    result = getAllItemsInRange_result()
7133
    try:
7134
      result.success = self._handler.getAllItemsInRange(args.offset, args.limit)
7135
    except CatalogServiceException, cex:
7136
      result.cex = cex
7137
    oprot.writeMessageBegin("getAllItemsInRange", TMessageType.REPLY, seqid)
7138
    result.write(oprot)
7139
    oprot.writeMessageEnd()
7140
    oprot.trans.flush()
7141
 
7142
  def process_getAllItemsByStatusInRange(self, seqid, iprot, oprot):
7143
    args = getAllItemsByStatusInRange_args()
7144
    args.read(iprot)
7145
    iprot.readMessageEnd()
7146
    result = getAllItemsByStatusInRange_result()
7147
    try:
7148
      result.success = self._handler.getAllItemsByStatusInRange(args.itemStatus, args.offset, args.limit)
7149
    except CatalogServiceException, cex:
7150
      result.cex = cex
7151
    oprot.writeMessageBegin("getAllItemsByStatusInRange", TMessageType.REPLY, seqid)
7152
    result.write(oprot)
7153
    oprot.writeMessageEnd()
7154
    oprot.trans.flush()
7155
 
7156
  def process_getItemCountByStatus(self, seqid, iprot, oprot):
7157
    args = getItemCountByStatus_args()
7158
    args.read(iprot)
7159
    iprot.readMessageEnd()
7160
    result = getItemCountByStatus_result()
7161
    result.success = self._handler.getItemCountByStatus(args.useStatus, args.itemStatus)
7162
    oprot.writeMessageBegin("getItemCountByStatus", TMessageType.REPLY, seqid)
7163
    result.write(oprot)
7164
    oprot.writeMessageEnd()
7165
    oprot.trans.flush()
7166
 
7167
  def process_getBestSellers(self, seqid, iprot, oprot):
7168
    args = getBestSellers_args()
7169
    args.read(iprot)
7170
    iprot.readMessageEnd()
7171
    result = getBestSellers_result()
7172
    try:
7173
      result.success = self._handler.getBestSellers()
7174
    except CatalogServiceException, isex:
7175
      result.isex = isex
7176
    oprot.writeMessageBegin("getBestSellers", TMessageType.REPLY, seqid)
7177
    result.write(oprot)
7178
    oprot.writeMessageEnd()
7179
    oprot.trans.flush()
7180
 
7181
  def process_getBestSellersCatalogIds(self, seqid, iprot, oprot):
7182
    args = getBestSellersCatalogIds_args()
7183
    args.read(iprot)
7184
    iprot.readMessageEnd()
7185
    result = getBestSellersCatalogIds_result()
7186
    try:
7187
      result.success = self._handler.getBestSellersCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7188
    except CatalogServiceException, cex:
7189
      result.cex = cex
7190
    oprot.writeMessageBegin("getBestSellersCatalogIds", TMessageType.REPLY, seqid)
7191
    result.write(oprot)
7192
    oprot.writeMessageEnd()
7193
    oprot.trans.flush()
7194
 
7195
  def process_getBestSellersCount(self, seqid, iprot, oprot):
7196
    args = getBestSellersCount_args()
7197
    args.read(iprot)
7198
    iprot.readMessageEnd()
7199
    result = getBestSellersCount_result()
7200
    try:
7201
      result.success = self._handler.getBestSellersCount()
7202
    except CatalogServiceException, cex:
7203
      result.cex = cex
7204
    oprot.writeMessageBegin("getBestSellersCount", TMessageType.REPLY, seqid)
7205
    result.write(oprot)
7206
    oprot.writeMessageEnd()
7207
    oprot.trans.flush()
7208
 
7209
  def process_getBestDeals(self, seqid, iprot, oprot):
7210
    args = getBestDeals_args()
7211
    args.read(iprot)
7212
    iprot.readMessageEnd()
7213
    result = getBestDeals_result()
7214
    try:
7215
      result.success = self._handler.getBestDeals()
7216
    except CatalogServiceException, isex:
7217
      result.isex = isex
7218
    oprot.writeMessageBegin("getBestDeals", TMessageType.REPLY, seqid)
7219
    result.write(oprot)
7220
    oprot.writeMessageEnd()
7221
    oprot.trans.flush()
7222
 
7223
  def process_getBestDealsCatalogIds(self, seqid, iprot, oprot):
7224
    args = getBestDealsCatalogIds_args()
7225
    args.read(iprot)
7226
    iprot.readMessageEnd()
7227
    result = getBestDealsCatalogIds_result()
7228
    try:
7229
      result.success = self._handler.getBestDealsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7230
    except CatalogServiceException, cex:
7231
      result.cex = cex
7232
    oprot.writeMessageBegin("getBestDealsCatalogIds", TMessageType.REPLY, seqid)
7233
    result.write(oprot)
7234
    oprot.writeMessageEnd()
7235
    oprot.trans.flush()
7236
 
7237
  def process_getBestDealsCount(self, seqid, iprot, oprot):
7238
    args = getBestDealsCount_args()
7239
    args.read(iprot)
7240
    iprot.readMessageEnd()
7241
    result = getBestDealsCount_result()
7242
    try:
7243
      result.success = self._handler.getBestDealsCount()
7244
    except CatalogServiceException, cex:
7245
      result.cex = cex
7246
    oprot.writeMessageBegin("getBestDealsCount", TMessageType.REPLY, seqid)
7247
    result.write(oprot)
7248
    oprot.writeMessageEnd()
7249
    oprot.trans.flush()
7250
 
7251
  def process_getComingSoon(self, seqid, iprot, oprot):
7252
    args = getComingSoon_args()
7253
    args.read(iprot)
7254
    iprot.readMessageEnd()
7255
    result = getComingSoon_result()
7256
    try:
7257
      result.success = self._handler.getComingSoon()
7258
    except CatalogServiceException, isex:
7259
      result.isex = isex
7260
    oprot.writeMessageBegin("getComingSoon", TMessageType.REPLY, seqid)
7261
    result.write(oprot)
7262
    oprot.writeMessageEnd()
7263
    oprot.trans.flush()
7264
 
7265
  def process_getComingSoonCatalogIds(self, seqid, iprot, oprot):
7266
    args = getComingSoonCatalogIds_args()
7267
    args.read(iprot)
7268
    iprot.readMessageEnd()
7269
    result = getComingSoonCatalogIds_result()
7270
    try:
7271
      result.success = self._handler.getComingSoonCatalogIds(args.beginIndex, args.totalItems, args.brand, args.category)
7272
    except CatalogServiceException, cex:
7273
      result.cex = cex
7274
    oprot.writeMessageBegin("getComingSoonCatalogIds", TMessageType.REPLY, seqid)
7275
    result.write(oprot)
7276
    oprot.writeMessageEnd()
7277
    oprot.trans.flush()
7278
 
7279
  def process_getComingSoonCount(self, seqid, iprot, oprot):
7280
    args = getComingSoonCount_args()
7281
    args.read(iprot)
7282
    iprot.readMessageEnd()
7283
    result = getComingSoonCount_result()
7284
    try:
7285
      result.success = self._handler.getComingSoonCount()
7286
    except CatalogServiceException, cex:
7287
      result.cex = cex
7288
    oprot.writeMessageBegin("getComingSoonCount", TMessageType.REPLY, seqid)
7289
    result.write(oprot)
7290
    oprot.writeMessageEnd()
7291
    oprot.trans.flush()
7292
 
7293
  def process_getLatestArrivals(self, seqid, iprot, oprot):
7294
    args = getLatestArrivals_args()
7295
    args.read(iprot)
7296
    iprot.readMessageEnd()
7297
    result = getLatestArrivals_result()
7298
    try:
7299
      result.success = self._handler.getLatestArrivals()
7300
    except CatalogServiceException, isex:
7301
      result.isex = isex
7302
    oprot.writeMessageBegin("getLatestArrivals", TMessageType.REPLY, seqid)
7303
    result.write(oprot)
7304
    oprot.writeMessageEnd()
7305
    oprot.trans.flush()
7306
 
7307
  def process_getLatestArrivalsCatalogIds(self, seqid, iprot, oprot):
7308
    args = getLatestArrivalsCatalogIds_args()
7309
    args.read(iprot)
7310
    iprot.readMessageEnd()
7311
    result = getLatestArrivalsCatalogIds_result()
7312
    try:
7313
      result.success = self._handler.getLatestArrivalsCatalogIds(args.beginIndex, args.totalItems, args.brand, args.categories)
7314
    except CatalogServiceException, cex:
7315
      result.cex = cex
7316
    oprot.writeMessageBegin("getLatestArrivalsCatalogIds", TMessageType.REPLY, seqid)
7317
    result.write(oprot)
7318
    oprot.writeMessageEnd()
7319
    oprot.trans.flush()
7320
 
7321
  def process_getLatestArrivalsCount(self, seqid, iprot, oprot):
7322
    args = getLatestArrivalsCount_args()
7323
    args.read(iprot)
7324
    iprot.readMessageEnd()
7325
    result = getLatestArrivalsCount_result()
7326
    try:
7327
      result.success = self._handler.getLatestArrivalsCount()
7328
    except CatalogServiceException, cex:
7329
      result.cex = cex
7330
    oprot.writeMessageBegin("getLatestArrivalsCount", TMessageType.REPLY, seqid)
7331
    result.write(oprot)
7332
    oprot.writeMessageEnd()
7333
    oprot.trans.flush()
7334
 
7335
  def process_generateNewEntityID(self, seqid, iprot, oprot):
7336
    args = generateNewEntityID_args()
7337
    args.read(iprot)
7338
    iprot.readMessageEnd()
7339
    result = generateNewEntityID_result()
7340
    result.success = self._handler.generateNewEntityID()
7341
    oprot.writeMessageBegin("generateNewEntityID", TMessageType.REPLY, seqid)
7342
    result.write(oprot)
7343
    oprot.writeMessageEnd()
7344
    oprot.trans.flush()
7345
 
7346
  def process_addCategory(self, seqid, iprot, oprot):
7347
    args = addCategory_args()
7348
    args.read(iprot)
7349
    iprot.readMessageEnd()
7350
    result = addCategory_result()
7351
    result.success = self._handler.addCategory(args.category)
7352
    oprot.writeMessageBegin("addCategory", TMessageType.REPLY, seqid)
7353
    result.write(oprot)
7354
    oprot.writeMessageEnd()
7355
    oprot.trans.flush()
7356
 
7357
  def process_getCategory(self, seqid, iprot, oprot):
7358
    args = getCategory_args()
7359
    args.read(iprot)
7360
    iprot.readMessageEnd()
7361
    result = getCategory_result()
7362
    result.success = self._handler.getCategory(args.id)
7363
    oprot.writeMessageBegin("getCategory", TMessageType.REPLY, seqid)
7364
    result.write(oprot)
7365
    oprot.writeMessageEnd()
7366
    oprot.trans.flush()
7367
 
7368
  def process_getAllCategories(self, seqid, iprot, oprot):
7369
    args = getAllCategories_args()
7370
    args.read(iprot)
7371
    iprot.readMessageEnd()
7372
    result = getAllCategories_result()
7373
    result.success = self._handler.getAllCategories()
7374
    oprot.writeMessageBegin("getAllCategories", TMessageType.REPLY, seqid)
7375
    result.write(oprot)
7376
    oprot.writeMessageEnd()
7377
    oprot.trans.flush()
7378
 
7379
  def process_getAllSimilarItems(self, seqid, iprot, oprot):
7380
    args = getAllSimilarItems_args()
7381
    args.read(iprot)
7382
    iprot.readMessageEnd()
7383
    result = getAllSimilarItems_result()
7384
    result.success = self._handler.getAllSimilarItems(args.itemId)
7385
    oprot.writeMessageBegin("getAllSimilarItems", TMessageType.REPLY, seqid)
7386
    result.write(oprot)
7387
    oprot.writeMessageEnd()
7388
    oprot.trans.flush()
7389
 
7390
  def process_addSimilarItem(self, seqid, iprot, oprot):
7391
    args = addSimilarItem_args()
7392
    args.read(iprot)
7393
    iprot.readMessageEnd()
7394
    result = addSimilarItem_result()
7395
    try:
7396
      result.success = self._handler.addSimilarItem(args.itemId, args.catalogItemId)
7397
    except CatalogServiceException, cex:
7398
      result.cex = cex
7399
    oprot.writeMessageBegin("addSimilarItem", TMessageType.REPLY, seqid)
7400
    result.write(oprot)
7401
    oprot.writeMessageEnd()
7402
    oprot.trans.flush()
7403
 
6512 kshitij.so 7404
  def process_addTag(self, seqid, iprot, oprot):
7405
    args = addTag_args()
7406
    args.read(iprot)
7407
    iprot.readMessageEnd()
7408
    result = addTag_result()
7409
    result.success = self._handler.addTag(args.displayName, args.itemId)
7410
    oprot.writeMessageBegin("addTag", TMessageType.REPLY, seqid)
7411
    result.write(oprot)
7412
    oprot.writeMessageEnd()
7413
    oprot.trans.flush()
7414
 
7415
  def process_deleteEntityTag(self, seqid, iprot, oprot):
7416
    args = deleteEntityTag_args()
7417
    args.read(iprot)
7418
    iprot.readMessageEnd()
7419
    result = deleteEntityTag_result()
7420
    result.success = self._handler.deleteEntityTag(args.displayName, args.itemId)
7421
    oprot.writeMessageBegin("deleteEntityTag", TMessageType.REPLY, seqid)
7422
    result.write(oprot)
7423
    oprot.writeMessageEnd()
7424
    oprot.trans.flush()
7425
 
7426
  def process_deleteTag(self, seqid, iprot, oprot):
7427
    args = deleteTag_args()
7428
    args.read(iprot)
7429
    iprot.readMessageEnd()
7430
    result = deleteTag_result()
7431
    result.success = self._handler.deleteTag(args.displayName)
7432
    oprot.writeMessageBegin("deleteTag", TMessageType.REPLY, seqid)
7433
    result.write(oprot)
7434
    oprot.writeMessageEnd()
7435
    oprot.trans.flush()
7436
 
7437
  def process_getAllTags(self, seqid, iprot, oprot):
7438
    args = getAllTags_args()
7439
    args.read(iprot)
7440
    iprot.readMessageEnd()
7441
    result = getAllTags_result()
7442
    result.success = self._handler.getAllTags()
7443
    oprot.writeMessageBegin("getAllTags", TMessageType.REPLY, seqid)
7444
    result.write(oprot)
7445
    oprot.writeMessageEnd()
7446
    oprot.trans.flush()
7447
 
7448
  def process_getAllEntitiesByTagName(self, seqid, iprot, oprot):
7449
    args = getAllEntitiesByTagName_args()
7450
    args.read(iprot)
7451
    iprot.readMessageEnd()
7452
    result = getAllEntitiesByTagName_result()
7453
    result.success = self._handler.getAllEntitiesByTagName(args.displayName)
7454
    oprot.writeMessageBegin("getAllEntitiesByTagName", TMessageType.REPLY, seqid)
7455
    result.write(oprot)
7456
    oprot.writeMessageEnd()
7457
    oprot.trans.flush()
7458
 
6845 amit.gupta 7459
  def process_getAllEntityTags(self, seqid, iprot, oprot):
7460
    args = getAllEntityTags_args()
7461
    args.read(iprot)
7462
    iprot.readMessageEnd()
7463
    result = getAllEntityTags_result()
7464
    result.success = self._handler.getAllEntityTags()
7465
    oprot.writeMessageBegin("getAllEntityTags", TMessageType.REPLY, seqid)
7466
    result.write(oprot)
7467
    oprot.writeMessageEnd()
7468
    oprot.trans.flush()
7469
 
6850 kshitij.so 7470
  def process_addBanner(self, seqid, iprot, oprot):
7471
    args = addBanner_args()
7472
    args.read(iprot)
7473
    iprot.readMessageEnd()
7474
    result = addBanner_result()
10097 kshitij.so 7475
    result.success = self._handler.addBanner(args.bannerCongregate)
6850 kshitij.so 7476
    oprot.writeMessageBegin("addBanner", TMessageType.REPLY, seqid)
7477
    result.write(oprot)
7478
    oprot.writeMessageEnd()
7479
    oprot.trans.flush()
7480
 
8579 kshitij.so 7481
  def process_updateBanner(self, seqid, iprot, oprot):
7482
    args = updateBanner_args()
7483
    args.read(iprot)
7484
    iprot.readMessageEnd()
7485
    result = updateBanner_result()
7486
    result.success = self._handler.updateBanner(args.banner)
7487
    oprot.writeMessageBegin("updateBanner", TMessageType.REPLY, seqid)
7488
    result.write(oprot)
7489
    oprot.writeMessageEnd()
7490
    oprot.trans.flush()
7491
 
6850 kshitij.so 7492
  def process_getAllBanners(self, seqid, iprot, oprot):
7493
    args = getAllBanners_args()
7494
    args.read(iprot)
7495
    iprot.readMessageEnd()
7496
    result = getAllBanners_result()
7497
    result.success = self._handler.getAllBanners()
7498
    oprot.writeMessageBegin("getAllBanners", TMessageType.REPLY, seqid)
7499
    result.write(oprot)
7500
    oprot.writeMessageEnd()
7501
    oprot.trans.flush()
7502
 
7503
  def process_deleteBanner(self, seqid, iprot, oprot):
7504
    args = deleteBanner_args()
7505
    args.read(iprot)
7506
    iprot.readMessageEnd()
7507
    result = deleteBanner_result()
9155 kshitij.so 7508
    result.success = self._handler.deleteBanner(args.bannerName, args.bannerType)
6850 kshitij.so 7509
    oprot.writeMessageBegin("deleteBanner", TMessageType.REPLY, seqid)
7510
    result.write(oprot)
7511
    oprot.writeMessageEnd()
7512
    oprot.trans.flush()
7513
 
7514
  def process_getBannerDetails(self, seqid, iprot, oprot):
7515
    args = getBannerDetails_args()
7516
    args.read(iprot)
7517
    iprot.readMessageEnd()
7518
    result = getBannerDetails_result()
9155 kshitij.so 7519
    result.success = self._handler.getBannerDetails(args.bannerName, args.bannerType)
6850 kshitij.so 7520
    oprot.writeMessageBegin("getBannerDetails", TMessageType.REPLY, seqid)
7521
    result.write(oprot)
7522
    oprot.writeMessageEnd()
7523
    oprot.trans.flush()
7524
 
7525
  def process_getActiveBanners(self, seqid, iprot, oprot):
7526
    args = getActiveBanners_args()
7527
    args.read(iprot)
7528
    iprot.readMessageEnd()
7529
    result = getActiveBanners_result()
7530
    result.success = self._handler.getActiveBanners()
7531
    oprot.writeMessageBegin("getActiveBanners", TMessageType.REPLY, seqid)
7532
    result.write(oprot)
7533
    oprot.writeMessageEnd()
7534
    oprot.trans.flush()
7535
 
6849 kshitij.so 7536
  def process_addBannerMap(self, seqid, iprot, oprot):
7537
    args = addBannerMap_args()
7538
    args.read(iprot)
7539
    iprot.readMessageEnd()
7540
    result = addBannerMap_result()
8579 kshitij.so 7541
    result.success = self._handler.addBannerMap(args.bannerMaps)
6849 kshitij.so 7542
    oprot.writeMessageBegin("addBannerMap", TMessageType.REPLY, seqid)
7543
    result.write(oprot)
7544
    oprot.writeMessageEnd()
7545
    oprot.trans.flush()
7546
 
8579 kshitij.so 7547
  def process_updateBannerMap(self, seqid, iprot, oprot):
7548
    args = updateBannerMap_args()
7549
    args.read(iprot)
7550
    iprot.readMessageEnd()
7551
    result = updateBannerMap_result()
7552
    result.success = self._handler.updateBannerMap(args.bannerMap)
7553
    oprot.writeMessageBegin("updateBannerMap", TMessageType.REPLY, seqid)
7554
    result.write(oprot)
7555
    oprot.writeMessageEnd()
7556
    oprot.trans.flush()
7557
 
6849 kshitij.so 7558
  def process_deleteBannerMap(self, seqid, iprot, oprot):
7559
    args = deleteBannerMap_args()
7560
    args.read(iprot)
7561
    iprot.readMessageEnd()
7562
    result = deleteBannerMap_result()
7563
    result.success = self._handler.deleteBannerMap(args.bannerName)
7564
    oprot.writeMessageBegin("deleteBannerMap", TMessageType.REPLY, seqid)
7565
    result.write(oprot)
7566
    oprot.writeMessageEnd()
7567
    oprot.trans.flush()
7568
 
7569
  def process_getBannerMapDetails(self, seqid, iprot, oprot):
7570
    args = getBannerMapDetails_args()
7571
    args.read(iprot)
7572
    iprot.readMessageEnd()
7573
    result = getBannerMapDetails_result()
9155 kshitij.so 7574
    result.success = self._handler.getBannerMapDetails(args.bannerName, args.bannerType)
6849 kshitij.so 7575
    oprot.writeMessageBegin("getBannerMapDetails", TMessageType.REPLY, seqid)
7576
    result.write(oprot)
7577
    oprot.writeMessageEnd()
7578
    oprot.trans.flush()
7579
 
8579 kshitij.so 7580
  def process_addBannerUri(self, seqid, iprot, oprot):
7581
    args = addBannerUri_args()
7582
    args.read(iprot)
7583
    iprot.readMessageEnd()
7584
    result = addBannerUri_result()
7585
    self._handler.addBannerUri(args.bannerUriMappings)
7586
    oprot.writeMessageBegin("addBannerUri", TMessageType.REPLY, seqid)
7587
    result.write(oprot)
7588
    oprot.writeMessageEnd()
7589
    oprot.trans.flush()
7590
 
7591
  def process_getUriMapping(self, seqid, iprot, oprot):
7592
    args = getUriMapping_args()
7593
    args.read(iprot)
7594
    iprot.readMessageEnd()
7595
    result = getUriMapping_result()
9155 kshitij.so 7596
    result.success = self._handler.getUriMapping(args.bannerName, args.bannerType)
8579 kshitij.so 7597
    oprot.writeMessageBegin("getUriMapping", TMessageType.REPLY, seqid)
7598
    result.write(oprot)
7599
    oprot.writeMessageEnd()
7600
    oprot.trans.flush()
7601
 
7602
  def process_addCampaign(self, seqid, iprot, oprot):
7603
    args = addCampaign_args()
7604
    args.read(iprot)
7605
    iprot.readMessageEnd()
7606
    result = addCampaign_result()
7607
    self._handler.addCampaign(args.campaign)
7608
    oprot.writeMessageBegin("addCampaign", TMessageType.REPLY, seqid)
7609
    result.write(oprot)
7610
    oprot.writeMessageEnd()
7611
    oprot.trans.flush()
7612
 
7613
  def process_getCampaigns(self, seqid, iprot, oprot):
7614
    args = getCampaigns_args()
7615
    args.read(iprot)
7616
    iprot.readMessageEnd()
7617
    result = getCampaigns_result()
7618
    result.success = self._handler.getCampaigns(args.campaignName)
7619
    oprot.writeMessageBegin("getCampaigns", TMessageType.REPLY, seqid)
7620
    result.write(oprot)
7621
    oprot.writeMessageEnd()
7622
    oprot.trans.flush()
7623
 
7624
  def process_deleteCampaign(self, seqid, iprot, oprot):
7625
    args = deleteCampaign_args()
7626
    args.read(iprot)
7627
    iprot.readMessageEnd()
7628
    result = deleteCampaign_result()
7629
    self._handler.deleteCampaign(args.campaignId)
7630
    oprot.writeMessageBegin("deleteCampaign", TMessageType.REPLY, seqid)
7631
    result.write(oprot)
7632
    oprot.writeMessageEnd()
7633
    oprot.trans.flush()
7634
 
7635
  def process_getAllCampaigns(self, seqid, iprot, oprot):
7636
    args = getAllCampaigns_args()
7637
    args.read(iprot)
7638
    iprot.readMessageEnd()
7639
    result = getAllCampaigns_result()
7640
    result.success = self._handler.getAllCampaigns()
7641
    oprot.writeMessageBegin("getAllCampaigns", TMessageType.REPLY, seqid)
7642
    result.write(oprot)
7643
    oprot.writeMessageEnd()
7644
    oprot.trans.flush()
7645
 
9155 kshitij.so 7646
  def process_getActiveBannersForMobileSite(self, seqid, iprot, oprot):
7647
    args = getActiveBannersForMobileSite_args()
7648
    args.read(iprot)
7649
    iprot.readMessageEnd()
7650
    result = getActiveBannersForMobileSite_result()
7651
    result.success = self._handler.getActiveBannersForMobileSite()
7652
    oprot.writeMessageBegin("getActiveBannersForMobileSite", TMessageType.REPLY, seqid)
7653
    result.write(oprot)
7654
    oprot.writeMessageEnd()
7655
    oprot.trans.flush()
7656
 
5944 mandeep.dh 7657
  def process_deleteSimilarItem(self, seqid, iprot, oprot):
7658
    args = deleteSimilarItem_args()
7659
    args.read(iprot)
7660
    iprot.readMessageEnd()
7661
    result = deleteSimilarItem_result()
7662
    try:
7663
      result.success = self._handler.deleteSimilarItem(args.itemId, args.catalogItemId)
7664
    except CatalogServiceException, cex:
7665
      result.cex = cex
7666
    oprot.writeMessageBegin("deleteSimilarItem", TMessageType.REPLY, seqid)
7667
    result.write(oprot)
7668
    oprot.writeMessageEnd()
7669
    oprot.trans.flush()
7670
 
7671
  def process_checkSimilarItem(self, seqid, iprot, oprot):
7672
    args = checkSimilarItem_args()
7673
    args.read(iprot)
7674
    iprot.readMessageEnd()
7675
    result = checkSimilarItem_result()
7676
    result.success = self._handler.checkSimilarItem(args.brand, args.modelNumber, args.modelName, args.color)
7677
    oprot.writeMessageBegin("checkSimilarItem", TMessageType.REPLY, seqid)
7678
    result.write(oprot)
7679
    oprot.writeMessageEnd()
7680
    oprot.trans.flush()
7681
 
7682
  def process_validateRiskyStatus(self, seqid, iprot, oprot):
7683
    args = validateRiskyStatus_args()
7684
    args.read(iprot)
7685
    iprot.readMessageEnd()
7686
    result = validateRiskyStatus_result()
7687
    self._handler.validateRiskyStatus(args.itemId)
7688
    oprot.writeMessageBegin("validateRiskyStatus", TMessageType.REPLY, seqid)
7689
    result.write(oprot)
7690
    oprot.writeMessageEnd()
7691
    oprot.trans.flush()
7692
 
7693
  def process_changeItemRiskyFlag(self, seqid, iprot, oprot):
7694
    args = changeItemRiskyFlag_args()
7695
    args.read(iprot)
7696
    iprot.readMessageEnd()
7697
    result = changeItemRiskyFlag_result()
7698
    self._handler.changeItemRiskyFlag(args.itemId, args.risky)
7699
    oprot.writeMessageBegin("changeItemRiskyFlag", TMessageType.REPLY, seqid)
7700
    result.write(oprot)
7701
    oprot.writeMessageEnd()
7702
    oprot.trans.flush()
7703
 
7704
  def process_getItemsByRiskyFlag(self, seqid, iprot, oprot):
7705
    args = getItemsByRiskyFlag_args()
7706
    args.read(iprot)
7707
    iprot.readMessageEnd()
7708
    result = getItemsByRiskyFlag_result()
7709
    result.success = self._handler.getItemsByRiskyFlag()
7710
    oprot.writeMessageBegin("getItemsByRiskyFlag", TMessageType.REPLY, seqid)
7711
    result.write(oprot)
7712
    oprot.writeMessageEnd()
7713
    oprot.trans.flush()
7714
 
7715
  def process_getItemsForMasterSheet(self, seqid, iprot, oprot):
7716
    args = getItemsForMasterSheet_args()
7717
    args.read(iprot)
7718
    iprot.readMessageEnd()
7719
    result = getItemsForMasterSheet_result()
7720
    result.success = self._handler.getItemsForMasterSheet(args.category, args.brand)
7721
    oprot.writeMessageBegin("getItemsForMasterSheet", TMessageType.REPLY, seqid)
7722
    result.write(oprot)
7723
    oprot.writeMessageEnd()
7724
    oprot.trans.flush()
7725
 
7726
  def process_getSimilarItemsCatalogIds(self, seqid, iprot, oprot):
7727
    args = getSimilarItemsCatalogIds_args()
7728
    args.read(iprot)
7729
    iprot.readMessageEnd()
7730
    result = getSimilarItemsCatalogIds_result()
7731
    result.success = self._handler.getSimilarItemsCatalogIds(args.beginIndex, args.totalItems, args.itemId)
7732
    oprot.writeMessageBegin("getSimilarItemsCatalogIds", TMessageType.REPLY, seqid)
7733
    result.write(oprot)
7734
    oprot.writeMessageEnd()
7735
    oprot.trans.flush()
7736
 
7737
  def process_addProductNotification(self, seqid, iprot, oprot):
7738
    args = addProductNotification_args()
7739
    args.read(iprot)
7740
    iprot.readMessageEnd()
7741
    result = addProductNotification_result()
7742
    result.success = self._handler.addProductNotification(args.itemId, args.email)
7743
    oprot.writeMessageBegin("addProductNotification", TMessageType.REPLY, seqid)
7744
    result.write(oprot)
7745
    oprot.writeMessageEnd()
7746
    oprot.trans.flush()
7747
 
7748
  def process_sendProductNotifications(self, seqid, iprot, oprot):
7749
    args = sendProductNotifications_args()
7750
    args.read(iprot)
7751
    iprot.readMessageEnd()
7752
    result = sendProductNotifications_result()
7753
    result.success = self._handler.sendProductNotifications()
7754
    oprot.writeMessageBegin("sendProductNotifications", TMessageType.REPLY, seqid)
7755
    result.write(oprot)
7756
    oprot.writeMessageEnd()
7757
    oprot.trans.flush()
7758
 
7759
  def process_getAllBrandsByCategory(self, seqid, iprot, oprot):
7760
    args = getAllBrandsByCategory_args()
7761
    args.read(iprot)
7762
    iprot.readMessageEnd()
7763
    result = getAllBrandsByCategory_result()
7764
    result.success = self._handler.getAllBrandsByCategory(args.categoryId)
7765
    oprot.writeMessageBegin("getAllBrandsByCategory", TMessageType.REPLY, seqid)
7766
    result.write(oprot)
7767
    oprot.writeMessageEnd()
7768
    oprot.trans.flush()
7769
 
7770
  def process_getAllBrands(self, seqid, iprot, oprot):
7771
    args = getAllBrands_args()
7772
    args.read(iprot)
7773
    iprot.readMessageEnd()
7774
    result = getAllBrands_result()
7775
    result.success = self._handler.getAllBrands()
7776
    oprot.writeMessageBegin("getAllBrands", TMessageType.REPLY, seqid)
7777
    result.write(oprot)
7778
    oprot.writeMessageEnd()
7779
    oprot.trans.flush()
7780
 
7781
  def process_getAllSources(self, seqid, iprot, oprot):
7782
    args = getAllSources_args()
7783
    args.read(iprot)
7784
    iprot.readMessageEnd()
7785
    result = getAllSources_result()
7786
    result.success = self._handler.getAllSources()
7787
    oprot.writeMessageBegin("getAllSources", TMessageType.REPLY, seqid)
7788
    result.write(oprot)
7789
    oprot.writeMessageEnd()
7790
    oprot.trans.flush()
7791
 
7792
  def process_getItemPricingBySource(self, seqid, iprot, oprot):
7793
    args = getItemPricingBySource_args()
7794
    args.read(iprot)
7795
    iprot.readMessageEnd()
7796
    result = getItemPricingBySource_result()
7797
    try:
7798
      result.success = self._handler.getItemPricingBySource(args.itemId, args.sourceId)
7799
    except CatalogServiceException, cex:
7800
      result.cex = cex
7801
    oprot.writeMessageBegin("getItemPricingBySource", TMessageType.REPLY, seqid)
7802
    result.write(oprot)
7803
    oprot.writeMessageEnd()
7804
    oprot.trans.flush()
7805
 
7806
  def process_addSourceItemPricing(self, seqid, iprot, oprot):
7807
    args = addSourceItemPricing_args()
7808
    args.read(iprot)
7809
    iprot.readMessageEnd()
7810
    result = addSourceItemPricing_result()
7811
    try:
7812
      self._handler.addSourceItemPricing(args.sourceItemPricing)
7813
    except CatalogServiceException, cex:
7814
      result.cex = cex
7815
    oprot.writeMessageBegin("addSourceItemPricing", TMessageType.REPLY, seqid)
7816
    result.write(oprot)
7817
    oprot.writeMessageEnd()
7818
    oprot.trans.flush()
7819
 
7820
  def process_getAllSourcePricing(self, seqid, iprot, oprot):
7821
    args = getAllSourcePricing_args()
7822
    args.read(iprot)
7823
    iprot.readMessageEnd()
7824
    result = getAllSourcePricing_result()
7825
    try:
7826
      result.success = self._handler.getAllSourcePricing(args.itemId)
7827
    except CatalogServiceException, cex:
7828
      result.cex = cex
7829
    oprot.writeMessageBegin("getAllSourcePricing", TMessageType.REPLY, seqid)
7830
    result.write(oprot)
7831
    oprot.writeMessageEnd()
7832
    oprot.trans.flush()
7833
 
7834
  def process_getItemForSource(self, seqid, iprot, oprot):
7835
    args = getItemForSource_args()
7836
    args.read(iprot)
7837
    iprot.readMessageEnd()
7838
    result = getItemForSource_result()
7839
    try:
7840
      result.success = self._handler.getItemForSource(args.item_id, args.sourceId)
7841
    except CatalogServiceException, cex:
7842
      result.cex = cex
7843
    oprot.writeMessageBegin("getItemForSource", TMessageType.REPLY, seqid)
7844
    result.write(oprot)
7845
    oprot.writeMessageEnd()
7846
    oprot.trans.flush()
7847
 
7848
  def process_searchItemsInRange(self, seqid, iprot, oprot):
7849
    args = searchItemsInRange_args()
7850
    args.read(iprot)
7851
    iprot.readMessageEnd()
7852
    result = searchItemsInRange_result()
7853
    result.success = self._handler.searchItemsInRange(args.searchTerms, args.offset, args.limit)
7854
    oprot.writeMessageBegin("searchItemsInRange", TMessageType.REPLY, seqid)
7855
    result.write(oprot)
7856
    oprot.writeMessageEnd()
7857
    oprot.trans.flush()
7858
 
7859
  def process_getSearchResultCount(self, seqid, iprot, oprot):
7860
    args = getSearchResultCount_args()
7861
    args.read(iprot)
7862
    iprot.readMessageEnd()
7863
    result = getSearchResultCount_result()
7864
    result.success = self._handler.getSearchResultCount(args.searchTerms)
7865
    oprot.writeMessageBegin("getSearchResultCount", TMessageType.REPLY, seqid)
7866
    result.write(oprot)
7867
    oprot.writeMessageEnd()
7868
    oprot.trans.flush()
7869
 
7870
  def process_getProductNotifications(self, seqid, iprot, oprot):
7871
    args = getProductNotifications_args()
7872
    args.read(iprot)
7873
    iprot.readMessageEnd()
7874
    result = getProductNotifications_result()
7875
    result.success = self._handler.getProductNotifications(args.startDateTime)
7876
    oprot.writeMessageBegin("getProductNotifications", TMessageType.REPLY, seqid)
7877
    result.write(oprot)
7878
    oprot.writeMessageEnd()
7879
    oprot.trans.flush()
7880
 
7881
  def process_getProductNotificationRequestCount(self, seqid, iprot, oprot):
7882
    args = getProductNotificationRequestCount_args()
7883
    args.read(iprot)
7884
    iprot.readMessageEnd()
7885
    result = getProductNotificationRequestCount_result()
7897 amar.kumar 7886
    result.success = self._handler.getProductNotificationRequestCount(args.startDateTime, args.categoryId)
5944 mandeep.dh 7887
    oprot.writeMessageBegin("getProductNotificationRequestCount", TMessageType.REPLY, seqid)
7888
    result.write(oprot)
7889
    oprot.writeMessageEnd()
7890
    oprot.trans.flush()
7891
 
7892
  def process_addAuthorizationLog(self, seqid, iprot, oprot):
7893
    args = addAuthorizationLog_args()
7894
    args.read(iprot)
7895
    iprot.readMessageEnd()
7896
    result = addAuthorizationLog_result()
7897
    try:
7898
      result.success = self._handler.addAuthorizationLog(args.itemId, args.username, args.reason)
7899
    except CatalogServiceException, cex:
7900
      result.cex = cex
7901
    oprot.writeMessageBegin("addAuthorizationLog", TMessageType.REPLY, seqid)
7902
    result.write(oprot)
7903
    oprot.writeMessageEnd()
7904
    oprot.trans.flush()
7905
 
7906
  def process_addupdateVoucherForItem(self, seqid, iprot, oprot):
7907
    args = addupdateVoucherForItem_args()
7908
    args.read(iprot)
7909
    iprot.readMessageEnd()
7910
    result = addupdateVoucherForItem_result()
7911
    try:
7912
      result.success = self._handler.addupdateVoucherForItem(args.catalog_item_id, args.voucherType, args.voucherAmount)
7913
    except CatalogServiceException, cex:
7914
      result.cex = cex
7915
    oprot.writeMessageBegin("addupdateVoucherForItem", TMessageType.REPLY, seqid)
7916
    result.write(oprot)
7917
    oprot.writeMessageEnd()
7918
    oprot.trans.flush()
7919
 
7920
  def process_deleteVoucherForItem(self, seqid, iprot, oprot):
7921
    args = deleteVoucherForItem_args()
7922
    args.read(iprot)
7923
    iprot.readMessageEnd()
7924
    result = deleteVoucherForItem_result()
7925
    try:
7926
      result.success = self._handler.deleteVoucherForItem(args.catalog_item_id, args.voucherType)
7927
    except CatalogServiceException, cex:
7928
      result.cex = cex
7929
    oprot.writeMessageBegin("deleteVoucherForItem", TMessageType.REPLY, seqid)
7930
    result.write(oprot)
7931
    oprot.writeMessageEnd()
7932
    oprot.trans.flush()
7933
 
7934
  def process_getVoucherAmount(self, seqid, iprot, oprot):
7935
    args = getVoucherAmount_args()
7936
    args.read(iprot)
7937
    iprot.readMessageEnd()
7938
    result = getVoucherAmount_result()
7939
    result.success = self._handler.getVoucherAmount(args.itemId, args.voucherType)
7940
    oprot.writeMessageBegin("getVoucherAmount", TMessageType.REPLY, seqid)
7941
    result.write(oprot)
7942
    oprot.writeMessageEnd()
7943
    oprot.trans.flush()
7944
 
7945
  def process_getAllItemVouchers(self, seqid, iprot, oprot):
7946
    args = getAllItemVouchers_args()
7947
    args.read(iprot)
7948
    iprot.readMessageEnd()
7949
    result = getAllItemVouchers_result()
7950
    result.success = self._handler.getAllItemVouchers(args.itemId)
7951
    oprot.writeMessageBegin("getAllItemVouchers", TMessageType.REPLY, seqid)
7952
    result.write(oprot)
7953
    oprot.writeMessageEnd()
7954
    oprot.trans.flush()
7955
 
7956
  def process_isValidCatalogItemId(self, seqid, iprot, oprot):
7957
    args = isValidCatalogItemId_args()
7958
    args.read(iprot)
7959
    iprot.readMessageEnd()
7960
    result = isValidCatalogItemId_result()
7961
    result.success = self._handler.isValidCatalogItemId(args.catalog_item_id)
7962
    oprot.writeMessageBegin("isValidCatalogItemId", TMessageType.REPLY, seqid)
7963
    result.write(oprot)
7964
    oprot.writeMessageEnd()
7965
    oprot.trans.flush()
7966
 
6039 amit.gupta 7967
  def process_getVatPercentageForItem(self, seqid, iprot, oprot):
7968
    args = getVatPercentageForItem_args()
7969
    args.read(iprot)
7970
    iprot.readMessageEnd()
7971
    result = getVatPercentageForItem_result()
7340 amit.gupta 7972
    try:
7973
      result.success = self._handler.getVatPercentageForItem(args.itemId, args.stateId, args.price)
7974
    except CatalogServiceException, cex:
7975
      result.cex = cex
6039 amit.gupta 7976
    oprot.writeMessageBegin("getVatPercentageForItem", TMessageType.REPLY, seqid)
7977
    result.write(oprot)
7978
    oprot.writeMessageEnd()
7979
    oprot.trans.flush()
5944 mandeep.dh 7980
 
6039 amit.gupta 7981
  def process_getVatAmountForItem(self, seqid, iprot, oprot):
7982
    args = getVatAmountForItem_args()
7983
    args.read(iprot)
7984
    iprot.readMessageEnd()
7985
    result = getVatAmountForItem_result()
7986
    result.success = self._handler.getVatAmountForItem(args.itemId, args.price)
7987
    oprot.writeMessageBegin("getVatAmountForItem", TMessageType.REPLY, seqid)
7988
    result.write(oprot)
7989
    oprot.writeMessageEnd()
7990
    oprot.trans.flush()
7991
 
6531 vikram.rag 7992
  def process_getAllIgnoredInventoryUpdateItemsList(self, seqid, iprot, oprot):
7993
    args = getAllIgnoredInventoryUpdateItemsList_args()
7994
    args.read(iprot)
7995
    iprot.readMessageEnd()
7996
    result = getAllIgnoredInventoryUpdateItemsList_result()
7997
    result.success = self._handler.getAllIgnoredInventoryUpdateItemsList(args.offset, args.limit)
7998
    oprot.writeMessageBegin("getAllIgnoredInventoryUpdateItemsList", TMessageType.REPLY, seqid)
7999
    result.write(oprot)
8000
    oprot.writeMessageEnd()
8001
    oprot.trans.flush()
6039 amit.gupta 8002
 
6821 amar.kumar 8003
  def process_getAllAliveItems(self, seqid, iprot, oprot):
8004
    args = getAllAliveItems_args()
8005
    args.read(iprot)
8006
    iprot.readMessageEnd()
8007
    result = getAllAliveItems_result()
8008
    result.success = self._handler.getAllAliveItems()
8009
    oprot.writeMessageBegin("getAllAliveItems", TMessageType.REPLY, seqid)
8010
    result.write(oprot)
8011
    oprot.writeMessageEnd()
8012
    oprot.trans.flush()
8013
 
6805 anupam.sin 8014
  def process_getInsuranceAmount(self, seqid, iprot, oprot):
8015
    args = getInsuranceAmount_args()
8016
    args.read(iprot)
8017
    iprot.readMessageEnd()
8018
    result = getInsuranceAmount_result()
6921 anupam.sin 8019
    result.success = self._handler.getInsuranceAmount(args.itemId, args.price, args.insurerId, args.quantity)
6805 anupam.sin 8020
    oprot.writeMessageBegin("getInsuranceAmount", TMessageType.REPLY, seqid)
8021
    result.write(oprot)
8022
    oprot.writeMessageEnd()
8023
    oprot.trans.flush()
6531 vikram.rag 8024
 
6805 anupam.sin 8025
  def process_getInsurer(self, seqid, iprot, oprot):
8026
    args = getInsurer_args()
8027
    args.read(iprot)
8028
    iprot.readMessageEnd()
8029
    result = getInsurer_result()
8030
    result.success = self._handler.getInsurer(args.insurerId)
8031
    oprot.writeMessageBegin("getInsurer", TMessageType.REPLY, seqid)
8032
    result.write(oprot)
8033
    oprot.writeMessageEnd()
8034
    oprot.trans.flush()
8035
 
6838 vikram.rag 8036
  def process_getAllInsurers(self, seqid, iprot, oprot):
8037
    args = getAllInsurers_args()
8038
    args.read(iprot)
8039
    iprot.readMessageEnd()
8040
    result = getAllInsurers_result()
8041
    result.success = self._handler.getAllInsurers()
8042
    oprot.writeMessageBegin("getAllInsurers", TMessageType.REPLY, seqid)
8043
    result.write(oprot)
8044
    oprot.writeMessageEnd()
8045
    oprot.trans.flush()
6805 anupam.sin 8046
 
6962 rajveer 8047
  def process_updateInsuranceDeclaredAmount(self, seqid, iprot, oprot):
8048
    args = updateInsuranceDeclaredAmount_args()
8049
    args.read(iprot)
8050
    iprot.readMessageEnd()
8051
    result = updateInsuranceDeclaredAmount_result()
8052
    self._handler.updateInsuranceDeclaredAmount(args.insurerId, args.amount)
8053
    oprot.writeMessageBegin("updateInsuranceDeclaredAmount", TMessageType.REPLY, seqid)
8054
    result.write(oprot)
8055
    oprot.writeMessageEnd()
8056
    oprot.trans.flush()
6838 vikram.rag 8057
 
7190 amar.kumar 8058
  def process_getFreebieForItem(self, seqid, iprot, oprot):
8059
    args = getFreebieForItem_args()
8060
    args.read(iprot)
8061
    iprot.readMessageEnd()
8062
    result = getFreebieForItem_result()
8063
    result.success = self._handler.getFreebieForItem(args.itemId)
8064
    oprot.writeMessageBegin("getFreebieForItem", TMessageType.REPLY, seqid)
8065
    result.write(oprot)
8066
    oprot.writeMessageEnd()
8067
    oprot.trans.flush()
6962 rajveer 8068
 
7190 amar.kumar 8069
  def process_addOrUpdateFreebieForItem(self, seqid, iprot, oprot):
8070
    args = addOrUpdateFreebieForItem_args()
8071
    args.read(iprot)
8072
    iprot.readMessageEnd()
8073
    result = addOrUpdateFreebieForItem_result()
8074
    self._handler.addOrUpdateFreebieForItem(args.freebieItem)
8075
    oprot.writeMessageBegin("addOrUpdateFreebieForItem", TMessageType.REPLY, seqid)
8076
    result.write(oprot)
8077
    oprot.writeMessageEnd()
8078
    oprot.trans.flush()
8079
 
7272 amit.gupta 8080
  def process_addOrUpdateBrandInfo(self, seqid, iprot, oprot):
8081
    args = addOrUpdateBrandInfo_args()
8082
    args.read(iprot)
8083
    iprot.readMessageEnd()
8084
    result = addOrUpdateBrandInfo_result()
8085
    self._handler.addOrUpdateBrandInfo(args.brandInfo)
8086
    oprot.writeMessageBegin("addOrUpdateBrandInfo", TMessageType.REPLY, seqid)
8087
    result.write(oprot)
8088
    oprot.writeMessageEnd()
8089
    oprot.trans.flush()
8090
 
8091
  def process_getBrandInfo(self, seqid, iprot, oprot):
8092
    args = getBrandInfo_args()
8093
    args.read(iprot)
8094
    iprot.readMessageEnd()
8095
    result = getBrandInfo_result()
8096
    result.success = self._handler.getBrandInfo()
8097
    oprot.writeMessageBegin("getBrandInfo", TMessageType.REPLY, seqid)
8098
    result.write(oprot)
8099
    oprot.writeMessageEnd()
8100
    oprot.trans.flush()
8101
 
7256 rajveer 8102
  def process_getStorePricing(self, seqid, iprot, oprot):
8103
    args = getStorePricing_args()
8104
    args.read(iprot)
8105
    iprot.readMessageEnd()
8106
    result = getStorePricing_result()
8107
    result.success = self._handler.getStorePricing(args.itemId)
8108
    oprot.writeMessageBegin("getStorePricing", TMessageType.REPLY, seqid)
8109
    result.write(oprot)
8110
    oprot.writeMessageEnd()
8111
    oprot.trans.flush()
7190 amar.kumar 8112
 
7306 rajveer 8113
  def process_getStorePricings(self, seqid, iprot, oprot):
8114
    args = getStorePricings_args()
8115
    args.read(iprot)
8116
    iprot.readMessageEnd()
8117
    result = getStorePricings_result()
8118
    result.success = self._handler.getStorePricings(args.itemIds)
8119
    oprot.writeMessageBegin("getStorePricings", TMessageType.REPLY, seqid)
8120
    result.write(oprot)
8121
    oprot.writeMessageEnd()
8122
    oprot.trans.flush()
8123
 
7265 rajveer 8124
  def process_updateStorePricing(self, seqid, iprot, oprot):
8125
    args = updateStorePricing_args()
8126
    args.read(iprot)
8127
    iprot.readMessageEnd()
8128
    result = updateStorePricing_result()
7382 rajveer 8129
    self._handler.updateStorePricing(args.sp, args.allColors)
7265 rajveer 8130
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
8131
    result.write(oprot)
8132
    oprot.writeMessageEnd()
8133
    oprot.trans.flush()
7256 rajveer 8134
 
7281 kshitij.so 8135
  def process_getAllAmazonListedItems(self, seqid, iprot, oprot):
8136
    args = getAllAmazonListedItems_args()
8137
    args.read(iprot)
8138
    iprot.readMessageEnd()
8139
    result = getAllAmazonListedItems_result()
8140
    result.success = self._handler.getAllAmazonListedItems()
8141
    oprot.writeMessageBegin("getAllAmazonListedItems", TMessageType.REPLY, seqid)
8142
    result.write(oprot)
8143
    oprot.writeMessageEnd()
8144
    oprot.trans.flush()
7265 rajveer 8145
 
8619 kshitij.so 8146
  def process_searchAmazonItems(self, seqid, iprot, oprot):
8147
    args = searchAmazonItems_args()
8148
    args.read(iprot)
8149
    iprot.readMessageEnd()
8150
    result = searchAmazonItems_result()
8151
    result.success = self._handler.searchAmazonItems(args.searchTerm, args.offset, args.limit)
8152
    oprot.writeMessageBegin("searchAmazonItems", TMessageType.REPLY, seqid)
8153
    result.write(oprot)
8154
    oprot.writeMessageEnd()
8155
    oprot.trans.flush()
8156
 
8157
  def process_getAmazonSearchResultCount(self, seqid, iprot, oprot):
8158
    args = getAmazonSearchResultCount_args()
8159
    args.read(iprot)
8160
    iprot.readMessageEnd()
8161
    result = getAmazonSearchResultCount_result()
8162
    result.success = self._handler.getAmazonSearchResultCount(args.searchTerm)
8163
    oprot.writeMessageBegin("getAmazonSearchResultCount", TMessageType.REPLY, seqid)
8164
    result.write(oprot)
8165
    oprot.writeMessageEnd()
8166
    oprot.trans.flush()
8167
 
8168
  def process_getCountForAmazonlistedItems(self, seqid, iprot, oprot):
8169
    args = getCountForAmazonlistedItems_args()
8170
    args.read(iprot)
8171
    iprot.readMessageEnd()
8172
    result = getCountForAmazonlistedItems_result()
8173
    result.success = self._handler.getCountForAmazonlistedItems()
8174
    oprot.writeMessageBegin("getCountForAmazonlistedItems", TMessageType.REPLY, seqid)
8175
    result.write(oprot)
8176
    oprot.writeMessageEnd()
8177
    oprot.trans.flush()
8178
 
7281 kshitij.so 8179
  def process_getAmazonItemDetails(self, seqid, iprot, oprot):
8180
    args = getAmazonItemDetails_args()
8181
    args.read(iprot)
8182
    iprot.readMessageEnd()
8183
    result = getAmazonItemDetails_result()
8184
    result.success = self._handler.getAmazonItemDetails(args.itemId)
8185
    oprot.writeMessageBegin("getAmazonItemDetails", TMessageType.REPLY, seqid)
8186
    result.write(oprot)
8187
    oprot.writeMessageEnd()
8188
    oprot.trans.flush()
8189
 
8190
  def process_updateAmazonItemDetails(self, seqid, iprot, oprot):
8191
    args = updateAmazonItemDetails_args()
8192
    args.read(iprot)
8193
    iprot.readMessageEnd()
8194
    result = updateAmazonItemDetails_result()
8168 kshitij.so 8195
    self._handler.updateAmazonItemDetails(args.amazonlisted)
7281 kshitij.so 8196
    oprot.writeMessageBegin("updateAmazonItemDetails", TMessageType.REPLY, seqid)
8197
    result.write(oprot)
8198
    oprot.writeMessageEnd()
8199
    oprot.trans.flush()
8200
 
8201
  def process_addAmazonItem(self, seqid, iprot, oprot):
8202
    args = addAmazonItem_args()
8203
    args.read(iprot)
8204
    iprot.readMessageEnd()
8205
    result = addAmazonItem_result()
8206
    self._handler.addAmazonItem(args.amazonlisted)
8207
    oprot.writeMessageBegin("addAmazonItem", TMessageType.REPLY, seqid)
8208
    result.write(oprot)
8209
    oprot.writeMessageEnd()
8210
    oprot.trans.flush()
8211
 
7291 vikram.rag 8212
  def process_getAsinItems(self, seqid, iprot, oprot):
8213
    args = getAsinItems_args()
8214
    args.read(iprot)
8215
    iprot.readMessageEnd()
8216
    result = getAsinItems_result()
8217
    result.success = self._handler.getAsinItems()
8218
    oprot.writeMessageBegin("getAsinItems", TMessageType.REPLY, seqid)
8219
    result.write(oprot)
8220
    oprot.writeMessageEnd()
8221
    oprot.trans.flush()
7281 kshitij.so 8222
 
7291 vikram.rag 8223
  def process_getAllFbaListedItems(self, seqid, iprot, oprot):
8224
    args = getAllFbaListedItems_args()
8225
    args.read(iprot)
8226
    iprot.readMessageEnd()
8227
    result = getAllFbaListedItems_result()
8228
    result.success = self._handler.getAllFbaListedItems()
8229
    oprot.writeMessageBegin("getAllFbaListedItems", TMessageType.REPLY, seqid)
8230
    result.write(oprot)
8231
    oprot.writeMessageEnd()
8232
    oprot.trans.flush()
8233
 
8234
  def process_getAllNonFbaListedItems(self, seqid, iprot, oprot):
8235
    args = getAllNonFbaListedItems_args()
8236
    args.read(iprot)
8237
    iprot.readMessageEnd()
8238
    result = getAllNonFbaListedItems_result()
8239
    result.success = self._handler.getAllNonFbaListedItems()
8240
    oprot.writeMessageBegin("getAllNonFbaListedItems", TMessageType.REPLY, seqid)
8241
    result.write(oprot)
8242
    oprot.writeMessageEnd()
8243
    oprot.trans.flush()
8244
 
7460 kshitij.so 8245
  def process_updateItemInventory(self, seqid, iprot, oprot):
8246
    args = updateItemInventory_args()
8247
    args.read(iprot)
8248
    iprot.readMessageEnd()
8249
    result = updateItemInventory_result()
8250
    result.success = self._handler.updateItemInventory(args.itemId, args.holdInventory, args.defaultInventory)
8251
    oprot.writeMessageBegin("updateItemInventory", TMessageType.REPLY, seqid)
8252
    result.write(oprot)
8253
    oprot.writeMessageEnd()
8254
    oprot.trans.flush()
7291 vikram.rag 8255
 
7770 kshitij.so 8256
  def process_updateTimestampForAmazonFeeds(self, seqid, iprot, oprot):
8257
    args = updateTimestampForAmazonFeeds_args()
8258
    args.read(iprot)
8259
    iprot.readMessageEnd()
8260
    result = updateTimestampForAmazonFeeds_result()
8261
    result.success = self._handler.updateTimestampForAmazonFeeds(args.type, args.sku, args.timestamp)
8262
    oprot.writeMessageBegin("updateTimestampForAmazonFeeds", TMessageType.REPLY, seqid)
8263
    result.write(oprot)
8264
    oprot.writeMessageEnd()
8265
    oprot.trans.flush()
7460 kshitij.so 8266
 
7897 amar.kumar 8267
  def process_getAllParentCategories(self, seqid, iprot, oprot):
8268
    args = getAllParentCategories_args()
8269
    args.read(iprot)
8270
    iprot.readMessageEnd()
8271
    result = getAllParentCategories_result()
8272
    result.success = self._handler.getAllParentCategories()
8273
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
8274
    result.write(oprot)
8275
    oprot.writeMessageEnd()
8276
    oprot.trans.flush()
7770 kshitij.so 8277
 
7977 kshitij.so 8278
  def process_addPageViewEvent(self, seqid, iprot, oprot):
8279
    args = addPageViewEvent_args()
8280
    args.read(iprot)
8281
    iprot.readMessageEnd()
8282
    result = addPageViewEvent_result()
8283
    self._handler.addPageViewEvent(args.pageViewEvents)
8284
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
8285
    result.write(oprot)
8286
    oprot.writeMessageEnd()
8287
    oprot.trans.flush()
7897 amar.kumar 8288
 
7977 kshitij.so 8289
  def process_addCartEvent(self, seqid, iprot, oprot):
8290
    args = addCartEvent_args()
8291
    args.read(iprot)
8292
    iprot.readMessageEnd()
8293
    result = addCartEvent_result()
8294
    self._handler.addCartEvent(args.cartEvents)
8295
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
8296
    result.write(oprot)
8297
    oprot.writeMessageEnd()
8298
    oprot.trans.flush()
8299
 
8182 amar.kumar 8300
  def process_addEbayItem(self, seqid, iprot, oprot):
8301
    args = addEbayItem_args()
8302
    args.read(iprot)
8303
    iprot.readMessageEnd()
8304
    result = addEbayItem_result()
8305
    self._handler.addEbayItem(args.ebayItem)
8306
    oprot.writeMessageBegin("addEbayItem", TMessageType.REPLY, seqid)
8307
    result.write(oprot)
8308
    oprot.writeMessageEnd()
8309
    oprot.trans.flush()
8310
 
8311
  def process_getEbayItem(self, seqid, iprot, oprot):
8312
    args = getEbayItem_args()
8313
    args.read(iprot)
8314
    iprot.readMessageEnd()
8315
    result = getEbayItem_result()
8316
    result.success = self._handler.getEbayItem(args.listingId)
8317
    oprot.writeMessageBegin("getEbayItem", TMessageType.REPLY, seqid)
8318
    result.write(oprot)
8319
    oprot.writeMessageEnd()
8320
    oprot.trans.flush()
8321
 
8322
  def process_updateEbayItem(self, seqid, iprot, oprot):
8323
    args = updateEbayItem_args()
8324
    args.read(iprot)
8325
    iprot.readMessageEnd()
8326
    result = updateEbayItem_result()
8327
    self._handler.updateEbayItem(args.ebayItem)
8328
    oprot.writeMessageBegin("updateEbayItem", TMessageType.REPLY, seqid)
8329
    result.write(oprot)
8330
    oprot.writeMessageEnd()
8331
    oprot.trans.flush()
8332
 
8139 kshitij.so 8333
  def process_getAmazonListedItems(self, seqid, iprot, oprot):
8334
    args = getAmazonListedItems_args()
8335
    args.read(iprot)
8336
    iprot.readMessageEnd()
8337
    result = getAmazonListedItems_result()
8338
    result.success = self._handler.getAmazonListedItems(args.offset, args.limit)
8339
    oprot.writeMessageBegin("getAmazonListedItems", TMessageType.REPLY, seqid)
8340
    result.write(oprot)
8341
    oprot.writeMessageEnd()
8342
    oprot.trans.flush()
7977 kshitij.so 8343
 
8168 kshitij.so 8344
  def process_updateAmazonAttributesInBulk(self, seqid, iprot, oprot):
8345
    args = updateAmazonAttributesInBulk_args()
8346
    args.read(iprot)
8347
    iprot.readMessageEnd()
8348
    result = updateAmazonAttributesInBulk_result()
8349
    result.success = self._handler.updateAmazonAttributesInBulk(args.amazonlisted)
8350
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
8351
    result.write(oprot)
8352
    oprot.writeMessageEnd()
8353
    oprot.trans.flush()
8139 kshitij.so 8354
 
8379 vikram.rag 8355
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
8356
    args = getAllItemstoListOnFba_args()
8357
    args.read(iprot)
8358
    iprot.readMessageEnd()
8359
    result = getAllItemstoListOnFba_result()
8360
    result.success = self._handler.getAllItemstoListOnFba()
8361
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
8362
    result.write(oprot)
8363
    oprot.writeMessageEnd()
8364
    oprot.trans.flush()
8168 kshitij.so 8365
 
8379 vikram.rag 8366
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
8367
    args = getAllItemstoListOnNonFba_args()
8368
    args.read(iprot)
8369
    iprot.readMessageEnd()
8370
    result = getAllItemstoListOnNonFba_result()
8371
    result.success = self._handler.getAllItemstoListOnNonFba()
8372
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
8373
    result.write(oprot)
8374
    oprot.writeMessageEnd()
8375
    oprot.trans.flush()
8376
 
8619 kshitij.so 8377
  def process_updateAsin(self, seqid, iprot, oprot):
8378
    args = updateAsin_args()
8379
    args.read(iprot)
8380
    iprot.readMessageEnd()
8381
    result = updateAsin_result()
8382
    self._handler.updateAsin(args.item)
8383
    oprot.writeMessageBegin("updateAsin", TMessageType.REPLY, seqid)
8384
    result.write(oprot)
8385
    oprot.writeMessageEnd()
8386
    oprot.trans.flush()
8616 vikram.rag 8387
 
8739 vikram.rag 8388
  def process_addOrUpdateSnapdealItem(self, seqid, iprot, oprot):
8389
    args = addOrUpdateSnapdealItem_args()
8390
    args.read(iprot)
8391
    iprot.readMessageEnd()
8392
    result = addOrUpdateSnapdealItem_result()
8393
    result.success = self._handler.addOrUpdateSnapdealItem(args.snapdealitem)
8394
    oprot.writeMessageBegin("addOrUpdateSnapdealItem", TMessageType.REPLY, seqid)
8395
    result.write(oprot)
8396
    oprot.writeMessageEnd()
8397
    oprot.trans.flush()
8619 kshitij.so 8398
 
8739 vikram.rag 8399
  def process_getSnapdealItem(self, seqid, iprot, oprot):
8400
    args = getSnapdealItem_args()
8401
    args.read(iprot)
8402
    iprot.readMessageEnd()
8403
    result = getSnapdealItem_result()
8404
    result.success = self._handler.getSnapdealItem(args.item_id)
8405
    oprot.writeMessageBegin("getSnapdealItem", TMessageType.REPLY, seqid)
8406
    result.write(oprot)
8407
    oprot.writeMessageEnd()
8408
    oprot.trans.flush()
8409
 
9242 kshitij.so 8410
  def process_getSnapdealItemDetails(self, seqid, iprot, oprot):
8411
    args = getSnapdealItemDetails_args()
8412
    args.read(iprot)
8413
    iprot.readMessageEnd()
8414
    result = getSnapdealItemDetails_result()
8415
    result.success = self._handler.getSnapdealItemDetails(args.item_id)
8416
    oprot.writeMessageBegin("getSnapdealItemDetails", TMessageType.REPLY, seqid)
8417
    result.write(oprot)
8418
    oprot.writeMessageEnd()
8419
    oprot.trans.flush()
8420
 
8739 vikram.rag 8421
  def process_getAllSnapdealItems(self, seqid, iprot, oprot):
8422
    args = getAllSnapdealItems_args()
8423
    args.read(iprot)
8424
    iprot.readMessageEnd()
8425
    result = getAllSnapdealItems_result()
8426
    result.success = self._handler.getAllSnapdealItems()
8427
    oprot.writeMessageBegin("getAllSnapdealItems", TMessageType.REPLY, seqid)
8428
    result.write(oprot)
8429
    oprot.writeMessageEnd()
8430
    oprot.trans.flush()
8431
 
9242 kshitij.so 8432
  def process_getSnapdealItems(self, seqid, iprot, oprot):
8433
    args = getSnapdealItems_args()
8434
    args.read(iprot)
8435
    iprot.readMessageEnd()
8436
    result = getSnapdealItems_result()
8437
    result.success = self._handler.getSnapdealItems(args.offset, args.limit)
8438
    oprot.writeMessageBegin("getSnapdealItems", TMessageType.REPLY, seqid)
8439
    result.write(oprot)
8440
    oprot.writeMessageEnd()
8441
    oprot.trans.flush()
8739 vikram.rag 8442
 
9242 kshitij.so 8443
  def process_searchSnapdealItems(self, seqid, iprot, oprot):
8444
    args = searchSnapdealItems_args()
8445
    args.read(iprot)
8446
    iprot.readMessageEnd()
8447
    result = searchSnapdealItems_result()
8448
    result.success = self._handler.searchSnapdealItems(args.searchTerm, args.offset, args.limit)
8449
    oprot.writeMessageBegin("searchSnapdealItems", TMessageType.REPLY, seqid)
8450
    result.write(oprot)
8451
    oprot.writeMessageEnd()
8452
    oprot.trans.flush()
8453
 
8454
  def process_getCountForSnapdealItems(self, seqid, iprot, oprot):
8455
    args = getCountForSnapdealItems_args()
8456
    args.read(iprot)
8457
    iprot.readMessageEnd()
8458
    result = getCountForSnapdealItems_result()
8459
    result.success = self._handler.getCountForSnapdealItems()
8460
    oprot.writeMessageBegin("getCountForSnapdealItems", TMessageType.REPLY, seqid)
8461
    result.write(oprot)
8462
    oprot.writeMessageEnd()
8463
    oprot.trans.flush()
8464
 
8465
  def process_getSnapdealSearchResultCount(self, seqid, iprot, oprot):
8466
    args = getSnapdealSearchResultCount_args()
8467
    args.read(iprot)
8468
    iprot.readMessageEnd()
8469
    result = getSnapdealSearchResultCount_result()
8470
    result.success = self._handler.getSnapdealSearchResultCount(args.searchTerm)
8471
    oprot.writeMessageBegin("getSnapdealSearchResultCount", TMessageType.REPLY, seqid)
8472
    result.write(oprot)
8473
    oprot.writeMessageEnd()
8474
    oprot.trans.flush()
8475
 
9299 kshitij.so 8476
  def process_getPrefferedInsurerForItem(self, seqid, iprot, oprot):
8477
    args = getPrefferedInsurerForItem_args()
8478
    args.read(iprot)
8479
    iprot.readMessageEnd()
8480
    result = getPrefferedInsurerForItem_result()
8481
    result.success = self._handler.getPrefferedInsurerForItem(args.itemId, args.insurerType)
8482
    oprot.writeMessageBegin("getPrefferedInsurerForItem", TMessageType.REPLY, seqid)
8483
    result.write(oprot)
8484
    oprot.writeMessageEnd()
8485
    oprot.trans.flush()
9242 kshitij.so 8486
 
9456 vikram.rag 8487
  def process_getSnapdealItembySkuAtSnapdeal(self, seqid, iprot, oprot):
8488
    args = getSnapdealItembySkuAtSnapdeal_args()
8489
    args.read(iprot)
8490
    iprot.readMessageEnd()
8491
    result = getSnapdealItembySkuAtSnapdeal_result()
8492
    result.success = self._handler.getSnapdealItembySkuAtSnapdeal(args.skuAtSnapdeal)
8493
    oprot.writeMessageBegin("getSnapdealItembySkuAtSnapdeal", TMessageType.REPLY, seqid)
8494
    result.write(oprot)
8495
    oprot.writeMessageEnd()
8496
    oprot.trans.flush()
9299 kshitij.so 8497
 
9621 manish.sha 8498
  def process_getProductFeedSubmit(self, seqid, iprot, oprot):
8499
    args = getProductFeedSubmit_args()
8500
    args.read(iprot)
8501
    iprot.readMessageEnd()
8502
    result = getProductFeedSubmit_result()
8503
    try:
8504
      result.success = self._handler.getProductFeedSubmit(args.catalogItemId)
8505
    except CatalogServiceException, cex:
8506
      result.cex = cex
8507
    oprot.writeMessageBegin("getProductFeedSubmit", TMessageType.REPLY, seqid)
8508
    result.write(oprot)
8509
    oprot.writeMessageEnd()
8510
    oprot.trans.flush()
9456 vikram.rag 8511
 
9621 manish.sha 8512
  def process_addProductFeedSubmit(self, seqid, iprot, oprot):
8513
    args = addProductFeedSubmit_args()
8514
    args.read(iprot)
8515
    iprot.readMessageEnd()
8516
    result = addProductFeedSubmit_result()
8517
    try:
8518
      result.success = self._handler.addProductFeedSubmit(args.productFeedSubmit)
8519
    except CatalogServiceException, cex:
8520
      result.cex = cex
8521
    oprot.writeMessageBegin("addProductFeedSubmit", TMessageType.REPLY, seqid)
8522
    result.write(oprot)
8523
    oprot.writeMessageEnd()
8524
    oprot.trans.flush()
8525
 
8526
  def process_updateProductFeedSubmit(self, seqid, iprot, oprot):
8527
    args = updateProductFeedSubmit_args()
8528
    args.read(iprot)
8529
    iprot.readMessageEnd()
8530
    result = updateProductFeedSubmit_result()
8531
    try:
8532
      result.success = self._handler.updateProductFeedSubmit(args.productFeedSubmit)
8533
    except CatalogServiceException, cex:
8534
      result.cex = cex
8535
    oprot.writeMessageBegin("updateProductFeedSubmit", TMessageType.REPLY, seqid)
8536
    result.write(oprot)
8537
    oprot.writeMessageEnd()
8538
    oprot.trans.flush()
8539
 
8540
  def process_deleteProductFeedSubmit(self, seqid, iprot, oprot):
8541
    args = deleteProductFeedSubmit_args()
8542
    args.read(iprot)
8543
    iprot.readMessageEnd()
8544
    result = deleteProductFeedSubmit_result()
8545
    try:
8546
      result.success = self._handler.deleteProductFeedSubmit(args.catalogItemId)
8547
    except CatalogServiceException, cex:
8548
      result.cex = cex
8549
    oprot.writeMessageBegin("deleteProductFeedSubmit", TMessageType.REPLY, seqid)
8550
    result.write(oprot)
8551
    oprot.writeMessageEnd()
8552
    oprot.trans.flush()
8553
 
8554
  def process_getAllProductFeedSubmit(self, seqid, iprot, oprot):
8555
    args = getAllProductFeedSubmit_args()
8556
    args.read(iprot)
8557
    iprot.readMessageEnd()
8558
    result = getAllProductFeedSubmit_result()
8559
    try:
8560
      result.success = self._handler.getAllProductFeedSubmit()
8561
    except CatalogServiceException, cex:
8562
      result.cex = cex
8563
    oprot.writeMessageBegin("getAllProductFeedSubmit", TMessageType.REPLY, seqid)
8564
    result.write(oprot)
8565
    oprot.writeMessageEnd()
8566
    oprot.trans.flush()
8567
 
9724 kshitij.so 8568
  def process_getMarketplacedetailsForItem(self, seqid, iprot, oprot):
8569
    args = getMarketplacedetailsForItem_args()
8570
    args.read(iprot)
8571
    iprot.readMessageEnd()
8572
    result = getMarketplacedetailsForItem_result()
8573
    result.success = self._handler.getMarketplacedetailsForItem(args.itemId, args.sourceId)
8574
    oprot.writeMessageBegin("getMarketplacedetailsForItem", TMessageType.REPLY, seqid)
8575
    result.write(oprot)
8576
    oprot.writeMessageEnd()
8577
    oprot.trans.flush()
9621 manish.sha 8578
 
9724 kshitij.so 8579
  def process_updateMarketplaceAttributesForItem(self, seqid, iprot, oprot):
8580
    args = updateMarketplaceAttributesForItem_args()
8581
    args.read(iprot)
8582
    iprot.readMessageEnd()
8583
    result = updateMarketplaceAttributesForItem_result()
8584
    result.success = self._handler.updateMarketplaceAttributesForItem(args.marketPlaceItem)
8585
    oprot.writeMessageBegin("updateMarketplaceAttributesForItem", TMessageType.REPLY, seqid)
8586
    result.write(oprot)
8587
    oprot.writeMessageEnd()
8588
    oprot.trans.flush()
8589
 
9779 kshitij.so 8590
  def process_getCostingForMarketplace(self, seqid, iprot, oprot):
8591
    args = getCostingForMarketplace_args()
8592
    args.read(iprot)
8593
    iprot.readMessageEnd()
8594
    result = getCostingForMarketplace_result()
8595
    result.success = self._handler.getCostingForMarketplace(args.source, args.item_id)
8596
    oprot.writeMessageBegin("getCostingForMarketplace", TMessageType.REPLY, seqid)
8597
    result.write(oprot)
8598
    oprot.writeMessageEnd()
8599
    oprot.trans.flush()
8600
 
9776 vikram.rag 8601
  def process_getMarketPlaceItemsForPriceUpdate(self, seqid, iprot, oprot):
8602
    args = getMarketPlaceItemsForPriceUpdate_args()
8603
    args.read(iprot)
8604
    iprot.readMessageEnd()
8605
    result = getMarketPlaceItemsForPriceUpdate_result()
8606
    result.success = self._handler.getMarketPlaceItemsForPriceUpdate(args.source)
8607
    oprot.writeMessageBegin("getMarketPlaceItemsForPriceUpdate", TMessageType.REPLY, seqid)
8608
    result.write(oprot)
8609
    oprot.writeMessageEnd()
8610
    oprot.trans.flush()
9724 kshitij.so 8611
 
9776 vikram.rag 8612
  def process_updateMarketPlacePriceUpdateStatus(self, seqid, iprot, oprot):
8613
    args = updateMarketPlacePriceUpdateStatus_args()
8614
    args.read(iprot)
8615
    iprot.readMessageEnd()
8616
    result = updateMarketPlacePriceUpdateStatus_result()
9816 kshitij.so 8617
    self._handler.updateMarketPlacePriceUpdateStatus(args.skulist, args.timestamp, args.source)
9776 vikram.rag 8618
    oprot.writeMessageBegin("updateMarketPlacePriceUpdateStatus", TMessageType.REPLY, seqid)
8619
    result.write(oprot)
8620
    oprot.writeMessageEnd()
8621
    oprot.trans.flush()
8622
 
9861 rajveer 8623
  def process_updateItemHoldInventory(self, seqid, iprot, oprot):
8624
    args = updateItemHoldInventory_args()
8625
    args.read(iprot)
8626
    iprot.readMessageEnd()
8627
    result = updateItemHoldInventory_result()
8628
    self._handler.updateItemHoldInventory(args.itemHoldMap)
8629
    oprot.writeMessageBegin("updateItemHoldInventory", TMessageType.REPLY, seqid)
8630
    result.write(oprot)
8631
    oprot.writeMessageEnd()
8632
    oprot.trans.flush()
9776 vikram.rag 8633
 
9895 vikram.rag 8634
  def process_updateNlcAtMarketplaces(self, seqid, iprot, oprot):
8635
    args = updateNlcAtMarketplaces_args()
8636
    args.read(iprot)
8637
    iprot.readMessageEnd()
8638
    result = updateNlcAtMarketplaces_result()
8639
    self._handler.updateNlcAtMarketplaces(args.item_id, args.vendor_id, args.nlc)
8640
    oprot.writeMessageBegin("updateNlcAtMarketplaces", TMessageType.REPLY, seqid)
8641
    result.write(oprot)
8642
    oprot.writeMessageEnd()
8643
    oprot.trans.flush()
9861 rajveer 8644
 
9945 vikram.rag 8645
  def process_getAllFlipkartItems(self, seqid, iprot, oprot):
8646
    args = getAllFlipkartItems_args()
8647
    args.read(iprot)
8648
    iprot.readMessageEnd()
8649
    result = getAllFlipkartItems_result()
8650
    result.success = self._handler.getAllFlipkartItems()
8651
    oprot.writeMessageBegin("getAllFlipkartItems", TMessageType.REPLY, seqid)
8652
    result.write(oprot)
8653
    oprot.writeMessageEnd()
8654
    oprot.trans.flush()
9895 vikram.rag 8655
 
10097 kshitij.so 8656
  def process_addOrUpdateFlipkartItem(self, seqid, iprot, oprot):
8657
    args = addOrUpdateFlipkartItem_args()
8658
    args.read(iprot)
8659
    iprot.readMessageEnd()
8660
    result = addOrUpdateFlipkartItem_result()
8661
    result.success = self._handler.addOrUpdateFlipkartItem(args.flipkartitem)
8662
    oprot.writeMessageBegin("addOrUpdateFlipkartItem", TMessageType.REPLY, seqid)
8663
    result.write(oprot)
8664
    oprot.writeMessageEnd()
8665
    oprot.trans.flush()
9945 vikram.rag 8666
 
10097 kshitij.so 8667
  def process_getFlipkartItem(self, seqid, iprot, oprot):
8668
    args = getFlipkartItem_args()
8669
    args.read(iprot)
8670
    iprot.readMessageEnd()
8671
    result = getFlipkartItem_result()
8672
    result.success = self._handler.getFlipkartItem(args.item_id)
8673
    oprot.writeMessageBegin("getFlipkartItem", TMessageType.REPLY, seqid)
8674
    result.write(oprot)
8675
    oprot.writeMessageEnd()
8676
    oprot.trans.flush()
8677
 
8678
  def process_getFlipkartItemDetails(self, seqid, iprot, oprot):
8679
    args = getFlipkartItemDetails_args()
8680
    args.read(iprot)
8681
    iprot.readMessageEnd()
8682
    result = getFlipkartItemDetails_result()
8683
    result.success = self._handler.getFlipkartItemDetails(args.item_id)
8684
    oprot.writeMessageBegin("getFlipkartItemDetails", TMessageType.REPLY, seqid)
8685
    result.write(oprot)
8686
    oprot.writeMessageEnd()
8687
    oprot.trans.flush()
8688
 
8689
  def process_getFlipkartItems(self, seqid, iprot, oprot):
8690
    args = getFlipkartItems_args()
8691
    args.read(iprot)
8692
    iprot.readMessageEnd()
8693
    result = getFlipkartItems_result()
8694
    result.success = self._handler.getFlipkartItems(args.offset, args.limit)
8695
    oprot.writeMessageBegin("getFlipkartItems", TMessageType.REPLY, seqid)
8696
    result.write(oprot)
8697
    oprot.writeMessageEnd()
8698
    oprot.trans.flush()
8699
 
8700
  def process_searchFlipkartItems(self, seqid, iprot, oprot):
8701
    args = searchFlipkartItems_args()
8702
    args.read(iprot)
8703
    iprot.readMessageEnd()
8704
    result = searchFlipkartItems_result()
8705
    result.success = self._handler.searchFlipkartItems(args.searchTerm, args.offset, args.limit)
8706
    oprot.writeMessageBegin("searchFlipkartItems", TMessageType.REPLY, seqid)
8707
    result.write(oprot)
8708
    oprot.writeMessageEnd()
8709
    oprot.trans.flush()
8710
 
8711
  def process_getCountForFlipkartItems(self, seqid, iprot, oprot):
8712
    args = getCountForFlipkartItems_args()
8713
    args.read(iprot)
8714
    iprot.readMessageEnd()
8715
    result = getCountForFlipkartItems_result()
8716
    result.success = self._handler.getCountForFlipkartItems()
8717
    oprot.writeMessageBegin("getCountForFlipkartItems", TMessageType.REPLY, seqid)
8718
    result.write(oprot)
8719
    oprot.writeMessageEnd()
8720
    oprot.trans.flush()
8721
 
8722
  def process_getFlipkartSearchResultCount(self, seqid, iprot, oprot):
8723
    args = getFlipkartSearchResultCount_args()
8724
    args.read(iprot)
8725
    iprot.readMessageEnd()
8726
    result = getFlipkartSearchResultCount_result()
8727
    result.success = self._handler.getFlipkartSearchResultCount(args.searchTerm)
8728
    oprot.writeMessageBegin("getFlipkartSearchResultCount", TMessageType.REPLY, seqid)
8729
    result.write(oprot)
8730
    oprot.writeMessageEnd()
8731
    oprot.trans.flush()
8732
 
8733
  def process_getAllFkItems(self, seqid, iprot, oprot):
8734
    args = getAllFkItems_args()
8735
    args.read(iprot)
8736
    iprot.readMessageEnd()
8737
    result = getAllFkItems_result()
8738
    result.success = self._handler.getAllFkItems()
8739
    oprot.writeMessageBegin("getAllFkItems", TMessageType.REPLY, seqid)
8740
    result.write(oprot)
8741
    oprot.writeMessageEnd()
8742
    oprot.trans.flush()
8743
 
10140 vikram.rag 8744
  def process_getFlipkartItemBySkyAtFlipkart(self, seqid, iprot, oprot):
8745
    args = getFlipkartItemBySkyAtFlipkart_args()
8746
    args.read(iprot)
8747
    iprot.readMessageEnd()
8748
    result = getFlipkartItemBySkyAtFlipkart_result()
8749
    result.success = self._handler.getFlipkartItemBySkyAtFlipkart(args.sku)
8750
    oprot.writeMessageBegin("getFlipkartItemBySkyAtFlipkart", TMessageType.REPLY, seqid)
8751
    result.write(oprot)
8752
    oprot.writeMessageEnd()
8753
    oprot.trans.flush()
10097 kshitij.so 8754
 
11015 kshitij.so 8755
  def process_getMarketplaceHistory(self, seqid, iprot, oprot):
8756
    args = getMarketplaceHistory_args()
8757
    args.read(iprot)
8758
    iprot.readMessageEnd()
8759
    result = getMarketplaceHistory_result()
8760
    result.success = self._handler.getMarketplaceHistory(args.source, args.offset, args.itemId)
8761
    oprot.writeMessageBegin("getMarketplaceHistory", TMessageType.REPLY, seqid)
8762
    result.write(oprot)
8763
    oprot.writeMessageEnd()
8764
    oprot.trans.flush()
8765
 
10909 vikram.rag 8766
  def process_getAllFbbListedItems(self, seqid, iprot, oprot):
8767
    args = getAllFbbListedItems_args()
8768
    args.read(iprot)
8769
    iprot.readMessageEnd()
8770
    result = getAllFbbListedItems_result()
8771
    result.success = self._handler.getAllFbbListedItems()
8772
    oprot.writeMessageBegin("getAllFbbListedItems", TMessageType.REPLY, seqid)
8773
    result.write(oprot)
8774
    oprot.writeMessageEnd()
8775
    oprot.trans.flush()
10140 vikram.rag 8776
 
10924 vikram.rag 8777
  def process_getAllFbbPricingItems(self, seqid, iprot, oprot):
8778
    args = getAllFbbPricingItems_args()
8779
    args.read(iprot)
8780
    iprot.readMessageEnd()
8781
    result = getAllFbbPricingItems_result()
8782
    result.success = self._handler.getAllFbbPricingItems()
8783
    oprot.writeMessageBegin("getAllFbbPricingItems", TMessageType.REPLY, seqid)
8784
    result.write(oprot)
8785
    oprot.writeMessageEnd()
8786
    oprot.trans.flush()
10909 vikram.rag 8787
 
11015 kshitij.so 8788
  def process_getCountForMarketplaceHistory(self, seqid, iprot, oprot):
8789
    args = getCountForMarketplaceHistory_args()
8790
    args.read(iprot)
8791
    iprot.readMessageEnd()
8792
    result = getCountForMarketplaceHistory_result()
8793
    result.success = self._handler.getCountForMarketplaceHistory(args.source, args.itemId)
8794
    oprot.writeMessageBegin("getCountForMarketplaceHistory", TMessageType.REPLY, seqid)
8795
    result.write(oprot)
8796
    oprot.writeMessageEnd()
8797
    oprot.trans.flush()
10924 vikram.rag 8798
 
11015 kshitij.so 8799
  def process_getMarketplaceHistoryByDate(self, seqid, iprot, oprot):
8800
    args = getMarketplaceHistoryByDate_args()
8801
    args.read(iprot)
8802
    iprot.readMessageEnd()
8803
    result = getMarketplaceHistoryByDate_result()
8804
    result.success = self._handler.getMarketplaceHistoryByDate(args.source, args.startDate, args.endDate, args.offset, args.limit, args.itemId)
8805
    oprot.writeMessageBegin("getMarketplaceHistoryByDate", TMessageType.REPLY, seqid)
8806
    result.write(oprot)
8807
    oprot.writeMessageEnd()
8808
    oprot.trans.flush()
8809
 
11531 vikram.rag 8810
  def process_getPrivateDealDetails(self, seqid, iprot, oprot):
8811
    args = getPrivateDealDetails_args()
8812
    args.read(iprot)
8813
    iprot.readMessageEnd()
8814
    result = getPrivateDealDetails_result()
8815
    result.success = self._handler.getPrivateDealDetails(args.item_id)
8816
    oprot.writeMessageBegin("getPrivateDealDetails", TMessageType.REPLY, seqid)
8817
    result.write(oprot)
8818
    oprot.writeMessageEnd()
8819
    oprot.trans.flush()
11015 kshitij.so 8820
 
11531 vikram.rag 8821
  def process_getPrivateDealItems(self, seqid, iprot, oprot):
8822
    args = getPrivateDealItems_args()
8823
    args.read(iprot)
8824
    iprot.readMessageEnd()
8825
    result = getPrivateDealItems_result()
8826
    result.success = self._handler.getPrivateDealItems(args.offset, args.limit)
8827
    oprot.writeMessageBegin("getPrivateDealItems", TMessageType.REPLY, seqid)
8828
    result.write(oprot)
8829
    oprot.writeMessageEnd()
8830
    oprot.trans.flush()
8831
 
11592 amit.gupta 8832
  def process_getAllActivePrivateDeals(self, seqid, iprot, oprot):
8833
    args = getAllActivePrivateDeals_args()
8834
    args.read(iprot)
8835
    iprot.readMessageEnd()
8836
    result = getAllActivePrivateDeals_result()
11653 amit.gupta 8837
    result.success = self._handler.getAllActivePrivateDeals(args.itemIds, args.daysDelta)
11592 amit.gupta 8838
    oprot.writeMessageBegin("getAllActivePrivateDeals", TMessageType.REPLY, seqid)
8839
    result.write(oprot)
8840
    oprot.writeMessageEnd()
8841
    oprot.trans.flush()
8842
 
11531 vikram.rag 8843
  def process_addOrUpdatePrivateDeal(self, seqid, iprot, oprot):
8844
    args = addOrUpdatePrivateDeal_args()
8845
    args.read(iprot)
8846
    iprot.readMessageEnd()
8847
    result = addOrUpdatePrivateDeal_result()
8848
    result.success = self._handler.addOrUpdatePrivateDeal(args.privateDeal)
8849
    oprot.writeMessageBegin("addOrUpdatePrivateDeal", TMessageType.REPLY, seqid)
8850
    result.write(oprot)
8851
    oprot.writeMessageEnd()
8852
    oprot.trans.flush()
8853
 
11635 vikram.rag 8854
  def process_getPrivateDealsCatalogIds(self, seqid, iprot, oprot):
8855
    args = getPrivateDealsCatalogIds_args()
8856
    args.read(iprot)
8857
    iprot.readMessageEnd()
8858
    result = getPrivateDealsCatalogIds_result()
8859
    try:
8860
      result.success = self._handler.getPrivateDealsCatalogIds(args.beginIndex, args.totalItems)
8861
    except CatalogServiceException, cex:
8862
      result.cex = cex
8863
    oprot.writeMessageBegin("getPrivateDealsCatalogIds", TMessageType.REPLY, seqid)
8864
    result.write(oprot)
8865
    oprot.writeMessageEnd()
8866
    oprot.trans.flush()
11531 vikram.rag 8867
 
11645 amit.gupta 8868
  def process_getPrivateDealsCount(self, seqid, iprot, oprot):
8869
    args = getPrivateDealsCount_args()
8870
    args.read(iprot)
8871
    iprot.readMessageEnd()
8872
    result = getPrivateDealsCount_result()
8873
    result.success = self._handler.getPrivateDealsCount()
8874
    oprot.writeMessageBegin("getPrivateDealsCount", TMessageType.REPLY, seqid)
8875
    result.write(oprot)
8876
    oprot.writeMessageEnd()
8877
    oprot.trans.flush()
11635 vikram.rag 8878
 
11905 kshitij.so 8879
  def process_getAmazonOutSyncItems(self, seqid, iprot, oprot):
8880
    args = getAmazonOutSyncItems_args()
8881
    args.read(iprot)
8882
    iprot.readMessageEnd()
8883
    result = getAmazonOutSyncItems_result()
8884
    result.success = self._handler.getAmazonOutSyncItems(args.item_id)
8885
    oprot.writeMessageBegin("getAmazonOutSyncItems", TMessageType.REPLY, seqid)
8886
    result.write(oprot)
8887
    oprot.writeMessageEnd()
8888
    oprot.trans.flush()
11645 amit.gupta 8889
 
11905 kshitij.so 8890
  def process_getAllPrivateDealsComparison(self, seqid, iprot, oprot):
8891
    args = getAllPrivateDealsComparison_args()
8892
    args.read(iprot)
8893
    iprot.readMessageEnd()
8894
    result = getAllPrivateDealsComparison_result()
8895
    result.success = self._handler.getAllPrivateDealsComparison()
8896
    oprot.writeMessageBegin("getAllPrivateDealsComparison", TMessageType.REPLY, seqid)
8897
    result.write(oprot)
8898
    oprot.writeMessageEnd()
8899
    oprot.trans.flush()
8900
 
12133 kshitij.so 8901
  def process_getAllSnapdealMarketplaceItem(self, seqid, iprot, oprot):
8902
    args = getAllSnapdealMarketplaceItem_args()
8903
    args.read(iprot)
8904
    iprot.readMessageEnd()
8905
    result = getAllSnapdealMarketplaceItem_result()
8906
    result.success = self._handler.getAllSnapdealMarketplaceItem()
8907
    oprot.writeMessageBegin("getAllSnapdealMarketplaceItem", TMessageType.REPLY, seqid)
8908
    result.write(oprot)
8909
    oprot.writeMessageEnd()
8910
    oprot.trans.flush()
11905 kshitij.so 8911
 
12133 kshitij.so 8912
  def process_getAllFlipkartMarketplaceItem(self, seqid, iprot, oprot):
8913
    args = getAllFlipkartMarketplaceItem_args()
8914
    args.read(iprot)
8915
    iprot.readMessageEnd()
8916
    result = getAllFlipkartMarketplaceItem_result()
8917
    result.success = self._handler.getAllFlipkartMarketplaceItem()
8918
    oprot.writeMessageBegin("getAllFlipkartMarketplaceItem", TMessageType.REPLY, seqid)
8919
    result.write(oprot)
8920
    oprot.writeMessageEnd()
8921
    oprot.trans.flush()
8922
 
12243 kshitij.so 8923
  def process_addCompetitorScraping(self, seqid, iprot, oprot):
8924
    args = addCompetitorScraping_args()
8925
    args.read(iprot)
8926
    iprot.readMessageEnd()
8927
    result = addCompetitorScraping_result()
8928
    self._handler.addCompetitorScraping(args.competitorPricingMap)
8929
    oprot.writeMessageBegin("addCompetitorScraping", TMessageType.REPLY, seqid)
8930
    result.write(oprot)
8931
    oprot.writeMessageEnd()
8932
    oprot.trans.flush()
12133 kshitij.so 8933
 
12243 kshitij.so 8934
  def process_getPreviousCompetitorScraping(self, seqid, iprot, oprot):
8935
    args = getPreviousCompetitorScraping_args()
8936
    args.read(iprot)
8937
    iprot.readMessageEnd()
8938
    result = getPreviousCompetitorScraping_result()
8939
    result.success = self._handler.getPreviousCompetitorScraping(args.delta)
8940
    oprot.writeMessageBegin("getPreviousCompetitorScraping", TMessageType.REPLY, seqid)
8941
    result.write(oprot)
8942
    oprot.writeMessageEnd()
8943
    oprot.trans.flush()
8944
 
12256 kshitij.so 8945
  def process_getUploadResultById(self, seqid, iprot, oprot):
8946
    args = getUploadResultById_args()
8947
    args.read(iprot)
8948
    iprot.readMessageEnd()
8949
    result = getUploadResultById_result()
8950
    result.success = self._handler.getUploadResultById(args.uploadId)
8951
    oprot.writeMessageBegin("getUploadResultById", TMessageType.REPLY, seqid)
8952
    result.write(oprot)
8953
    oprot.writeMessageEnd()
8954
    oprot.trans.flush()
12243 kshitij.so 8955
 
12363 kshitij.so 8956
  def process_addAmazonPromotion(self, seqid, iprot, oprot):
8957
    args = addAmazonPromotion_args()
8958
    args.read(iprot)
8959
    iprot.readMessageEnd()
8960
    result = addAmazonPromotion_result()
8961
    result.success = self._handler.addAmazonPromotion(args.amazonPromotions)
8962
    oprot.writeMessageBegin("addAmazonPromotion", TMessageType.REPLY, seqid)
8963
    result.write(oprot)
8964
    oprot.writeMessageEnd()
8965
    oprot.trans.flush()
12256 kshitij.so 8966
 
12363 kshitij.so 8967
  def process_getAmazonPromotion(self, seqid, iprot, oprot):
8968
    args = getAmazonPromotion_args()
8969
    args.read(iprot)
8970
    iprot.readMessageEnd()
8971
    result = getAmazonPromotion_result()
8972
    result.success = self._handler.getAmazonPromotion(args.startDate, args.endDate)
8973
    oprot.writeMessageBegin("getAmazonPromotion", TMessageType.REPLY, seqid)
8974
    result.write(oprot)
8975
    oprot.writeMessageEnd()
8976
    oprot.trans.flush()
8977
 
8978
  def process_updateAmazonPromotion(self, seqid, iprot, oprot):
8979
    args = updateAmazonPromotion_args()
8980
    args.read(iprot)
8981
    iprot.readMessageEnd()
8982
    result = updateAmazonPromotion_result()
8983
    result.success = self._handler.updateAmazonPromotion(args.amazonPromotions)
8984
    oprot.writeMessageBegin("updateAmazonPromotion", TMessageType.REPLY, seqid)
8985
    result.write(oprot)
8986
    oprot.writeMessageEnd()
8987
    oprot.trans.flush()
8988
 
12567 amit.gupta 8989
  def process_markPartiallyActive(self, seqid, iprot, oprot):
8990
    args = markPartiallyActive_args()
8991
    args.read(iprot)
8992
    iprot.readMessageEnd()
8993
    result = markPartiallyActive_result()
8994
    result.success = self._handler.markPartiallyActive(args.itemId, args.categoryId)
8995
    oprot.writeMessageBegin("markPartiallyActive", TMessageType.REPLY, seqid)
8996
    result.write(oprot)
8997
    oprot.writeMessageEnd()
8998
    oprot.trans.flush()
12363 kshitij.so 8999
 
12567 amit.gupta 9000
  def process_updateItemStateVat(self, seqid, iprot, oprot):
9001
    args = updateItemStateVat_args()
9002
    args.read(iprot)
9003
    iprot.readMessageEnd()
9004
    result = updateItemStateVat_result()
9005
    result.success = self._handler.updateItemStateVat(args.itemId, args.statevat)
9006
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9007
    result.write(oprot)
9008
    oprot.writeMessageEnd()
9009
    oprot.trans.flush()
9010
 
9011
 
5944 mandeep.dh 9012
# HELPER FUNCTIONS AND STRUCTURES
9013
 
9014
class addItem_args:
9015
  """
9016
  Attributes:
9017
   - item
9018
  """
9019
 
9020
  thrift_spec = (
9021
    None, # 0
9022
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9023
  )
9024
 
9025
  def __init__(self, item=None,):
9026
    self.item = item
9027
 
9028
  def read(self, iprot):
9029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9031
      return
9032
    iprot.readStructBegin()
9033
    while True:
9034
      (fname, ftype, fid) = iprot.readFieldBegin()
9035
      if ftype == TType.STOP:
9036
        break
9037
      if fid == 1:
9038
        if ftype == TType.STRUCT:
9039
          self.item = Item()
9040
          self.item.read(iprot)
9041
        else:
9042
          iprot.skip(ftype)
9043
      else:
9044
        iprot.skip(ftype)
9045
      iprot.readFieldEnd()
9046
    iprot.readStructEnd()
9047
 
9048
  def write(self, oprot):
9049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9051
      return
9052
    oprot.writeStructBegin('addItem_args')
9053
    if self.item is not None:
9054
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9055
      self.item.write(oprot)
9056
      oprot.writeFieldEnd()
9057
    oprot.writeFieldStop()
9058
    oprot.writeStructEnd()
9059
 
9060
  def validate(self):
9061
    return
9062
 
9063
 
9064
  def __repr__(self):
9065
    L = ['%s=%r' % (key, value)
9066
      for key, value in self.__dict__.iteritems()]
9067
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9068
 
9069
  def __eq__(self, other):
9070
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9071
 
9072
  def __ne__(self, other):
9073
    return not (self == other)
9074
 
9075
class addItem_result:
9076
  """
9077
  Attributes:
9078
   - success
9079
   - cex
9080
  """
9081
 
9082
  thrift_spec = (
9083
    (0, TType.I64, 'success', None, None, ), # 0
9084
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9085
  )
9086
 
9087
  def __init__(self, success=None, cex=None,):
9088
    self.success = success
9089
    self.cex = cex
9090
 
9091
  def read(self, iprot):
9092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9094
      return
9095
    iprot.readStructBegin()
9096
    while True:
9097
      (fname, ftype, fid) = iprot.readFieldBegin()
9098
      if ftype == TType.STOP:
9099
        break
9100
      if fid == 0:
9101
        if ftype == TType.I64:
9102
          self.success = iprot.readI64();
9103
        else:
9104
          iprot.skip(ftype)
9105
      elif fid == 1:
9106
        if ftype == TType.STRUCT:
9107
          self.cex = CatalogServiceException()
9108
          self.cex.read(iprot)
9109
        else:
9110
          iprot.skip(ftype)
9111
      else:
9112
        iprot.skip(ftype)
9113
      iprot.readFieldEnd()
9114
    iprot.readStructEnd()
9115
 
9116
  def write(self, oprot):
9117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9119
      return
9120
    oprot.writeStructBegin('addItem_result')
9121
    if self.success is not None:
9122
      oprot.writeFieldBegin('success', TType.I64, 0)
9123
      oprot.writeI64(self.success)
9124
      oprot.writeFieldEnd()
9125
    if self.cex is not None:
9126
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9127
      self.cex.write(oprot)
9128
      oprot.writeFieldEnd()
9129
    oprot.writeFieldStop()
9130
    oprot.writeStructEnd()
9131
 
9132
  def validate(self):
9133
    return
9134
 
9135
 
9136
  def __repr__(self):
9137
    L = ['%s=%r' % (key, value)
9138
      for key, value in self.__dict__.iteritems()]
9139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9140
 
9141
  def __eq__(self, other):
9142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9143
 
9144
  def __ne__(self, other):
9145
    return not (self == other)
9146
 
9147
class updateItem_args:
9148
  """
9149
  Attributes:
9150
   - item
9151
  """
9152
 
9153
  thrift_spec = (
9154
    None, # 0
9155
    (1, TType.STRUCT, 'item', (Item, Item.thrift_spec), None, ), # 1
9156
  )
9157
 
9158
  def __init__(self, item=None,):
9159
    self.item = item
9160
 
9161
  def read(self, iprot):
9162
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9163
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9164
      return
9165
    iprot.readStructBegin()
9166
    while True:
9167
      (fname, ftype, fid) = iprot.readFieldBegin()
9168
      if ftype == TType.STOP:
9169
        break
9170
      if fid == 1:
9171
        if ftype == TType.STRUCT:
9172
          self.item = Item()
9173
          self.item.read(iprot)
9174
        else:
9175
          iprot.skip(ftype)
9176
      else:
9177
        iprot.skip(ftype)
9178
      iprot.readFieldEnd()
9179
    iprot.readStructEnd()
9180
 
9181
  def write(self, oprot):
9182
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9183
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9184
      return
9185
    oprot.writeStructBegin('updateItem_args')
9186
    if self.item is not None:
9187
      oprot.writeFieldBegin('item', TType.STRUCT, 1)
9188
      self.item.write(oprot)
9189
      oprot.writeFieldEnd()
9190
    oprot.writeFieldStop()
9191
    oprot.writeStructEnd()
9192
 
9193
  def validate(self):
9194
    return
9195
 
9196
 
9197
  def __repr__(self):
9198
    L = ['%s=%r' % (key, value)
9199
      for key, value in self.__dict__.iteritems()]
9200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9201
 
9202
  def __eq__(self, other):
9203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9204
 
9205
  def __ne__(self, other):
9206
    return not (self == other)
9207
 
9208
class updateItem_result:
9209
  """
9210
  Attributes:
9211
   - success
9212
   - cex
9213
  """
9214
 
9215
  thrift_spec = (
9216
    (0, TType.I64, 'success', None, None, ), # 0
9217
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9218
  )
9219
 
9220
  def __init__(self, success=None, cex=None,):
9221
    self.success = success
9222
    self.cex = cex
9223
 
9224
  def read(self, iprot):
9225
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9226
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9227
      return
9228
    iprot.readStructBegin()
9229
    while True:
9230
      (fname, ftype, fid) = iprot.readFieldBegin()
9231
      if ftype == TType.STOP:
9232
        break
9233
      if fid == 0:
9234
        if ftype == TType.I64:
9235
          self.success = iprot.readI64();
9236
        else:
9237
          iprot.skip(ftype)
9238
      elif fid == 1:
9239
        if ftype == TType.STRUCT:
9240
          self.cex = CatalogServiceException()
9241
          self.cex.read(iprot)
9242
        else:
9243
          iprot.skip(ftype)
9244
      else:
9245
        iprot.skip(ftype)
9246
      iprot.readFieldEnd()
9247
    iprot.readStructEnd()
9248
 
9249
  def write(self, oprot):
9250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9252
      return
9253
    oprot.writeStructBegin('updateItem_result')
9254
    if self.success is not None:
9255
      oprot.writeFieldBegin('success', TType.I64, 0)
9256
      oprot.writeI64(self.success)
9257
      oprot.writeFieldEnd()
9258
    if self.cex is not None:
9259
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9260
      self.cex.write(oprot)
9261
      oprot.writeFieldEnd()
9262
    oprot.writeFieldStop()
9263
    oprot.writeStructEnd()
9264
 
9265
  def validate(self):
9266
    return
9267
 
9268
 
9269
  def __repr__(self):
9270
    L = ['%s=%r' % (key, value)
9271
      for key, value in self.__dict__.iteritems()]
9272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9273
 
9274
  def __eq__(self, other):
9275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9276
 
9277
  def __ne__(self, other):
9278
    return not (self == other)
9279
 
9280
class isActive_args:
9281
  """
9282
  Attributes:
9283
   - itemId
9284
  """
9285
 
9286
  thrift_spec = (
9287
    None, # 0
9288
    (1, TType.I64, 'itemId', None, None, ), # 1
9289
  )
9290
 
9291
  def __init__(self, itemId=None,):
9292
    self.itemId = itemId
9293
 
9294
  def read(self, iprot):
9295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9297
      return
9298
    iprot.readStructBegin()
9299
    while True:
9300
      (fname, ftype, fid) = iprot.readFieldBegin()
9301
      if ftype == TType.STOP:
9302
        break
9303
      if fid == 1:
9304
        if ftype == TType.I64:
9305
          self.itemId = iprot.readI64();
9306
        else:
9307
          iprot.skip(ftype)
9308
      else:
9309
        iprot.skip(ftype)
9310
      iprot.readFieldEnd()
9311
    iprot.readStructEnd()
9312
 
9313
  def write(self, oprot):
9314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9316
      return
9317
    oprot.writeStructBegin('isActive_args')
9318
    if self.itemId is not None:
9319
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9320
      oprot.writeI64(self.itemId)
9321
      oprot.writeFieldEnd()
9322
    oprot.writeFieldStop()
9323
    oprot.writeStructEnd()
9324
 
9325
  def validate(self):
9326
    return
9327
 
9328
 
9329
  def __repr__(self):
9330
    L = ['%s=%r' % (key, value)
9331
      for key, value in self.__dict__.iteritems()]
9332
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9333
 
9334
  def __eq__(self, other):
9335
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9336
 
9337
  def __ne__(self, other):
9338
    return not (self == other)
9339
 
9340
class isActive_result:
9341
  """
9342
  Attributes:
9343
   - success
9344
   - isex
9345
  """
9346
 
9347
  thrift_spec = (
9348
    (0, TType.STRUCT, 'success', (ItemShippingInfo, ItemShippingInfo.thrift_spec), None, ), # 0
9349
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9350
  )
9351
 
9352
  def __init__(self, success=None, isex=None,):
9353
    self.success = success
9354
    self.isex = isex
9355
 
9356
  def read(self, iprot):
9357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9359
      return
9360
    iprot.readStructBegin()
9361
    while True:
9362
      (fname, ftype, fid) = iprot.readFieldBegin()
9363
      if ftype == TType.STOP:
9364
        break
9365
      if fid == 0:
9366
        if ftype == TType.STRUCT:
9367
          self.success = ItemShippingInfo()
9368
          self.success.read(iprot)
9369
        else:
9370
          iprot.skip(ftype)
9371
      elif fid == 1:
9372
        if ftype == TType.STRUCT:
9373
          self.isex = CatalogServiceException()
9374
          self.isex.read(iprot)
9375
        else:
9376
          iprot.skip(ftype)
9377
      else:
9378
        iprot.skip(ftype)
9379
      iprot.readFieldEnd()
9380
    iprot.readStructEnd()
9381
 
9382
  def write(self, oprot):
9383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9385
      return
9386
    oprot.writeStructBegin('isActive_result')
9387
    if self.success is not None:
9388
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9389
      self.success.write(oprot)
9390
      oprot.writeFieldEnd()
9391
    if self.isex is not None:
9392
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9393
      self.isex.write(oprot)
9394
      oprot.writeFieldEnd()
9395
    oprot.writeFieldStop()
9396
    oprot.writeStructEnd()
9397
 
9398
  def validate(self):
9399
    return
9400
 
9401
 
9402
  def __repr__(self):
9403
    L = ['%s=%r' % (key, value)
9404
      for key, value in self.__dict__.iteritems()]
9405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9406
 
9407
  def __eq__(self, other):
9408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9409
 
9410
  def __ne__(self, other):
9411
    return not (self == other)
9412
 
7438 amit.gupta 9413
class getItemsStatus_args:
9414
  """
9415
  Attributes:
9416
   - itemIds
9417
  """
9418
 
9419
  thrift_spec = (
9420
    None, # 0
9421
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
9422
  )
9423
 
9424
  def __init__(self, itemIds=None,):
9425
    self.itemIds = itemIds
9426
 
9427
  def read(self, iprot):
9428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9430
      return
9431
    iprot.readStructBegin()
9432
    while True:
9433
      (fname, ftype, fid) = iprot.readFieldBegin()
9434
      if ftype == TType.STOP:
9435
        break
9436
      if fid == 1:
9437
        if ftype == TType.LIST:
9438
          self.itemIds = []
8590 kshitij.so 9439
          (_etype33, _size30) = iprot.readListBegin()
9440
          for _i34 in xrange(_size30):
9441
            _elem35 = iprot.readI64();
9442
            self.itemIds.append(_elem35)
7438 amit.gupta 9443
          iprot.readListEnd()
9444
        else:
9445
          iprot.skip(ftype)
9446
      else:
9447
        iprot.skip(ftype)
9448
      iprot.readFieldEnd()
9449
    iprot.readStructEnd()
9450
 
9451
  def write(self, oprot):
9452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9454
      return
9455
    oprot.writeStructBegin('getItemsStatus_args')
9456
    if self.itemIds is not None:
9457
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
9458
      oprot.writeListBegin(TType.I64, len(self.itemIds))
8590 kshitij.so 9459
      for iter36 in self.itemIds:
9460
        oprot.writeI64(iter36)
7438 amit.gupta 9461
      oprot.writeListEnd()
9462
      oprot.writeFieldEnd()
9463
    oprot.writeFieldStop()
9464
    oprot.writeStructEnd()
9465
 
9466
  def validate(self):
9467
    return
9468
 
9469
 
9470
  def __repr__(self):
9471
    L = ['%s=%r' % (key, value)
9472
      for key, value in self.__dict__.iteritems()]
9473
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9474
 
9475
  def __eq__(self, other):
9476
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9477
 
9478
  def __ne__(self, other):
9479
    return not (self == other)
9480
 
9481
class getItemsStatus_result:
9482
  """
9483
  Attributes:
9484
   - success
9485
   - isex
9486
  """
9487
 
9488
  thrift_spec = (
9489
    (0, TType.MAP, 'success', (TType.I64,None,TType.BOOL,None), None, ), # 0
9490
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9491
  )
9492
 
9493
  def __init__(self, success=None, isex=None,):
9494
    self.success = success
9495
    self.isex = isex
9496
 
9497
  def read(self, iprot):
9498
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9499
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9500
      return
9501
    iprot.readStructBegin()
9502
    while True:
9503
      (fname, ftype, fid) = iprot.readFieldBegin()
9504
      if ftype == TType.STOP:
9505
        break
9506
      if fid == 0:
9507
        if ftype == TType.MAP:
9508
          self.success = {}
8590 kshitij.so 9509
          (_ktype38, _vtype39, _size37 ) = iprot.readMapBegin() 
9510
          for _i41 in xrange(_size37):
9511
            _key42 = iprot.readI64();
9512
            _val43 = iprot.readBool();
9513
            self.success[_key42] = _val43
7438 amit.gupta 9514
          iprot.readMapEnd()
9515
        else:
9516
          iprot.skip(ftype)
9517
      elif fid == 1:
9518
        if ftype == TType.STRUCT:
9519
          self.isex = CatalogServiceException()
9520
          self.isex.read(iprot)
9521
        else:
9522
          iprot.skip(ftype)
9523
      else:
9524
        iprot.skip(ftype)
9525
      iprot.readFieldEnd()
9526
    iprot.readStructEnd()
9527
 
9528
  def write(self, oprot):
9529
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9530
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9531
      return
9532
    oprot.writeStructBegin('getItemsStatus_result')
9533
    if self.success is not None:
9534
      oprot.writeFieldBegin('success', TType.MAP, 0)
9535
      oprot.writeMapBegin(TType.I64, TType.BOOL, len(self.success))
8590 kshitij.so 9536
      for kiter44,viter45 in self.success.items():
9537
        oprot.writeI64(kiter44)
9538
        oprot.writeBool(viter45)
7438 amit.gupta 9539
      oprot.writeMapEnd()
9540
      oprot.writeFieldEnd()
9541
    if self.isex is not None:
9542
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9543
      self.isex.write(oprot)
9544
      oprot.writeFieldEnd()
9545
    oprot.writeFieldStop()
9546
    oprot.writeStructEnd()
9547
 
9548
  def validate(self):
9549
    return
9550
 
9551
 
9552
  def __repr__(self):
9553
    L = ['%s=%r' % (key, value)
9554
      for key, value in self.__dict__.iteritems()]
9555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9556
 
9557
  def __eq__(self, other):
9558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9559
 
9560
  def __ne__(self, other):
9561
    return not (self == other)
9562
 
5944 mandeep.dh 9563
class getItemStatusDescription_args:
9564
  """
9565
  Attributes:
9566
   - itemId
9567
  """
9568
 
9569
  thrift_spec = (
9570
    None, # 0
9571
    (1, TType.I64, 'itemId', None, None, ), # 1
9572
  )
9573
 
9574
  def __init__(self, itemId=None,):
9575
    self.itemId = itemId
9576
 
9577
  def read(self, iprot):
9578
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9579
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9580
      return
9581
    iprot.readStructBegin()
9582
    while True:
9583
      (fname, ftype, fid) = iprot.readFieldBegin()
9584
      if ftype == TType.STOP:
9585
        break
9586
      if fid == 1:
9587
        if ftype == TType.I64:
9588
          self.itemId = iprot.readI64();
9589
        else:
9590
          iprot.skip(ftype)
9591
      else:
9592
        iprot.skip(ftype)
9593
      iprot.readFieldEnd()
9594
    iprot.readStructEnd()
9595
 
9596
  def write(self, oprot):
9597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9599
      return
9600
    oprot.writeStructBegin('getItemStatusDescription_args')
9601
    if self.itemId is not None:
9602
      oprot.writeFieldBegin('itemId', TType.I64, 1)
9603
      oprot.writeI64(self.itemId)
9604
      oprot.writeFieldEnd()
9605
    oprot.writeFieldStop()
9606
    oprot.writeStructEnd()
9607
 
9608
  def validate(self):
9609
    return
9610
 
9611
 
9612
  def __repr__(self):
9613
    L = ['%s=%r' % (key, value)
9614
      for key, value in self.__dict__.iteritems()]
9615
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9616
 
9617
  def __eq__(self, other):
9618
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9619
 
9620
  def __ne__(self, other):
9621
    return not (self == other)
9622
 
9623
class getItemStatusDescription_result:
9624
  """
9625
  Attributes:
9626
   - success
9627
   - isex
9628
  """
9629
 
9630
  thrift_spec = (
9631
    (0, TType.STRING, 'success', None, None, ), # 0
9632
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9633
  )
9634
 
9635
  def __init__(self, success=None, isex=None,):
9636
    self.success = success
9637
    self.isex = isex
9638
 
9639
  def read(self, iprot):
9640
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9641
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9642
      return
9643
    iprot.readStructBegin()
9644
    while True:
9645
      (fname, ftype, fid) = iprot.readFieldBegin()
9646
      if ftype == TType.STOP:
9647
        break
9648
      if fid == 0:
9649
        if ftype == TType.STRING:
9650
          self.success = iprot.readString();
9651
        else:
9652
          iprot.skip(ftype)
9653
      elif fid == 1:
9654
        if ftype == TType.STRUCT:
9655
          self.isex = CatalogServiceException()
9656
          self.isex.read(iprot)
9657
        else:
9658
          iprot.skip(ftype)
9659
      else:
9660
        iprot.skip(ftype)
9661
      iprot.readFieldEnd()
9662
    iprot.readStructEnd()
9663
 
9664
  def write(self, oprot):
9665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9667
      return
9668
    oprot.writeStructBegin('getItemStatusDescription_result')
9669
    if self.success is not None:
9670
      oprot.writeFieldBegin('success', TType.STRING, 0)
9671
      oprot.writeString(self.success)
9672
      oprot.writeFieldEnd()
9673
    if self.isex is not None:
9674
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
9675
      self.isex.write(oprot)
9676
      oprot.writeFieldEnd()
9677
    oprot.writeFieldStop()
9678
    oprot.writeStructEnd()
9679
 
9680
  def validate(self):
9681
    return
9682
 
9683
 
9684
  def __repr__(self):
9685
    L = ['%s=%r' % (key, value)
9686
      for key, value in self.__dict__.iteritems()]
9687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9688
 
9689
  def __eq__(self, other):
9690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9691
 
9692
  def __ne__(self, other):
9693
    return not (self == other)
9694
 
9695
class startItemOn_args:
9696
  """
9697
  Attributes:
9698
   - item_id
9699
   - timestamp
9700
  """
9701
 
9702
  thrift_spec = (
9703
    None, # 0
9704
    (1, TType.I64, 'item_id', None, None, ), # 1
9705
    (2, TType.I64, 'timestamp', None, None, ), # 2
9706
  )
9707
 
9708
  def __init__(self, item_id=None, timestamp=None,):
9709
    self.item_id = item_id
9710
    self.timestamp = timestamp
9711
 
9712
  def read(self, iprot):
9713
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9714
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9715
      return
9716
    iprot.readStructBegin()
9717
    while True:
9718
      (fname, ftype, fid) = iprot.readFieldBegin()
9719
      if ftype == TType.STOP:
9720
        break
9721
      if fid == 1:
9722
        if ftype == TType.I64:
9723
          self.item_id = iprot.readI64();
9724
        else:
9725
          iprot.skip(ftype)
9726
      elif fid == 2:
9727
        if ftype == TType.I64:
9728
          self.timestamp = iprot.readI64();
9729
        else:
9730
          iprot.skip(ftype)
9731
      else:
9732
        iprot.skip(ftype)
9733
      iprot.readFieldEnd()
9734
    iprot.readStructEnd()
9735
 
9736
  def write(self, oprot):
9737
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9738
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9739
      return
9740
    oprot.writeStructBegin('startItemOn_args')
9741
    if self.item_id is not None:
9742
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9743
      oprot.writeI64(self.item_id)
9744
      oprot.writeFieldEnd()
9745
    if self.timestamp is not None:
9746
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9747
      oprot.writeI64(self.timestamp)
9748
      oprot.writeFieldEnd()
9749
    oprot.writeFieldStop()
9750
    oprot.writeStructEnd()
9751
 
9752
  def validate(self):
9753
    return
9754
 
9755
 
9756
  def __repr__(self):
9757
    L = ['%s=%r' % (key, value)
9758
      for key, value in self.__dict__.iteritems()]
9759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9760
 
9761
  def __eq__(self, other):
9762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9763
 
9764
  def __ne__(self, other):
9765
    return not (self == other)
9766
 
9767
class startItemOn_result:
9768
  """
9769
  Attributes:
9770
   - cex
9771
  """
9772
 
9773
  thrift_spec = (
9774
    None, # 0
9775
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9776
  )
9777
 
9778
  def __init__(self, cex=None,):
9779
    self.cex = cex
9780
 
9781
  def read(self, iprot):
9782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9784
      return
9785
    iprot.readStructBegin()
9786
    while True:
9787
      (fname, ftype, fid) = iprot.readFieldBegin()
9788
      if ftype == TType.STOP:
9789
        break
9790
      if fid == 1:
9791
        if ftype == TType.STRUCT:
9792
          self.cex = CatalogServiceException()
9793
          self.cex.read(iprot)
9794
        else:
9795
          iprot.skip(ftype)
9796
      else:
9797
        iprot.skip(ftype)
9798
      iprot.readFieldEnd()
9799
    iprot.readStructEnd()
9800
 
9801
  def write(self, oprot):
9802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9804
      return
9805
    oprot.writeStructBegin('startItemOn_result')
9806
    if self.cex is not None:
9807
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9808
      self.cex.write(oprot)
9809
      oprot.writeFieldEnd()
9810
    oprot.writeFieldStop()
9811
    oprot.writeStructEnd()
9812
 
9813
  def validate(self):
9814
    return
9815
 
9816
 
9817
  def __repr__(self):
9818
    L = ['%s=%r' % (key, value)
9819
      for key, value in self.__dict__.iteritems()]
9820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9821
 
9822
  def __eq__(self, other):
9823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9824
 
9825
  def __ne__(self, other):
9826
    return not (self == other)
9827
 
9828
class retireItemOn_args:
9829
  """
9830
  Attributes:
9831
   - item_id
9832
   - timestamp
9833
  """
9834
 
9835
  thrift_spec = (
9836
    None, # 0
9837
    (1, TType.I64, 'item_id', None, None, ), # 1
9838
    (2, TType.I64, 'timestamp', None, None, ), # 2
9839
  )
9840
 
9841
  def __init__(self, item_id=None, timestamp=None,):
9842
    self.item_id = item_id
9843
    self.timestamp = timestamp
9844
 
9845
  def read(self, iprot):
9846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9848
      return
9849
    iprot.readStructBegin()
9850
    while True:
9851
      (fname, ftype, fid) = iprot.readFieldBegin()
9852
      if ftype == TType.STOP:
9853
        break
9854
      if fid == 1:
9855
        if ftype == TType.I64:
9856
          self.item_id = iprot.readI64();
9857
        else:
9858
          iprot.skip(ftype)
9859
      elif fid == 2:
9860
        if ftype == TType.I64:
9861
          self.timestamp = iprot.readI64();
9862
        else:
9863
          iprot.skip(ftype)
9864
      else:
9865
        iprot.skip(ftype)
9866
      iprot.readFieldEnd()
9867
    iprot.readStructEnd()
9868
 
9869
  def write(self, oprot):
9870
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9871
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9872
      return
9873
    oprot.writeStructBegin('retireItemOn_args')
9874
    if self.item_id is not None:
9875
      oprot.writeFieldBegin('item_id', TType.I64, 1)
9876
      oprot.writeI64(self.item_id)
9877
      oprot.writeFieldEnd()
9878
    if self.timestamp is not None:
9879
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
9880
      oprot.writeI64(self.timestamp)
9881
      oprot.writeFieldEnd()
9882
    oprot.writeFieldStop()
9883
    oprot.writeStructEnd()
9884
 
9885
  def validate(self):
9886
    return
9887
 
9888
 
9889
  def __repr__(self):
9890
    L = ['%s=%r' % (key, value)
9891
      for key, value in self.__dict__.iteritems()]
9892
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9893
 
9894
  def __eq__(self, other):
9895
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9896
 
9897
  def __ne__(self, other):
9898
    return not (self == other)
9899
 
9900
class retireItemOn_result:
9901
  """
9902
  Attributes:
9903
   - cex
9904
  """
9905
 
9906
  thrift_spec = (
9907
    None, # 0
9908
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
9909
  )
9910
 
9911
  def __init__(self, cex=None,):
9912
    self.cex = cex
9913
 
9914
  def read(self, iprot):
9915
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9916
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9917
      return
9918
    iprot.readStructBegin()
9919
    while True:
9920
      (fname, ftype, fid) = iprot.readFieldBegin()
9921
      if ftype == TType.STOP:
9922
        break
9923
      if fid == 1:
9924
        if ftype == TType.STRUCT:
9925
          self.cex = CatalogServiceException()
9926
          self.cex.read(iprot)
9927
        else:
9928
          iprot.skip(ftype)
9929
      else:
9930
        iprot.skip(ftype)
9931
      iprot.readFieldEnd()
9932
    iprot.readStructEnd()
9933
 
9934
  def write(self, oprot):
9935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9937
      return
9938
    oprot.writeStructBegin('retireItemOn_result')
9939
    if self.cex is not None:
9940
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
9941
      self.cex.write(oprot)
9942
      oprot.writeFieldEnd()
9943
    oprot.writeFieldStop()
9944
    oprot.writeStructEnd()
9945
 
9946
  def validate(self):
9947
    return
9948
 
9949
 
9950
  def __repr__(self):
9951
    L = ['%s=%r' % (key, value)
9952
      for key, value in self.__dict__.iteritems()]
9953
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9954
 
9955
  def __eq__(self, other):
9956
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9957
 
9958
  def __ne__(self, other):
9959
    return not (self == other)
9960
 
9961
class changeItemStatus_args:
9962
  """
9963
  Attributes:
9964
   - item_id
9965
   - timestamp
9966
   - newstatus
9967
  """
9968
 
9969
  thrift_spec = (
9970
    None, # 0
9971
    (1, TType.I64, 'item_id', None, None, ), # 1
9972
    (2, TType.I64, 'timestamp', None, None, ), # 2
9973
    (3, TType.I32, 'newstatus', None, None, ), # 3
9974
  )
9975
 
9976
  def __init__(self, item_id=None, timestamp=None, newstatus=None,):
9977
    self.item_id = item_id
9978
    self.timestamp = timestamp
9979
    self.newstatus = newstatus
9980
 
9981
  def read(self, iprot):
9982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9984
      return
9985
    iprot.readStructBegin()
9986
    while True:
9987
      (fname, ftype, fid) = iprot.readFieldBegin()
9988
      if ftype == TType.STOP:
9989
        break
9990
      if fid == 1:
9991
        if ftype == TType.I64:
9992
          self.item_id = iprot.readI64();
9993
        else:
9994
          iprot.skip(ftype)
9995
      elif fid == 2:
9996
        if ftype == TType.I64:
9997
          self.timestamp = iprot.readI64();
9998
        else:
9999
          iprot.skip(ftype)
10000
      elif fid == 3:
10001
        if ftype == TType.I32:
10002
          self.newstatus = iprot.readI32();
10003
        else:
10004
          iprot.skip(ftype)
10005
      else:
10006
        iprot.skip(ftype)
10007
      iprot.readFieldEnd()
10008
    iprot.readStructEnd()
10009
 
10010
  def write(self, oprot):
10011
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10012
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10013
      return
10014
    oprot.writeStructBegin('changeItemStatus_args')
10015
    if self.item_id is not None:
10016
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10017
      oprot.writeI64(self.item_id)
10018
      oprot.writeFieldEnd()
10019
    if self.timestamp is not None:
10020
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
10021
      oprot.writeI64(self.timestamp)
10022
      oprot.writeFieldEnd()
10023
    if self.newstatus is not None:
10024
      oprot.writeFieldBegin('newstatus', TType.I32, 3)
10025
      oprot.writeI32(self.newstatus)
10026
      oprot.writeFieldEnd()
10027
    oprot.writeFieldStop()
10028
    oprot.writeStructEnd()
10029
 
10030
  def validate(self):
10031
    return
10032
 
10033
 
10034
  def __repr__(self):
10035
    L = ['%s=%r' % (key, value)
10036
      for key, value in self.__dict__.iteritems()]
10037
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10038
 
10039
  def __eq__(self, other):
10040
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10041
 
10042
  def __ne__(self, other):
10043
    return not (self == other)
10044
 
10045
class changeItemStatus_result:
10046
  """
10047
  Attributes:
10048
   - cex
10049
  """
10050
 
10051
  thrift_spec = (
10052
    None, # 0
10053
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10054
  )
10055
 
10056
  def __init__(self, cex=None,):
10057
    self.cex = cex
10058
 
10059
  def read(self, iprot):
10060
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10061
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10062
      return
10063
    iprot.readStructBegin()
10064
    while True:
10065
      (fname, ftype, fid) = iprot.readFieldBegin()
10066
      if ftype == TType.STOP:
10067
        break
10068
      if fid == 1:
10069
        if ftype == TType.STRUCT:
10070
          self.cex = CatalogServiceException()
10071
          self.cex.read(iprot)
10072
        else:
10073
          iprot.skip(ftype)
10074
      else:
10075
        iprot.skip(ftype)
10076
      iprot.readFieldEnd()
10077
    iprot.readStructEnd()
10078
 
10079
  def write(self, oprot):
10080
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10081
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10082
      return
10083
    oprot.writeStructBegin('changeItemStatus_result')
10084
    if self.cex is not None:
10085
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10086
      self.cex.write(oprot)
10087
      oprot.writeFieldEnd()
10088
    oprot.writeFieldStop()
10089
    oprot.writeStructEnd()
10090
 
10091
  def validate(self):
10092
    return
10093
 
10094
 
10095
  def __repr__(self):
10096
    L = ['%s=%r' % (key, value)
10097
      for key, value in self.__dict__.iteritems()]
10098
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10099
 
10100
  def __eq__(self, other):
10101
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10102
 
10103
  def __ne__(self, other):
10104
    return not (self == other)
10105
 
10106
class getItem_args:
10107
  """
10108
  Attributes:
10109
   - item_id
10110
  """
10111
 
10112
  thrift_spec = (
10113
    None, # 0
10114
    (1, TType.I64, 'item_id', None, None, ), # 1
10115
  )
10116
 
10117
  def __init__(self, item_id=None,):
10118
    self.item_id = item_id
10119
 
10120
  def read(self, iprot):
10121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10123
      return
10124
    iprot.readStructBegin()
10125
    while True:
10126
      (fname, ftype, fid) = iprot.readFieldBegin()
10127
      if ftype == TType.STOP:
10128
        break
10129
      if fid == 1:
10130
        if ftype == TType.I64:
10131
          self.item_id = iprot.readI64();
10132
        else:
10133
          iprot.skip(ftype)
10134
      else:
10135
        iprot.skip(ftype)
10136
      iprot.readFieldEnd()
10137
    iprot.readStructEnd()
10138
 
10139
  def write(self, oprot):
10140
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10141
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10142
      return
10143
    oprot.writeStructBegin('getItem_args')
10144
    if self.item_id is not None:
10145
      oprot.writeFieldBegin('item_id', TType.I64, 1)
10146
      oprot.writeI64(self.item_id)
10147
      oprot.writeFieldEnd()
10148
    oprot.writeFieldStop()
10149
    oprot.writeStructEnd()
10150
 
10151
  def validate(self):
10152
    return
10153
 
10154
 
10155
  def __repr__(self):
10156
    L = ['%s=%r' % (key, value)
10157
      for key, value in self.__dict__.iteritems()]
10158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10159
 
10160
  def __eq__(self, other):
10161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10162
 
10163
  def __ne__(self, other):
10164
    return not (self == other)
10165
 
10166
class getItem_result:
10167
  """
10168
  Attributes:
10169
   - success
10170
   - cex
10171
  """
10172
 
10173
  thrift_spec = (
10174
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
10175
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10176
  )
10177
 
10178
  def __init__(self, success=None, cex=None,):
10179
    self.success = success
10180
    self.cex = cex
10181
 
10182
  def read(self, iprot):
10183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10185
      return
10186
    iprot.readStructBegin()
10187
    while True:
10188
      (fname, ftype, fid) = iprot.readFieldBegin()
10189
      if ftype == TType.STOP:
10190
        break
10191
      if fid == 0:
10192
        if ftype == TType.STRUCT:
10193
          self.success = Item()
10194
          self.success.read(iprot)
10195
        else:
10196
          iprot.skip(ftype)
10197
      elif fid == 1:
10198
        if ftype == TType.STRUCT:
10199
          self.cex = CatalogServiceException()
10200
          self.cex.read(iprot)
10201
        else:
10202
          iprot.skip(ftype)
10203
      else:
10204
        iprot.skip(ftype)
10205
      iprot.readFieldEnd()
10206
    iprot.readStructEnd()
10207
 
10208
  def write(self, oprot):
10209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10211
      return
10212
    oprot.writeStructBegin('getItem_result')
10213
    if self.success is not None:
10214
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10215
      self.success.write(oprot)
10216
      oprot.writeFieldEnd()
10217
    if self.cex is not None:
10218
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10219
      self.cex.write(oprot)
10220
      oprot.writeFieldEnd()
10221
    oprot.writeFieldStop()
10222
    oprot.writeStructEnd()
10223
 
10224
  def validate(self):
10225
    return
10226
 
10227
 
10228
  def __repr__(self):
10229
    L = ['%s=%r' % (key, value)
10230
      for key, value in self.__dict__.iteritems()]
10231
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10232
 
10233
  def __eq__(self, other):
10234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10235
 
10236
  def __ne__(self, other):
10237
    return not (self == other)
10238
 
10239
class getItemsByCatalogId_args:
10240
  """
10241
  Attributes:
10242
   - catalog_item_id
10243
  """
10244
 
10245
  thrift_spec = (
10246
    None, # 0
10247
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10248
  )
10249
 
10250
  def __init__(self, catalog_item_id=None,):
10251
    self.catalog_item_id = catalog_item_id
10252
 
10253
  def read(self, iprot):
10254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10256
      return
10257
    iprot.readStructBegin()
10258
    while True:
10259
      (fname, ftype, fid) = iprot.readFieldBegin()
10260
      if ftype == TType.STOP:
10261
        break
10262
      if fid == 1:
10263
        if ftype == TType.I64:
10264
          self.catalog_item_id = iprot.readI64();
10265
        else:
10266
          iprot.skip(ftype)
10267
      else:
10268
        iprot.skip(ftype)
10269
      iprot.readFieldEnd()
10270
    iprot.readStructEnd()
10271
 
10272
  def write(self, oprot):
10273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10275
      return
10276
    oprot.writeStructBegin('getItemsByCatalogId_args')
10277
    if self.catalog_item_id is not None:
10278
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10279
      oprot.writeI64(self.catalog_item_id)
10280
      oprot.writeFieldEnd()
10281
    oprot.writeFieldStop()
10282
    oprot.writeStructEnd()
10283
 
10284
  def validate(self):
10285
    return
10286
 
10287
 
10288
  def __repr__(self):
10289
    L = ['%s=%r' % (key, value)
10290
      for key, value in self.__dict__.iteritems()]
10291
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10292
 
10293
  def __eq__(self, other):
10294
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10295
 
10296
  def __ne__(self, other):
10297
    return not (self == other)
10298
 
10299
class getItemsByCatalogId_result:
10300
  """
10301
  Attributes:
10302
   - success
10303
   - cex
10304
  """
10305
 
10306
  thrift_spec = (
10307
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10308
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10309
  )
10310
 
10311
  def __init__(self, success=None, cex=None,):
10312
    self.success = success
10313
    self.cex = cex
10314
 
10315
  def read(self, iprot):
10316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10318
      return
10319
    iprot.readStructBegin()
10320
    while True:
10321
      (fname, ftype, fid) = iprot.readFieldBegin()
10322
      if ftype == TType.STOP:
10323
        break
10324
      if fid == 0:
10325
        if ftype == TType.LIST:
10326
          self.success = []
8590 kshitij.so 10327
          (_etype49, _size46) = iprot.readListBegin()
10328
          for _i50 in xrange(_size46):
10329
            _elem51 = Item()
10330
            _elem51.read(iprot)
10331
            self.success.append(_elem51)
5944 mandeep.dh 10332
          iprot.readListEnd()
10333
        else:
10334
          iprot.skip(ftype)
10335
      elif fid == 1:
10336
        if ftype == TType.STRUCT:
10337
          self.cex = CatalogServiceException()
10338
          self.cex.read(iprot)
10339
        else:
10340
          iprot.skip(ftype)
10341
      else:
10342
        iprot.skip(ftype)
10343
      iprot.readFieldEnd()
10344
    iprot.readStructEnd()
10345
 
10346
  def write(self, oprot):
10347
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10348
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10349
      return
10350
    oprot.writeStructBegin('getItemsByCatalogId_result')
10351
    if self.success is not None:
10352
      oprot.writeFieldBegin('success', TType.LIST, 0)
10353
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10354
      for iter52 in self.success:
10355
        iter52.write(oprot)
5944 mandeep.dh 10356
      oprot.writeListEnd()
10357
      oprot.writeFieldEnd()
10358
    if self.cex is not None:
10359
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10360
      self.cex.write(oprot)
10361
      oprot.writeFieldEnd()
10362
    oprot.writeFieldStop()
10363
    oprot.writeStructEnd()
10364
 
10365
  def validate(self):
10366
    return
10367
 
10368
 
10369
  def __repr__(self):
10370
    L = ['%s=%r' % (key, value)
10371
      for key, value in self.__dict__.iteritems()]
10372
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10373
 
10374
  def __eq__(self, other):
10375
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10376
 
10377
  def __ne__(self, other):
10378
    return not (self == other)
10379
 
10380
class getValidItemsByCatalogId_args:
10381
  """
10382
  Attributes:
10383
   - catalog_item_id
10384
  """
10385
 
10386
  thrift_spec = (
10387
    None, # 0
10388
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
10389
  )
10390
 
10391
  def __init__(self, catalog_item_id=None,):
10392
    self.catalog_item_id = catalog_item_id
10393
 
10394
  def read(self, iprot):
10395
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10396
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10397
      return
10398
    iprot.readStructBegin()
10399
    while True:
10400
      (fname, ftype, fid) = iprot.readFieldBegin()
10401
      if ftype == TType.STOP:
10402
        break
10403
      if fid == 1:
10404
        if ftype == TType.I64:
10405
          self.catalog_item_id = iprot.readI64();
10406
        else:
10407
          iprot.skip(ftype)
10408
      else:
10409
        iprot.skip(ftype)
10410
      iprot.readFieldEnd()
10411
    iprot.readStructEnd()
10412
 
10413
  def write(self, oprot):
10414
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10415
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10416
      return
10417
    oprot.writeStructBegin('getValidItemsByCatalogId_args')
10418
    if self.catalog_item_id is not None:
10419
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
10420
      oprot.writeI64(self.catalog_item_id)
10421
      oprot.writeFieldEnd()
10422
    oprot.writeFieldStop()
10423
    oprot.writeStructEnd()
10424
 
10425
  def validate(self):
10426
    return
10427
 
10428
 
10429
  def __repr__(self):
10430
    L = ['%s=%r' % (key, value)
10431
      for key, value in self.__dict__.iteritems()]
10432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10433
 
10434
  def __eq__(self, other):
10435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10436
 
10437
  def __ne__(self, other):
10438
    return not (self == other)
10439
 
10440
class getValidItemsByCatalogId_result:
10441
  """
10442
  Attributes:
10443
   - success
10444
   - cex
10445
  """
10446
 
10447
  thrift_spec = (
10448
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10449
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10450
  )
10451
 
10452
  def __init__(self, success=None, cex=None,):
10453
    self.success = success
10454
    self.cex = cex
10455
 
10456
  def read(self, iprot):
10457
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10458
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10459
      return
10460
    iprot.readStructBegin()
10461
    while True:
10462
      (fname, ftype, fid) = iprot.readFieldBegin()
10463
      if ftype == TType.STOP:
10464
        break
10465
      if fid == 0:
10466
        if ftype == TType.LIST:
10467
          self.success = []
8590 kshitij.so 10468
          (_etype56, _size53) = iprot.readListBegin()
10469
          for _i57 in xrange(_size53):
10470
            _elem58 = Item()
10471
            _elem58.read(iprot)
10472
            self.success.append(_elem58)
5944 mandeep.dh 10473
          iprot.readListEnd()
10474
        else:
10475
          iprot.skip(ftype)
10476
      elif fid == 1:
10477
        if ftype == TType.STRUCT:
10478
          self.cex = CatalogServiceException()
10479
          self.cex.read(iprot)
10480
        else:
10481
          iprot.skip(ftype)
10482
      else:
10483
        iprot.skip(ftype)
10484
      iprot.readFieldEnd()
10485
    iprot.readStructEnd()
10486
 
10487
  def write(self, oprot):
10488
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10489
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10490
      return
10491
    oprot.writeStructBegin('getValidItemsByCatalogId_result')
10492
    if self.success is not None:
10493
      oprot.writeFieldBegin('success', TType.LIST, 0)
10494
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10495
      for iter59 in self.success:
10496
        iter59.write(oprot)
5944 mandeep.dh 10497
      oprot.writeListEnd()
10498
      oprot.writeFieldEnd()
10499
    if self.cex is not None:
10500
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10501
      self.cex.write(oprot)
10502
      oprot.writeFieldEnd()
10503
    oprot.writeFieldStop()
10504
    oprot.writeStructEnd()
10505
 
10506
  def validate(self):
10507
    return
10508
 
10509
 
10510
  def __repr__(self):
10511
    L = ['%s=%r' % (key, value)
10512
      for key, value in self.__dict__.iteritems()]
10513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10514
 
10515
  def __eq__(self, other):
10516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10517
 
10518
  def __ne__(self, other):
10519
    return not (self == other)
10520
 
10521
class getAllItems_args:
10522
  """
10523
  Attributes:
10524
   - isActive
10525
  """
10526
 
10527
  thrift_spec = (
10528
    None, # 0
10529
    (1, TType.BOOL, 'isActive', None, None, ), # 1
10530
  )
10531
 
10532
  def __init__(self, isActive=None,):
10533
    self.isActive = isActive
10534
 
10535
  def read(self, iprot):
10536
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10537
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10538
      return
10539
    iprot.readStructBegin()
10540
    while True:
10541
      (fname, ftype, fid) = iprot.readFieldBegin()
10542
      if ftype == TType.STOP:
10543
        break
10544
      if fid == 1:
10545
        if ftype == TType.BOOL:
10546
          self.isActive = iprot.readBool();
10547
        else:
10548
          iprot.skip(ftype)
10549
      else:
10550
        iprot.skip(ftype)
10551
      iprot.readFieldEnd()
10552
    iprot.readStructEnd()
10553
 
10554
  def write(self, oprot):
10555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10557
      return
10558
    oprot.writeStructBegin('getAllItems_args')
10559
    if self.isActive is not None:
10560
      oprot.writeFieldBegin('isActive', TType.BOOL, 1)
10561
      oprot.writeBool(self.isActive)
10562
      oprot.writeFieldEnd()
10563
    oprot.writeFieldStop()
10564
    oprot.writeStructEnd()
10565
 
10566
  def validate(self):
10567
    return
10568
 
10569
 
10570
  def __repr__(self):
10571
    L = ['%s=%r' % (key, value)
10572
      for key, value in self.__dict__.iteritems()]
10573
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10574
 
10575
  def __eq__(self, other):
10576
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10577
 
10578
  def __ne__(self, other):
10579
    return not (self == other)
10580
 
10581
class getAllItems_result:
10582
  """
10583
  Attributes:
10584
   - success
10585
   - cex
10586
  """
10587
 
10588
  thrift_spec = (
10589
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10590
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10591
  )
10592
 
10593
  def __init__(self, success=None, cex=None,):
10594
    self.success = success
10595
    self.cex = cex
10596
 
10597
  def read(self, iprot):
10598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10600
      return
10601
    iprot.readStructBegin()
10602
    while True:
10603
      (fname, ftype, fid) = iprot.readFieldBegin()
10604
      if ftype == TType.STOP:
10605
        break
10606
      if fid == 0:
10607
        if ftype == TType.LIST:
10608
          self.success = []
8590 kshitij.so 10609
          (_etype63, _size60) = iprot.readListBegin()
10610
          for _i64 in xrange(_size60):
10611
            _elem65 = Item()
10612
            _elem65.read(iprot)
10613
            self.success.append(_elem65)
5944 mandeep.dh 10614
          iprot.readListEnd()
10615
        else:
10616
          iprot.skip(ftype)
10617
      elif fid == 1:
10618
        if ftype == TType.STRUCT:
10619
          self.cex = CatalogServiceException()
10620
          self.cex.read(iprot)
10621
        else:
10622
          iprot.skip(ftype)
10623
      else:
10624
        iprot.skip(ftype)
10625
      iprot.readFieldEnd()
10626
    iprot.readStructEnd()
10627
 
10628
  def write(self, oprot):
10629
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10630
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10631
      return
10632
    oprot.writeStructBegin('getAllItems_result')
10633
    if self.success is not None:
10634
      oprot.writeFieldBegin('success', TType.LIST, 0)
10635
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10636
      for iter66 in self.success:
10637
        iter66.write(oprot)
5944 mandeep.dh 10638
      oprot.writeListEnd()
10639
      oprot.writeFieldEnd()
10640
    if self.cex is not None:
10641
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10642
      self.cex.write(oprot)
10643
      oprot.writeFieldEnd()
10644
    oprot.writeFieldStop()
10645
    oprot.writeStructEnd()
10646
 
10647
  def validate(self):
10648
    return
10649
 
10650
 
10651
  def __repr__(self):
10652
    L = ['%s=%r' % (key, value)
10653
      for key, value in self.__dict__.iteritems()]
10654
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10655
 
10656
  def __eq__(self, other):
10657
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10658
 
10659
  def __ne__(self, other):
10660
    return not (self == other)
10661
 
10662
class getAllItemsByStatus_args:
10663
  """
10664
  Attributes:
10665
   - itemStatus
10666
  """
10667
 
10668
  thrift_spec = (
10669
    None, # 0
10670
    (1, TType.I32, 'itemStatus', None, None, ), # 1
10671
  )
10672
 
10673
  def __init__(self, itemStatus=None,):
10674
    self.itemStatus = itemStatus
10675
 
10676
  def read(self, iprot):
10677
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10678
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10679
      return
10680
    iprot.readStructBegin()
10681
    while True:
10682
      (fname, ftype, fid) = iprot.readFieldBegin()
10683
      if ftype == TType.STOP:
10684
        break
10685
      if fid == 1:
10686
        if ftype == TType.I32:
10687
          self.itemStatus = iprot.readI32();
10688
        else:
10689
          iprot.skip(ftype)
10690
      else:
10691
        iprot.skip(ftype)
10692
      iprot.readFieldEnd()
10693
    iprot.readStructEnd()
10694
 
10695
  def write(self, oprot):
10696
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10697
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10698
      return
10699
    oprot.writeStructBegin('getAllItemsByStatus_args')
10700
    if self.itemStatus is not None:
10701
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
10702
      oprot.writeI32(self.itemStatus)
10703
      oprot.writeFieldEnd()
10704
    oprot.writeFieldStop()
10705
    oprot.writeStructEnd()
10706
 
10707
  def validate(self):
10708
    return
10709
 
10710
 
10711
  def __repr__(self):
10712
    L = ['%s=%r' % (key, value)
10713
      for key, value in self.__dict__.iteritems()]
10714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10715
 
10716
  def __eq__(self, other):
10717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10718
 
10719
  def __ne__(self, other):
10720
    return not (self == other)
10721
 
10722
class getAllItemsByStatus_result:
10723
  """
10724
  Attributes:
10725
   - success
10726
   - cex
10727
  """
10728
 
10729
  thrift_spec = (
10730
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
10731
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10732
  )
10733
 
10734
  def __init__(self, success=None, cex=None,):
10735
    self.success = success
10736
    self.cex = cex
10737
 
10738
  def read(self, iprot):
10739
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10740
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10741
      return
10742
    iprot.readStructBegin()
10743
    while True:
10744
      (fname, ftype, fid) = iprot.readFieldBegin()
10745
      if ftype == TType.STOP:
10746
        break
10747
      if fid == 0:
10748
        if ftype == TType.LIST:
10749
          self.success = []
8590 kshitij.so 10750
          (_etype70, _size67) = iprot.readListBegin()
10751
          for _i71 in xrange(_size67):
10752
            _elem72 = Item()
10753
            _elem72.read(iprot)
10754
            self.success.append(_elem72)
5944 mandeep.dh 10755
          iprot.readListEnd()
10756
        else:
10757
          iprot.skip(ftype)
10758
      elif fid == 1:
10759
        if ftype == TType.STRUCT:
10760
          self.cex = CatalogServiceException()
10761
          self.cex.read(iprot)
10762
        else:
10763
          iprot.skip(ftype)
10764
      else:
10765
        iprot.skip(ftype)
10766
      iprot.readFieldEnd()
10767
    iprot.readStructEnd()
10768
 
10769
  def write(self, oprot):
10770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10772
      return
10773
    oprot.writeStructBegin('getAllItemsByStatus_result')
10774
    if self.success is not None:
10775
      oprot.writeFieldBegin('success', TType.LIST, 0)
10776
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8590 kshitij.so 10777
      for iter73 in self.success:
10778
        iter73.write(oprot)
5944 mandeep.dh 10779
      oprot.writeListEnd()
10780
      oprot.writeFieldEnd()
10781
    if self.cex is not None:
10782
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10783
      self.cex.write(oprot)
10784
      oprot.writeFieldEnd()
10785
    oprot.writeFieldStop()
10786
    oprot.writeStructEnd()
10787
 
10788
  def validate(self):
10789
    return
10790
 
10791
 
10792
  def __repr__(self):
10793
    L = ['%s=%r' % (key, value)
10794
      for key, value in self.__dict__.iteritems()]
10795
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10796
 
10797
  def __eq__(self, other):
10798
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10799
 
10800
  def __ne__(self, other):
10801
    return not (self == other)
10802
 
10803
class markItemAsContentComplete_args:
10804
  """
10805
  Attributes:
10806
   - entityId
10807
   - category
10808
   - brand
10809
   - modelName
10810
   - modelNumber
9253 rajveer 10811
   - isAndroid
5944 mandeep.dh 10812
  """
10813
 
10814
  thrift_spec = (
10815
    None, # 0
10816
    (1, TType.I64, 'entityId', None, None, ), # 1
10817
    (2, TType.I64, 'category', None, None, ), # 2
10818
    (3, TType.STRING, 'brand', None, None, ), # 3
10819
    (4, TType.STRING, 'modelName', None, None, ), # 4
10820
    (5, TType.STRING, 'modelNumber', None, None, ), # 5
9253 rajveer 10821
    (6, TType.BOOL, 'isAndroid', None, None, ), # 6
5944 mandeep.dh 10822
  )
10823
 
9253 rajveer 10824
  def __init__(self, entityId=None, category=None, brand=None, modelName=None, modelNumber=None, isAndroid=None,):
5944 mandeep.dh 10825
    self.entityId = entityId
10826
    self.category = category
10827
    self.brand = brand
10828
    self.modelName = modelName
10829
    self.modelNumber = modelNumber
9253 rajveer 10830
    self.isAndroid = isAndroid
5944 mandeep.dh 10831
 
10832
  def read(self, iprot):
10833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10835
      return
10836
    iprot.readStructBegin()
10837
    while True:
10838
      (fname, ftype, fid) = iprot.readFieldBegin()
10839
      if ftype == TType.STOP:
10840
        break
10841
      if fid == 1:
10842
        if ftype == TType.I64:
10843
          self.entityId = iprot.readI64();
10844
        else:
10845
          iprot.skip(ftype)
10846
      elif fid == 2:
10847
        if ftype == TType.I64:
10848
          self.category = iprot.readI64();
10849
        else:
10850
          iprot.skip(ftype)
10851
      elif fid == 3:
10852
        if ftype == TType.STRING:
10853
          self.brand = iprot.readString();
10854
        else:
10855
          iprot.skip(ftype)
10856
      elif fid == 4:
10857
        if ftype == TType.STRING:
10858
          self.modelName = iprot.readString();
10859
        else:
10860
          iprot.skip(ftype)
10861
      elif fid == 5:
10862
        if ftype == TType.STRING:
10863
          self.modelNumber = iprot.readString();
10864
        else:
10865
          iprot.skip(ftype)
9253 rajveer 10866
      elif fid == 6:
10867
        if ftype == TType.BOOL:
10868
          self.isAndroid = iprot.readBool();
10869
        else:
10870
          iprot.skip(ftype)
5944 mandeep.dh 10871
      else:
10872
        iprot.skip(ftype)
10873
      iprot.readFieldEnd()
10874
    iprot.readStructEnd()
10875
 
10876
  def write(self, oprot):
10877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10879
      return
10880
    oprot.writeStructBegin('markItemAsContentComplete_args')
10881
    if self.entityId is not None:
10882
      oprot.writeFieldBegin('entityId', TType.I64, 1)
10883
      oprot.writeI64(self.entityId)
10884
      oprot.writeFieldEnd()
10885
    if self.category is not None:
10886
      oprot.writeFieldBegin('category', TType.I64, 2)
10887
      oprot.writeI64(self.category)
10888
      oprot.writeFieldEnd()
10889
    if self.brand is not None:
10890
      oprot.writeFieldBegin('brand', TType.STRING, 3)
10891
      oprot.writeString(self.brand)
10892
      oprot.writeFieldEnd()
10893
    if self.modelName is not None:
10894
      oprot.writeFieldBegin('modelName', TType.STRING, 4)
10895
      oprot.writeString(self.modelName)
10896
      oprot.writeFieldEnd()
10897
    if self.modelNumber is not None:
10898
      oprot.writeFieldBegin('modelNumber', TType.STRING, 5)
10899
      oprot.writeString(self.modelNumber)
10900
      oprot.writeFieldEnd()
9253 rajveer 10901
    if self.isAndroid is not None:
10902
      oprot.writeFieldBegin('isAndroid', TType.BOOL, 6)
10903
      oprot.writeBool(self.isAndroid)
10904
      oprot.writeFieldEnd()
5944 mandeep.dh 10905
    oprot.writeFieldStop()
10906
    oprot.writeStructEnd()
10907
 
10908
  def validate(self):
10909
    return
10910
 
10911
 
10912
  def __repr__(self):
10913
    L = ['%s=%r' % (key, value)
10914
      for key, value in self.__dict__.iteritems()]
10915
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10916
 
10917
  def __eq__(self, other):
10918
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10919
 
10920
  def __ne__(self, other):
10921
    return not (self == other)
10922
 
10923
class markItemAsContentComplete_result:
10924
  """
10925
  Attributes:
10926
   - success
10927
   - cex
10928
  """
10929
 
10930
  thrift_spec = (
10931
    (0, TType.BOOL, 'success', None, None, ), # 0
10932
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
10933
  )
10934
 
10935
  def __init__(self, success=None, cex=None,):
10936
    self.success = success
10937
    self.cex = cex
10938
 
10939
  def read(self, iprot):
10940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10942
      return
10943
    iprot.readStructBegin()
10944
    while True:
10945
      (fname, ftype, fid) = iprot.readFieldBegin()
10946
      if ftype == TType.STOP:
10947
        break
10948
      if fid == 0:
10949
        if ftype == TType.BOOL:
10950
          self.success = iprot.readBool();
10951
        else:
10952
          iprot.skip(ftype)
10953
      elif fid == 1:
10954
        if ftype == TType.STRUCT:
10955
          self.cex = CatalogServiceException()
10956
          self.cex.read(iprot)
10957
        else:
10958
          iprot.skip(ftype)
10959
      else:
10960
        iprot.skip(ftype)
10961
      iprot.readFieldEnd()
10962
    iprot.readStructEnd()
10963
 
10964
  def write(self, oprot):
10965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10967
      return
10968
    oprot.writeStructBegin('markItemAsContentComplete_result')
10969
    if self.success is not None:
10970
      oprot.writeFieldBegin('success', TType.BOOL, 0)
10971
      oprot.writeBool(self.success)
10972
      oprot.writeFieldEnd()
10973
    if self.cex is not None:
10974
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
10975
      self.cex.write(oprot)
10976
      oprot.writeFieldEnd()
10977
    oprot.writeFieldStop()
10978
    oprot.writeStructEnd()
10979
 
10980
  def validate(self):
10981
    return
10982
 
10983
 
10984
  def __repr__(self):
10985
    L = ['%s=%r' % (key, value)
10986
      for key, value in self.__dict__.iteritems()]
10987
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10988
 
10989
  def __eq__(self, other):
10990
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10991
 
10992
  def __ne__(self, other):
10993
    return not (self == other)
10994
 
12567 amit.gupta 10995
class getVatRates_args:
10996
  """
10997
  Attributes:
10998
   - itemId
10999
   - categoryId
11000
  """
11001
 
11002
  thrift_spec = (
11003
    None, # 0
11004
    (1, TType.I64, 'itemId', None, None, ), # 1
11005
    (2, TType.I64, 'categoryId', None, None, ), # 2
11006
  )
11007
 
11008
  def __init__(self, itemId=None, categoryId=None,):
11009
    self.itemId = itemId
11010
    self.categoryId = categoryId
11011
 
11012
  def read(self, iprot):
11013
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11014
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11015
      return
11016
    iprot.readStructBegin()
11017
    while True:
11018
      (fname, ftype, fid) = iprot.readFieldBegin()
11019
      if ftype == TType.STOP:
11020
        break
11021
      if fid == 1:
11022
        if ftype == TType.I64:
11023
          self.itemId = iprot.readI64();
11024
        else:
11025
          iprot.skip(ftype)
11026
      elif fid == 2:
11027
        if ftype == TType.I64:
11028
          self.categoryId = iprot.readI64();
11029
        else:
11030
          iprot.skip(ftype)
11031
      else:
11032
        iprot.skip(ftype)
11033
      iprot.readFieldEnd()
11034
    iprot.readStructEnd()
11035
 
11036
  def write(self, oprot):
11037
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11038
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11039
      return
11040
    oprot.writeStructBegin('getVatRates_args')
11041
    if self.itemId is not None:
11042
      oprot.writeFieldBegin('itemId', TType.I64, 1)
11043
      oprot.writeI64(self.itemId)
11044
      oprot.writeFieldEnd()
11045
    if self.categoryId is not None:
11046
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
11047
      oprot.writeI64(self.categoryId)
11048
      oprot.writeFieldEnd()
11049
    oprot.writeFieldStop()
11050
    oprot.writeStructEnd()
11051
 
11052
  def validate(self):
11053
    return
11054
 
11055
 
11056
  def __repr__(self):
11057
    L = ['%s=%r' % (key, value)
11058
      for key, value in self.__dict__.iteritems()]
11059
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11060
 
11061
  def __eq__(self, other):
11062
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11063
 
11064
  def __ne__(self, other):
11065
    return not (self == other)
11066
 
11067
class getVatRates_result:
11068
  """
11069
  Attributes:
11070
   - success
11071
   - cex
11072
  """
11073
 
11074
  thrift_spec = (
11075
    (0, TType.MAP, 'success', (TType.I64,None,TType.DOUBLE,None), None, ), # 0
11076
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11077
  )
11078
 
11079
  def __init__(self, success=None, cex=None,):
11080
    self.success = success
11081
    self.cex = cex
11082
 
11083
  def read(self, iprot):
11084
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11085
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11086
      return
11087
    iprot.readStructBegin()
11088
    while True:
11089
      (fname, ftype, fid) = iprot.readFieldBegin()
11090
      if ftype == TType.STOP:
11091
        break
11092
      if fid == 0:
11093
        if ftype == TType.MAP:
11094
          self.success = {}
11095
          (_ktype75, _vtype76, _size74 ) = iprot.readMapBegin() 
11096
          for _i78 in xrange(_size74):
11097
            _key79 = iprot.readI64();
11098
            _val80 = iprot.readDouble();
11099
            self.success[_key79] = _val80
11100
          iprot.readMapEnd()
11101
        else:
11102
          iprot.skip(ftype)
11103
      elif fid == 1:
11104
        if ftype == TType.STRUCT:
11105
          self.cex = CatalogServiceException()
11106
          self.cex.read(iprot)
11107
        else:
11108
          iprot.skip(ftype)
11109
      else:
11110
        iprot.skip(ftype)
11111
      iprot.readFieldEnd()
11112
    iprot.readStructEnd()
11113
 
11114
  def write(self, oprot):
11115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11117
      return
11118
    oprot.writeStructBegin('getVatRates_result')
11119
    if self.success is not None:
11120
      oprot.writeFieldBegin('success', TType.MAP, 0)
11121
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.success))
11122
      for kiter81,viter82 in self.success.items():
11123
        oprot.writeI64(kiter81)
11124
        oprot.writeDouble(viter82)
11125
      oprot.writeMapEnd()
11126
      oprot.writeFieldEnd()
11127
    if self.cex is not None:
11128
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11129
      self.cex.write(oprot)
11130
      oprot.writeFieldEnd()
11131
    oprot.writeFieldStop()
11132
    oprot.writeStructEnd()
11133
 
11134
  def validate(self):
11135
    return
11136
 
11137
 
11138
  def __repr__(self):
11139
    L = ['%s=%r' % (key, value)
11140
      for key, value in self.__dict__.iteritems()]
11141
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11142
 
11143
  def __eq__(self, other):
11144
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11145
 
11146
  def __ne__(self, other):
11147
    return not (self == other)
11148
 
5944 mandeep.dh 11149
class getAllItemsInRange_args:
11150
  """
11151
  Attributes:
11152
   - offset
11153
   - limit
11154
  """
11155
 
11156
  thrift_spec = (
11157
    None, # 0
11158
    (1, TType.I64, 'offset', None, None, ), # 1
11159
    (2, TType.I64, 'limit', None, None, ), # 2
11160
  )
11161
 
11162
  def __init__(self, offset=None, limit=None,):
11163
    self.offset = offset
11164
    self.limit = limit
11165
 
11166
  def read(self, iprot):
11167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11169
      return
11170
    iprot.readStructBegin()
11171
    while True:
11172
      (fname, ftype, fid) = iprot.readFieldBegin()
11173
      if ftype == TType.STOP:
11174
        break
11175
      if fid == 1:
11176
        if ftype == TType.I64:
11177
          self.offset = iprot.readI64();
11178
        else:
11179
          iprot.skip(ftype)
11180
      elif fid == 2:
11181
        if ftype == TType.I64:
11182
          self.limit = iprot.readI64();
11183
        else:
11184
          iprot.skip(ftype)
11185
      else:
11186
        iprot.skip(ftype)
11187
      iprot.readFieldEnd()
11188
    iprot.readStructEnd()
11189
 
11190
  def write(self, oprot):
11191
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11192
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11193
      return
11194
    oprot.writeStructBegin('getAllItemsInRange_args')
11195
    if self.offset is not None:
11196
      oprot.writeFieldBegin('offset', TType.I64, 1)
11197
      oprot.writeI64(self.offset)
11198
      oprot.writeFieldEnd()
11199
    if self.limit is not None:
11200
      oprot.writeFieldBegin('limit', TType.I64, 2)
11201
      oprot.writeI64(self.limit)
11202
      oprot.writeFieldEnd()
11203
    oprot.writeFieldStop()
11204
    oprot.writeStructEnd()
11205
 
11206
  def validate(self):
11207
    return
11208
 
11209
 
11210
  def __repr__(self):
11211
    L = ['%s=%r' % (key, value)
11212
      for key, value in self.__dict__.iteritems()]
11213
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11214
 
11215
  def __eq__(self, other):
11216
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11217
 
11218
  def __ne__(self, other):
11219
    return not (self == other)
11220
 
11221
class getAllItemsInRange_result:
11222
  """
11223
  Attributes:
11224
   - success
11225
   - cex
11226
  """
11227
 
11228
  thrift_spec = (
11229
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11230
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11231
  )
11232
 
11233
  def __init__(self, success=None, cex=None,):
11234
    self.success = success
11235
    self.cex = cex
11236
 
11237
  def read(self, iprot):
11238
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11239
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11240
      return
11241
    iprot.readStructBegin()
11242
    while True:
11243
      (fname, ftype, fid) = iprot.readFieldBegin()
11244
      if ftype == TType.STOP:
11245
        break
11246
      if fid == 0:
11247
        if ftype == TType.LIST:
11248
          self.success = []
12567 amit.gupta 11249
          (_etype86, _size83) = iprot.readListBegin()
11250
          for _i87 in xrange(_size83):
11251
            _elem88 = Item()
11252
            _elem88.read(iprot)
11253
            self.success.append(_elem88)
5944 mandeep.dh 11254
          iprot.readListEnd()
11255
        else:
11256
          iprot.skip(ftype)
11257
      elif fid == 1:
11258
        if ftype == TType.STRUCT:
11259
          self.cex = CatalogServiceException()
11260
          self.cex.read(iprot)
11261
        else:
11262
          iprot.skip(ftype)
11263
      else:
11264
        iprot.skip(ftype)
11265
      iprot.readFieldEnd()
11266
    iprot.readStructEnd()
11267
 
11268
  def write(self, oprot):
11269
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11270
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11271
      return
11272
    oprot.writeStructBegin('getAllItemsInRange_result')
11273
    if self.success is not None:
11274
      oprot.writeFieldBegin('success', TType.LIST, 0)
11275
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11276
      for iter89 in self.success:
11277
        iter89.write(oprot)
5944 mandeep.dh 11278
      oprot.writeListEnd()
11279
      oprot.writeFieldEnd()
11280
    if self.cex is not None:
11281
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11282
      self.cex.write(oprot)
11283
      oprot.writeFieldEnd()
11284
    oprot.writeFieldStop()
11285
    oprot.writeStructEnd()
11286
 
11287
  def validate(self):
11288
    return
11289
 
11290
 
11291
  def __repr__(self):
11292
    L = ['%s=%r' % (key, value)
11293
      for key, value in self.__dict__.iteritems()]
11294
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11295
 
11296
  def __eq__(self, other):
11297
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11298
 
11299
  def __ne__(self, other):
11300
    return not (self == other)
11301
 
11302
class getAllItemsByStatusInRange_args:
11303
  """
11304
  Attributes:
11305
   - itemStatus
11306
   - offset
11307
   - limit
11308
  """
11309
 
11310
  thrift_spec = (
11311
    None, # 0
11312
    (1, TType.I32, 'itemStatus', None, None, ), # 1
11313
    (2, TType.I64, 'offset', None, None, ), # 2
11314
    (3, TType.I64, 'limit', None, None, ), # 3
11315
  )
11316
 
11317
  def __init__(self, itemStatus=None, offset=None, limit=None,):
11318
    self.itemStatus = itemStatus
11319
    self.offset = offset
11320
    self.limit = limit
11321
 
11322
  def read(self, iprot):
11323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11325
      return
11326
    iprot.readStructBegin()
11327
    while True:
11328
      (fname, ftype, fid) = iprot.readFieldBegin()
11329
      if ftype == TType.STOP:
11330
        break
11331
      if fid == 1:
11332
        if ftype == TType.I32:
11333
          self.itemStatus = iprot.readI32();
11334
        else:
11335
          iprot.skip(ftype)
11336
      elif fid == 2:
11337
        if ftype == TType.I64:
11338
          self.offset = iprot.readI64();
11339
        else:
11340
          iprot.skip(ftype)
11341
      elif fid == 3:
11342
        if ftype == TType.I64:
11343
          self.limit = iprot.readI64();
11344
        else:
11345
          iprot.skip(ftype)
11346
      else:
11347
        iprot.skip(ftype)
11348
      iprot.readFieldEnd()
11349
    iprot.readStructEnd()
11350
 
11351
  def write(self, oprot):
11352
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11353
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11354
      return
11355
    oprot.writeStructBegin('getAllItemsByStatusInRange_args')
11356
    if self.itemStatus is not None:
11357
      oprot.writeFieldBegin('itemStatus', TType.I32, 1)
11358
      oprot.writeI32(self.itemStatus)
11359
      oprot.writeFieldEnd()
11360
    if self.offset is not None:
11361
      oprot.writeFieldBegin('offset', TType.I64, 2)
11362
      oprot.writeI64(self.offset)
11363
      oprot.writeFieldEnd()
11364
    if self.limit is not None:
11365
      oprot.writeFieldBegin('limit', TType.I64, 3)
11366
      oprot.writeI64(self.limit)
11367
      oprot.writeFieldEnd()
11368
    oprot.writeFieldStop()
11369
    oprot.writeStructEnd()
11370
 
11371
  def validate(self):
11372
    return
11373
 
11374
 
11375
  def __repr__(self):
11376
    L = ['%s=%r' % (key, value)
11377
      for key, value in self.__dict__.iteritems()]
11378
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11379
 
11380
  def __eq__(self, other):
11381
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11382
 
11383
  def __ne__(self, other):
11384
    return not (self == other)
11385
 
11386
class getAllItemsByStatusInRange_result:
11387
  """
11388
  Attributes:
11389
   - success
11390
   - cex
11391
  """
11392
 
11393
  thrift_spec = (
11394
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11395
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11396
  )
11397
 
11398
  def __init__(self, success=None, cex=None,):
11399
    self.success = success
11400
    self.cex = cex
11401
 
11402
  def read(self, iprot):
11403
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11404
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11405
      return
11406
    iprot.readStructBegin()
11407
    while True:
11408
      (fname, ftype, fid) = iprot.readFieldBegin()
11409
      if ftype == TType.STOP:
11410
        break
11411
      if fid == 0:
11412
        if ftype == TType.LIST:
11413
          self.success = []
12567 amit.gupta 11414
          (_etype93, _size90) = iprot.readListBegin()
11415
          for _i94 in xrange(_size90):
11416
            _elem95 = Item()
11417
            _elem95.read(iprot)
11418
            self.success.append(_elem95)
5944 mandeep.dh 11419
          iprot.readListEnd()
11420
        else:
11421
          iprot.skip(ftype)
11422
      elif fid == 1:
11423
        if ftype == TType.STRUCT:
11424
          self.cex = CatalogServiceException()
11425
          self.cex.read(iprot)
11426
        else:
11427
          iprot.skip(ftype)
11428
      else:
11429
        iprot.skip(ftype)
11430
      iprot.readFieldEnd()
11431
    iprot.readStructEnd()
11432
 
11433
  def write(self, oprot):
11434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11436
      return
11437
    oprot.writeStructBegin('getAllItemsByStatusInRange_result')
11438
    if self.success is not None:
11439
      oprot.writeFieldBegin('success', TType.LIST, 0)
11440
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11441
      for iter96 in self.success:
11442
        iter96.write(oprot)
5944 mandeep.dh 11443
      oprot.writeListEnd()
11444
      oprot.writeFieldEnd()
11445
    if self.cex is not None:
11446
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11447
      self.cex.write(oprot)
11448
      oprot.writeFieldEnd()
11449
    oprot.writeFieldStop()
11450
    oprot.writeStructEnd()
11451
 
11452
  def validate(self):
11453
    return
11454
 
11455
 
11456
  def __repr__(self):
11457
    L = ['%s=%r' % (key, value)
11458
      for key, value in self.__dict__.iteritems()]
11459
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11460
 
11461
  def __eq__(self, other):
11462
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11463
 
11464
  def __ne__(self, other):
11465
    return not (self == other)
11466
 
11467
class getItemCountByStatus_args:
11468
  """
11469
  Attributes:
11470
   - useStatus
11471
   - itemStatus
11472
  """
11473
 
11474
  thrift_spec = (
11475
    None, # 0
11476
    (1, TType.BOOL, 'useStatus', None, None, ), # 1
11477
    (2, TType.I32, 'itemStatus', None, None, ), # 2
11478
  )
11479
 
11480
  def __init__(self, useStatus=None, itemStatus=None,):
11481
    self.useStatus = useStatus
11482
    self.itemStatus = itemStatus
11483
 
11484
  def read(self, iprot):
11485
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11486
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11487
      return
11488
    iprot.readStructBegin()
11489
    while True:
11490
      (fname, ftype, fid) = iprot.readFieldBegin()
11491
      if ftype == TType.STOP:
11492
        break
11493
      if fid == 1:
11494
        if ftype == TType.BOOL:
11495
          self.useStatus = iprot.readBool();
11496
        else:
11497
          iprot.skip(ftype)
11498
      elif fid == 2:
11499
        if ftype == TType.I32:
11500
          self.itemStatus = iprot.readI32();
11501
        else:
11502
          iprot.skip(ftype)
11503
      else:
11504
        iprot.skip(ftype)
11505
      iprot.readFieldEnd()
11506
    iprot.readStructEnd()
11507
 
11508
  def write(self, oprot):
11509
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11510
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11511
      return
11512
    oprot.writeStructBegin('getItemCountByStatus_args')
11513
    if self.useStatus is not None:
11514
      oprot.writeFieldBegin('useStatus', TType.BOOL, 1)
11515
      oprot.writeBool(self.useStatus)
11516
      oprot.writeFieldEnd()
11517
    if self.itemStatus is not None:
11518
      oprot.writeFieldBegin('itemStatus', TType.I32, 2)
11519
      oprot.writeI32(self.itemStatus)
11520
      oprot.writeFieldEnd()
11521
    oprot.writeFieldStop()
11522
    oprot.writeStructEnd()
11523
 
11524
  def validate(self):
11525
    return
11526
 
11527
 
11528
  def __repr__(self):
11529
    L = ['%s=%r' % (key, value)
11530
      for key, value in self.__dict__.iteritems()]
11531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11532
 
11533
  def __eq__(self, other):
11534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11535
 
11536
  def __ne__(self, other):
11537
    return not (self == other)
11538
 
11539
class getItemCountByStatus_result:
11540
  """
11541
  Attributes:
11542
   - success
11543
  """
11544
 
11545
  thrift_spec = (
11546
    (0, TType.I32, 'success', None, None, ), # 0
11547
  )
11548
 
11549
  def __init__(self, success=None,):
11550
    self.success = success
11551
 
11552
  def read(self, iprot):
11553
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11554
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11555
      return
11556
    iprot.readStructBegin()
11557
    while True:
11558
      (fname, ftype, fid) = iprot.readFieldBegin()
11559
      if ftype == TType.STOP:
11560
        break
11561
      if fid == 0:
11562
        if ftype == TType.I32:
11563
          self.success = iprot.readI32();
11564
        else:
11565
          iprot.skip(ftype)
11566
      else:
11567
        iprot.skip(ftype)
11568
      iprot.readFieldEnd()
11569
    iprot.readStructEnd()
11570
 
11571
  def write(self, oprot):
11572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11574
      return
11575
    oprot.writeStructBegin('getItemCountByStatus_result')
11576
    if self.success is not None:
11577
      oprot.writeFieldBegin('success', TType.I32, 0)
11578
      oprot.writeI32(self.success)
11579
      oprot.writeFieldEnd()
11580
    oprot.writeFieldStop()
11581
    oprot.writeStructEnd()
11582
 
11583
  def validate(self):
11584
    return
11585
 
11586
 
11587
  def __repr__(self):
11588
    L = ['%s=%r' % (key, value)
11589
      for key, value in self.__dict__.iteritems()]
11590
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11591
 
11592
  def __eq__(self, other):
11593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11594
 
11595
  def __ne__(self, other):
11596
    return not (self == other)
11597
 
11598
class getBestSellers_args:
11599
 
11600
  thrift_spec = (
11601
  )
11602
 
11603
  def read(self, iprot):
11604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11606
      return
11607
    iprot.readStructBegin()
11608
    while True:
11609
      (fname, ftype, fid) = iprot.readFieldBegin()
11610
      if ftype == TType.STOP:
11611
        break
11612
      else:
11613
        iprot.skip(ftype)
11614
      iprot.readFieldEnd()
11615
    iprot.readStructEnd()
11616
 
11617
  def write(self, oprot):
11618
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11619
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11620
      return
11621
    oprot.writeStructBegin('getBestSellers_args')
11622
    oprot.writeFieldStop()
11623
    oprot.writeStructEnd()
11624
 
11625
  def validate(self):
11626
    return
11627
 
11628
 
11629
  def __repr__(self):
11630
    L = ['%s=%r' % (key, value)
11631
      for key, value in self.__dict__.iteritems()]
11632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11633
 
11634
  def __eq__(self, other):
11635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11636
 
11637
  def __ne__(self, other):
11638
    return not (self == other)
11639
 
11640
class getBestSellers_result:
11641
  """
11642
  Attributes:
11643
   - success
11644
   - isex
11645
  """
11646
 
11647
  thrift_spec = (
11648
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
11649
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11650
  )
11651
 
11652
  def __init__(self, success=None, isex=None,):
11653
    self.success = success
11654
    self.isex = isex
11655
 
11656
  def read(self, iprot):
11657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11659
      return
11660
    iprot.readStructBegin()
11661
    while True:
11662
      (fname, ftype, fid) = iprot.readFieldBegin()
11663
      if ftype == TType.STOP:
11664
        break
11665
      if fid == 0:
11666
        if ftype == TType.LIST:
11667
          self.success = []
12567 amit.gupta 11668
          (_etype100, _size97) = iprot.readListBegin()
11669
          for _i101 in xrange(_size97):
11670
            _elem102 = Item()
11671
            _elem102.read(iprot)
11672
            self.success.append(_elem102)
5944 mandeep.dh 11673
          iprot.readListEnd()
11674
        else:
11675
          iprot.skip(ftype)
11676
      elif fid == 1:
11677
        if ftype == TType.STRUCT:
11678
          self.isex = CatalogServiceException()
11679
          self.isex.read(iprot)
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('getBestSellers_result')
11692
    if self.success is not None:
11693
      oprot.writeFieldBegin('success', TType.LIST, 0)
11694
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 11695
      for iter103 in self.success:
11696
        iter103.write(oprot)
5944 mandeep.dh 11697
      oprot.writeListEnd()
11698
      oprot.writeFieldEnd()
11699
    if self.isex is not None:
11700
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
11701
      self.isex.write(oprot)
11702
      oprot.writeFieldEnd()
11703
    oprot.writeFieldStop()
11704
    oprot.writeStructEnd()
11705
 
11706
  def validate(self):
11707
    return
11708
 
11709
 
11710
  def __repr__(self):
11711
    L = ['%s=%r' % (key, value)
11712
      for key, value in self.__dict__.iteritems()]
11713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11714
 
11715
  def __eq__(self, other):
11716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11717
 
11718
  def __ne__(self, other):
11719
    return not (self == other)
11720
 
11721
class getBestSellersCatalogIds_args:
11722
  """
11723
  Attributes:
11724
   - beginIndex
11725
   - totalItems
11726
   - brand
11727
   - category
11728
  """
11729
 
11730
  thrift_spec = (
11731
    None, # 0
11732
    (1, TType.I64, 'beginIndex', None, None, ), # 1
11733
    (2, TType.I64, 'totalItems', None, None, ), # 2
11734
    (3, TType.STRING, 'brand', None, None, ), # 3
11735
    (4, TType.I64, 'category', None, None, ), # 4
11736
  )
11737
 
11738
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
11739
    self.beginIndex = beginIndex
11740
    self.totalItems = totalItems
11741
    self.brand = brand
11742
    self.category = category
11743
 
11744
  def read(self, iprot):
11745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11747
      return
11748
    iprot.readStructBegin()
11749
    while True:
11750
      (fname, ftype, fid) = iprot.readFieldBegin()
11751
      if ftype == TType.STOP:
11752
        break
11753
      if fid == 1:
11754
        if ftype == TType.I64:
11755
          self.beginIndex = iprot.readI64();
11756
        else:
11757
          iprot.skip(ftype)
11758
      elif fid == 2:
11759
        if ftype == TType.I64:
11760
          self.totalItems = iprot.readI64();
11761
        else:
11762
          iprot.skip(ftype)
11763
      elif fid == 3:
11764
        if ftype == TType.STRING:
11765
          self.brand = iprot.readString();
11766
        else:
11767
          iprot.skip(ftype)
11768
      elif fid == 4:
11769
        if ftype == TType.I64:
11770
          self.category = iprot.readI64();
11771
        else:
11772
          iprot.skip(ftype)
11773
      else:
11774
        iprot.skip(ftype)
11775
      iprot.readFieldEnd()
11776
    iprot.readStructEnd()
11777
 
11778
  def write(self, oprot):
11779
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11780
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11781
      return
11782
    oprot.writeStructBegin('getBestSellersCatalogIds_args')
11783
    if self.beginIndex is not None:
11784
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
11785
      oprot.writeI64(self.beginIndex)
11786
      oprot.writeFieldEnd()
11787
    if self.totalItems is not None:
11788
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
11789
      oprot.writeI64(self.totalItems)
11790
      oprot.writeFieldEnd()
11791
    if self.brand is not None:
11792
      oprot.writeFieldBegin('brand', TType.STRING, 3)
11793
      oprot.writeString(self.brand)
11794
      oprot.writeFieldEnd()
11795
    if self.category is not None:
11796
      oprot.writeFieldBegin('category', TType.I64, 4)
11797
      oprot.writeI64(self.category)
11798
      oprot.writeFieldEnd()
11799
    oprot.writeFieldStop()
11800
    oprot.writeStructEnd()
11801
 
11802
  def validate(self):
11803
    return
11804
 
11805
 
11806
  def __repr__(self):
11807
    L = ['%s=%r' % (key, value)
11808
      for key, value in self.__dict__.iteritems()]
11809
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11810
 
11811
  def __eq__(self, other):
11812
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11813
 
11814
  def __ne__(self, other):
11815
    return not (self == other)
11816
 
11817
class getBestSellersCatalogIds_result:
11818
  """
11819
  Attributes:
11820
   - success
11821
   - cex
11822
  """
11823
 
11824
  thrift_spec = (
11825
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
11826
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11827
  )
11828
 
11829
  def __init__(self, success=None, cex=None,):
11830
    self.success = success
11831
    self.cex = cex
11832
 
11833
  def read(self, iprot):
11834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11836
      return
11837
    iprot.readStructBegin()
11838
    while True:
11839
      (fname, ftype, fid) = iprot.readFieldBegin()
11840
      if ftype == TType.STOP:
11841
        break
11842
      if fid == 0:
11843
        if ftype == TType.LIST:
11844
          self.success = []
12567 amit.gupta 11845
          (_etype107, _size104) = iprot.readListBegin()
11846
          for _i108 in xrange(_size104):
11847
            _elem109 = iprot.readI64();
11848
            self.success.append(_elem109)
5944 mandeep.dh 11849
          iprot.readListEnd()
11850
        else:
11851
          iprot.skip(ftype)
11852
      elif fid == 1:
11853
        if ftype == TType.STRUCT:
11854
          self.cex = CatalogServiceException()
11855
          self.cex.read(iprot)
11856
        else:
11857
          iprot.skip(ftype)
11858
      else:
11859
        iprot.skip(ftype)
11860
      iprot.readFieldEnd()
11861
    iprot.readStructEnd()
11862
 
11863
  def write(self, oprot):
11864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11866
      return
11867
    oprot.writeStructBegin('getBestSellersCatalogIds_result')
11868
    if self.success is not None:
11869
      oprot.writeFieldBegin('success', TType.LIST, 0)
11870
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 11871
      for iter110 in self.success:
11872
        oprot.writeI64(iter110)
5944 mandeep.dh 11873
      oprot.writeListEnd()
11874
      oprot.writeFieldEnd()
11875
    if self.cex is not None:
11876
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11877
      self.cex.write(oprot)
11878
      oprot.writeFieldEnd()
11879
    oprot.writeFieldStop()
11880
    oprot.writeStructEnd()
11881
 
11882
  def validate(self):
11883
    return
11884
 
11885
 
11886
  def __repr__(self):
11887
    L = ['%s=%r' % (key, value)
11888
      for key, value in self.__dict__.iteritems()]
11889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11890
 
11891
  def __eq__(self, other):
11892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11893
 
11894
  def __ne__(self, other):
11895
    return not (self == other)
11896
 
11897
class getBestSellersCount_args:
11898
 
11899
  thrift_spec = (
11900
  )
11901
 
11902
  def read(self, iprot):
11903
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11904
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11905
      return
11906
    iprot.readStructBegin()
11907
    while True:
11908
      (fname, ftype, fid) = iprot.readFieldBegin()
11909
      if ftype == TType.STOP:
11910
        break
11911
      else:
11912
        iprot.skip(ftype)
11913
      iprot.readFieldEnd()
11914
    iprot.readStructEnd()
11915
 
11916
  def write(self, oprot):
11917
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11918
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11919
      return
11920
    oprot.writeStructBegin('getBestSellersCount_args')
11921
    oprot.writeFieldStop()
11922
    oprot.writeStructEnd()
11923
 
11924
  def validate(self):
11925
    return
11926
 
11927
 
11928
  def __repr__(self):
11929
    L = ['%s=%r' % (key, value)
11930
      for key, value in self.__dict__.iteritems()]
11931
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11932
 
11933
  def __eq__(self, other):
11934
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11935
 
11936
  def __ne__(self, other):
11937
    return not (self == other)
11938
 
11939
class getBestSellersCount_result:
11940
  """
11941
  Attributes:
11942
   - success
11943
   - cex
11944
  """
11945
 
11946
  thrift_spec = (
11947
    (0, TType.I64, 'success', None, None, ), # 0
11948
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
11949
  )
11950
 
11951
  def __init__(self, success=None, cex=None,):
11952
    self.success = success
11953
    self.cex = cex
11954
 
11955
  def read(self, iprot):
11956
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11957
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11958
      return
11959
    iprot.readStructBegin()
11960
    while True:
11961
      (fname, ftype, fid) = iprot.readFieldBegin()
11962
      if ftype == TType.STOP:
11963
        break
11964
      if fid == 0:
11965
        if ftype == TType.I64:
11966
          self.success = iprot.readI64();
11967
        else:
11968
          iprot.skip(ftype)
11969
      elif fid == 1:
11970
        if ftype == TType.STRUCT:
11971
          self.cex = CatalogServiceException()
11972
          self.cex.read(iprot)
11973
        else:
11974
          iprot.skip(ftype)
11975
      else:
11976
        iprot.skip(ftype)
11977
      iprot.readFieldEnd()
11978
    iprot.readStructEnd()
11979
 
11980
  def write(self, oprot):
11981
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11982
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11983
      return
11984
    oprot.writeStructBegin('getBestSellersCount_result')
11985
    if self.success is not None:
11986
      oprot.writeFieldBegin('success', TType.I64, 0)
11987
      oprot.writeI64(self.success)
11988
      oprot.writeFieldEnd()
11989
    if self.cex is not None:
11990
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
11991
      self.cex.write(oprot)
11992
      oprot.writeFieldEnd()
11993
    oprot.writeFieldStop()
11994
    oprot.writeStructEnd()
11995
 
11996
  def validate(self):
11997
    return
11998
 
11999
 
12000
  def __repr__(self):
12001
    L = ['%s=%r' % (key, value)
12002
      for key, value in self.__dict__.iteritems()]
12003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12004
 
12005
  def __eq__(self, other):
12006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12007
 
12008
  def __ne__(self, other):
12009
    return not (self == other)
12010
 
12011
class getBestDeals_args:
12012
 
12013
  thrift_spec = (
12014
  )
12015
 
12016
  def read(self, iprot):
12017
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12018
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12019
      return
12020
    iprot.readStructBegin()
12021
    while True:
12022
      (fname, ftype, fid) = iprot.readFieldBegin()
12023
      if ftype == TType.STOP:
12024
        break
12025
      else:
12026
        iprot.skip(ftype)
12027
      iprot.readFieldEnd()
12028
    iprot.readStructEnd()
12029
 
12030
  def write(self, oprot):
12031
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12032
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12033
      return
12034
    oprot.writeStructBegin('getBestDeals_args')
12035
    oprot.writeFieldStop()
12036
    oprot.writeStructEnd()
12037
 
12038
  def validate(self):
12039
    return
12040
 
12041
 
12042
  def __repr__(self):
12043
    L = ['%s=%r' % (key, value)
12044
      for key, value in self.__dict__.iteritems()]
12045
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12046
 
12047
  def __eq__(self, other):
12048
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12049
 
12050
  def __ne__(self, other):
12051
    return not (self == other)
12052
 
12053
class getBestDeals_result:
12054
  """
12055
  Attributes:
12056
   - success
12057
   - isex
12058
  """
12059
 
12060
  thrift_spec = (
12061
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12062
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12063
  )
12064
 
12065
  def __init__(self, success=None, isex=None,):
12066
    self.success = success
12067
    self.isex = isex
12068
 
12069
  def read(self, iprot):
12070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12072
      return
12073
    iprot.readStructBegin()
12074
    while True:
12075
      (fname, ftype, fid) = iprot.readFieldBegin()
12076
      if ftype == TType.STOP:
12077
        break
12078
      if fid == 0:
12079
        if ftype == TType.LIST:
12080
          self.success = []
12567 amit.gupta 12081
          (_etype114, _size111) = iprot.readListBegin()
12082
          for _i115 in xrange(_size111):
12083
            _elem116 = Item()
12084
            _elem116.read(iprot)
12085
            self.success.append(_elem116)
5944 mandeep.dh 12086
          iprot.readListEnd()
12087
        else:
12088
          iprot.skip(ftype)
12089
      elif fid == 1:
12090
        if ftype == TType.STRUCT:
12091
          self.isex = CatalogServiceException()
12092
          self.isex.read(iprot)
12093
        else:
12094
          iprot.skip(ftype)
12095
      else:
12096
        iprot.skip(ftype)
12097
      iprot.readFieldEnd()
12098
    iprot.readStructEnd()
12099
 
12100
  def write(self, oprot):
12101
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12102
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12103
      return
12104
    oprot.writeStructBegin('getBestDeals_result')
12105
    if self.success is not None:
12106
      oprot.writeFieldBegin('success', TType.LIST, 0)
12107
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12108
      for iter117 in self.success:
12109
        iter117.write(oprot)
5944 mandeep.dh 12110
      oprot.writeListEnd()
12111
      oprot.writeFieldEnd()
12112
    if self.isex is not None:
12113
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12114
      self.isex.write(oprot)
12115
      oprot.writeFieldEnd()
12116
    oprot.writeFieldStop()
12117
    oprot.writeStructEnd()
12118
 
12119
  def validate(self):
12120
    return
12121
 
12122
 
12123
  def __repr__(self):
12124
    L = ['%s=%r' % (key, value)
12125
      for key, value in self.__dict__.iteritems()]
12126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12127
 
12128
  def __eq__(self, other):
12129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12130
 
12131
  def __ne__(self, other):
12132
    return not (self == other)
12133
 
12134
class getBestDealsCatalogIds_args:
12135
  """
12136
  Attributes:
12137
   - beginIndex
12138
   - totalItems
12139
   - brand
12140
   - category
12141
  """
12142
 
12143
  thrift_spec = (
12144
    None, # 0
12145
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12146
    (2, TType.I64, 'totalItems', None, None, ), # 2
12147
    (3, TType.STRING, 'brand', None, None, ), # 3
12148
    (4, TType.I64, 'category', None, None, ), # 4
12149
  )
12150
 
12151
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12152
    self.beginIndex = beginIndex
12153
    self.totalItems = totalItems
12154
    self.brand = brand
12155
    self.category = category
12156
 
12157
  def read(self, iprot):
12158
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12159
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12160
      return
12161
    iprot.readStructBegin()
12162
    while True:
12163
      (fname, ftype, fid) = iprot.readFieldBegin()
12164
      if ftype == TType.STOP:
12165
        break
12166
      if fid == 1:
12167
        if ftype == TType.I64:
12168
          self.beginIndex = iprot.readI64();
12169
        else:
12170
          iprot.skip(ftype)
12171
      elif fid == 2:
12172
        if ftype == TType.I64:
12173
          self.totalItems = iprot.readI64();
12174
        else:
12175
          iprot.skip(ftype)
12176
      elif fid == 3:
12177
        if ftype == TType.STRING:
12178
          self.brand = iprot.readString();
12179
        else:
12180
          iprot.skip(ftype)
12181
      elif fid == 4:
12182
        if ftype == TType.I64:
12183
          self.category = iprot.readI64();
12184
        else:
12185
          iprot.skip(ftype)
12186
      else:
12187
        iprot.skip(ftype)
12188
      iprot.readFieldEnd()
12189
    iprot.readStructEnd()
12190
 
12191
  def write(self, oprot):
12192
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12193
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12194
      return
12195
    oprot.writeStructBegin('getBestDealsCatalogIds_args')
12196
    if self.beginIndex is not None:
12197
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12198
      oprot.writeI64(self.beginIndex)
12199
      oprot.writeFieldEnd()
12200
    if self.totalItems is not None:
12201
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12202
      oprot.writeI64(self.totalItems)
12203
      oprot.writeFieldEnd()
12204
    if self.brand is not None:
12205
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12206
      oprot.writeString(self.brand)
12207
      oprot.writeFieldEnd()
12208
    if self.category is not None:
12209
      oprot.writeFieldBegin('category', TType.I64, 4)
12210
      oprot.writeI64(self.category)
12211
      oprot.writeFieldEnd()
12212
    oprot.writeFieldStop()
12213
    oprot.writeStructEnd()
12214
 
12215
  def validate(self):
12216
    return
12217
 
12218
 
12219
  def __repr__(self):
12220
    L = ['%s=%r' % (key, value)
12221
      for key, value in self.__dict__.iteritems()]
12222
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12223
 
12224
  def __eq__(self, other):
12225
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12226
 
12227
  def __ne__(self, other):
12228
    return not (self == other)
12229
 
12230
class getBestDealsCatalogIds_result:
12231
  """
12232
  Attributes:
12233
   - success
12234
   - cex
12235
  """
12236
 
12237
  thrift_spec = (
12238
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12239
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12240
  )
12241
 
12242
  def __init__(self, success=None, cex=None,):
12243
    self.success = success
12244
    self.cex = cex
12245
 
12246
  def read(self, iprot):
12247
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12248
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12249
      return
12250
    iprot.readStructBegin()
12251
    while True:
12252
      (fname, ftype, fid) = iprot.readFieldBegin()
12253
      if ftype == TType.STOP:
12254
        break
12255
      if fid == 0:
12256
        if ftype == TType.LIST:
12257
          self.success = []
12567 amit.gupta 12258
          (_etype121, _size118) = iprot.readListBegin()
12259
          for _i122 in xrange(_size118):
12260
            _elem123 = iprot.readI64();
12261
            self.success.append(_elem123)
5944 mandeep.dh 12262
          iprot.readListEnd()
12263
        else:
12264
          iprot.skip(ftype)
12265
      elif fid == 1:
12266
        if ftype == TType.STRUCT:
12267
          self.cex = CatalogServiceException()
12268
          self.cex.read(iprot)
12269
        else:
12270
          iprot.skip(ftype)
12271
      else:
12272
        iprot.skip(ftype)
12273
      iprot.readFieldEnd()
12274
    iprot.readStructEnd()
12275
 
12276
  def write(self, oprot):
12277
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12278
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12279
      return
12280
    oprot.writeStructBegin('getBestDealsCatalogIds_result')
12281
    if self.success is not None:
12282
      oprot.writeFieldBegin('success', TType.LIST, 0)
12283
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12284
      for iter124 in self.success:
12285
        oprot.writeI64(iter124)
5944 mandeep.dh 12286
      oprot.writeListEnd()
12287
      oprot.writeFieldEnd()
12288
    if self.cex is not None:
12289
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12290
      self.cex.write(oprot)
12291
      oprot.writeFieldEnd()
12292
    oprot.writeFieldStop()
12293
    oprot.writeStructEnd()
12294
 
12295
  def validate(self):
12296
    return
12297
 
12298
 
12299
  def __repr__(self):
12300
    L = ['%s=%r' % (key, value)
12301
      for key, value in self.__dict__.iteritems()]
12302
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12303
 
12304
  def __eq__(self, other):
12305
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12306
 
12307
  def __ne__(self, other):
12308
    return not (self == other)
12309
 
12310
class getBestDealsCount_args:
12311
 
12312
  thrift_spec = (
12313
  )
12314
 
12315
  def read(self, iprot):
12316
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12317
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12318
      return
12319
    iprot.readStructBegin()
12320
    while True:
12321
      (fname, ftype, fid) = iprot.readFieldBegin()
12322
      if ftype == TType.STOP:
12323
        break
12324
      else:
12325
        iprot.skip(ftype)
12326
      iprot.readFieldEnd()
12327
    iprot.readStructEnd()
12328
 
12329
  def write(self, oprot):
12330
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12331
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12332
      return
12333
    oprot.writeStructBegin('getBestDealsCount_args')
12334
    oprot.writeFieldStop()
12335
    oprot.writeStructEnd()
12336
 
12337
  def validate(self):
12338
    return
12339
 
12340
 
12341
  def __repr__(self):
12342
    L = ['%s=%r' % (key, value)
12343
      for key, value in self.__dict__.iteritems()]
12344
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12345
 
12346
  def __eq__(self, other):
12347
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12348
 
12349
  def __ne__(self, other):
12350
    return not (self == other)
12351
 
12352
class getBestDealsCount_result:
12353
  """
12354
  Attributes:
12355
   - success
12356
   - cex
12357
  """
12358
 
12359
  thrift_spec = (
12360
    (0, TType.I64, 'success', None, None, ), # 0
12361
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12362
  )
12363
 
12364
  def __init__(self, success=None, cex=None,):
12365
    self.success = success
12366
    self.cex = cex
12367
 
12368
  def read(self, iprot):
12369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12371
      return
12372
    iprot.readStructBegin()
12373
    while True:
12374
      (fname, ftype, fid) = iprot.readFieldBegin()
12375
      if ftype == TType.STOP:
12376
        break
12377
      if fid == 0:
12378
        if ftype == TType.I64:
12379
          self.success = iprot.readI64();
12380
        else:
12381
          iprot.skip(ftype)
12382
      elif fid == 1:
12383
        if ftype == TType.STRUCT:
12384
          self.cex = CatalogServiceException()
12385
          self.cex.read(iprot)
12386
        else:
12387
          iprot.skip(ftype)
12388
      else:
12389
        iprot.skip(ftype)
12390
      iprot.readFieldEnd()
12391
    iprot.readStructEnd()
12392
 
12393
  def write(self, oprot):
12394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12396
      return
12397
    oprot.writeStructBegin('getBestDealsCount_result')
12398
    if self.success is not None:
12399
      oprot.writeFieldBegin('success', TType.I64, 0)
12400
      oprot.writeI64(self.success)
12401
      oprot.writeFieldEnd()
12402
    if self.cex is not None:
12403
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12404
      self.cex.write(oprot)
12405
      oprot.writeFieldEnd()
12406
    oprot.writeFieldStop()
12407
    oprot.writeStructEnd()
12408
 
12409
  def validate(self):
12410
    return
12411
 
12412
 
12413
  def __repr__(self):
12414
    L = ['%s=%r' % (key, value)
12415
      for key, value in self.__dict__.iteritems()]
12416
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12417
 
12418
  def __eq__(self, other):
12419
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12420
 
12421
  def __ne__(self, other):
12422
    return not (self == other)
12423
 
12424
class getComingSoon_args:
12425
 
12426
  thrift_spec = (
12427
  )
12428
 
12429
  def read(self, iprot):
12430
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12431
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12432
      return
12433
    iprot.readStructBegin()
12434
    while True:
12435
      (fname, ftype, fid) = iprot.readFieldBegin()
12436
      if ftype == TType.STOP:
12437
        break
12438
      else:
12439
        iprot.skip(ftype)
12440
      iprot.readFieldEnd()
12441
    iprot.readStructEnd()
12442
 
12443
  def write(self, oprot):
12444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12446
      return
12447
    oprot.writeStructBegin('getComingSoon_args')
12448
    oprot.writeFieldStop()
12449
    oprot.writeStructEnd()
12450
 
12451
  def validate(self):
12452
    return
12453
 
12454
 
12455
  def __repr__(self):
12456
    L = ['%s=%r' % (key, value)
12457
      for key, value in self.__dict__.iteritems()]
12458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12459
 
12460
  def __eq__(self, other):
12461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12462
 
12463
  def __ne__(self, other):
12464
    return not (self == other)
12465
 
12466
class getComingSoon_result:
12467
  """
12468
  Attributes:
12469
   - success
12470
   - isex
12471
  """
12472
 
12473
  thrift_spec = (
12474
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12475
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12476
  )
12477
 
12478
  def __init__(self, success=None, isex=None,):
12479
    self.success = success
12480
    self.isex = isex
12481
 
12482
  def read(self, iprot):
12483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12485
      return
12486
    iprot.readStructBegin()
12487
    while True:
12488
      (fname, ftype, fid) = iprot.readFieldBegin()
12489
      if ftype == TType.STOP:
12490
        break
12491
      if fid == 0:
12492
        if ftype == TType.LIST:
12493
          self.success = []
12567 amit.gupta 12494
          (_etype128, _size125) = iprot.readListBegin()
12495
          for _i129 in xrange(_size125):
12496
            _elem130 = Item()
12497
            _elem130.read(iprot)
12498
            self.success.append(_elem130)
5944 mandeep.dh 12499
          iprot.readListEnd()
12500
        else:
12501
          iprot.skip(ftype)
12502
      elif fid == 1:
12503
        if ftype == TType.STRUCT:
12504
          self.isex = CatalogServiceException()
12505
          self.isex.read(iprot)
12506
        else:
12507
          iprot.skip(ftype)
12508
      else:
12509
        iprot.skip(ftype)
12510
      iprot.readFieldEnd()
12511
    iprot.readStructEnd()
12512
 
12513
  def write(self, oprot):
12514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12516
      return
12517
    oprot.writeStructBegin('getComingSoon_result')
12518
    if self.success is not None:
12519
      oprot.writeFieldBegin('success', TType.LIST, 0)
12520
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12521
      for iter131 in self.success:
12522
        iter131.write(oprot)
5944 mandeep.dh 12523
      oprot.writeListEnd()
12524
      oprot.writeFieldEnd()
12525
    if self.isex is not None:
12526
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12527
      self.isex.write(oprot)
12528
      oprot.writeFieldEnd()
12529
    oprot.writeFieldStop()
12530
    oprot.writeStructEnd()
12531
 
12532
  def validate(self):
12533
    return
12534
 
12535
 
12536
  def __repr__(self):
12537
    L = ['%s=%r' % (key, value)
12538
      for key, value in self.__dict__.iteritems()]
12539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12540
 
12541
  def __eq__(self, other):
12542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12543
 
12544
  def __ne__(self, other):
12545
    return not (self == other)
12546
 
12547
class getComingSoonCatalogIds_args:
12548
  """
12549
  Attributes:
12550
   - beginIndex
12551
   - totalItems
12552
   - brand
12553
   - category
12554
  """
12555
 
12556
  thrift_spec = (
12557
    None, # 0
12558
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12559
    (2, TType.I64, 'totalItems', None, None, ), # 2
12560
    (3, TType.STRING, 'brand', None, None, ), # 3
12561
    (4, TType.I64, 'category', None, None, ), # 4
12562
  )
12563
 
12564
  def __init__(self, beginIndex=None, totalItems=None, brand=None, category=None,):
12565
    self.beginIndex = beginIndex
12566
    self.totalItems = totalItems
12567
    self.brand = brand
12568
    self.category = category
12569
 
12570
  def read(self, iprot):
12571
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12572
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12573
      return
12574
    iprot.readStructBegin()
12575
    while True:
12576
      (fname, ftype, fid) = iprot.readFieldBegin()
12577
      if ftype == TType.STOP:
12578
        break
12579
      if fid == 1:
12580
        if ftype == TType.I64:
12581
          self.beginIndex = iprot.readI64();
12582
        else:
12583
          iprot.skip(ftype)
12584
      elif fid == 2:
12585
        if ftype == TType.I64:
12586
          self.totalItems = iprot.readI64();
12587
        else:
12588
          iprot.skip(ftype)
12589
      elif fid == 3:
12590
        if ftype == TType.STRING:
12591
          self.brand = iprot.readString();
12592
        else:
12593
          iprot.skip(ftype)
12594
      elif fid == 4:
12595
        if ftype == TType.I64:
12596
          self.category = iprot.readI64();
12597
        else:
12598
          iprot.skip(ftype)
12599
      else:
12600
        iprot.skip(ftype)
12601
      iprot.readFieldEnd()
12602
    iprot.readStructEnd()
12603
 
12604
  def write(self, oprot):
12605
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12606
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12607
      return
12608
    oprot.writeStructBegin('getComingSoonCatalogIds_args')
12609
    if self.beginIndex is not None:
12610
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
12611
      oprot.writeI64(self.beginIndex)
12612
      oprot.writeFieldEnd()
12613
    if self.totalItems is not None:
12614
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
12615
      oprot.writeI64(self.totalItems)
12616
      oprot.writeFieldEnd()
12617
    if self.brand is not None:
12618
      oprot.writeFieldBegin('brand', TType.STRING, 3)
12619
      oprot.writeString(self.brand)
12620
      oprot.writeFieldEnd()
12621
    if self.category is not None:
12622
      oprot.writeFieldBegin('category', TType.I64, 4)
12623
      oprot.writeI64(self.category)
12624
      oprot.writeFieldEnd()
12625
    oprot.writeFieldStop()
12626
    oprot.writeStructEnd()
12627
 
12628
  def validate(self):
12629
    return
12630
 
12631
 
12632
  def __repr__(self):
12633
    L = ['%s=%r' % (key, value)
12634
      for key, value in self.__dict__.iteritems()]
12635
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12636
 
12637
  def __eq__(self, other):
12638
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12639
 
12640
  def __ne__(self, other):
12641
    return not (self == other)
12642
 
12643
class getComingSoonCatalogIds_result:
12644
  """
12645
  Attributes:
12646
   - success
12647
   - cex
12648
  """
12649
 
12650
  thrift_spec = (
12651
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
12652
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12653
  )
12654
 
12655
  def __init__(self, success=None, cex=None,):
12656
    self.success = success
12657
    self.cex = cex
12658
 
12659
  def read(self, iprot):
12660
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12661
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12662
      return
12663
    iprot.readStructBegin()
12664
    while True:
12665
      (fname, ftype, fid) = iprot.readFieldBegin()
12666
      if ftype == TType.STOP:
12667
        break
12668
      if fid == 0:
12669
        if ftype == TType.LIST:
12670
          self.success = []
12567 amit.gupta 12671
          (_etype135, _size132) = iprot.readListBegin()
12672
          for _i136 in xrange(_size132):
12673
            _elem137 = iprot.readI64();
12674
            self.success.append(_elem137)
5944 mandeep.dh 12675
          iprot.readListEnd()
12676
        else:
12677
          iprot.skip(ftype)
12678
      elif fid == 1:
12679
        if ftype == TType.STRUCT:
12680
          self.cex = CatalogServiceException()
12681
          self.cex.read(iprot)
12682
        else:
12683
          iprot.skip(ftype)
12684
      else:
12685
        iprot.skip(ftype)
12686
      iprot.readFieldEnd()
12687
    iprot.readStructEnd()
12688
 
12689
  def write(self, oprot):
12690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12692
      return
12693
    oprot.writeStructBegin('getComingSoonCatalogIds_result')
12694
    if self.success is not None:
12695
      oprot.writeFieldBegin('success', TType.LIST, 0)
12696
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 12697
      for iter138 in self.success:
12698
        oprot.writeI64(iter138)
5944 mandeep.dh 12699
      oprot.writeListEnd()
12700
      oprot.writeFieldEnd()
12701
    if self.cex is not None:
12702
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12703
      self.cex.write(oprot)
12704
      oprot.writeFieldEnd()
12705
    oprot.writeFieldStop()
12706
    oprot.writeStructEnd()
12707
 
12708
  def validate(self):
12709
    return
12710
 
12711
 
12712
  def __repr__(self):
12713
    L = ['%s=%r' % (key, value)
12714
      for key, value in self.__dict__.iteritems()]
12715
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12716
 
12717
  def __eq__(self, other):
12718
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12719
 
12720
  def __ne__(self, other):
12721
    return not (self == other)
12722
 
12723
class getComingSoonCount_args:
12724
 
12725
  thrift_spec = (
12726
  )
12727
 
12728
  def read(self, iprot):
12729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12731
      return
12732
    iprot.readStructBegin()
12733
    while True:
12734
      (fname, ftype, fid) = iprot.readFieldBegin()
12735
      if ftype == TType.STOP:
12736
        break
12737
      else:
12738
        iprot.skip(ftype)
12739
      iprot.readFieldEnd()
12740
    iprot.readStructEnd()
12741
 
12742
  def write(self, oprot):
12743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12745
      return
12746
    oprot.writeStructBegin('getComingSoonCount_args')
12747
    oprot.writeFieldStop()
12748
    oprot.writeStructEnd()
12749
 
12750
  def validate(self):
12751
    return
12752
 
12753
 
12754
  def __repr__(self):
12755
    L = ['%s=%r' % (key, value)
12756
      for key, value in self.__dict__.iteritems()]
12757
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12758
 
12759
  def __eq__(self, other):
12760
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12761
 
12762
  def __ne__(self, other):
12763
    return not (self == other)
12764
 
12765
class getComingSoonCount_result:
12766
  """
12767
  Attributes:
12768
   - success
12769
   - cex
12770
  """
12771
 
12772
  thrift_spec = (
12773
    (0, TType.I64, 'success', None, None, ), # 0
12774
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12775
  )
12776
 
12777
  def __init__(self, success=None, cex=None,):
12778
    self.success = success
12779
    self.cex = cex
12780
 
12781
  def read(self, iprot):
12782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12784
      return
12785
    iprot.readStructBegin()
12786
    while True:
12787
      (fname, ftype, fid) = iprot.readFieldBegin()
12788
      if ftype == TType.STOP:
12789
        break
12790
      if fid == 0:
12791
        if ftype == TType.I64:
12792
          self.success = iprot.readI64();
12793
        else:
12794
          iprot.skip(ftype)
12795
      elif fid == 1:
12796
        if ftype == TType.STRUCT:
12797
          self.cex = CatalogServiceException()
12798
          self.cex.read(iprot)
12799
        else:
12800
          iprot.skip(ftype)
12801
      else:
12802
        iprot.skip(ftype)
12803
      iprot.readFieldEnd()
12804
    iprot.readStructEnd()
12805
 
12806
  def write(self, oprot):
12807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12809
      return
12810
    oprot.writeStructBegin('getComingSoonCount_result')
12811
    if self.success is not None:
12812
      oprot.writeFieldBegin('success', TType.I64, 0)
12813
      oprot.writeI64(self.success)
12814
      oprot.writeFieldEnd()
12815
    if self.cex is not None:
12816
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
12817
      self.cex.write(oprot)
12818
      oprot.writeFieldEnd()
12819
    oprot.writeFieldStop()
12820
    oprot.writeStructEnd()
12821
 
12822
  def validate(self):
12823
    return
12824
 
12825
 
12826
  def __repr__(self):
12827
    L = ['%s=%r' % (key, value)
12828
      for key, value in self.__dict__.iteritems()]
12829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12830
 
12831
  def __eq__(self, other):
12832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12833
 
12834
  def __ne__(self, other):
12835
    return not (self == other)
12836
 
12837
class getLatestArrivals_args:
12838
 
12839
  thrift_spec = (
12840
  )
12841
 
12842
  def read(self, iprot):
12843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12845
      return
12846
    iprot.readStructBegin()
12847
    while True:
12848
      (fname, ftype, fid) = iprot.readFieldBegin()
12849
      if ftype == TType.STOP:
12850
        break
12851
      else:
12852
        iprot.skip(ftype)
12853
      iprot.readFieldEnd()
12854
    iprot.readStructEnd()
12855
 
12856
  def write(self, oprot):
12857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12859
      return
12860
    oprot.writeStructBegin('getLatestArrivals_args')
12861
    oprot.writeFieldStop()
12862
    oprot.writeStructEnd()
12863
 
12864
  def validate(self):
12865
    return
12866
 
12867
 
12868
  def __repr__(self):
12869
    L = ['%s=%r' % (key, value)
12870
      for key, value in self.__dict__.iteritems()]
12871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12872
 
12873
  def __eq__(self, other):
12874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12875
 
12876
  def __ne__(self, other):
12877
    return not (self == other)
12878
 
12879
class getLatestArrivals_result:
12880
  """
12881
  Attributes:
12882
   - success
12883
   - isex
12884
  """
12885
 
12886
  thrift_spec = (
12887
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
12888
    (1, TType.STRUCT, 'isex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
12889
  )
12890
 
12891
  def __init__(self, success=None, isex=None,):
12892
    self.success = success
12893
    self.isex = isex
12894
 
12895
  def read(self, iprot):
12896
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12897
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12898
      return
12899
    iprot.readStructBegin()
12900
    while True:
12901
      (fname, ftype, fid) = iprot.readFieldBegin()
12902
      if ftype == TType.STOP:
12903
        break
12904
      if fid == 0:
12905
        if ftype == TType.LIST:
12906
          self.success = []
12567 amit.gupta 12907
          (_etype142, _size139) = iprot.readListBegin()
12908
          for _i143 in xrange(_size139):
12909
            _elem144 = Item()
12910
            _elem144.read(iprot)
12911
            self.success.append(_elem144)
5944 mandeep.dh 12912
          iprot.readListEnd()
12913
        else:
12914
          iprot.skip(ftype)
12915
      elif fid == 1:
12916
        if ftype == TType.STRUCT:
12917
          self.isex = CatalogServiceException()
12918
          self.isex.read(iprot)
12919
        else:
12920
          iprot.skip(ftype)
12921
      else:
12922
        iprot.skip(ftype)
12923
      iprot.readFieldEnd()
12924
    iprot.readStructEnd()
12925
 
12926
  def write(self, oprot):
12927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12929
      return
12930
    oprot.writeStructBegin('getLatestArrivals_result')
12931
    if self.success is not None:
12932
      oprot.writeFieldBegin('success', TType.LIST, 0)
12933
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 12934
      for iter145 in self.success:
12935
        iter145.write(oprot)
5944 mandeep.dh 12936
      oprot.writeListEnd()
12937
      oprot.writeFieldEnd()
12938
    if self.isex is not None:
12939
      oprot.writeFieldBegin('isex', TType.STRUCT, 1)
12940
      self.isex.write(oprot)
12941
      oprot.writeFieldEnd()
12942
    oprot.writeFieldStop()
12943
    oprot.writeStructEnd()
12944
 
12945
  def validate(self):
12946
    return
12947
 
12948
 
12949
  def __repr__(self):
12950
    L = ['%s=%r' % (key, value)
12951
      for key, value in self.__dict__.iteritems()]
12952
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12953
 
12954
  def __eq__(self, other):
12955
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12956
 
12957
  def __ne__(self, other):
12958
    return not (self == other)
12959
 
12960
class getLatestArrivalsCatalogIds_args:
12961
  """
12962
  Attributes:
12963
   - beginIndex
12964
   - totalItems
12965
   - brand
12966
   - categories
12967
  """
12968
 
12969
  thrift_spec = (
12970
    None, # 0
12971
    (1, TType.I64, 'beginIndex', None, None, ), # 1
12972
    (2, TType.I64, 'totalItems', None, None, ), # 2
12973
    (3, TType.STRING, 'brand', None, None, ), # 3
12974
    (4, TType.LIST, 'categories', (TType.I64,None), None, ), # 4
12975
  )
12976
 
12977
  def __init__(self, beginIndex=None, totalItems=None, brand=None, categories=None,):
12978
    self.beginIndex = beginIndex
12979
    self.totalItems = totalItems
12980
    self.brand = brand
12981
    self.categories = categories
12982
 
12983
  def read(self, iprot):
12984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12986
      return
12987
    iprot.readStructBegin()
12988
    while True:
12989
      (fname, ftype, fid) = iprot.readFieldBegin()
12990
      if ftype == TType.STOP:
12991
        break
12992
      if fid == 1:
12993
        if ftype == TType.I64:
12994
          self.beginIndex = iprot.readI64();
12995
        else:
12996
          iprot.skip(ftype)
12997
      elif fid == 2:
12998
        if ftype == TType.I64:
12999
          self.totalItems = iprot.readI64();
13000
        else:
13001
          iprot.skip(ftype)
13002
      elif fid == 3:
13003
        if ftype == TType.STRING:
13004
          self.brand = iprot.readString();
13005
        else:
13006
          iprot.skip(ftype)
13007
      elif fid == 4:
13008
        if ftype == TType.LIST:
13009
          self.categories = []
12567 amit.gupta 13010
          (_etype149, _size146) = iprot.readListBegin()
13011
          for _i150 in xrange(_size146):
13012
            _elem151 = iprot.readI64();
13013
            self.categories.append(_elem151)
5944 mandeep.dh 13014
          iprot.readListEnd()
13015
        else:
13016
          iprot.skip(ftype)
13017
      else:
13018
        iprot.skip(ftype)
13019
      iprot.readFieldEnd()
13020
    iprot.readStructEnd()
13021
 
13022
  def write(self, oprot):
13023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13025
      return
13026
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_args')
13027
    if self.beginIndex is not None:
13028
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
13029
      oprot.writeI64(self.beginIndex)
13030
      oprot.writeFieldEnd()
13031
    if self.totalItems is not None:
13032
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
13033
      oprot.writeI64(self.totalItems)
13034
      oprot.writeFieldEnd()
13035
    if self.brand is not None:
13036
      oprot.writeFieldBegin('brand', TType.STRING, 3)
13037
      oprot.writeString(self.brand)
13038
      oprot.writeFieldEnd()
13039
    if self.categories is not None:
13040
      oprot.writeFieldBegin('categories', TType.LIST, 4)
13041
      oprot.writeListBegin(TType.I64, len(self.categories))
12567 amit.gupta 13042
      for iter152 in self.categories:
13043
        oprot.writeI64(iter152)
5944 mandeep.dh 13044
      oprot.writeListEnd()
13045
      oprot.writeFieldEnd()
13046
    oprot.writeFieldStop()
13047
    oprot.writeStructEnd()
13048
 
13049
  def validate(self):
13050
    return
13051
 
13052
 
13053
  def __repr__(self):
13054
    L = ['%s=%r' % (key, value)
13055
      for key, value in self.__dict__.iteritems()]
13056
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13057
 
13058
  def __eq__(self, other):
13059
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13060
 
13061
  def __ne__(self, other):
13062
    return not (self == other)
13063
 
13064
class getLatestArrivalsCatalogIds_result:
13065
  """
13066
  Attributes:
13067
   - success
13068
   - cex
13069
  """
13070
 
13071
  thrift_spec = (
13072
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
13073
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13074
  )
13075
 
13076
  def __init__(self, success=None, cex=None,):
13077
    self.success = success
13078
    self.cex = cex
13079
 
13080
  def read(self, iprot):
13081
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13082
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13083
      return
13084
    iprot.readStructBegin()
13085
    while True:
13086
      (fname, ftype, fid) = iprot.readFieldBegin()
13087
      if ftype == TType.STOP:
13088
        break
13089
      if fid == 0:
13090
        if ftype == TType.LIST:
13091
          self.success = []
12567 amit.gupta 13092
          (_etype156, _size153) = iprot.readListBegin()
13093
          for _i157 in xrange(_size153):
13094
            _elem158 = iprot.readI64();
13095
            self.success.append(_elem158)
5944 mandeep.dh 13096
          iprot.readListEnd()
13097
        else:
13098
          iprot.skip(ftype)
13099
      elif fid == 1:
13100
        if ftype == TType.STRUCT:
13101
          self.cex = CatalogServiceException()
13102
          self.cex.read(iprot)
13103
        else:
13104
          iprot.skip(ftype)
13105
      else:
13106
        iprot.skip(ftype)
13107
      iprot.readFieldEnd()
13108
    iprot.readStructEnd()
13109
 
13110
  def write(self, oprot):
13111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13113
      return
13114
    oprot.writeStructBegin('getLatestArrivalsCatalogIds_result')
13115
    if self.success is not None:
13116
      oprot.writeFieldBegin('success', TType.LIST, 0)
13117
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 13118
      for iter159 in self.success:
13119
        oprot.writeI64(iter159)
5944 mandeep.dh 13120
      oprot.writeListEnd()
13121
      oprot.writeFieldEnd()
13122
    if self.cex is not None:
13123
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13124
      self.cex.write(oprot)
13125
      oprot.writeFieldEnd()
13126
    oprot.writeFieldStop()
13127
    oprot.writeStructEnd()
13128
 
13129
  def validate(self):
13130
    return
13131
 
13132
 
13133
  def __repr__(self):
13134
    L = ['%s=%r' % (key, value)
13135
      for key, value in self.__dict__.iteritems()]
13136
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13137
 
13138
  def __eq__(self, other):
13139
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13140
 
13141
  def __ne__(self, other):
13142
    return not (self == other)
13143
 
13144
class getLatestArrivalsCount_args:
13145
 
13146
  thrift_spec = (
13147
  )
13148
 
13149
  def read(self, iprot):
13150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13152
      return
13153
    iprot.readStructBegin()
13154
    while True:
13155
      (fname, ftype, fid) = iprot.readFieldBegin()
13156
      if ftype == TType.STOP:
13157
        break
13158
      else:
13159
        iprot.skip(ftype)
13160
      iprot.readFieldEnd()
13161
    iprot.readStructEnd()
13162
 
13163
  def write(self, oprot):
13164
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13165
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13166
      return
13167
    oprot.writeStructBegin('getLatestArrivalsCount_args')
13168
    oprot.writeFieldStop()
13169
    oprot.writeStructEnd()
13170
 
13171
  def validate(self):
13172
    return
13173
 
13174
 
13175
  def __repr__(self):
13176
    L = ['%s=%r' % (key, value)
13177
      for key, value in self.__dict__.iteritems()]
13178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13179
 
13180
  def __eq__(self, other):
13181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13182
 
13183
  def __ne__(self, other):
13184
    return not (self == other)
13185
 
13186
class getLatestArrivalsCount_result:
13187
  """
13188
  Attributes:
13189
   - success
13190
   - cex
13191
  """
13192
 
13193
  thrift_spec = (
13194
    (0, TType.I64, 'success', None, None, ), # 0
13195
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13196
  )
13197
 
13198
  def __init__(self, success=None, cex=None,):
13199
    self.success = success
13200
    self.cex = cex
13201
 
13202
  def read(self, iprot):
13203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13205
      return
13206
    iprot.readStructBegin()
13207
    while True:
13208
      (fname, ftype, fid) = iprot.readFieldBegin()
13209
      if ftype == TType.STOP:
13210
        break
13211
      if fid == 0:
13212
        if ftype == TType.I64:
13213
          self.success = iprot.readI64();
13214
        else:
13215
          iprot.skip(ftype)
13216
      elif fid == 1:
13217
        if ftype == TType.STRUCT:
13218
          self.cex = CatalogServiceException()
13219
          self.cex.read(iprot)
13220
        else:
13221
          iprot.skip(ftype)
13222
      else:
13223
        iprot.skip(ftype)
13224
      iprot.readFieldEnd()
13225
    iprot.readStructEnd()
13226
 
13227
  def write(self, oprot):
13228
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13229
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13230
      return
13231
    oprot.writeStructBegin('getLatestArrivalsCount_result')
13232
    if self.success is not None:
13233
      oprot.writeFieldBegin('success', TType.I64, 0)
13234
      oprot.writeI64(self.success)
13235
      oprot.writeFieldEnd()
13236
    if self.cex is not None:
13237
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13238
      self.cex.write(oprot)
13239
      oprot.writeFieldEnd()
13240
    oprot.writeFieldStop()
13241
    oprot.writeStructEnd()
13242
 
13243
  def validate(self):
13244
    return
13245
 
13246
 
13247
  def __repr__(self):
13248
    L = ['%s=%r' % (key, value)
13249
      for key, value in self.__dict__.iteritems()]
13250
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13251
 
13252
  def __eq__(self, other):
13253
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13254
 
13255
  def __ne__(self, other):
13256
    return not (self == other)
13257
 
13258
class generateNewEntityID_args:
13259
 
13260
  thrift_spec = (
13261
  )
13262
 
13263
  def read(self, iprot):
13264
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13265
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13266
      return
13267
    iprot.readStructBegin()
13268
    while True:
13269
      (fname, ftype, fid) = iprot.readFieldBegin()
13270
      if ftype == TType.STOP:
13271
        break
13272
      else:
13273
        iprot.skip(ftype)
13274
      iprot.readFieldEnd()
13275
    iprot.readStructEnd()
13276
 
13277
  def write(self, oprot):
13278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13280
      return
13281
    oprot.writeStructBegin('generateNewEntityID_args')
13282
    oprot.writeFieldStop()
13283
    oprot.writeStructEnd()
13284
 
13285
  def validate(self):
13286
    return
13287
 
13288
 
13289
  def __repr__(self):
13290
    L = ['%s=%r' % (key, value)
13291
      for key, value in self.__dict__.iteritems()]
13292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13293
 
13294
  def __eq__(self, other):
13295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13296
 
13297
  def __ne__(self, other):
13298
    return not (self == other)
13299
 
13300
class generateNewEntityID_result:
13301
  """
13302
  Attributes:
13303
   - success
13304
  """
13305
 
13306
  thrift_spec = (
13307
    (0, TType.I64, 'success', None, None, ), # 0
13308
  )
13309
 
13310
  def __init__(self, success=None,):
13311
    self.success = success
13312
 
13313
  def read(self, iprot):
13314
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13315
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13316
      return
13317
    iprot.readStructBegin()
13318
    while True:
13319
      (fname, ftype, fid) = iprot.readFieldBegin()
13320
      if ftype == TType.STOP:
13321
        break
13322
      if fid == 0:
13323
        if ftype == TType.I64:
13324
          self.success = iprot.readI64();
13325
        else:
13326
          iprot.skip(ftype)
13327
      else:
13328
        iprot.skip(ftype)
13329
      iprot.readFieldEnd()
13330
    iprot.readStructEnd()
13331
 
13332
  def write(self, oprot):
13333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13335
      return
13336
    oprot.writeStructBegin('generateNewEntityID_result')
13337
    if self.success is not None:
13338
      oprot.writeFieldBegin('success', TType.I64, 0)
13339
      oprot.writeI64(self.success)
13340
      oprot.writeFieldEnd()
13341
    oprot.writeFieldStop()
13342
    oprot.writeStructEnd()
13343
 
13344
  def validate(self):
13345
    return
13346
 
13347
 
13348
  def __repr__(self):
13349
    L = ['%s=%r' % (key, value)
13350
      for key, value in self.__dict__.iteritems()]
13351
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13352
 
13353
  def __eq__(self, other):
13354
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13355
 
13356
  def __ne__(self, other):
13357
    return not (self == other)
13358
 
13359
class addCategory_args:
13360
  """
13361
  Attributes:
13362
   - category
13363
  """
13364
 
13365
  thrift_spec = (
13366
    None, # 0
13367
    (1, TType.STRUCT, 'category', (Category, Category.thrift_spec), None, ), # 1
13368
  )
13369
 
13370
  def __init__(self, category=None,):
13371
    self.category = category
13372
 
13373
  def read(self, iprot):
13374
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13375
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13376
      return
13377
    iprot.readStructBegin()
13378
    while True:
13379
      (fname, ftype, fid) = iprot.readFieldBegin()
13380
      if ftype == TType.STOP:
13381
        break
13382
      if fid == 1:
13383
        if ftype == TType.STRUCT:
13384
          self.category = Category()
13385
          self.category.read(iprot)
13386
        else:
13387
          iprot.skip(ftype)
13388
      else:
13389
        iprot.skip(ftype)
13390
      iprot.readFieldEnd()
13391
    iprot.readStructEnd()
13392
 
13393
  def write(self, oprot):
13394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13396
      return
13397
    oprot.writeStructBegin('addCategory_args')
13398
    if self.category is not None:
13399
      oprot.writeFieldBegin('category', TType.STRUCT, 1)
13400
      self.category.write(oprot)
13401
      oprot.writeFieldEnd()
13402
    oprot.writeFieldStop()
13403
    oprot.writeStructEnd()
13404
 
13405
  def validate(self):
13406
    return
13407
 
13408
 
13409
  def __repr__(self):
13410
    L = ['%s=%r' % (key, value)
13411
      for key, value in self.__dict__.iteritems()]
13412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13413
 
13414
  def __eq__(self, other):
13415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13416
 
13417
  def __ne__(self, other):
13418
    return not (self == other)
13419
 
13420
class addCategory_result:
13421
  """
13422
  Attributes:
13423
   - success
13424
  """
13425
 
13426
  thrift_spec = (
13427
    (0, TType.BOOL, 'success', None, None, ), # 0
13428
  )
13429
 
13430
  def __init__(self, success=None,):
13431
    self.success = success
13432
 
13433
  def read(self, iprot):
13434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13436
      return
13437
    iprot.readStructBegin()
13438
    while True:
13439
      (fname, ftype, fid) = iprot.readFieldBegin()
13440
      if ftype == TType.STOP:
13441
        break
13442
      if fid == 0:
13443
        if ftype == TType.BOOL:
13444
          self.success = iprot.readBool();
13445
        else:
13446
          iprot.skip(ftype)
13447
      else:
13448
        iprot.skip(ftype)
13449
      iprot.readFieldEnd()
13450
    iprot.readStructEnd()
13451
 
13452
  def write(self, oprot):
13453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13455
      return
13456
    oprot.writeStructBegin('addCategory_result')
13457
    if self.success is not None:
13458
      oprot.writeFieldBegin('success', TType.BOOL, 0)
13459
      oprot.writeBool(self.success)
13460
      oprot.writeFieldEnd()
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 getCategory_args:
13480
  """
13481
  Attributes:
13482
   - id
13483
  """
13484
 
13485
  thrift_spec = (
13486
    None, # 0
13487
    (1, TType.I64, 'id', None, None, ), # 1
13488
  )
13489
 
13490
  def __init__(self, id=None,):
13491
    self.id = id
13492
 
13493
  def read(self, iprot):
13494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13496
      return
13497
    iprot.readStructBegin()
13498
    while True:
13499
      (fname, ftype, fid) = iprot.readFieldBegin()
13500
      if ftype == TType.STOP:
13501
        break
13502
      if fid == 1:
13503
        if ftype == TType.I64:
13504
          self.id = iprot.readI64();
13505
        else:
13506
          iprot.skip(ftype)
13507
      else:
13508
        iprot.skip(ftype)
13509
      iprot.readFieldEnd()
13510
    iprot.readStructEnd()
13511
 
13512
  def write(self, oprot):
13513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13515
      return
13516
    oprot.writeStructBegin('getCategory_args')
13517
    if self.id is not None:
13518
      oprot.writeFieldBegin('id', TType.I64, 1)
13519
      oprot.writeI64(self.id)
13520
      oprot.writeFieldEnd()
13521
    oprot.writeFieldStop()
13522
    oprot.writeStructEnd()
13523
 
13524
  def validate(self):
13525
    return
13526
 
13527
 
13528
  def __repr__(self):
13529
    L = ['%s=%r' % (key, value)
13530
      for key, value in self.__dict__.iteritems()]
13531
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13532
 
13533
  def __eq__(self, other):
13534
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13535
 
13536
  def __ne__(self, other):
13537
    return not (self == other)
13538
 
13539
class getCategory_result:
13540
  """
13541
  Attributes:
13542
   - success
13543
  """
13544
 
13545
  thrift_spec = (
13546
    (0, TType.STRUCT, 'success', (Category, Category.thrift_spec), None, ), # 0
13547
  )
13548
 
13549
  def __init__(self, success=None,):
13550
    self.success = success
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 == 0:
13562
        if ftype == TType.STRUCT:
13563
          self.success = Category()
13564
          self.success.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('getCategory_result')
13577
    if self.success is not None:
13578
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13579
      self.success.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 getAllCategories_args:
13600
 
13601
  thrift_spec = (
13602
  )
13603
 
13604
  def read(self, iprot):
13605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13607
      return
13608
    iprot.readStructBegin()
13609
    while True:
13610
      (fname, ftype, fid) = iprot.readFieldBegin()
13611
      if ftype == TType.STOP:
13612
        break
13613
      else:
13614
        iprot.skip(ftype)
13615
      iprot.readFieldEnd()
13616
    iprot.readStructEnd()
13617
 
13618
  def write(self, oprot):
13619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13621
      return
13622
    oprot.writeStructBegin('getAllCategories_args')
13623
    oprot.writeFieldStop()
13624
    oprot.writeStructEnd()
13625
 
13626
  def validate(self):
13627
    return
13628
 
13629
 
13630
  def __repr__(self):
13631
    L = ['%s=%r' % (key, value)
13632
      for key, value in self.__dict__.iteritems()]
13633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13634
 
13635
  def __eq__(self, other):
13636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13637
 
13638
  def __ne__(self, other):
13639
    return not (self == other)
13640
 
13641
class getAllCategories_result:
13642
  """
13643
  Attributes:
13644
   - success
13645
  """
13646
 
13647
  thrift_spec = (
13648
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
13649
  )
13650
 
13651
  def __init__(self, success=None,):
13652
    self.success = success
13653
 
13654
  def read(self, iprot):
13655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13657
      return
13658
    iprot.readStructBegin()
13659
    while True:
13660
      (fname, ftype, fid) = iprot.readFieldBegin()
13661
      if ftype == TType.STOP:
13662
        break
13663
      if fid == 0:
13664
        if ftype == TType.LIST:
13665
          self.success = []
12567 amit.gupta 13666
          (_etype163, _size160) = iprot.readListBegin()
13667
          for _i164 in xrange(_size160):
13668
            _elem165 = Category()
13669
            _elem165.read(iprot)
13670
            self.success.append(_elem165)
5944 mandeep.dh 13671
          iprot.readListEnd()
13672
        else:
13673
          iprot.skip(ftype)
13674
      else:
13675
        iprot.skip(ftype)
13676
      iprot.readFieldEnd()
13677
    iprot.readStructEnd()
13678
 
13679
  def write(self, oprot):
13680
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13681
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13682
      return
13683
    oprot.writeStructBegin('getAllCategories_result')
13684
    if self.success is not None:
13685
      oprot.writeFieldBegin('success', TType.LIST, 0)
13686
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13687
      for iter166 in self.success:
13688
        iter166.write(oprot)
5944 mandeep.dh 13689
      oprot.writeListEnd()
13690
      oprot.writeFieldEnd()
13691
    oprot.writeFieldStop()
13692
    oprot.writeStructEnd()
13693
 
13694
  def validate(self):
13695
    return
13696
 
13697
 
13698
  def __repr__(self):
13699
    L = ['%s=%r' % (key, value)
13700
      for key, value in self.__dict__.iteritems()]
13701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13702
 
13703
  def __eq__(self, other):
13704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13705
 
13706
  def __ne__(self, other):
13707
    return not (self == other)
13708
 
13709
class getAllSimilarItems_args:
13710
  """
13711
  Attributes:
13712
   - itemId
13713
  """
13714
 
13715
  thrift_spec = (
13716
    None, # 0
13717
    (1, TType.I64, 'itemId', None, None, ), # 1
13718
  )
13719
 
13720
  def __init__(self, itemId=None,):
13721
    self.itemId = itemId
13722
 
13723
  def read(self, iprot):
13724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13726
      return
13727
    iprot.readStructBegin()
13728
    while True:
13729
      (fname, ftype, fid) = iprot.readFieldBegin()
13730
      if ftype == TType.STOP:
13731
        break
13732
      if fid == 1:
13733
        if ftype == TType.I64:
13734
          self.itemId = iprot.readI64();
13735
        else:
13736
          iprot.skip(ftype)
13737
      else:
13738
        iprot.skip(ftype)
13739
      iprot.readFieldEnd()
13740
    iprot.readStructEnd()
13741
 
13742
  def write(self, oprot):
13743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13745
      return
13746
    oprot.writeStructBegin('getAllSimilarItems_args')
13747
    if self.itemId is not None:
13748
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13749
      oprot.writeI64(self.itemId)
13750
      oprot.writeFieldEnd()
13751
    oprot.writeFieldStop()
13752
    oprot.writeStructEnd()
13753
 
13754
  def validate(self):
13755
    return
13756
 
13757
 
13758
  def __repr__(self):
13759
    L = ['%s=%r' % (key, value)
13760
      for key, value in self.__dict__.iteritems()]
13761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13762
 
13763
  def __eq__(self, other):
13764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13765
 
13766
  def __ne__(self, other):
13767
    return not (self == other)
13768
 
13769
class getAllSimilarItems_result:
13770
  """
13771
  Attributes:
13772
   - success
13773
  """
13774
 
13775
  thrift_spec = (
13776
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
13777
  )
13778
 
13779
  def __init__(self, success=None,):
13780
    self.success = success
13781
 
13782
  def read(self, iprot):
13783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13785
      return
13786
    iprot.readStructBegin()
13787
    while True:
13788
      (fname, ftype, fid) = iprot.readFieldBegin()
13789
      if ftype == TType.STOP:
13790
        break
13791
      if fid == 0:
13792
        if ftype == TType.LIST:
13793
          self.success = []
12567 amit.gupta 13794
          (_etype170, _size167) = iprot.readListBegin()
13795
          for _i171 in xrange(_size167):
13796
            _elem172 = Item()
13797
            _elem172.read(iprot)
13798
            self.success.append(_elem172)
5944 mandeep.dh 13799
          iprot.readListEnd()
13800
        else:
13801
          iprot.skip(ftype)
13802
      else:
13803
        iprot.skip(ftype)
13804
      iprot.readFieldEnd()
13805
    iprot.readStructEnd()
13806
 
13807
  def write(self, oprot):
13808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13810
      return
13811
    oprot.writeStructBegin('getAllSimilarItems_result')
13812
    if self.success is not None:
13813
      oprot.writeFieldBegin('success', TType.LIST, 0)
13814
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 13815
      for iter173 in self.success:
13816
        iter173.write(oprot)
5944 mandeep.dh 13817
      oprot.writeListEnd()
13818
      oprot.writeFieldEnd()
13819
    oprot.writeFieldStop()
13820
    oprot.writeStructEnd()
13821
 
13822
  def validate(self):
13823
    return
13824
 
13825
 
13826
  def __repr__(self):
13827
    L = ['%s=%r' % (key, value)
13828
      for key, value in self.__dict__.iteritems()]
13829
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13830
 
13831
  def __eq__(self, other):
13832
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13833
 
13834
  def __ne__(self, other):
13835
    return not (self == other)
13836
 
13837
class addSimilarItem_args:
13838
  """
13839
  Attributes:
13840
   - itemId
13841
   - catalogItemId
13842
  """
13843
 
13844
  thrift_spec = (
13845
    None, # 0
13846
    (1, TType.I64, 'itemId', None, None, ), # 1
13847
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
13848
  )
13849
 
13850
  def __init__(self, itemId=None, catalogItemId=None,):
13851
    self.itemId = itemId
13852
    self.catalogItemId = catalogItemId
13853
 
13854
  def read(self, iprot):
13855
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13856
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13857
      return
13858
    iprot.readStructBegin()
13859
    while True:
13860
      (fname, ftype, fid) = iprot.readFieldBegin()
13861
      if ftype == TType.STOP:
13862
        break
13863
      if fid == 1:
13864
        if ftype == TType.I64:
13865
          self.itemId = iprot.readI64();
13866
        else:
13867
          iprot.skip(ftype)
13868
      elif fid == 2:
13869
        if ftype == TType.I64:
13870
          self.catalogItemId = iprot.readI64();
13871
        else:
13872
          iprot.skip(ftype)
13873
      else:
13874
        iprot.skip(ftype)
13875
      iprot.readFieldEnd()
13876
    iprot.readStructEnd()
13877
 
13878
  def write(self, oprot):
13879
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13880
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13881
      return
13882
    oprot.writeStructBegin('addSimilarItem_args')
13883
    if self.itemId is not None:
13884
      oprot.writeFieldBegin('itemId', TType.I64, 1)
13885
      oprot.writeI64(self.itemId)
13886
      oprot.writeFieldEnd()
13887
    if self.catalogItemId is not None:
13888
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
13889
      oprot.writeI64(self.catalogItemId)
13890
      oprot.writeFieldEnd()
13891
    oprot.writeFieldStop()
13892
    oprot.writeStructEnd()
13893
 
13894
  def validate(self):
13895
    return
13896
 
13897
 
13898
  def __repr__(self):
13899
    L = ['%s=%r' % (key, value)
13900
      for key, value in self.__dict__.iteritems()]
13901
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13902
 
13903
  def __eq__(self, other):
13904
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13905
 
13906
  def __ne__(self, other):
13907
    return not (self == other)
13908
 
13909
class addSimilarItem_result:
13910
  """
13911
  Attributes:
13912
   - success
13913
   - cex
13914
  """
13915
 
13916
  thrift_spec = (
13917
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
13918
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
13919
  )
13920
 
13921
  def __init__(self, success=None, cex=None,):
13922
    self.success = success
13923
    self.cex = cex
13924
 
13925
  def read(self, iprot):
13926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13928
      return
13929
    iprot.readStructBegin()
13930
    while True:
13931
      (fname, ftype, fid) = iprot.readFieldBegin()
13932
      if ftype == TType.STOP:
13933
        break
13934
      if fid == 0:
13935
        if ftype == TType.STRUCT:
13936
          self.success = Item()
13937
          self.success.read(iprot)
13938
        else:
13939
          iprot.skip(ftype)
13940
      elif fid == 1:
13941
        if ftype == TType.STRUCT:
13942
          self.cex = CatalogServiceException()
13943
          self.cex.read(iprot)
13944
        else:
13945
          iprot.skip(ftype)
13946
      else:
13947
        iprot.skip(ftype)
13948
      iprot.readFieldEnd()
13949
    iprot.readStructEnd()
13950
 
13951
  def write(self, oprot):
13952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13954
      return
13955
    oprot.writeStructBegin('addSimilarItem_result')
13956
    if self.success is not None:
13957
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
13958
      self.success.write(oprot)
13959
      oprot.writeFieldEnd()
13960
    if self.cex is not None:
13961
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
13962
      self.cex.write(oprot)
13963
      oprot.writeFieldEnd()
13964
    oprot.writeFieldStop()
13965
    oprot.writeStructEnd()
13966
 
13967
  def validate(self):
13968
    return
13969
 
13970
 
13971
  def __repr__(self):
13972
    L = ['%s=%r' % (key, value)
13973
      for key, value in self.__dict__.iteritems()]
13974
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13975
 
13976
  def __eq__(self, other):
13977
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13978
 
13979
  def __ne__(self, other):
13980
    return not (self == other)
13981
 
6512 kshitij.so 13982
class addTag_args:
13983
  """
13984
  Attributes:
13985
   - displayName
13986
   - itemId
13987
  """
13988
 
13989
  thrift_spec = (
13990
    None, # 0
13991
    (1, TType.STRING, 'displayName', None, None, ), # 1
13992
    (2, TType.I64, 'itemId', None, None, ), # 2
13993
  )
13994
 
13995
  def __init__(self, displayName=None, itemId=None,):
13996
    self.displayName = displayName
13997
    self.itemId = itemId
13998
 
13999
  def read(self, iprot):
14000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14002
      return
14003
    iprot.readStructBegin()
14004
    while True:
14005
      (fname, ftype, fid) = iprot.readFieldBegin()
14006
      if ftype == TType.STOP:
14007
        break
14008
      if fid == 1:
14009
        if ftype == TType.STRING:
14010
          self.displayName = iprot.readString();
14011
        else:
14012
          iprot.skip(ftype)
14013
      elif fid == 2:
14014
        if ftype == TType.I64:
14015
          self.itemId = iprot.readI64();
14016
        else:
14017
          iprot.skip(ftype)
14018
      else:
14019
        iprot.skip(ftype)
14020
      iprot.readFieldEnd()
14021
    iprot.readStructEnd()
14022
 
14023
  def write(self, oprot):
14024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14026
      return
14027
    oprot.writeStructBegin('addTag_args')
14028
    if self.displayName is not None:
14029
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14030
      oprot.writeString(self.displayName)
14031
      oprot.writeFieldEnd()
14032
    if self.itemId is not None:
14033
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14034
      oprot.writeI64(self.itemId)
14035
      oprot.writeFieldEnd()
14036
    oprot.writeFieldStop()
14037
    oprot.writeStructEnd()
14038
 
14039
  def validate(self):
14040
    return
14041
 
14042
 
14043
  def __repr__(self):
14044
    L = ['%s=%r' % (key, value)
14045
      for key, value in self.__dict__.iteritems()]
14046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14047
 
14048
  def __eq__(self, other):
14049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14050
 
14051
  def __ne__(self, other):
14052
    return not (self == other)
14053
 
14054
class addTag_result:
14055
  """
14056
  Attributes:
14057
   - success
14058
  """
14059
 
14060
  thrift_spec = (
14061
    (0, TType.BOOL, 'success', None, None, ), # 0
14062
  )
14063
 
14064
  def __init__(self, success=None,):
14065
    self.success = success
14066
 
14067
  def read(self, iprot):
14068
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14069
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14070
      return
14071
    iprot.readStructBegin()
14072
    while True:
14073
      (fname, ftype, fid) = iprot.readFieldBegin()
14074
      if ftype == TType.STOP:
14075
        break
14076
      if fid == 0:
14077
        if ftype == TType.BOOL:
14078
          self.success = iprot.readBool();
14079
        else:
14080
          iprot.skip(ftype)
14081
      else:
14082
        iprot.skip(ftype)
14083
      iprot.readFieldEnd()
14084
    iprot.readStructEnd()
14085
 
14086
  def write(self, oprot):
14087
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14088
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14089
      return
14090
    oprot.writeStructBegin('addTag_result')
14091
    if self.success is not None:
14092
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14093
      oprot.writeBool(self.success)
14094
      oprot.writeFieldEnd()
14095
    oprot.writeFieldStop()
14096
    oprot.writeStructEnd()
14097
 
14098
  def validate(self):
14099
    return
14100
 
14101
 
14102
  def __repr__(self):
14103
    L = ['%s=%r' % (key, value)
14104
      for key, value in self.__dict__.iteritems()]
14105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14106
 
14107
  def __eq__(self, other):
14108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14109
 
14110
  def __ne__(self, other):
14111
    return not (self == other)
14112
 
14113
class deleteEntityTag_args:
14114
  """
14115
  Attributes:
14116
   - displayName
14117
   - itemId
14118
  """
14119
 
14120
  thrift_spec = (
14121
    None, # 0
14122
    (1, TType.STRING, 'displayName', None, None, ), # 1
14123
    (2, TType.I64, 'itemId', None, None, ), # 2
14124
  )
14125
 
14126
  def __init__(self, displayName=None, itemId=None,):
14127
    self.displayName = displayName
14128
    self.itemId = itemId
14129
 
14130
  def read(self, iprot):
14131
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14132
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14133
      return
14134
    iprot.readStructBegin()
14135
    while True:
14136
      (fname, ftype, fid) = iprot.readFieldBegin()
14137
      if ftype == TType.STOP:
14138
        break
14139
      if fid == 1:
14140
        if ftype == TType.STRING:
14141
          self.displayName = iprot.readString();
14142
        else:
14143
          iprot.skip(ftype)
14144
      elif fid == 2:
14145
        if ftype == TType.I64:
14146
          self.itemId = iprot.readI64();
14147
        else:
14148
          iprot.skip(ftype)
14149
      else:
14150
        iprot.skip(ftype)
14151
      iprot.readFieldEnd()
14152
    iprot.readStructEnd()
14153
 
14154
  def write(self, oprot):
14155
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14156
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14157
      return
14158
    oprot.writeStructBegin('deleteEntityTag_args')
14159
    if self.displayName is not None:
14160
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14161
      oprot.writeString(self.displayName)
14162
      oprot.writeFieldEnd()
14163
    if self.itemId is not None:
14164
      oprot.writeFieldBegin('itemId', TType.I64, 2)
14165
      oprot.writeI64(self.itemId)
14166
      oprot.writeFieldEnd()
14167
    oprot.writeFieldStop()
14168
    oprot.writeStructEnd()
14169
 
14170
  def validate(self):
14171
    return
14172
 
14173
 
14174
  def __repr__(self):
14175
    L = ['%s=%r' % (key, value)
14176
      for key, value in self.__dict__.iteritems()]
14177
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14178
 
14179
  def __eq__(self, other):
14180
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14181
 
14182
  def __ne__(self, other):
14183
    return not (self == other)
14184
 
14185
class deleteEntityTag_result:
14186
  """
14187
  Attributes:
14188
   - success
14189
  """
14190
 
14191
  thrift_spec = (
14192
    (0, TType.BOOL, 'success', None, None, ), # 0
14193
  )
14194
 
14195
  def __init__(self, success=None,):
14196
    self.success = success
14197
 
14198
  def read(self, iprot):
14199
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14200
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14201
      return
14202
    iprot.readStructBegin()
14203
    while True:
14204
      (fname, ftype, fid) = iprot.readFieldBegin()
14205
      if ftype == TType.STOP:
14206
        break
14207
      if fid == 0:
14208
        if ftype == TType.BOOL:
14209
          self.success = iprot.readBool();
14210
        else:
14211
          iprot.skip(ftype)
14212
      else:
14213
        iprot.skip(ftype)
14214
      iprot.readFieldEnd()
14215
    iprot.readStructEnd()
14216
 
14217
  def write(self, oprot):
14218
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14219
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14220
      return
14221
    oprot.writeStructBegin('deleteEntityTag_result')
14222
    if self.success is not None:
14223
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14224
      oprot.writeBool(self.success)
14225
      oprot.writeFieldEnd()
14226
    oprot.writeFieldStop()
14227
    oprot.writeStructEnd()
14228
 
14229
  def validate(self):
14230
    return
14231
 
14232
 
14233
  def __repr__(self):
14234
    L = ['%s=%r' % (key, value)
14235
      for key, value in self.__dict__.iteritems()]
14236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14237
 
14238
  def __eq__(self, other):
14239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14240
 
14241
  def __ne__(self, other):
14242
    return not (self == other)
14243
 
14244
class deleteTag_args:
14245
  """
14246
  Attributes:
14247
   - displayName
14248
  """
14249
 
14250
  thrift_spec = (
14251
    None, # 0
14252
    (1, TType.STRING, 'displayName', None, None, ), # 1
14253
  )
14254
 
14255
  def __init__(self, displayName=None,):
14256
    self.displayName = displayName
14257
 
14258
  def read(self, iprot):
14259
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14260
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14261
      return
14262
    iprot.readStructBegin()
14263
    while True:
14264
      (fname, ftype, fid) = iprot.readFieldBegin()
14265
      if ftype == TType.STOP:
14266
        break
14267
      if fid == 1:
14268
        if ftype == TType.STRING:
14269
          self.displayName = iprot.readString();
14270
        else:
14271
          iprot.skip(ftype)
14272
      else:
14273
        iprot.skip(ftype)
14274
      iprot.readFieldEnd()
14275
    iprot.readStructEnd()
14276
 
14277
  def write(self, oprot):
14278
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14279
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14280
      return
14281
    oprot.writeStructBegin('deleteTag_args')
14282
    if self.displayName is not None:
14283
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14284
      oprot.writeString(self.displayName)
14285
      oprot.writeFieldEnd()
14286
    oprot.writeFieldStop()
14287
    oprot.writeStructEnd()
14288
 
14289
  def validate(self):
14290
    return
14291
 
14292
 
14293
  def __repr__(self):
14294
    L = ['%s=%r' % (key, value)
14295
      for key, value in self.__dict__.iteritems()]
14296
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14297
 
14298
  def __eq__(self, other):
14299
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14300
 
14301
  def __ne__(self, other):
14302
    return not (self == other)
14303
 
14304
class deleteTag_result:
14305
  """
14306
  Attributes:
14307
   - success
14308
  """
14309
 
14310
  thrift_spec = (
14311
    (0, TType.BOOL, 'success', None, None, ), # 0
14312
  )
14313
 
14314
  def __init__(self, success=None,):
14315
    self.success = success
14316
 
14317
  def read(self, iprot):
14318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14320
      return
14321
    iprot.readStructBegin()
14322
    while True:
14323
      (fname, ftype, fid) = iprot.readFieldBegin()
14324
      if ftype == TType.STOP:
14325
        break
14326
      if fid == 0:
14327
        if ftype == TType.BOOL:
14328
          self.success = iprot.readBool();
14329
        else:
14330
          iprot.skip(ftype)
14331
      else:
14332
        iprot.skip(ftype)
14333
      iprot.readFieldEnd()
14334
    iprot.readStructEnd()
14335
 
14336
  def write(self, oprot):
14337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14339
      return
14340
    oprot.writeStructBegin('deleteTag_result')
14341
    if self.success is not None:
14342
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14343
      oprot.writeBool(self.success)
14344
      oprot.writeFieldEnd()
14345
    oprot.writeFieldStop()
14346
    oprot.writeStructEnd()
14347
 
14348
  def validate(self):
14349
    return
14350
 
14351
 
14352
  def __repr__(self):
14353
    L = ['%s=%r' % (key, value)
14354
      for key, value in self.__dict__.iteritems()]
14355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14356
 
14357
  def __eq__(self, other):
14358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14359
 
14360
  def __ne__(self, other):
14361
    return not (self == other)
14362
 
14363
class getAllTags_args:
14364
 
14365
  thrift_spec = (
14366
  )
14367
 
14368
  def read(self, iprot):
14369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14371
      return
14372
    iprot.readStructBegin()
14373
    while True:
14374
      (fname, ftype, fid) = iprot.readFieldBegin()
14375
      if ftype == TType.STOP:
14376
        break
14377
      else:
14378
        iprot.skip(ftype)
14379
      iprot.readFieldEnd()
14380
    iprot.readStructEnd()
14381
 
14382
  def write(self, oprot):
14383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14385
      return
14386
    oprot.writeStructBegin('getAllTags_args')
14387
    oprot.writeFieldStop()
14388
    oprot.writeStructEnd()
14389
 
14390
  def validate(self):
14391
    return
14392
 
14393
 
14394
  def __repr__(self):
14395
    L = ['%s=%r' % (key, value)
14396
      for key, value in self.__dict__.iteritems()]
14397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14398
 
14399
  def __eq__(self, other):
14400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14401
 
14402
  def __ne__(self, other):
14403
    return not (self == other)
14404
 
14405
class getAllTags_result:
14406
  """
14407
  Attributes:
14408
   - success
14409
  """
14410
 
14411
  thrift_spec = (
14412
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
14413
  )
14414
 
14415
  def __init__(self, success=None,):
14416
    self.success = success
14417
 
14418
  def read(self, iprot):
14419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14421
      return
14422
    iprot.readStructBegin()
14423
    while True:
14424
      (fname, ftype, fid) = iprot.readFieldBegin()
14425
      if ftype == TType.STOP:
14426
        break
14427
      if fid == 0:
14428
        if ftype == TType.LIST:
14429
          self.success = []
12567 amit.gupta 14430
          (_etype177, _size174) = iprot.readListBegin()
14431
          for _i178 in xrange(_size174):
14432
            _elem179 = iprot.readString();
14433
            self.success.append(_elem179)
6512 kshitij.so 14434
          iprot.readListEnd()
14435
        else:
14436
          iprot.skip(ftype)
14437
      else:
14438
        iprot.skip(ftype)
14439
      iprot.readFieldEnd()
14440
    iprot.readStructEnd()
14441
 
14442
  def write(self, oprot):
14443
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14444
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14445
      return
14446
    oprot.writeStructBegin('getAllTags_result')
14447
    if self.success is not None:
14448
      oprot.writeFieldBegin('success', TType.LIST, 0)
14449
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 14450
      for iter180 in self.success:
14451
        oprot.writeString(iter180)
6512 kshitij.so 14452
      oprot.writeListEnd()
14453
      oprot.writeFieldEnd()
14454
    oprot.writeFieldStop()
14455
    oprot.writeStructEnd()
14456
 
14457
  def validate(self):
14458
    return
14459
 
14460
 
14461
  def __repr__(self):
14462
    L = ['%s=%r' % (key, value)
14463
      for key, value in self.__dict__.iteritems()]
14464
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14465
 
14466
  def __eq__(self, other):
14467
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14468
 
14469
  def __ne__(self, other):
14470
    return not (self == other)
14471
 
14472
class getAllEntitiesByTagName_args:
14473
  """
14474
  Attributes:
14475
   - displayName
14476
  """
14477
 
14478
  thrift_spec = (
14479
    None, # 0
14480
    (1, TType.STRING, 'displayName', None, None, ), # 1
14481
  )
14482
 
14483
  def __init__(self, displayName=None,):
14484
    self.displayName = displayName
14485
 
14486
  def read(self, iprot):
14487
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14488
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14489
      return
14490
    iprot.readStructBegin()
14491
    while True:
14492
      (fname, ftype, fid) = iprot.readFieldBegin()
14493
      if ftype == TType.STOP:
14494
        break
14495
      if fid == 1:
14496
        if ftype == TType.STRING:
14497
          self.displayName = iprot.readString();
14498
        else:
14499
          iprot.skip(ftype)
14500
      else:
14501
        iprot.skip(ftype)
14502
      iprot.readFieldEnd()
14503
    iprot.readStructEnd()
14504
 
14505
  def write(self, oprot):
14506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14508
      return
14509
    oprot.writeStructBegin('getAllEntitiesByTagName_args')
14510
    if self.displayName is not None:
14511
      oprot.writeFieldBegin('displayName', TType.STRING, 1)
14512
      oprot.writeString(self.displayName)
14513
      oprot.writeFieldEnd()
14514
    oprot.writeFieldStop()
14515
    oprot.writeStructEnd()
14516
 
14517
  def validate(self):
14518
    return
14519
 
14520
 
14521
  def __repr__(self):
14522
    L = ['%s=%r' % (key, value)
14523
      for key, value in self.__dict__.iteritems()]
14524
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14525
 
14526
  def __eq__(self, other):
14527
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14528
 
14529
  def __ne__(self, other):
14530
    return not (self == other)
14531
 
14532
class getAllEntitiesByTagName_result:
14533
  """
14534
  Attributes:
14535
   - success
14536
  """
14537
 
14538
  thrift_spec = (
14539
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
14540
  )
14541
 
14542
  def __init__(self, success=None,):
14543
    self.success = success
14544
 
14545
  def read(self, iprot):
14546
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14547
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14548
      return
14549
    iprot.readStructBegin()
14550
    while True:
14551
      (fname, ftype, fid) = iprot.readFieldBegin()
14552
      if ftype == TType.STOP:
14553
        break
14554
      if fid == 0:
14555
        if ftype == TType.LIST:
14556
          self.success = []
12567 amit.gupta 14557
          (_etype184, _size181) = iprot.readListBegin()
14558
          for _i185 in xrange(_size181):
14559
            _elem186 = iprot.readI64();
14560
            self.success.append(_elem186)
6512 kshitij.so 14561
          iprot.readListEnd()
14562
        else:
14563
          iprot.skip(ftype)
14564
      else:
14565
        iprot.skip(ftype)
14566
      iprot.readFieldEnd()
14567
    iprot.readStructEnd()
14568
 
14569
  def write(self, oprot):
14570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14572
      return
14573
    oprot.writeStructBegin('getAllEntitiesByTagName_result')
14574
    if self.success is not None:
14575
      oprot.writeFieldBegin('success', TType.LIST, 0)
14576
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 14577
      for iter187 in self.success:
14578
        oprot.writeI64(iter187)
6512 kshitij.so 14579
      oprot.writeListEnd()
14580
      oprot.writeFieldEnd()
14581
    oprot.writeFieldStop()
14582
    oprot.writeStructEnd()
14583
 
14584
  def validate(self):
14585
    return
14586
 
14587
 
14588
  def __repr__(self):
14589
    L = ['%s=%r' % (key, value)
14590
      for key, value in self.__dict__.iteritems()]
14591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14592
 
14593
  def __eq__(self, other):
14594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14595
 
14596
  def __ne__(self, other):
14597
    return not (self == other)
14598
 
6845 amit.gupta 14599
class getAllEntityTags_args:
14600
 
14601
  thrift_spec = (
14602
  )
14603
 
14604
  def read(self, iprot):
14605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14607
      return
14608
    iprot.readStructBegin()
14609
    while True:
14610
      (fname, ftype, fid) = iprot.readFieldBegin()
14611
      if ftype == TType.STOP:
14612
        break
14613
      else:
14614
        iprot.skip(ftype)
14615
      iprot.readFieldEnd()
14616
    iprot.readStructEnd()
14617
 
14618
  def write(self, oprot):
14619
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14620
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14621
      return
14622
    oprot.writeStructBegin('getAllEntityTags_args')
14623
    oprot.writeFieldStop()
14624
    oprot.writeStructEnd()
14625
 
14626
  def validate(self):
14627
    return
14628
 
14629
 
14630
  def __repr__(self):
14631
    L = ['%s=%r' % (key, value)
14632
      for key, value in self.__dict__.iteritems()]
14633
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14634
 
14635
  def __eq__(self, other):
14636
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14637
 
14638
  def __ne__(self, other):
14639
    return not (self == other)
14640
 
14641
class getAllEntityTags_result:
14642
  """
14643
  Attributes:
14644
   - success
14645
  """
14646
 
14647
  thrift_spec = (
14648
    (0, TType.MAP, 'success', (TType.I64,None,TType.LIST,(TType.STRING,None)), None, ), # 0
14649
  )
14650
 
14651
  def __init__(self, success=None,):
14652
    self.success = success
14653
 
14654
  def read(self, iprot):
14655
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14656
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14657
      return
14658
    iprot.readStructBegin()
14659
    while True:
14660
      (fname, ftype, fid) = iprot.readFieldBegin()
14661
      if ftype == TType.STOP:
14662
        break
14663
      if fid == 0:
14664
        if ftype == TType.MAP:
14665
          self.success = {}
12567 amit.gupta 14666
          (_ktype189, _vtype190, _size188 ) = iprot.readMapBegin() 
14667
          for _i192 in xrange(_size188):
14668
            _key193 = iprot.readI64();
14669
            _val194 = []
14670
            (_etype198, _size195) = iprot.readListBegin()
14671
            for _i199 in xrange(_size195):
14672
              _elem200 = iprot.readString();
14673
              _val194.append(_elem200)
6845 amit.gupta 14674
            iprot.readListEnd()
12567 amit.gupta 14675
            self.success[_key193] = _val194
6845 amit.gupta 14676
          iprot.readMapEnd()
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('getAllEntityTags_result')
14689
    if self.success is not None:
14690
      oprot.writeFieldBegin('success', TType.MAP, 0)
14691
      oprot.writeMapBegin(TType.I64, TType.LIST, len(self.success))
12567 amit.gupta 14692
      for kiter201,viter202 in self.success.items():
14693
        oprot.writeI64(kiter201)
14694
        oprot.writeListBegin(TType.STRING, len(viter202))
14695
        for iter203 in viter202:
14696
          oprot.writeString(iter203)
6845 amit.gupta 14697
        oprot.writeListEnd()
14698
      oprot.writeMapEnd()
14699
      oprot.writeFieldEnd()
14700
    oprot.writeFieldStop()
14701
    oprot.writeStructEnd()
14702
 
14703
  def validate(self):
14704
    return
14705
 
14706
 
14707
  def __repr__(self):
14708
    L = ['%s=%r' % (key, value)
14709
      for key, value in self.__dict__.iteritems()]
14710
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14711
 
14712
  def __eq__(self, other):
14713
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14714
 
14715
  def __ne__(self, other):
14716
    return not (self == other)
14717
 
6850 kshitij.so 14718
class addBanner_args:
14719
  """
14720
  Attributes:
8590 kshitij.so 14721
   - bannerCongregate
6850 kshitij.so 14722
  """
14723
 
14724
  thrift_spec = (
14725
    None, # 0
8590 kshitij.so 14726
    (1, TType.STRUCT, 'bannerCongregate', (BannerCongregate, BannerCongregate.thrift_spec), None, ), # 1
6850 kshitij.so 14727
  )
14728
 
8590 kshitij.so 14729
  def __init__(self, bannerCongregate=None,):
14730
    self.bannerCongregate = bannerCongregate
6850 kshitij.so 14731
 
14732
  def read(self, iprot):
14733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14735
      return
14736
    iprot.readStructBegin()
14737
    while True:
14738
      (fname, ftype, fid) = iprot.readFieldBegin()
14739
      if ftype == TType.STOP:
14740
        break
14741
      if fid == 1:
8579 kshitij.so 14742
        if ftype == TType.STRUCT:
8590 kshitij.so 14743
          self.bannerCongregate = BannerCongregate()
14744
          self.bannerCongregate.read(iprot)
6850 kshitij.so 14745
        else:
14746
          iprot.skip(ftype)
8579 kshitij.so 14747
      else:
14748
        iprot.skip(ftype)
14749
      iprot.readFieldEnd()
14750
    iprot.readStructEnd()
14751
 
14752
  def write(self, oprot):
14753
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14754
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14755
      return
14756
    oprot.writeStructBegin('addBanner_args')
8590 kshitij.so 14757
    if self.bannerCongregate is not None:
14758
      oprot.writeFieldBegin('bannerCongregate', TType.STRUCT, 1)
14759
      self.bannerCongregate.write(oprot)
8579 kshitij.so 14760
      oprot.writeFieldEnd()
14761
    oprot.writeFieldStop()
14762
    oprot.writeStructEnd()
14763
 
14764
  def validate(self):
14765
    return
14766
 
14767
 
14768
  def __repr__(self):
14769
    L = ['%s=%r' % (key, value)
14770
      for key, value in self.__dict__.iteritems()]
14771
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14772
 
14773
  def __eq__(self, other):
14774
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14775
 
14776
  def __ne__(self, other):
14777
    return not (self == other)
14778
 
14779
class addBanner_result:
10097 kshitij.so 14780
  """
14781
  Attributes:
14782
   - success
14783
  """
8579 kshitij.so 14784
 
14785
  thrift_spec = (
10097 kshitij.so 14786
    (0, TType.BOOL, 'success', None, None, ), # 0
8579 kshitij.so 14787
  )
14788
 
10097 kshitij.so 14789
  def __init__(self, success=None,):
14790
    self.success = success
14791
 
8579 kshitij.so 14792
  def read(self, iprot):
14793
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14794
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14795
      return
14796
    iprot.readStructBegin()
14797
    while True:
14798
      (fname, ftype, fid) = iprot.readFieldBegin()
14799
      if ftype == TType.STOP:
14800
        break
10097 kshitij.so 14801
      if fid == 0:
14802
        if ftype == TType.BOOL:
14803
          self.success = iprot.readBool();
14804
        else:
14805
          iprot.skip(ftype)
8579 kshitij.so 14806
      else:
14807
        iprot.skip(ftype)
14808
      iprot.readFieldEnd()
14809
    iprot.readStructEnd()
14810
 
14811
  def write(self, oprot):
14812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14814
      return
14815
    oprot.writeStructBegin('addBanner_result')
10097 kshitij.so 14816
    if self.success is not None:
14817
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14818
      oprot.writeBool(self.success)
14819
      oprot.writeFieldEnd()
8579 kshitij.so 14820
    oprot.writeFieldStop()
14821
    oprot.writeStructEnd()
14822
 
14823
  def validate(self):
14824
    return
14825
 
14826
 
14827
  def __repr__(self):
14828
    L = ['%s=%r' % (key, value)
14829
      for key, value in self.__dict__.iteritems()]
14830
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14831
 
14832
  def __eq__(self, other):
14833
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14834
 
14835
  def __ne__(self, other):
14836
    return not (self == other)
14837
 
14838
class updateBanner_args:
14839
  """
14840
  Attributes:
14841
   - banner
14842
  """
14843
 
14844
  thrift_spec = (
14845
    None, # 0
14846
    (1, TType.STRUCT, 'banner', (Banner, Banner.thrift_spec), None, ), # 1
14847
  )
14848
 
14849
  def __init__(self, banner=None,):
14850
    self.banner = banner
14851
 
14852
  def read(self, iprot):
14853
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14854
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14855
      return
14856
    iprot.readStructBegin()
14857
    while True:
14858
      (fname, ftype, fid) = iprot.readFieldBegin()
14859
      if ftype == TType.STOP:
14860
        break
14861
      if fid == 1:
14862
        if ftype == TType.STRUCT:
14863
          self.banner = Banner()
14864
          self.banner.read(iprot)
6850 kshitij.so 14865
        else:
14866
          iprot.skip(ftype)
14867
      else:
14868
        iprot.skip(ftype)
14869
      iprot.readFieldEnd()
14870
    iprot.readStructEnd()
14871
 
14872
  def write(self, oprot):
14873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14875
      return
8579 kshitij.so 14876
    oprot.writeStructBegin('updateBanner_args')
14877
    if self.banner is not None:
14878
      oprot.writeFieldBegin('banner', TType.STRUCT, 1)
14879
      self.banner.write(oprot)
6850 kshitij.so 14880
      oprot.writeFieldEnd()
14881
    oprot.writeFieldStop()
14882
    oprot.writeStructEnd()
14883
 
14884
  def validate(self):
14885
    return
14886
 
14887
 
14888
  def __repr__(self):
14889
    L = ['%s=%r' % (key, value)
14890
      for key, value in self.__dict__.iteritems()]
14891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14892
 
14893
  def __eq__(self, other):
14894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14895
 
14896
  def __ne__(self, other):
14897
    return not (self == other)
14898
 
8579 kshitij.so 14899
class updateBanner_result:
6850 kshitij.so 14900
  """
14901
  Attributes:
14902
   - success
14903
  """
14904
 
14905
  thrift_spec = (
14906
    (0, TType.BOOL, 'success', None, None, ), # 0
14907
  )
14908
 
14909
  def __init__(self, success=None,):
14910
    self.success = success
14911
 
14912
  def read(self, iprot):
14913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14915
      return
14916
    iprot.readStructBegin()
14917
    while True:
14918
      (fname, ftype, fid) = iprot.readFieldBegin()
14919
      if ftype == TType.STOP:
14920
        break
14921
      if fid == 0:
14922
        if ftype == TType.BOOL:
14923
          self.success = iprot.readBool();
14924
        else:
14925
          iprot.skip(ftype)
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
8579 kshitij.so 14935
    oprot.writeStructBegin('updateBanner_result')
6850 kshitij.so 14936
    if self.success is not None:
14937
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14938
      oprot.writeBool(self.success)
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 getAllBanners_args:
14959
 
14960
  thrift_spec = (
14961
  )
14962
 
14963
  def read(self, iprot):
14964
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14965
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14966
      return
14967
    iprot.readStructBegin()
14968
    while True:
14969
      (fname, ftype, fid) = iprot.readFieldBegin()
14970
      if ftype == TType.STOP:
14971
        break
14972
      else:
14973
        iprot.skip(ftype)
14974
      iprot.readFieldEnd()
14975
    iprot.readStructEnd()
14976
 
14977
  def write(self, oprot):
14978
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14979
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14980
      return
14981
    oprot.writeStructBegin('getAllBanners_args')
14982
    oprot.writeFieldStop()
14983
    oprot.writeStructEnd()
14984
 
14985
  def validate(self):
14986
    return
14987
 
14988
 
14989
  def __repr__(self):
14990
    L = ['%s=%r' % (key, value)
14991
      for key, value in self.__dict__.iteritems()]
14992
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14993
 
14994
  def __eq__(self, other):
14995
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14996
 
14997
  def __ne__(self, other):
14998
    return not (self == other)
14999
 
15000
class getAllBanners_result:
15001
  """
15002
  Attributes:
15003
   - success
15004
  """
15005
 
15006
  thrift_spec = (
8579 kshitij.so 15007
    (0, TType.LIST, 'success', (TType.STRUCT,(Banner, Banner.thrift_spec)), None, ), # 0
6850 kshitij.so 15008
  )
15009
 
15010
  def __init__(self, success=None,):
15011
    self.success = success
15012
 
15013
  def read(self, iprot):
15014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15016
      return
15017
    iprot.readStructBegin()
15018
    while True:
15019
      (fname, ftype, fid) = iprot.readFieldBegin()
15020
      if ftype == TType.STOP:
15021
        break
15022
      if fid == 0:
15023
        if ftype == TType.LIST:
15024
          self.success = []
12567 amit.gupta 15025
          (_etype207, _size204) = iprot.readListBegin()
15026
          for _i208 in xrange(_size204):
15027
            _elem209 = Banner()
15028
            _elem209.read(iprot)
15029
            self.success.append(_elem209)
6850 kshitij.so 15030
          iprot.readListEnd()
15031
        else:
15032
          iprot.skip(ftype)
15033
      else:
15034
        iprot.skip(ftype)
15035
      iprot.readFieldEnd()
15036
    iprot.readStructEnd()
15037
 
15038
  def write(self, oprot):
15039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15040
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15041
      return
15042
    oprot.writeStructBegin('getAllBanners_result')
15043
    if self.success is not None:
15044
      oprot.writeFieldBegin('success', TType.LIST, 0)
8579 kshitij.so 15045
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 15046
      for iter210 in self.success:
15047
        iter210.write(oprot)
6850 kshitij.so 15048
      oprot.writeListEnd()
15049
      oprot.writeFieldEnd()
15050
    oprot.writeFieldStop()
15051
    oprot.writeStructEnd()
15052
 
15053
  def validate(self):
15054
    return
15055
 
15056
 
15057
  def __repr__(self):
15058
    L = ['%s=%r' % (key, value)
15059
      for key, value in self.__dict__.iteritems()]
15060
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15061
 
15062
  def __eq__(self, other):
15063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15064
 
15065
  def __ne__(self, other):
15066
    return not (self == other)
15067
 
15068
class deleteBanner_args:
15069
  """
15070
  Attributes:
15071
   - bannerName
9155 kshitij.so 15072
   - bannerType
6850 kshitij.so 15073
  """
15074
 
15075
  thrift_spec = (
15076
    None, # 0
15077
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15078
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15079
  )
15080
 
9155 kshitij.so 15081
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15082
    self.bannerName = bannerName
9155 kshitij.so 15083
    self.bannerType = bannerType
6850 kshitij.so 15084
 
15085
  def read(self, iprot):
15086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15088
      return
15089
    iprot.readStructBegin()
15090
    while True:
15091
      (fname, ftype, fid) = iprot.readFieldBegin()
15092
      if ftype == TType.STOP:
15093
        break
15094
      if fid == 1:
15095
        if ftype == TType.STRING:
15096
          self.bannerName = iprot.readString();
15097
        else:
15098
          iprot.skip(ftype)
9155 kshitij.so 15099
      elif fid == 2:
15100
        if ftype == TType.I32:
15101
          self.bannerType = iprot.readI32();
15102
        else:
15103
          iprot.skip(ftype)
6850 kshitij.so 15104
      else:
15105
        iprot.skip(ftype)
15106
      iprot.readFieldEnd()
15107
    iprot.readStructEnd()
15108
 
15109
  def write(self, oprot):
15110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15112
      return
15113
    oprot.writeStructBegin('deleteBanner_args')
15114
    if self.bannerName is not None:
15115
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15116
      oprot.writeString(self.bannerName)
15117
      oprot.writeFieldEnd()
9155 kshitij.so 15118
    if self.bannerType is not None:
15119
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15120
      oprot.writeI32(self.bannerType)
15121
      oprot.writeFieldEnd()
6850 kshitij.so 15122
    oprot.writeFieldStop()
15123
    oprot.writeStructEnd()
15124
 
15125
  def validate(self):
15126
    return
15127
 
15128
 
15129
  def __repr__(self):
15130
    L = ['%s=%r' % (key, value)
15131
      for key, value in self.__dict__.iteritems()]
15132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15133
 
15134
  def __eq__(self, other):
15135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15136
 
15137
  def __ne__(self, other):
15138
    return not (self == other)
15139
 
15140
class deleteBanner_result:
15141
  """
15142
  Attributes:
15143
   - success
15144
  """
15145
 
15146
  thrift_spec = (
15147
    (0, TType.BOOL, 'success', None, None, ), # 0
15148
  )
15149
 
15150
  def __init__(self, success=None,):
15151
    self.success = success
15152
 
15153
  def read(self, iprot):
15154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15156
      return
15157
    iprot.readStructBegin()
15158
    while True:
15159
      (fname, ftype, fid) = iprot.readFieldBegin()
15160
      if ftype == TType.STOP:
15161
        break
15162
      if fid == 0:
15163
        if ftype == TType.BOOL:
15164
          self.success = iprot.readBool();
15165
        else:
15166
          iprot.skip(ftype)
15167
      else:
15168
        iprot.skip(ftype)
15169
      iprot.readFieldEnd()
15170
    iprot.readStructEnd()
15171
 
15172
  def write(self, oprot):
15173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15175
      return
15176
    oprot.writeStructBegin('deleteBanner_result')
15177
    if self.success is not None:
15178
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15179
      oprot.writeBool(self.success)
15180
      oprot.writeFieldEnd()
15181
    oprot.writeFieldStop()
15182
    oprot.writeStructEnd()
15183
 
15184
  def validate(self):
15185
    return
15186
 
15187
 
15188
  def __repr__(self):
15189
    L = ['%s=%r' % (key, value)
15190
      for key, value in self.__dict__.iteritems()]
15191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15192
 
15193
  def __eq__(self, other):
15194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15195
 
15196
  def __ne__(self, other):
15197
    return not (self == other)
15198
 
15199
class getBannerDetails_args:
15200
  """
15201
  Attributes:
15202
   - bannerName
9155 kshitij.so 15203
   - bannerType
6850 kshitij.so 15204
  """
15205
 
15206
  thrift_spec = (
15207
    None, # 0
15208
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15209
    (2, TType.I32, 'bannerType', None, None, ), # 2
6850 kshitij.so 15210
  )
15211
 
9155 kshitij.so 15212
  def __init__(self, bannerName=None, bannerType=None,):
6850 kshitij.so 15213
    self.bannerName = bannerName
9155 kshitij.so 15214
    self.bannerType = bannerType
6850 kshitij.so 15215
 
15216
  def read(self, iprot):
15217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15219
      return
15220
    iprot.readStructBegin()
15221
    while True:
15222
      (fname, ftype, fid) = iprot.readFieldBegin()
15223
      if ftype == TType.STOP:
15224
        break
15225
      if fid == 1:
15226
        if ftype == TType.STRING:
15227
          self.bannerName = iprot.readString();
15228
        else:
15229
          iprot.skip(ftype)
9155 kshitij.so 15230
      elif fid == 2:
15231
        if ftype == TType.I32:
15232
          self.bannerType = iprot.readI32();
15233
        else:
15234
          iprot.skip(ftype)
6850 kshitij.so 15235
      else:
15236
        iprot.skip(ftype)
15237
      iprot.readFieldEnd()
15238
    iprot.readStructEnd()
15239
 
15240
  def write(self, oprot):
15241
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15242
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15243
      return
15244
    oprot.writeStructBegin('getBannerDetails_args')
15245
    if self.bannerName is not None:
15246
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15247
      oprot.writeString(self.bannerName)
15248
      oprot.writeFieldEnd()
9155 kshitij.so 15249
    if self.bannerType is not None:
15250
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15251
      oprot.writeI32(self.bannerType)
15252
      oprot.writeFieldEnd()
6850 kshitij.so 15253
    oprot.writeFieldStop()
15254
    oprot.writeStructEnd()
15255
 
15256
  def validate(self):
15257
    return
15258
 
15259
 
15260
  def __repr__(self):
15261
    L = ['%s=%r' % (key, value)
15262
      for key, value in self.__dict__.iteritems()]
15263
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15264
 
15265
  def __eq__(self, other):
15266
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15267
 
15268
  def __ne__(self, other):
15269
    return not (self == other)
15270
 
15271
class getBannerDetails_result:
15272
  """
15273
  Attributes:
15274
   - success
15275
  """
15276
 
15277
  thrift_spec = (
15278
    (0, TType.STRUCT, 'success', (Banner, Banner.thrift_spec), None, ), # 0
15279
  )
15280
 
15281
  def __init__(self, success=None,):
15282
    self.success = success
15283
 
15284
  def read(self, iprot):
15285
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15286
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15287
      return
15288
    iprot.readStructBegin()
15289
    while True:
15290
      (fname, ftype, fid) = iprot.readFieldBegin()
15291
      if ftype == TType.STOP:
15292
        break
15293
      if fid == 0:
15294
        if ftype == TType.STRUCT:
15295
          self.success = Banner()
15296
          self.success.read(iprot)
15297
        else:
15298
          iprot.skip(ftype)
15299
      else:
15300
        iprot.skip(ftype)
15301
      iprot.readFieldEnd()
15302
    iprot.readStructEnd()
15303
 
15304
  def write(self, oprot):
15305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15307
      return
15308
    oprot.writeStructBegin('getBannerDetails_result')
15309
    if self.success is not None:
15310
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
15311
      self.success.write(oprot)
15312
      oprot.writeFieldEnd()
15313
    oprot.writeFieldStop()
15314
    oprot.writeStructEnd()
15315
 
15316
  def validate(self):
15317
    return
15318
 
15319
 
15320
  def __repr__(self):
15321
    L = ['%s=%r' % (key, value)
15322
      for key, value in self.__dict__.iteritems()]
15323
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15324
 
15325
  def __eq__(self, other):
15326
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15327
 
15328
  def __ne__(self, other):
15329
    return not (self == other)
15330
 
15331
class getActiveBanners_args:
15332
 
15333
  thrift_spec = (
15334
  )
15335
 
15336
  def read(self, iprot):
15337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15339
      return
15340
    iprot.readStructBegin()
15341
    while True:
15342
      (fname, ftype, fid) = iprot.readFieldBegin()
15343
      if ftype == TType.STOP:
15344
        break
15345
      else:
15346
        iprot.skip(ftype)
15347
      iprot.readFieldEnd()
15348
    iprot.readStructEnd()
15349
 
15350
  def write(self, oprot):
15351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15353
      return
15354
    oprot.writeStructBegin('getActiveBanners_args')
15355
    oprot.writeFieldStop()
15356
    oprot.writeStructEnd()
15357
 
15358
  def validate(self):
15359
    return
15360
 
15361
 
15362
  def __repr__(self):
15363
    L = ['%s=%r' % (key, value)
15364
      for key, value in self.__dict__.iteritems()]
15365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15366
 
15367
  def __eq__(self, other):
15368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15369
 
15370
  def __ne__(self, other):
15371
    return not (self == other)
15372
 
15373
class getActiveBanners_result:
15374
  """
15375
  Attributes:
15376
   - success
15377
  """
15378
 
15379
  thrift_spec = (
8579 kshitij.so 15380
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
6850 kshitij.so 15381
  )
15382
 
15383
  def __init__(self, success=None,):
15384
    self.success = success
15385
 
15386
  def read(self, iprot):
15387
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15388
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15389
      return
15390
    iprot.readStructBegin()
15391
    while True:
15392
      (fname, ftype, fid) = iprot.readFieldBegin()
15393
      if ftype == TType.STOP:
15394
        break
15395
      if fid == 0:
8579 kshitij.so 15396
        if ftype == TType.MAP:
15397
          self.success = {}
12567 amit.gupta 15398
          (_ktype212, _vtype213, _size211 ) = iprot.readMapBegin() 
15399
          for _i215 in xrange(_size211):
15400
            _key216 = iprot.readString();
15401
            _val217 = []
15402
            (_etype221, _size218) = iprot.readListBegin()
15403
            for _i222 in xrange(_size218):
15404
              _elem223 = Banner()
15405
              _elem223.read(iprot)
15406
              _val217.append(_elem223)
8579 kshitij.so 15407
            iprot.readListEnd()
12567 amit.gupta 15408
            self.success[_key216] = _val217
8579 kshitij.so 15409
          iprot.readMapEnd()
6850 kshitij.so 15410
        else:
15411
          iprot.skip(ftype)
15412
      else:
15413
        iprot.skip(ftype)
15414
      iprot.readFieldEnd()
15415
    iprot.readStructEnd()
15416
 
15417
  def write(self, oprot):
15418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15420
      return
15421
    oprot.writeStructBegin('getActiveBanners_result')
15422
    if self.success is not None:
8579 kshitij.so 15423
      oprot.writeFieldBegin('success', TType.MAP, 0)
15424
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 15425
      for kiter224,viter225 in self.success.items():
15426
        oprot.writeString(kiter224)
15427
        oprot.writeListBegin(TType.STRUCT, len(viter225))
15428
        for iter226 in viter225:
15429
          iter226.write(oprot)
8579 kshitij.so 15430
        oprot.writeListEnd()
15431
      oprot.writeMapEnd()
6850 kshitij.so 15432
      oprot.writeFieldEnd()
15433
    oprot.writeFieldStop()
15434
    oprot.writeStructEnd()
15435
 
15436
  def validate(self):
15437
    return
15438
 
15439
 
15440
  def __repr__(self):
15441
    L = ['%s=%r' % (key, value)
15442
      for key, value in self.__dict__.iteritems()]
15443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15444
 
15445
  def __eq__(self, other):
15446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15447
 
15448
  def __ne__(self, other):
15449
    return not (self == other)
15450
 
6849 kshitij.so 15451
class addBannerMap_args:
15452
  """
15453
  Attributes:
8579 kshitij.so 15454
   - bannerMaps
6849 kshitij.so 15455
  """
15456
 
15457
  thrift_spec = (
15458
    None, # 0
8579 kshitij.so 15459
    (1, TType.LIST, 'bannerMaps', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 1
6849 kshitij.so 15460
  )
15461
 
8579 kshitij.so 15462
  def __init__(self, bannerMaps=None,):
15463
    self.bannerMaps = bannerMaps
6849 kshitij.so 15464
 
15465
  def read(self, iprot):
15466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15468
      return
15469
    iprot.readStructBegin()
15470
    while True:
15471
      (fname, ftype, fid) = iprot.readFieldBegin()
15472
      if ftype == TType.STOP:
15473
        break
15474
      if fid == 1:
8579 kshitij.so 15475
        if ftype == TType.LIST:
15476
          self.bannerMaps = []
12567 amit.gupta 15477
          (_etype230, _size227) = iprot.readListBegin()
15478
          for _i231 in xrange(_size227):
15479
            _elem232 = BannerMap()
15480
            _elem232.read(iprot)
15481
            self.bannerMaps.append(_elem232)
8579 kshitij.so 15482
          iprot.readListEnd()
6849 kshitij.so 15483
        else:
15484
          iprot.skip(ftype)
8579 kshitij.so 15485
      else:
15486
        iprot.skip(ftype)
15487
      iprot.readFieldEnd()
15488
    iprot.readStructEnd()
15489
 
15490
  def write(self, oprot):
15491
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15492
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15493
      return
15494
    oprot.writeStructBegin('addBannerMap_args')
15495
    if self.bannerMaps is not None:
15496
      oprot.writeFieldBegin('bannerMaps', TType.LIST, 1)
15497
      oprot.writeListBegin(TType.STRUCT, len(self.bannerMaps))
12567 amit.gupta 15498
      for iter233 in self.bannerMaps:
15499
        iter233.write(oprot)
8579 kshitij.so 15500
      oprot.writeListEnd()
15501
      oprot.writeFieldEnd()
15502
    oprot.writeFieldStop()
15503
    oprot.writeStructEnd()
15504
 
15505
  def validate(self):
15506
    return
15507
 
15508
 
15509
  def __repr__(self):
15510
    L = ['%s=%r' % (key, value)
15511
      for key, value in self.__dict__.iteritems()]
15512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15513
 
15514
  def __eq__(self, other):
15515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15516
 
15517
  def __ne__(self, other):
15518
    return not (self == other)
15519
 
15520
class addBannerMap_result:
15521
  """
15522
  Attributes:
15523
   - success
15524
  """
15525
 
15526
  thrift_spec = (
15527
    (0, TType.BOOL, 'success', None, None, ), # 0
15528
  )
15529
 
15530
  def __init__(self, success=None,):
15531
    self.success = success
15532
 
15533
  def read(self, iprot):
15534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15536
      return
15537
    iprot.readStructBegin()
15538
    while True:
15539
      (fname, ftype, fid) = iprot.readFieldBegin()
15540
      if ftype == TType.STOP:
15541
        break
15542
      if fid == 0:
15543
        if ftype == TType.BOOL:
15544
          self.success = iprot.readBool();
6849 kshitij.so 15545
        else:
15546
          iprot.skip(ftype)
8579 kshitij.so 15547
      else:
15548
        iprot.skip(ftype)
15549
      iprot.readFieldEnd()
15550
    iprot.readStructEnd()
15551
 
15552
  def write(self, oprot):
15553
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15554
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15555
      return
15556
    oprot.writeStructBegin('addBannerMap_result')
15557
    if self.success is not None:
15558
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15559
      oprot.writeBool(self.success)
15560
      oprot.writeFieldEnd()
15561
    oprot.writeFieldStop()
15562
    oprot.writeStructEnd()
15563
 
15564
  def validate(self):
15565
    return
15566
 
15567
 
15568
  def __repr__(self):
15569
    L = ['%s=%r' % (key, value)
15570
      for key, value in self.__dict__.iteritems()]
15571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15572
 
15573
  def __eq__(self, other):
15574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15575
 
15576
  def __ne__(self, other):
15577
    return not (self == other)
15578
 
15579
class updateBannerMap_args:
15580
  """
15581
  Attributes:
15582
   - bannerMap
15583
  """
15584
 
15585
  thrift_spec = (
15586
    None, # 0
15587
    (1, TType.STRUCT, 'bannerMap', (BannerMap, BannerMap.thrift_spec), None, ), # 1
15588
  )
15589
 
15590
  def __init__(self, bannerMap=None,):
15591
    self.bannerMap = bannerMap
15592
 
15593
  def read(self, iprot):
15594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15596
      return
15597
    iprot.readStructBegin()
15598
    while True:
15599
      (fname, ftype, fid) = iprot.readFieldBegin()
15600
      if ftype == TType.STOP:
15601
        break
15602
      if fid == 1:
15603
        if ftype == TType.STRUCT:
15604
          self.bannerMap = BannerMap()
15605
          self.bannerMap.read(iprot)
6849 kshitij.so 15606
        else:
15607
          iprot.skip(ftype)
15608
      else:
15609
        iprot.skip(ftype)
15610
      iprot.readFieldEnd()
15611
    iprot.readStructEnd()
15612
 
15613
  def write(self, oprot):
15614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15616
      return
8579 kshitij.so 15617
    oprot.writeStructBegin('updateBannerMap_args')
15618
    if self.bannerMap is not None:
15619
      oprot.writeFieldBegin('bannerMap', TType.STRUCT, 1)
15620
      self.bannerMap.write(oprot)
6849 kshitij.so 15621
      oprot.writeFieldEnd()
15622
    oprot.writeFieldStop()
15623
    oprot.writeStructEnd()
15624
 
15625
  def validate(self):
15626
    return
15627
 
15628
 
15629
  def __repr__(self):
15630
    L = ['%s=%r' % (key, value)
15631
      for key, value in self.__dict__.iteritems()]
15632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15633
 
15634
  def __eq__(self, other):
15635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15636
 
15637
  def __ne__(self, other):
15638
    return not (self == other)
15639
 
8579 kshitij.so 15640
class updateBannerMap_result:
6849 kshitij.so 15641
  """
15642
  Attributes:
15643
   - success
15644
  """
15645
 
15646
  thrift_spec = (
15647
    (0, TType.BOOL, 'success', None, None, ), # 0
15648
  )
15649
 
15650
  def __init__(self, success=None,):
15651
    self.success = success
15652
 
15653
  def read(self, iprot):
15654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15656
      return
15657
    iprot.readStructBegin()
15658
    while True:
15659
      (fname, ftype, fid) = iprot.readFieldBegin()
15660
      if ftype == TType.STOP:
15661
        break
15662
      if fid == 0:
15663
        if ftype == TType.BOOL:
15664
          self.success = iprot.readBool();
15665
        else:
15666
          iprot.skip(ftype)
15667
      else:
15668
        iprot.skip(ftype)
15669
      iprot.readFieldEnd()
15670
    iprot.readStructEnd()
15671
 
15672
  def write(self, oprot):
15673
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15674
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15675
      return
8579 kshitij.so 15676
    oprot.writeStructBegin('updateBannerMap_result')
6849 kshitij.so 15677
    if self.success is not None:
15678
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15679
      oprot.writeBool(self.success)
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 deleteBannerMap_args:
15700
  """
15701
  Attributes:
15702
   - bannerName
15703
  """
15704
 
15705
  thrift_spec = (
15706
    None, # 0
15707
    (1, TType.STRING, 'bannerName', None, None, ), # 1
15708
  )
15709
 
15710
  def __init__(self, bannerName=None,):
15711
    self.bannerName = bannerName
15712
 
15713
  def read(self, iprot):
15714
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15715
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15716
      return
15717
    iprot.readStructBegin()
15718
    while True:
15719
      (fname, ftype, fid) = iprot.readFieldBegin()
15720
      if ftype == TType.STOP:
15721
        break
15722
      if fid == 1:
15723
        if ftype == TType.STRING:
15724
          self.bannerName = iprot.readString();
15725
        else:
15726
          iprot.skip(ftype)
15727
      else:
15728
        iprot.skip(ftype)
15729
      iprot.readFieldEnd()
15730
    iprot.readStructEnd()
15731
 
15732
  def write(self, oprot):
15733
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15734
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15735
      return
15736
    oprot.writeStructBegin('deleteBannerMap_args')
15737
    if self.bannerName is not None:
15738
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15739
      oprot.writeString(self.bannerName)
15740
      oprot.writeFieldEnd()
15741
    oprot.writeFieldStop()
15742
    oprot.writeStructEnd()
15743
 
15744
  def validate(self):
15745
    return
15746
 
15747
 
15748
  def __repr__(self):
15749
    L = ['%s=%r' % (key, value)
15750
      for key, value in self.__dict__.iteritems()]
15751
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15752
 
15753
  def __eq__(self, other):
15754
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15755
 
15756
  def __ne__(self, other):
15757
    return not (self == other)
15758
 
15759
class deleteBannerMap_result:
15760
  """
15761
  Attributes:
15762
   - success
15763
  """
15764
 
15765
  thrift_spec = (
15766
    (0, TType.BOOL, 'success', None, None, ), # 0
15767
  )
15768
 
15769
  def __init__(self, success=None,):
15770
    self.success = success
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 == 0:
15782
        if ftype == TType.BOOL:
15783
          self.success = iprot.readBool();
15784
        else:
15785
          iprot.skip(ftype)
15786
      else:
15787
        iprot.skip(ftype)
15788
      iprot.readFieldEnd()
15789
    iprot.readStructEnd()
15790
 
15791
  def write(self, oprot):
15792
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15793
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15794
      return
15795
    oprot.writeStructBegin('deleteBannerMap_result')
15796
    if self.success is not None:
15797
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15798
      oprot.writeBool(self.success)
15799
      oprot.writeFieldEnd()
15800
    oprot.writeFieldStop()
15801
    oprot.writeStructEnd()
15802
 
15803
  def validate(self):
15804
    return
15805
 
15806
 
15807
  def __repr__(self):
15808
    L = ['%s=%r' % (key, value)
15809
      for key, value in self.__dict__.iteritems()]
15810
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15811
 
15812
  def __eq__(self, other):
15813
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15814
 
15815
  def __ne__(self, other):
15816
    return not (self == other)
15817
 
15818
class getBannerMapDetails_args:
15819
  """
15820
  Attributes:
15821
   - bannerName
9155 kshitij.so 15822
   - bannerType
6849 kshitij.so 15823
  """
15824
 
15825
  thrift_spec = (
15826
    None, # 0
15827
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 15828
    (2, TType.I32, 'bannerType', None, None, ), # 2
6849 kshitij.so 15829
  )
15830
 
9155 kshitij.so 15831
  def __init__(self, bannerName=None, bannerType=None,):
6849 kshitij.so 15832
    self.bannerName = bannerName
9155 kshitij.so 15833
    self.bannerType = bannerType
6849 kshitij.so 15834
 
15835
  def read(self, iprot):
15836
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15837
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15838
      return
15839
    iprot.readStructBegin()
15840
    while True:
15841
      (fname, ftype, fid) = iprot.readFieldBegin()
15842
      if ftype == TType.STOP:
15843
        break
15844
      if fid == 1:
15845
        if ftype == TType.STRING:
15846
          self.bannerName = iprot.readString();
15847
        else:
15848
          iprot.skip(ftype)
9155 kshitij.so 15849
      elif fid == 2:
15850
        if ftype == TType.I32:
15851
          self.bannerType = iprot.readI32();
15852
        else:
15853
          iprot.skip(ftype)
6849 kshitij.so 15854
      else:
15855
        iprot.skip(ftype)
15856
      iprot.readFieldEnd()
15857
    iprot.readStructEnd()
15858
 
15859
  def write(self, oprot):
15860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15862
      return
15863
    oprot.writeStructBegin('getBannerMapDetails_args')
15864
    if self.bannerName is not None:
15865
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
15866
      oprot.writeString(self.bannerName)
15867
      oprot.writeFieldEnd()
9155 kshitij.so 15868
    if self.bannerType is not None:
15869
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
15870
      oprot.writeI32(self.bannerType)
15871
      oprot.writeFieldEnd()
6849 kshitij.so 15872
    oprot.writeFieldStop()
15873
    oprot.writeStructEnd()
15874
 
15875
  def validate(self):
15876
    return
15877
 
15878
 
15879
  def __repr__(self):
15880
    L = ['%s=%r' % (key, value)
15881
      for key, value in self.__dict__.iteritems()]
15882
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15883
 
15884
  def __eq__(self, other):
15885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15886
 
15887
  def __ne__(self, other):
15888
    return not (self == other)
15889
 
15890
class getBannerMapDetails_result:
15891
  """
15892
  Attributes:
15893
   - success
15894
  """
15895
 
15896
  thrift_spec = (
15897
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerMap, BannerMap.thrift_spec)), None, ), # 0
15898
  )
15899
 
15900
  def __init__(self, success=None,):
15901
    self.success = success
15902
 
15903
  def read(self, iprot):
15904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15906
      return
15907
    iprot.readStructBegin()
15908
    while True:
15909
      (fname, ftype, fid) = iprot.readFieldBegin()
15910
      if ftype == TType.STOP:
15911
        break
15912
      if fid == 0:
15913
        if ftype == TType.LIST:
15914
          self.success = []
12567 amit.gupta 15915
          (_etype237, _size234) = iprot.readListBegin()
15916
          for _i238 in xrange(_size234):
15917
            _elem239 = BannerMap()
15918
            _elem239.read(iprot)
15919
            self.success.append(_elem239)
6849 kshitij.so 15920
          iprot.readListEnd()
15921
        else:
15922
          iprot.skip(ftype)
15923
      else:
15924
        iprot.skip(ftype)
15925
      iprot.readFieldEnd()
15926
    iprot.readStructEnd()
15927
 
15928
  def write(self, oprot):
15929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15931
      return
15932
    oprot.writeStructBegin('getBannerMapDetails_result')
15933
    if self.success is not None:
15934
      oprot.writeFieldBegin('success', TType.LIST, 0)
15935
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 15936
      for iter240 in self.success:
15937
        iter240.write(oprot)
6849 kshitij.so 15938
      oprot.writeListEnd()
15939
      oprot.writeFieldEnd()
15940
    oprot.writeFieldStop()
15941
    oprot.writeStructEnd()
15942
 
15943
  def validate(self):
15944
    return
15945
 
15946
 
15947
  def __repr__(self):
15948
    L = ['%s=%r' % (key, value)
15949
      for key, value in self.__dict__.iteritems()]
15950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15951
 
15952
  def __eq__(self, other):
15953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15954
 
15955
  def __ne__(self, other):
15956
    return not (self == other)
15957
 
8579 kshitij.so 15958
class addBannerUri_args:
15959
  """
15960
  Attributes:
15961
   - bannerUriMappings
15962
  """
15963
 
15964
  thrift_spec = (
15965
    None, # 0
15966
    (1, TType.LIST, 'bannerUriMappings', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 1
15967
  )
15968
 
15969
  def __init__(self, bannerUriMappings=None,):
15970
    self.bannerUriMappings = bannerUriMappings
15971
 
15972
  def read(self, iprot):
15973
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15974
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15975
      return
15976
    iprot.readStructBegin()
15977
    while True:
15978
      (fname, ftype, fid) = iprot.readFieldBegin()
15979
      if ftype == TType.STOP:
15980
        break
15981
      if fid == 1:
15982
        if ftype == TType.LIST:
15983
          self.bannerUriMappings = []
12567 amit.gupta 15984
          (_etype244, _size241) = iprot.readListBegin()
15985
          for _i245 in xrange(_size241):
15986
            _elem246 = BannerUriMapping()
15987
            _elem246.read(iprot)
15988
            self.bannerUriMappings.append(_elem246)
8579 kshitij.so 15989
          iprot.readListEnd()
15990
        else:
15991
          iprot.skip(ftype)
15992
      else:
15993
        iprot.skip(ftype)
15994
      iprot.readFieldEnd()
15995
    iprot.readStructEnd()
15996
 
15997
  def write(self, oprot):
15998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16000
      return
16001
    oprot.writeStructBegin('addBannerUri_args')
16002
    if self.bannerUriMappings is not None:
16003
      oprot.writeFieldBegin('bannerUriMappings', TType.LIST, 1)
16004
      oprot.writeListBegin(TType.STRUCT, len(self.bannerUriMappings))
12567 amit.gupta 16005
      for iter247 in self.bannerUriMappings:
16006
        iter247.write(oprot)
8579 kshitij.so 16007
      oprot.writeListEnd()
16008
      oprot.writeFieldEnd()
16009
    oprot.writeFieldStop()
16010
    oprot.writeStructEnd()
16011
 
16012
  def validate(self):
16013
    return
16014
 
16015
 
16016
  def __repr__(self):
16017
    L = ['%s=%r' % (key, value)
16018
      for key, value in self.__dict__.iteritems()]
16019
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16020
 
16021
  def __eq__(self, other):
16022
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16023
 
16024
  def __ne__(self, other):
16025
    return not (self == other)
16026
 
16027
class addBannerUri_result:
16028
 
16029
  thrift_spec = (
16030
  )
16031
 
16032
  def read(self, iprot):
16033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16035
      return
16036
    iprot.readStructBegin()
16037
    while True:
16038
      (fname, ftype, fid) = iprot.readFieldBegin()
16039
      if ftype == TType.STOP:
16040
        break
16041
      else:
16042
        iprot.skip(ftype)
16043
      iprot.readFieldEnd()
16044
    iprot.readStructEnd()
16045
 
16046
  def write(self, oprot):
16047
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16048
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16049
      return
16050
    oprot.writeStructBegin('addBannerUri_result')
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 getUriMapping_args:
16070
  """
16071
  Attributes:
16072
   - bannerName
9155 kshitij.so 16073
   - bannerType
8579 kshitij.so 16074
  """
16075
 
16076
  thrift_spec = (
16077
    None, # 0
16078
    (1, TType.STRING, 'bannerName', None, None, ), # 1
9155 kshitij.so 16079
    (2, TType.I32, 'bannerType', None, None, ), # 2
8579 kshitij.so 16080
  )
16081
 
9155 kshitij.so 16082
  def __init__(self, bannerName=None, bannerType=None,):
8579 kshitij.so 16083
    self.bannerName = bannerName
9155 kshitij.so 16084
    self.bannerType = bannerType
8579 kshitij.so 16085
 
16086
  def read(self, iprot):
16087
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16088
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16089
      return
16090
    iprot.readStructBegin()
16091
    while True:
16092
      (fname, ftype, fid) = iprot.readFieldBegin()
16093
      if ftype == TType.STOP:
16094
        break
16095
      if fid == 1:
16096
        if ftype == TType.STRING:
16097
          self.bannerName = iprot.readString();
16098
        else:
16099
          iprot.skip(ftype)
9155 kshitij.so 16100
      elif fid == 2:
16101
        if ftype == TType.I32:
16102
          self.bannerType = iprot.readI32();
16103
        else:
16104
          iprot.skip(ftype)
8579 kshitij.so 16105
      else:
16106
        iprot.skip(ftype)
16107
      iprot.readFieldEnd()
16108
    iprot.readStructEnd()
16109
 
16110
  def write(self, oprot):
16111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16113
      return
16114
    oprot.writeStructBegin('getUriMapping_args')
16115
    if self.bannerName is not None:
16116
      oprot.writeFieldBegin('bannerName', TType.STRING, 1)
16117
      oprot.writeString(self.bannerName)
16118
      oprot.writeFieldEnd()
9155 kshitij.so 16119
    if self.bannerType is not None:
16120
      oprot.writeFieldBegin('bannerType', TType.I32, 2)
16121
      oprot.writeI32(self.bannerType)
16122
      oprot.writeFieldEnd()
8579 kshitij.so 16123
    oprot.writeFieldStop()
16124
    oprot.writeStructEnd()
16125
 
16126
  def validate(self):
16127
    return
16128
 
16129
 
16130
  def __repr__(self):
16131
    L = ['%s=%r' % (key, value)
16132
      for key, value in self.__dict__.iteritems()]
16133
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16134
 
16135
  def __eq__(self, other):
16136
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16137
 
16138
  def __ne__(self, other):
16139
    return not (self == other)
16140
 
16141
class getUriMapping_result:
16142
  """
16143
  Attributes:
16144
   - success
16145
  """
16146
 
16147
  thrift_spec = (
16148
    (0, TType.LIST, 'success', (TType.STRUCT,(BannerUriMapping, BannerUriMapping.thrift_spec)), None, ), # 0
16149
  )
16150
 
16151
  def __init__(self, success=None,):
16152
    self.success = success
16153
 
16154
  def read(self, iprot):
16155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16157
      return
16158
    iprot.readStructBegin()
16159
    while True:
16160
      (fname, ftype, fid) = iprot.readFieldBegin()
16161
      if ftype == TType.STOP:
16162
        break
16163
      if fid == 0:
16164
        if ftype == TType.LIST:
16165
          self.success = []
12567 amit.gupta 16166
          (_etype251, _size248) = iprot.readListBegin()
16167
          for _i252 in xrange(_size248):
16168
            _elem253 = BannerUriMapping()
16169
            _elem253.read(iprot)
16170
            self.success.append(_elem253)
8579 kshitij.so 16171
          iprot.readListEnd()
16172
        else:
16173
          iprot.skip(ftype)
16174
      else:
16175
        iprot.skip(ftype)
16176
      iprot.readFieldEnd()
16177
    iprot.readStructEnd()
16178
 
16179
  def write(self, oprot):
16180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16182
      return
16183
    oprot.writeStructBegin('getUriMapping_result')
16184
    if self.success is not None:
16185
      oprot.writeFieldBegin('success', TType.LIST, 0)
16186
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16187
      for iter254 in self.success:
16188
        iter254.write(oprot)
8579 kshitij.so 16189
      oprot.writeListEnd()
16190
      oprot.writeFieldEnd()
16191
    oprot.writeFieldStop()
16192
    oprot.writeStructEnd()
16193
 
16194
  def validate(self):
16195
    return
16196
 
16197
 
16198
  def __repr__(self):
16199
    L = ['%s=%r' % (key, value)
16200
      for key, value in self.__dict__.iteritems()]
16201
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16202
 
16203
  def __eq__(self, other):
16204
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16205
 
16206
  def __ne__(self, other):
16207
    return not (self == other)
16208
 
16209
class addCampaign_args:
16210
  """
16211
  Attributes:
16212
   - campaign
16213
  """
16214
 
16215
  thrift_spec = (
16216
    None, # 0
16217
    (1, TType.STRUCT, 'campaign', (Campaign, Campaign.thrift_spec), None, ), # 1
16218
  )
16219
 
16220
  def __init__(self, campaign=None,):
16221
    self.campaign = campaign
16222
 
16223
  def read(self, iprot):
16224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16226
      return
16227
    iprot.readStructBegin()
16228
    while True:
16229
      (fname, ftype, fid) = iprot.readFieldBegin()
16230
      if ftype == TType.STOP:
16231
        break
16232
      if fid == 1:
16233
        if ftype == TType.STRUCT:
16234
          self.campaign = Campaign()
16235
          self.campaign.read(iprot)
16236
        else:
16237
          iprot.skip(ftype)
16238
      else:
16239
        iprot.skip(ftype)
16240
      iprot.readFieldEnd()
16241
    iprot.readStructEnd()
16242
 
16243
  def write(self, oprot):
16244
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16245
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16246
      return
16247
    oprot.writeStructBegin('addCampaign_args')
16248
    if self.campaign is not None:
16249
      oprot.writeFieldBegin('campaign', TType.STRUCT, 1)
16250
      self.campaign.write(oprot)
16251
      oprot.writeFieldEnd()
16252
    oprot.writeFieldStop()
16253
    oprot.writeStructEnd()
16254
 
16255
  def validate(self):
16256
    return
16257
 
16258
 
16259
  def __repr__(self):
16260
    L = ['%s=%r' % (key, value)
16261
      for key, value in self.__dict__.iteritems()]
16262
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16263
 
16264
  def __eq__(self, other):
16265
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16266
 
16267
  def __ne__(self, other):
16268
    return not (self == other)
16269
 
16270
class addCampaign_result:
16271
 
16272
  thrift_spec = (
16273
  )
16274
 
16275
  def read(self, iprot):
16276
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16277
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16278
      return
16279
    iprot.readStructBegin()
16280
    while True:
16281
      (fname, ftype, fid) = iprot.readFieldBegin()
16282
      if ftype == TType.STOP:
16283
        break
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('addCampaign_result')
16294
    oprot.writeFieldStop()
16295
    oprot.writeStructEnd()
16296
 
16297
  def validate(self):
16298
    return
16299
 
16300
 
16301
  def __repr__(self):
16302
    L = ['%s=%r' % (key, value)
16303
      for key, value in self.__dict__.iteritems()]
16304
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16305
 
16306
  def __eq__(self, other):
16307
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16308
 
16309
  def __ne__(self, other):
16310
    return not (self == other)
16311
 
16312
class getCampaigns_args:
16313
  """
16314
  Attributes:
16315
   - campaignName
16316
  """
16317
 
16318
  thrift_spec = (
16319
    None, # 0
16320
    (1, TType.STRING, 'campaignName', None, None, ), # 1
16321
  )
16322
 
16323
  def __init__(self, campaignName=None,):
16324
    self.campaignName = campaignName
16325
 
16326
  def read(self, iprot):
16327
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16328
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16329
      return
16330
    iprot.readStructBegin()
16331
    while True:
16332
      (fname, ftype, fid) = iprot.readFieldBegin()
16333
      if ftype == TType.STOP:
16334
        break
16335
      if fid == 1:
16336
        if ftype == TType.STRING:
16337
          self.campaignName = iprot.readString();
16338
        else:
16339
          iprot.skip(ftype)
16340
      else:
16341
        iprot.skip(ftype)
16342
      iprot.readFieldEnd()
16343
    iprot.readStructEnd()
16344
 
16345
  def write(self, oprot):
16346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16348
      return
16349
    oprot.writeStructBegin('getCampaigns_args')
16350
    if self.campaignName is not None:
16351
      oprot.writeFieldBegin('campaignName', TType.STRING, 1)
16352
      oprot.writeString(self.campaignName)
16353
      oprot.writeFieldEnd()
16354
    oprot.writeFieldStop()
16355
    oprot.writeStructEnd()
16356
 
16357
  def validate(self):
16358
    return
16359
 
16360
 
16361
  def __repr__(self):
16362
    L = ['%s=%r' % (key, value)
16363
      for key, value in self.__dict__.iteritems()]
16364
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16365
 
16366
  def __eq__(self, other):
16367
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16368
 
16369
  def __ne__(self, other):
16370
    return not (self == other)
16371
 
16372
class getCampaigns_result:
16373
  """
16374
  Attributes:
16375
   - success
16376
  """
16377
 
16378
  thrift_spec = (
16379
    (0, TType.LIST, 'success', (TType.STRUCT,(Campaign, Campaign.thrift_spec)), None, ), # 0
16380
  )
16381
 
16382
  def __init__(self, success=None,):
16383
    self.success = success
16384
 
16385
  def read(self, iprot):
16386
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16387
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16388
      return
16389
    iprot.readStructBegin()
16390
    while True:
16391
      (fname, ftype, fid) = iprot.readFieldBegin()
16392
      if ftype == TType.STOP:
16393
        break
16394
      if fid == 0:
16395
        if ftype == TType.LIST:
16396
          self.success = []
12567 amit.gupta 16397
          (_etype258, _size255) = iprot.readListBegin()
16398
          for _i259 in xrange(_size255):
16399
            _elem260 = Campaign()
16400
            _elem260.read(iprot)
16401
            self.success.append(_elem260)
8579 kshitij.so 16402
          iprot.readListEnd()
16403
        else:
16404
          iprot.skip(ftype)
16405
      else:
16406
        iprot.skip(ftype)
16407
      iprot.readFieldEnd()
16408
    iprot.readStructEnd()
16409
 
16410
  def write(self, oprot):
16411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16413
      return
16414
    oprot.writeStructBegin('getCampaigns_result')
16415
    if self.success is not None:
16416
      oprot.writeFieldBegin('success', TType.LIST, 0)
16417
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 16418
      for iter261 in self.success:
16419
        iter261.write(oprot)
8579 kshitij.so 16420
      oprot.writeListEnd()
16421
      oprot.writeFieldEnd()
16422
    oprot.writeFieldStop()
16423
    oprot.writeStructEnd()
16424
 
16425
  def validate(self):
16426
    return
16427
 
16428
 
16429
  def __repr__(self):
16430
    L = ['%s=%r' % (key, value)
16431
      for key, value in self.__dict__.iteritems()]
16432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16433
 
16434
  def __eq__(self, other):
16435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16436
 
16437
  def __ne__(self, other):
16438
    return not (self == other)
16439
 
16440
class deleteCampaign_args:
16441
  """
16442
  Attributes:
16443
   - campaignId
16444
  """
16445
 
16446
  thrift_spec = (
16447
    None, # 0
16448
    (1, TType.I64, 'campaignId', None, None, ), # 1
16449
  )
16450
 
16451
  def __init__(self, campaignId=None,):
16452
    self.campaignId = campaignId
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
      if fid == 1:
16464
        if ftype == TType.I64:
16465
          self.campaignId = iprot.readI64();
16466
        else:
16467
          iprot.skip(ftype)
16468
      else:
16469
        iprot.skip(ftype)
16470
      iprot.readFieldEnd()
16471
    iprot.readStructEnd()
16472
 
16473
  def write(self, oprot):
16474
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16475
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16476
      return
16477
    oprot.writeStructBegin('deleteCampaign_args')
16478
    if self.campaignId is not None:
16479
      oprot.writeFieldBegin('campaignId', TType.I64, 1)
16480
      oprot.writeI64(self.campaignId)
16481
      oprot.writeFieldEnd()
16482
    oprot.writeFieldStop()
16483
    oprot.writeStructEnd()
16484
 
16485
  def validate(self):
16486
    return
16487
 
16488
 
16489
  def __repr__(self):
16490
    L = ['%s=%r' % (key, value)
16491
      for key, value in self.__dict__.iteritems()]
16492
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16493
 
16494
  def __eq__(self, other):
16495
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16496
 
16497
  def __ne__(self, other):
16498
    return not (self == other)
16499
 
16500
class deleteCampaign_result:
16501
 
16502
  thrift_spec = (
16503
  )
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
      else:
16515
        iprot.skip(ftype)
16516
      iprot.readFieldEnd()
16517
    iprot.readStructEnd()
16518
 
16519
  def write(self, oprot):
16520
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16521
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16522
      return
16523
    oprot.writeStructBegin('deleteCampaign_result')
16524
    oprot.writeFieldStop()
16525
    oprot.writeStructEnd()
16526
 
16527
  def validate(self):
16528
    return
16529
 
16530
 
16531
  def __repr__(self):
16532
    L = ['%s=%r' % (key, value)
16533
      for key, value in self.__dict__.iteritems()]
16534
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16535
 
16536
  def __eq__(self, other):
16537
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16538
 
16539
  def __ne__(self, other):
16540
    return not (self == other)
16541
 
16542
class getAllCampaigns_args:
16543
 
16544
  thrift_spec = (
16545
  )
16546
 
16547
  def read(self, iprot):
16548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16550
      return
16551
    iprot.readStructBegin()
16552
    while True:
16553
      (fname, ftype, fid) = iprot.readFieldBegin()
16554
      if ftype == TType.STOP:
16555
        break
16556
      else:
16557
        iprot.skip(ftype)
16558
      iprot.readFieldEnd()
16559
    iprot.readStructEnd()
16560
 
16561
  def write(self, oprot):
16562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16564
      return
16565
    oprot.writeStructBegin('getAllCampaigns_args')
16566
    oprot.writeFieldStop()
16567
    oprot.writeStructEnd()
16568
 
16569
  def validate(self):
16570
    return
16571
 
16572
 
16573
  def __repr__(self):
16574
    L = ['%s=%r' % (key, value)
16575
      for key, value in self.__dict__.iteritems()]
16576
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16577
 
16578
  def __eq__(self, other):
16579
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16580
 
16581
  def __ne__(self, other):
16582
    return not (self == other)
16583
 
16584
class getAllCampaigns_result:
16585
  """
16586
  Attributes:
16587
   - success
16588
  """
16589
 
16590
  thrift_spec = (
16591
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
16592
  )
16593
 
16594
  def __init__(self, success=None,):
16595
    self.success = success
16596
 
16597
  def read(self, iprot):
16598
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16599
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16600
      return
16601
    iprot.readStructBegin()
16602
    while True:
16603
      (fname, ftype, fid) = iprot.readFieldBegin()
16604
      if ftype == TType.STOP:
16605
        break
16606
      if fid == 0:
16607
        if ftype == TType.LIST:
16608
          self.success = []
12567 amit.gupta 16609
          (_etype265, _size262) = iprot.readListBegin()
16610
          for _i266 in xrange(_size262):
16611
            _elem267 = iprot.readString();
16612
            self.success.append(_elem267)
8579 kshitij.so 16613
          iprot.readListEnd()
16614
        else:
16615
          iprot.skip(ftype)
16616
      else:
16617
        iprot.skip(ftype)
16618
      iprot.readFieldEnd()
16619
    iprot.readStructEnd()
16620
 
16621
  def write(self, oprot):
16622
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16623
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16624
      return
16625
    oprot.writeStructBegin('getAllCampaigns_result')
16626
    if self.success is not None:
16627
      oprot.writeFieldBegin('success', TType.LIST, 0)
16628
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 16629
      for iter268 in self.success:
16630
        oprot.writeString(iter268)
8579 kshitij.so 16631
      oprot.writeListEnd()
16632
      oprot.writeFieldEnd()
16633
    oprot.writeFieldStop()
16634
    oprot.writeStructEnd()
16635
 
16636
  def validate(self):
16637
    return
16638
 
16639
 
16640
  def __repr__(self):
16641
    L = ['%s=%r' % (key, value)
16642
      for key, value in self.__dict__.iteritems()]
16643
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16644
 
16645
  def __eq__(self, other):
16646
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16647
 
16648
  def __ne__(self, other):
16649
    return not (self == other)
16650
 
9155 kshitij.so 16651
class getActiveBannersForMobileSite_args:
16652
 
16653
  thrift_spec = (
16654
  )
16655
 
16656
  def read(self, iprot):
16657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16659
      return
16660
    iprot.readStructBegin()
16661
    while True:
16662
      (fname, ftype, fid) = iprot.readFieldBegin()
16663
      if ftype == TType.STOP:
16664
        break
16665
      else:
16666
        iprot.skip(ftype)
16667
      iprot.readFieldEnd()
16668
    iprot.readStructEnd()
16669
 
16670
  def write(self, oprot):
16671
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16672
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16673
      return
16674
    oprot.writeStructBegin('getActiveBannersForMobileSite_args')
16675
    oprot.writeFieldStop()
16676
    oprot.writeStructEnd()
16677
 
16678
  def validate(self):
16679
    return
16680
 
16681
 
16682
  def __repr__(self):
16683
    L = ['%s=%r' % (key, value)
16684
      for key, value in self.__dict__.iteritems()]
16685
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16686
 
16687
  def __eq__(self, other):
16688
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16689
 
16690
  def __ne__(self, other):
16691
    return not (self == other)
16692
 
16693
class getActiveBannersForMobileSite_result:
16694
  """
16695
  Attributes:
16696
   - success
16697
  """
16698
 
16699
  thrift_spec = (
16700
    (0, TType.MAP, 'success', (TType.STRING,None,TType.LIST,(TType.STRUCT,(Banner, Banner.thrift_spec))), None, ), # 0
16701
  )
16702
 
16703
  def __init__(self, success=None,):
16704
    self.success = success
16705
 
16706
  def read(self, iprot):
16707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16709
      return
16710
    iprot.readStructBegin()
16711
    while True:
16712
      (fname, ftype, fid) = iprot.readFieldBegin()
16713
      if ftype == TType.STOP:
16714
        break
16715
      if fid == 0:
16716
        if ftype == TType.MAP:
16717
          self.success = {}
12567 amit.gupta 16718
          (_ktype270, _vtype271, _size269 ) = iprot.readMapBegin() 
16719
          for _i273 in xrange(_size269):
16720
            _key274 = iprot.readString();
16721
            _val275 = []
16722
            (_etype279, _size276) = iprot.readListBegin()
16723
            for _i280 in xrange(_size276):
16724
              _elem281 = Banner()
16725
              _elem281.read(iprot)
16726
              _val275.append(_elem281)
9155 kshitij.so 16727
            iprot.readListEnd()
12567 amit.gupta 16728
            self.success[_key274] = _val275
9155 kshitij.so 16729
          iprot.readMapEnd()
16730
        else:
16731
          iprot.skip(ftype)
16732
      else:
16733
        iprot.skip(ftype)
16734
      iprot.readFieldEnd()
16735
    iprot.readStructEnd()
16736
 
16737
  def write(self, oprot):
16738
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16739
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16740
      return
16741
    oprot.writeStructBegin('getActiveBannersForMobileSite_result')
16742
    if self.success is not None:
16743
      oprot.writeFieldBegin('success', TType.MAP, 0)
16744
      oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.success))
12567 amit.gupta 16745
      for kiter282,viter283 in self.success.items():
16746
        oprot.writeString(kiter282)
16747
        oprot.writeListBegin(TType.STRUCT, len(viter283))
16748
        for iter284 in viter283:
16749
          iter284.write(oprot)
9155 kshitij.so 16750
        oprot.writeListEnd()
16751
      oprot.writeMapEnd()
16752
      oprot.writeFieldEnd()
16753
    oprot.writeFieldStop()
16754
    oprot.writeStructEnd()
16755
 
16756
  def validate(self):
16757
    return
16758
 
16759
 
16760
  def __repr__(self):
16761
    L = ['%s=%r' % (key, value)
16762
      for key, value in self.__dict__.iteritems()]
16763
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16764
 
16765
  def __eq__(self, other):
16766
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16767
 
16768
  def __ne__(self, other):
16769
    return not (self == other)
16770
 
5944 mandeep.dh 16771
class deleteSimilarItem_args:
16772
  """
16773
  Attributes:
16774
   - itemId
16775
   - catalogItemId
16776
  """
16777
 
16778
  thrift_spec = (
16779
    None, # 0
16780
    (1, TType.I64, 'itemId', None, None, ), # 1
16781
    (2, TType.I64, 'catalogItemId', None, None, ), # 2
16782
  )
16783
 
16784
  def __init__(self, itemId=None, catalogItemId=None,):
16785
    self.itemId = itemId
16786
    self.catalogItemId = catalogItemId
16787
 
16788
  def read(self, iprot):
16789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16791
      return
16792
    iprot.readStructBegin()
16793
    while True:
16794
      (fname, ftype, fid) = iprot.readFieldBegin()
16795
      if ftype == TType.STOP:
16796
        break
16797
      if fid == 1:
16798
        if ftype == TType.I64:
16799
          self.itemId = iprot.readI64();
16800
        else:
16801
          iprot.skip(ftype)
16802
      elif fid == 2:
16803
        if ftype == TType.I64:
16804
          self.catalogItemId = iprot.readI64();
16805
        else:
16806
          iprot.skip(ftype)
16807
      else:
16808
        iprot.skip(ftype)
16809
      iprot.readFieldEnd()
16810
    iprot.readStructEnd()
16811
 
16812
  def write(self, oprot):
16813
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16814
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16815
      return
16816
    oprot.writeStructBegin('deleteSimilarItem_args')
16817
    if self.itemId is not None:
16818
      oprot.writeFieldBegin('itemId', TType.I64, 1)
16819
      oprot.writeI64(self.itemId)
16820
      oprot.writeFieldEnd()
16821
    if self.catalogItemId is not None:
16822
      oprot.writeFieldBegin('catalogItemId', TType.I64, 2)
16823
      oprot.writeI64(self.catalogItemId)
16824
      oprot.writeFieldEnd()
16825
    oprot.writeFieldStop()
16826
    oprot.writeStructEnd()
16827
 
16828
  def validate(self):
16829
    return
16830
 
16831
 
16832
  def __repr__(self):
16833
    L = ['%s=%r' % (key, value)
16834
      for key, value in self.__dict__.iteritems()]
16835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16836
 
16837
  def __eq__(self, other):
16838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16839
 
16840
  def __ne__(self, other):
16841
    return not (self == other)
16842
 
16843
class deleteSimilarItem_result:
16844
  """
16845
  Attributes:
16846
   - success
16847
   - cex
16848
  """
16849
 
16850
  thrift_spec = (
16851
    (0, TType.BOOL, 'success', None, None, ), # 0
16852
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
16853
  )
16854
 
16855
  def __init__(self, success=None, cex=None,):
16856
    self.success = success
16857
    self.cex = cex
16858
 
16859
  def read(self, iprot):
16860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16862
      return
16863
    iprot.readStructBegin()
16864
    while True:
16865
      (fname, ftype, fid) = iprot.readFieldBegin()
16866
      if ftype == TType.STOP:
16867
        break
16868
      if fid == 0:
16869
        if ftype == TType.BOOL:
16870
          self.success = iprot.readBool();
16871
        else:
16872
          iprot.skip(ftype)
16873
      elif fid == 1:
16874
        if ftype == TType.STRUCT:
16875
          self.cex = CatalogServiceException()
16876
          self.cex.read(iprot)
16877
        else:
16878
          iprot.skip(ftype)
16879
      else:
16880
        iprot.skip(ftype)
16881
      iprot.readFieldEnd()
16882
    iprot.readStructEnd()
16883
 
16884
  def write(self, oprot):
16885
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16886
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16887
      return
16888
    oprot.writeStructBegin('deleteSimilarItem_result')
16889
    if self.success is not None:
16890
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16891
      oprot.writeBool(self.success)
16892
      oprot.writeFieldEnd()
16893
    if self.cex is not None:
16894
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
16895
      self.cex.write(oprot)
16896
      oprot.writeFieldEnd()
16897
    oprot.writeFieldStop()
16898
    oprot.writeStructEnd()
16899
 
16900
  def validate(self):
16901
    return
16902
 
16903
 
16904
  def __repr__(self):
16905
    L = ['%s=%r' % (key, value)
16906
      for key, value in self.__dict__.iteritems()]
16907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16908
 
16909
  def __eq__(self, other):
16910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16911
 
16912
  def __ne__(self, other):
16913
    return not (self == other)
16914
 
16915
class checkSimilarItem_args:
16916
  """
16917
  Attributes:
16918
   - brand
16919
   - modelNumber
16920
   - modelName
16921
   - color
16922
  """
16923
 
16924
  thrift_spec = (
16925
    None, # 0
16926
    (1, TType.STRING, 'brand', None, None, ), # 1
16927
    (2, TType.STRING, 'modelNumber', None, None, ), # 2
16928
    (3, TType.STRING, 'modelName', None, None, ), # 3
16929
    (4, TType.STRING, 'color', None, None, ), # 4
16930
  )
16931
 
16932
  def __init__(self, brand=None, modelNumber=None, modelName=None, color=None,):
16933
    self.brand = brand
16934
    self.modelNumber = modelNumber
16935
    self.modelName = modelName
16936
    self.color = color
16937
 
16938
  def read(self, iprot):
16939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16941
      return
16942
    iprot.readStructBegin()
16943
    while True:
16944
      (fname, ftype, fid) = iprot.readFieldBegin()
16945
      if ftype == TType.STOP:
16946
        break
16947
      if fid == 1:
16948
        if ftype == TType.STRING:
16949
          self.brand = iprot.readString();
16950
        else:
16951
          iprot.skip(ftype)
16952
      elif fid == 2:
16953
        if ftype == TType.STRING:
16954
          self.modelNumber = iprot.readString();
16955
        else:
16956
          iprot.skip(ftype)
16957
      elif fid == 3:
16958
        if ftype == TType.STRING:
16959
          self.modelName = iprot.readString();
16960
        else:
16961
          iprot.skip(ftype)
16962
      elif fid == 4:
16963
        if ftype == TType.STRING:
16964
          self.color = iprot.readString();
16965
        else:
16966
          iprot.skip(ftype)
16967
      else:
16968
        iprot.skip(ftype)
16969
      iprot.readFieldEnd()
16970
    iprot.readStructEnd()
16971
 
16972
  def write(self, oprot):
16973
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16974
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16975
      return
16976
    oprot.writeStructBegin('checkSimilarItem_args')
16977
    if self.brand is not None:
16978
      oprot.writeFieldBegin('brand', TType.STRING, 1)
16979
      oprot.writeString(self.brand)
16980
      oprot.writeFieldEnd()
16981
    if self.modelNumber is not None:
16982
      oprot.writeFieldBegin('modelNumber', TType.STRING, 2)
16983
      oprot.writeString(self.modelNumber)
16984
      oprot.writeFieldEnd()
16985
    if self.modelName is not None:
16986
      oprot.writeFieldBegin('modelName', TType.STRING, 3)
16987
      oprot.writeString(self.modelName)
16988
      oprot.writeFieldEnd()
16989
    if self.color is not None:
16990
      oprot.writeFieldBegin('color', TType.STRING, 4)
16991
      oprot.writeString(self.color)
16992
      oprot.writeFieldEnd()
16993
    oprot.writeFieldStop()
16994
    oprot.writeStructEnd()
16995
 
16996
  def validate(self):
16997
    return
16998
 
16999
 
17000
  def __repr__(self):
17001
    L = ['%s=%r' % (key, value)
17002
      for key, value in self.__dict__.iteritems()]
17003
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17004
 
17005
  def __eq__(self, other):
17006
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17007
 
17008
  def __ne__(self, other):
17009
    return not (self == other)
17010
 
17011
class checkSimilarItem_result:
17012
  """
17013
  Attributes:
17014
   - success
17015
  """
17016
 
17017
  thrift_spec = (
17018
    (0, TType.I64, 'success', None, None, ), # 0
17019
  )
17020
 
17021
  def __init__(self, success=None,):
17022
    self.success = success
17023
 
17024
  def read(self, iprot):
17025
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17026
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17027
      return
17028
    iprot.readStructBegin()
17029
    while True:
17030
      (fname, ftype, fid) = iprot.readFieldBegin()
17031
      if ftype == TType.STOP:
17032
        break
17033
      if fid == 0:
17034
        if ftype == TType.I64:
17035
          self.success = iprot.readI64();
17036
        else:
17037
          iprot.skip(ftype)
17038
      else:
17039
        iprot.skip(ftype)
17040
      iprot.readFieldEnd()
17041
    iprot.readStructEnd()
17042
 
17043
  def write(self, oprot):
17044
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17045
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17046
      return
17047
    oprot.writeStructBegin('checkSimilarItem_result')
17048
    if self.success is not None:
17049
      oprot.writeFieldBegin('success', TType.I64, 0)
17050
      oprot.writeI64(self.success)
17051
      oprot.writeFieldEnd()
17052
    oprot.writeFieldStop()
17053
    oprot.writeStructEnd()
17054
 
17055
  def validate(self):
17056
    return
17057
 
17058
 
17059
  def __repr__(self):
17060
    L = ['%s=%r' % (key, value)
17061
      for key, value in self.__dict__.iteritems()]
17062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17063
 
17064
  def __eq__(self, other):
17065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17066
 
17067
  def __ne__(self, other):
17068
    return not (self == other)
17069
 
17070
class validateRiskyStatus_args:
17071
  """
17072
  Attributes:
17073
   - itemId
17074
  """
17075
 
17076
  thrift_spec = (
17077
    None, # 0
17078
    (1, TType.I64, 'itemId', None, None, ), # 1
17079
  )
17080
 
17081
  def __init__(self, itemId=None,):
17082
    self.itemId = itemId
17083
 
17084
  def read(self, iprot):
17085
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17086
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17087
      return
17088
    iprot.readStructBegin()
17089
    while True:
17090
      (fname, ftype, fid) = iprot.readFieldBegin()
17091
      if ftype == TType.STOP:
17092
        break
17093
      if fid == 1:
17094
        if ftype == TType.I64:
17095
          self.itemId = iprot.readI64();
17096
        else:
17097
          iprot.skip(ftype)
17098
      else:
17099
        iprot.skip(ftype)
17100
      iprot.readFieldEnd()
17101
    iprot.readStructEnd()
17102
 
17103
  def write(self, oprot):
17104
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17105
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17106
      return
17107
    oprot.writeStructBegin('validateRiskyStatus_args')
17108
    if self.itemId is not None:
17109
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17110
      oprot.writeI64(self.itemId)
17111
      oprot.writeFieldEnd()
17112
    oprot.writeFieldStop()
17113
    oprot.writeStructEnd()
17114
 
17115
  def validate(self):
17116
    return
17117
 
17118
 
17119
  def __repr__(self):
17120
    L = ['%s=%r' % (key, value)
17121
      for key, value in self.__dict__.iteritems()]
17122
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17123
 
17124
  def __eq__(self, other):
17125
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17126
 
17127
  def __ne__(self, other):
17128
    return not (self == other)
17129
 
17130
class validateRiskyStatus_result:
17131
 
17132
  thrift_spec = (
17133
  )
17134
 
17135
  def read(self, iprot):
17136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17138
      return
17139
    iprot.readStructBegin()
17140
    while True:
17141
      (fname, ftype, fid) = iprot.readFieldBegin()
17142
      if ftype == TType.STOP:
17143
        break
17144
      else:
17145
        iprot.skip(ftype)
17146
      iprot.readFieldEnd()
17147
    iprot.readStructEnd()
17148
 
17149
  def write(self, oprot):
17150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17152
      return
17153
    oprot.writeStructBegin('validateRiskyStatus_result')
17154
    oprot.writeFieldStop()
17155
    oprot.writeStructEnd()
17156
 
17157
  def validate(self):
17158
    return
17159
 
17160
 
17161
  def __repr__(self):
17162
    L = ['%s=%r' % (key, value)
17163
      for key, value in self.__dict__.iteritems()]
17164
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17165
 
17166
  def __eq__(self, other):
17167
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17168
 
17169
  def __ne__(self, other):
17170
    return not (self == other)
17171
 
17172
class changeItemRiskyFlag_args:
17173
  """
17174
  Attributes:
17175
   - itemId
17176
   - risky
17177
  """
17178
 
17179
  thrift_spec = (
17180
    None, # 0
17181
    (1, TType.I64, 'itemId', None, None, ), # 1
17182
    (2, TType.BOOL, 'risky', None, None, ), # 2
17183
  )
17184
 
17185
  def __init__(self, itemId=None, risky=None,):
17186
    self.itemId = itemId
17187
    self.risky = risky
17188
 
17189
  def read(self, iprot):
17190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17192
      return
17193
    iprot.readStructBegin()
17194
    while True:
17195
      (fname, ftype, fid) = iprot.readFieldBegin()
17196
      if ftype == TType.STOP:
17197
        break
17198
      if fid == 1:
17199
        if ftype == TType.I64:
17200
          self.itemId = iprot.readI64();
17201
        else:
17202
          iprot.skip(ftype)
17203
      elif fid == 2:
17204
        if ftype == TType.BOOL:
17205
          self.risky = iprot.readBool();
17206
        else:
17207
          iprot.skip(ftype)
17208
      else:
17209
        iprot.skip(ftype)
17210
      iprot.readFieldEnd()
17211
    iprot.readStructEnd()
17212
 
17213
  def write(self, oprot):
17214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17216
      return
17217
    oprot.writeStructBegin('changeItemRiskyFlag_args')
17218
    if self.itemId is not None:
17219
      oprot.writeFieldBegin('itemId', TType.I64, 1)
17220
      oprot.writeI64(self.itemId)
17221
      oprot.writeFieldEnd()
17222
    if self.risky is not None:
17223
      oprot.writeFieldBegin('risky', TType.BOOL, 2)
17224
      oprot.writeBool(self.risky)
17225
      oprot.writeFieldEnd()
17226
    oprot.writeFieldStop()
17227
    oprot.writeStructEnd()
17228
 
17229
  def validate(self):
17230
    return
17231
 
17232
 
17233
  def __repr__(self):
17234
    L = ['%s=%r' % (key, value)
17235
      for key, value in self.__dict__.iteritems()]
17236
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17237
 
17238
  def __eq__(self, other):
17239
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17240
 
17241
  def __ne__(self, other):
17242
    return not (self == other)
17243
 
17244
class changeItemRiskyFlag_result:
17245
 
17246
  thrift_spec = (
17247
  )
17248
 
17249
  def read(self, iprot):
17250
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17251
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17252
      return
17253
    iprot.readStructBegin()
17254
    while True:
17255
      (fname, ftype, fid) = iprot.readFieldBegin()
17256
      if ftype == TType.STOP:
17257
        break
17258
      else:
17259
        iprot.skip(ftype)
17260
      iprot.readFieldEnd()
17261
    iprot.readStructEnd()
17262
 
17263
  def write(self, oprot):
17264
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17265
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17266
      return
17267
    oprot.writeStructBegin('changeItemRiskyFlag_result')
17268
    oprot.writeFieldStop()
17269
    oprot.writeStructEnd()
17270
 
17271
  def validate(self):
17272
    return
17273
 
17274
 
17275
  def __repr__(self):
17276
    L = ['%s=%r' % (key, value)
17277
      for key, value in self.__dict__.iteritems()]
17278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17279
 
17280
  def __eq__(self, other):
17281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17282
 
17283
  def __ne__(self, other):
17284
    return not (self == other)
17285
 
17286
class getItemsByRiskyFlag_args:
17287
 
17288
  thrift_spec = (
17289
  )
17290
 
17291
  def read(self, iprot):
17292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17294
      return
17295
    iprot.readStructBegin()
17296
    while True:
17297
      (fname, ftype, fid) = iprot.readFieldBegin()
17298
      if ftype == TType.STOP:
17299
        break
17300
      else:
17301
        iprot.skip(ftype)
17302
      iprot.readFieldEnd()
17303
    iprot.readStructEnd()
17304
 
17305
  def write(self, oprot):
17306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17308
      return
17309
    oprot.writeStructBegin('getItemsByRiskyFlag_args')
17310
    oprot.writeFieldStop()
17311
    oprot.writeStructEnd()
17312
 
17313
  def validate(self):
17314
    return
17315
 
17316
 
17317
  def __repr__(self):
17318
    L = ['%s=%r' % (key, value)
17319
      for key, value in self.__dict__.iteritems()]
17320
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17321
 
17322
  def __eq__(self, other):
17323
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17324
 
17325
  def __ne__(self, other):
17326
    return not (self == other)
17327
 
17328
class getItemsByRiskyFlag_result:
17329
  """
17330
  Attributes:
17331
   - success
17332
  """
17333
 
17334
  thrift_spec = (
17335
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17336
  )
17337
 
17338
  def __init__(self, success=None,):
17339
    self.success = success
17340
 
17341
  def read(self, iprot):
17342
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17343
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17344
      return
17345
    iprot.readStructBegin()
17346
    while True:
17347
      (fname, ftype, fid) = iprot.readFieldBegin()
17348
      if ftype == TType.STOP:
17349
        break
17350
      if fid == 0:
17351
        if ftype == TType.LIST:
17352
          self.success = []
12567 amit.gupta 17353
          (_etype288, _size285) = iprot.readListBegin()
17354
          for _i289 in xrange(_size285):
17355
            _elem290 = Item()
17356
            _elem290.read(iprot)
17357
            self.success.append(_elem290)
5944 mandeep.dh 17358
          iprot.readListEnd()
17359
        else:
17360
          iprot.skip(ftype)
17361
      else:
17362
        iprot.skip(ftype)
17363
      iprot.readFieldEnd()
17364
    iprot.readStructEnd()
17365
 
17366
  def write(self, oprot):
17367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17369
      return
17370
    oprot.writeStructBegin('getItemsByRiskyFlag_result')
17371
    if self.success is not None:
17372
      oprot.writeFieldBegin('success', TType.LIST, 0)
17373
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17374
      for iter291 in self.success:
17375
        iter291.write(oprot)
5944 mandeep.dh 17376
      oprot.writeListEnd()
17377
      oprot.writeFieldEnd()
17378
    oprot.writeFieldStop()
17379
    oprot.writeStructEnd()
17380
 
17381
  def validate(self):
17382
    return
17383
 
17384
 
17385
  def __repr__(self):
17386
    L = ['%s=%r' % (key, value)
17387
      for key, value in self.__dict__.iteritems()]
17388
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17389
 
17390
  def __eq__(self, other):
17391
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17392
 
17393
  def __ne__(self, other):
17394
    return not (self == other)
17395
 
17396
class getItemsForMasterSheet_args:
17397
  """
17398
  Attributes:
17399
   - category
17400
   - brand
17401
  """
17402
 
17403
  thrift_spec = (
17404
    None, # 0
17405
    (1, TType.STRING, 'category', None, None, ), # 1
17406
    (2, TType.STRING, 'brand', None, None, ), # 2
17407
  )
17408
 
17409
  def __init__(self, category=None, brand=None,):
17410
    self.category = category
17411
    self.brand = brand
17412
 
17413
  def read(self, iprot):
17414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17416
      return
17417
    iprot.readStructBegin()
17418
    while True:
17419
      (fname, ftype, fid) = iprot.readFieldBegin()
17420
      if ftype == TType.STOP:
17421
        break
17422
      if fid == 1:
17423
        if ftype == TType.STRING:
17424
          self.category = iprot.readString();
17425
        else:
17426
          iprot.skip(ftype)
17427
      elif fid == 2:
17428
        if ftype == TType.STRING:
17429
          self.brand = iprot.readString();
17430
        else:
17431
          iprot.skip(ftype)
17432
      else:
17433
        iprot.skip(ftype)
17434
      iprot.readFieldEnd()
17435
    iprot.readStructEnd()
17436
 
17437
  def write(self, oprot):
17438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17440
      return
17441
    oprot.writeStructBegin('getItemsForMasterSheet_args')
17442
    if self.category is not None:
17443
      oprot.writeFieldBegin('category', TType.STRING, 1)
17444
      oprot.writeString(self.category)
17445
      oprot.writeFieldEnd()
17446
    if self.brand is not None:
17447
      oprot.writeFieldBegin('brand', TType.STRING, 2)
17448
      oprot.writeString(self.brand)
17449
      oprot.writeFieldEnd()
17450
    oprot.writeFieldStop()
17451
    oprot.writeStructEnd()
17452
 
17453
  def validate(self):
17454
    return
17455
 
17456
 
17457
  def __repr__(self):
17458
    L = ['%s=%r' % (key, value)
17459
      for key, value in self.__dict__.iteritems()]
17460
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17461
 
17462
  def __eq__(self, other):
17463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17464
 
17465
  def __ne__(self, other):
17466
    return not (self == other)
17467
 
17468
class getItemsForMasterSheet_result:
17469
  """
17470
  Attributes:
17471
   - success
17472
  """
17473
 
17474
  thrift_spec = (
17475
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
17476
  )
17477
 
17478
  def __init__(self, success=None,):
17479
    self.success = success
17480
 
17481
  def read(self, iprot):
17482
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17483
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17484
      return
17485
    iprot.readStructBegin()
17486
    while True:
17487
      (fname, ftype, fid) = iprot.readFieldBegin()
17488
      if ftype == TType.STOP:
17489
        break
17490
      if fid == 0:
17491
        if ftype == TType.LIST:
17492
          self.success = []
12567 amit.gupta 17493
          (_etype295, _size292) = iprot.readListBegin()
17494
          for _i296 in xrange(_size292):
17495
            _elem297 = Item()
17496
            _elem297.read(iprot)
17497
            self.success.append(_elem297)
5944 mandeep.dh 17498
          iprot.readListEnd()
17499
        else:
17500
          iprot.skip(ftype)
17501
      else:
17502
        iprot.skip(ftype)
17503
      iprot.readFieldEnd()
17504
    iprot.readStructEnd()
17505
 
17506
  def write(self, oprot):
17507
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17508
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17509
      return
17510
    oprot.writeStructBegin('getItemsForMasterSheet_result')
17511
    if self.success is not None:
17512
      oprot.writeFieldBegin('success', TType.LIST, 0)
17513
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 17514
      for iter298 in self.success:
17515
        iter298.write(oprot)
5944 mandeep.dh 17516
      oprot.writeListEnd()
17517
      oprot.writeFieldEnd()
17518
    oprot.writeFieldStop()
17519
    oprot.writeStructEnd()
17520
 
17521
  def validate(self):
17522
    return
17523
 
17524
 
17525
  def __repr__(self):
17526
    L = ['%s=%r' % (key, value)
17527
      for key, value in self.__dict__.iteritems()]
17528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17529
 
17530
  def __eq__(self, other):
17531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17532
 
17533
  def __ne__(self, other):
17534
    return not (self == other)
17535
 
17536
class getSimilarItemsCatalogIds_args:
17537
  """
17538
  Attributes:
17539
   - beginIndex
17540
   - totalItems
17541
   - itemId
17542
  """
17543
 
17544
  thrift_spec = (
17545
    None, # 0
17546
    (1, TType.I64, 'beginIndex', None, None, ), # 1
17547
    (2, TType.I64, 'totalItems', None, None, ), # 2
17548
    (3, TType.I64, 'itemId', None, None, ), # 3
17549
  )
17550
 
17551
  def __init__(self, beginIndex=None, totalItems=None, itemId=None,):
17552
    self.beginIndex = beginIndex
17553
    self.totalItems = totalItems
17554
    self.itemId = itemId
17555
 
17556
  def read(self, iprot):
17557
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17558
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17559
      return
17560
    iprot.readStructBegin()
17561
    while True:
17562
      (fname, ftype, fid) = iprot.readFieldBegin()
17563
      if ftype == TType.STOP:
17564
        break
17565
      if fid == 1:
17566
        if ftype == TType.I64:
17567
          self.beginIndex = iprot.readI64();
17568
        else:
17569
          iprot.skip(ftype)
17570
      elif fid == 2:
17571
        if ftype == TType.I64:
17572
          self.totalItems = iprot.readI64();
17573
        else:
17574
          iprot.skip(ftype)
17575
      elif fid == 3:
17576
        if ftype == TType.I64:
17577
          self.itemId = iprot.readI64();
17578
        else:
17579
          iprot.skip(ftype)
17580
      else:
17581
        iprot.skip(ftype)
17582
      iprot.readFieldEnd()
17583
    iprot.readStructEnd()
17584
 
17585
  def write(self, oprot):
17586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17588
      return
17589
    oprot.writeStructBegin('getSimilarItemsCatalogIds_args')
17590
    if self.beginIndex is not None:
17591
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
17592
      oprot.writeI64(self.beginIndex)
17593
      oprot.writeFieldEnd()
17594
    if self.totalItems is not None:
17595
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
17596
      oprot.writeI64(self.totalItems)
17597
      oprot.writeFieldEnd()
17598
    if self.itemId is not None:
17599
      oprot.writeFieldBegin('itemId', TType.I64, 3)
17600
      oprot.writeI64(self.itemId)
17601
      oprot.writeFieldEnd()
17602
    oprot.writeFieldStop()
17603
    oprot.writeStructEnd()
17604
 
17605
  def validate(self):
17606
    return
17607
 
17608
 
17609
  def __repr__(self):
17610
    L = ['%s=%r' % (key, value)
17611
      for key, value in self.__dict__.iteritems()]
17612
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17613
 
17614
  def __eq__(self, other):
17615
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17616
 
17617
  def __ne__(self, other):
17618
    return not (self == other)
17619
 
17620
class getSimilarItemsCatalogIds_result:
17621
  """
17622
  Attributes:
17623
   - success
17624
  """
17625
 
17626
  thrift_spec = (
17627
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
17628
  )
17629
 
17630
  def __init__(self, success=None,):
17631
    self.success = success
17632
 
17633
  def read(self, iprot):
17634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17636
      return
17637
    iprot.readStructBegin()
17638
    while True:
17639
      (fname, ftype, fid) = iprot.readFieldBegin()
17640
      if ftype == TType.STOP:
17641
        break
17642
      if fid == 0:
17643
        if ftype == TType.LIST:
17644
          self.success = []
12567 amit.gupta 17645
          (_etype302, _size299) = iprot.readListBegin()
17646
          for _i303 in xrange(_size299):
17647
            _elem304 = iprot.readI64();
17648
            self.success.append(_elem304)
5944 mandeep.dh 17649
          iprot.readListEnd()
17650
        else:
17651
          iprot.skip(ftype)
17652
      else:
17653
        iprot.skip(ftype)
17654
      iprot.readFieldEnd()
17655
    iprot.readStructEnd()
17656
 
17657
  def write(self, oprot):
17658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17660
      return
17661
    oprot.writeStructBegin('getSimilarItemsCatalogIds_result')
17662
    if self.success is not None:
17663
      oprot.writeFieldBegin('success', TType.LIST, 0)
17664
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 17665
      for iter305 in self.success:
17666
        oprot.writeI64(iter305)
5944 mandeep.dh 17667
      oprot.writeListEnd()
17668
      oprot.writeFieldEnd()
17669
    oprot.writeFieldStop()
17670
    oprot.writeStructEnd()
17671
 
17672
  def validate(self):
17673
    return
17674
 
17675
 
17676
  def __repr__(self):
17677
    L = ['%s=%r' % (key, value)
17678
      for key, value in self.__dict__.iteritems()]
17679
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17680
 
17681
  def __eq__(self, other):
17682
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17683
 
17684
  def __ne__(self, other):
17685
    return not (self == other)
17686
 
17687
class addProductNotification_args:
17688
  """
17689
  Attributes:
17690
   - itemId
17691
   - email
17692
  """
17693
 
17694
  thrift_spec = None
17695
  def __init__(self, itemId=None, email=None,):
17696
    self.itemId = itemId
17697
    self.email = email
17698
 
17699
  def read(self, iprot):
17700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17702
      return
17703
    iprot.readStructBegin()
17704
    while True:
17705
      (fname, ftype, fid) = iprot.readFieldBegin()
17706
      if ftype == TType.STOP:
17707
        break
17708
      if fid == -1:
17709
        if ftype == TType.I64:
17710
          self.itemId = iprot.readI64();
17711
        else:
17712
          iprot.skip(ftype)
17713
      elif fid == -2:
17714
        if ftype == TType.STRING:
17715
          self.email = iprot.readString();
17716
        else:
17717
          iprot.skip(ftype)
17718
      else:
17719
        iprot.skip(ftype)
17720
      iprot.readFieldEnd()
17721
    iprot.readStructEnd()
17722
 
17723
  def write(self, oprot):
17724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17726
      return
17727
    oprot.writeStructBegin('addProductNotification_args')
17728
    if self.email is not None:
17729
      oprot.writeFieldBegin('email', TType.STRING, -2)
17730
      oprot.writeString(self.email)
17731
      oprot.writeFieldEnd()
17732
    if self.itemId is not None:
17733
      oprot.writeFieldBegin('itemId', TType.I64, -1)
17734
      oprot.writeI64(self.itemId)
17735
      oprot.writeFieldEnd()
17736
    oprot.writeFieldStop()
17737
    oprot.writeStructEnd()
17738
 
17739
  def validate(self):
17740
    return
17741
 
17742
 
17743
  def __repr__(self):
17744
    L = ['%s=%r' % (key, value)
17745
      for key, value in self.__dict__.iteritems()]
17746
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17747
 
17748
  def __eq__(self, other):
17749
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17750
 
17751
  def __ne__(self, other):
17752
    return not (self == other)
17753
 
17754
class addProductNotification_result:
17755
  """
17756
  Attributes:
17757
   - success
17758
  """
17759
 
17760
  thrift_spec = (
17761
    (0, TType.BOOL, 'success', None, None, ), # 0
17762
  )
17763
 
17764
  def __init__(self, success=None,):
17765
    self.success = success
17766
 
17767
  def read(self, iprot):
17768
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17769
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17770
      return
17771
    iprot.readStructBegin()
17772
    while True:
17773
      (fname, ftype, fid) = iprot.readFieldBegin()
17774
      if ftype == TType.STOP:
17775
        break
17776
      if fid == 0:
17777
        if ftype == TType.BOOL:
17778
          self.success = iprot.readBool();
17779
        else:
17780
          iprot.skip(ftype)
17781
      else:
17782
        iprot.skip(ftype)
17783
      iprot.readFieldEnd()
17784
    iprot.readStructEnd()
17785
 
17786
  def write(self, oprot):
17787
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17788
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17789
      return
17790
    oprot.writeStructBegin('addProductNotification_result')
17791
    if self.success is not None:
17792
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17793
      oprot.writeBool(self.success)
17794
      oprot.writeFieldEnd()
17795
    oprot.writeFieldStop()
17796
    oprot.writeStructEnd()
17797
 
17798
  def validate(self):
17799
    return
17800
 
17801
 
17802
  def __repr__(self):
17803
    L = ['%s=%r' % (key, value)
17804
      for key, value in self.__dict__.iteritems()]
17805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17806
 
17807
  def __eq__(self, other):
17808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17809
 
17810
  def __ne__(self, other):
17811
    return not (self == other)
17812
 
17813
class sendProductNotifications_args:
17814
 
17815
  thrift_spec = (
17816
  )
17817
 
17818
  def read(self, iprot):
17819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17821
      return
17822
    iprot.readStructBegin()
17823
    while True:
17824
      (fname, ftype, fid) = iprot.readFieldBegin()
17825
      if ftype == TType.STOP:
17826
        break
17827
      else:
17828
        iprot.skip(ftype)
17829
      iprot.readFieldEnd()
17830
    iprot.readStructEnd()
17831
 
17832
  def write(self, oprot):
17833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17835
      return
17836
    oprot.writeStructBegin('sendProductNotifications_args')
17837
    oprot.writeFieldStop()
17838
    oprot.writeStructEnd()
17839
 
17840
  def validate(self):
17841
    return
17842
 
17843
 
17844
  def __repr__(self):
17845
    L = ['%s=%r' % (key, value)
17846
      for key, value in self.__dict__.iteritems()]
17847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17848
 
17849
  def __eq__(self, other):
17850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17851
 
17852
  def __ne__(self, other):
17853
    return not (self == other)
17854
 
17855
class sendProductNotifications_result:
17856
  """
17857
  Attributes:
17858
   - success
17859
  """
17860
 
17861
  thrift_spec = (
17862
    (0, TType.BOOL, 'success', None, None, ), # 0
17863
  )
17864
 
17865
  def __init__(self, success=None,):
17866
    self.success = success
17867
 
17868
  def read(self, iprot):
17869
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17870
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17871
      return
17872
    iprot.readStructBegin()
17873
    while True:
17874
      (fname, ftype, fid) = iprot.readFieldBegin()
17875
      if ftype == TType.STOP:
17876
        break
17877
      if fid == 0:
17878
        if ftype == TType.BOOL:
17879
          self.success = iprot.readBool();
17880
        else:
17881
          iprot.skip(ftype)
17882
      else:
17883
        iprot.skip(ftype)
17884
      iprot.readFieldEnd()
17885
    iprot.readStructEnd()
17886
 
17887
  def write(self, oprot):
17888
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17889
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17890
      return
17891
    oprot.writeStructBegin('sendProductNotifications_result')
17892
    if self.success is not None:
17893
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17894
      oprot.writeBool(self.success)
17895
      oprot.writeFieldEnd()
17896
    oprot.writeFieldStop()
17897
    oprot.writeStructEnd()
17898
 
17899
  def validate(self):
17900
    return
17901
 
17902
 
17903
  def __repr__(self):
17904
    L = ['%s=%r' % (key, value)
17905
      for key, value in self.__dict__.iteritems()]
17906
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17907
 
17908
  def __eq__(self, other):
17909
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17910
 
17911
  def __ne__(self, other):
17912
    return not (self == other)
17913
 
17914
class getAllBrandsByCategory_args:
17915
  """
17916
  Attributes:
17917
   - categoryId
17918
  """
17919
 
17920
  thrift_spec = (
17921
    None, # 0
17922
    (1, TType.I64, 'categoryId', None, None, ), # 1
17923
  )
17924
 
17925
  def __init__(self, categoryId=None,):
17926
    self.categoryId = categoryId
17927
 
17928
  def read(self, iprot):
17929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17931
      return
17932
    iprot.readStructBegin()
17933
    while True:
17934
      (fname, ftype, fid) = iprot.readFieldBegin()
17935
      if ftype == TType.STOP:
17936
        break
17937
      if fid == 1:
17938
        if ftype == TType.I64:
17939
          self.categoryId = iprot.readI64();
17940
        else:
17941
          iprot.skip(ftype)
17942
      else:
17943
        iprot.skip(ftype)
17944
      iprot.readFieldEnd()
17945
    iprot.readStructEnd()
17946
 
17947
  def write(self, oprot):
17948
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17949
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17950
      return
17951
    oprot.writeStructBegin('getAllBrandsByCategory_args')
17952
    if self.categoryId is not None:
17953
      oprot.writeFieldBegin('categoryId', TType.I64, 1)
17954
      oprot.writeI64(self.categoryId)
17955
      oprot.writeFieldEnd()
17956
    oprot.writeFieldStop()
17957
    oprot.writeStructEnd()
17958
 
17959
  def validate(self):
17960
    return
17961
 
17962
 
17963
  def __repr__(self):
17964
    L = ['%s=%r' % (key, value)
17965
      for key, value in self.__dict__.iteritems()]
17966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17967
 
17968
  def __eq__(self, other):
17969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17970
 
17971
  def __ne__(self, other):
17972
    return not (self == other)
17973
 
17974
class getAllBrandsByCategory_result:
17975
  """
17976
  Attributes:
17977
   - success
17978
  """
17979
 
17980
  thrift_spec = (
17981
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
17982
  )
17983
 
17984
  def __init__(self, success=None,):
17985
    self.success = success
17986
 
17987
  def read(self, iprot):
17988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17990
      return
17991
    iprot.readStructBegin()
17992
    while True:
17993
      (fname, ftype, fid) = iprot.readFieldBegin()
17994
      if ftype == TType.STOP:
17995
        break
17996
      if fid == 0:
17997
        if ftype == TType.LIST:
17998
          self.success = []
12567 amit.gupta 17999
          (_etype309, _size306) = iprot.readListBegin()
18000
          for _i310 in xrange(_size306):
18001
            _elem311 = iprot.readString();
18002
            self.success.append(_elem311)
5944 mandeep.dh 18003
          iprot.readListEnd()
18004
        else:
18005
          iprot.skip(ftype)
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('getAllBrandsByCategory_result')
18016
    if self.success is not None:
18017
      oprot.writeFieldBegin('success', TType.LIST, 0)
18018
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18019
      for iter312 in self.success:
18020
        oprot.writeString(iter312)
5944 mandeep.dh 18021
      oprot.writeListEnd()
18022
      oprot.writeFieldEnd()
18023
    oprot.writeFieldStop()
18024
    oprot.writeStructEnd()
18025
 
18026
  def validate(self):
18027
    return
18028
 
18029
 
18030
  def __repr__(self):
18031
    L = ['%s=%r' % (key, value)
18032
      for key, value in self.__dict__.iteritems()]
18033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18034
 
18035
  def __eq__(self, other):
18036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18037
 
18038
  def __ne__(self, other):
18039
    return not (self == other)
18040
 
18041
class getAllBrands_args:
18042
 
18043
  thrift_spec = (
18044
  )
18045
 
18046
  def read(self, iprot):
18047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18049
      return
18050
    iprot.readStructBegin()
18051
    while True:
18052
      (fname, ftype, fid) = iprot.readFieldBegin()
18053
      if ftype == TType.STOP:
18054
        break
18055
      else:
18056
        iprot.skip(ftype)
18057
      iprot.readFieldEnd()
18058
    iprot.readStructEnd()
18059
 
18060
  def write(self, oprot):
18061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18063
      return
18064
    oprot.writeStructBegin('getAllBrands_args')
18065
    oprot.writeFieldStop()
18066
    oprot.writeStructEnd()
18067
 
18068
  def validate(self):
18069
    return
18070
 
18071
 
18072
  def __repr__(self):
18073
    L = ['%s=%r' % (key, value)
18074
      for key, value in self.__dict__.iteritems()]
18075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18076
 
18077
  def __eq__(self, other):
18078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18079
 
18080
  def __ne__(self, other):
18081
    return not (self == other)
18082
 
18083
class getAllBrands_result:
18084
  """
18085
  Attributes:
18086
   - success
18087
  """
18088
 
18089
  thrift_spec = (
18090
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
18091
  )
18092
 
18093
  def __init__(self, success=None,):
18094
    self.success = success
18095
 
18096
  def read(self, iprot):
18097
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18098
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18099
      return
18100
    iprot.readStructBegin()
18101
    while True:
18102
      (fname, ftype, fid) = iprot.readFieldBegin()
18103
      if ftype == TType.STOP:
18104
        break
18105
      if fid == 0:
18106
        if ftype == TType.LIST:
18107
          self.success = []
12567 amit.gupta 18108
          (_etype316, _size313) = iprot.readListBegin()
18109
          for _i317 in xrange(_size313):
18110
            _elem318 = iprot.readString();
18111
            self.success.append(_elem318)
5944 mandeep.dh 18112
          iprot.readListEnd()
18113
        else:
18114
          iprot.skip(ftype)
18115
      else:
18116
        iprot.skip(ftype)
18117
      iprot.readFieldEnd()
18118
    iprot.readStructEnd()
18119
 
18120
  def write(self, oprot):
18121
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18123
      return
18124
    oprot.writeStructBegin('getAllBrands_result')
18125
    if self.success is not None:
18126
      oprot.writeFieldBegin('success', TType.LIST, 0)
18127
      oprot.writeListBegin(TType.STRING, len(self.success))
12567 amit.gupta 18128
      for iter319 in self.success:
18129
        oprot.writeString(iter319)
5944 mandeep.dh 18130
      oprot.writeListEnd()
18131
      oprot.writeFieldEnd()
18132
    oprot.writeFieldStop()
18133
    oprot.writeStructEnd()
18134
 
18135
  def validate(self):
18136
    return
18137
 
18138
 
18139
  def __repr__(self):
18140
    L = ['%s=%r' % (key, value)
18141
      for key, value in self.__dict__.iteritems()]
18142
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18143
 
18144
  def __eq__(self, other):
18145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18146
 
18147
  def __ne__(self, other):
18148
    return not (self == other)
18149
 
18150
class getAllSources_args:
18151
 
18152
  thrift_spec = (
18153
  )
18154
 
18155
  def read(self, iprot):
18156
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18157
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18158
      return
18159
    iprot.readStructBegin()
18160
    while True:
18161
      (fname, ftype, fid) = iprot.readFieldBegin()
18162
      if ftype == TType.STOP:
18163
        break
18164
      else:
18165
        iprot.skip(ftype)
18166
      iprot.readFieldEnd()
18167
    iprot.readStructEnd()
18168
 
18169
  def write(self, oprot):
18170
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18171
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18172
      return
18173
    oprot.writeStructBegin('getAllSources_args')
18174
    oprot.writeFieldStop()
18175
    oprot.writeStructEnd()
18176
 
18177
  def validate(self):
18178
    return
18179
 
18180
 
18181
  def __repr__(self):
18182
    L = ['%s=%r' % (key, value)
18183
      for key, value in self.__dict__.iteritems()]
18184
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18185
 
18186
  def __eq__(self, other):
18187
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18188
 
18189
  def __ne__(self, other):
18190
    return not (self == other)
18191
 
18192
class getAllSources_result:
18193
  """
18194
  Attributes:
18195
   - success
18196
  """
18197
 
18198
  thrift_spec = (
18199
    (0, TType.LIST, 'success', (TType.STRUCT,(Source, Source.thrift_spec)), None, ), # 0
18200
  )
18201
 
18202
  def __init__(self, success=None,):
18203
    self.success = success
18204
 
18205
  def read(self, iprot):
18206
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18207
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18208
      return
18209
    iprot.readStructBegin()
18210
    while True:
18211
      (fname, ftype, fid) = iprot.readFieldBegin()
18212
      if ftype == TType.STOP:
18213
        break
18214
      if fid == 0:
18215
        if ftype == TType.LIST:
18216
          self.success = []
12567 amit.gupta 18217
          (_etype323, _size320) = iprot.readListBegin()
18218
          for _i324 in xrange(_size320):
18219
            _elem325 = Source()
18220
            _elem325.read(iprot)
18221
            self.success.append(_elem325)
5944 mandeep.dh 18222
          iprot.readListEnd()
18223
        else:
18224
          iprot.skip(ftype)
18225
      else:
18226
        iprot.skip(ftype)
18227
      iprot.readFieldEnd()
18228
    iprot.readStructEnd()
18229
 
18230
  def write(self, oprot):
18231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18233
      return
18234
    oprot.writeStructBegin('getAllSources_result')
18235
    if self.success is not None:
18236
      oprot.writeFieldBegin('success', TType.LIST, 0)
18237
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18238
      for iter326 in self.success:
18239
        iter326.write(oprot)
5944 mandeep.dh 18240
      oprot.writeListEnd()
18241
      oprot.writeFieldEnd()
18242
    oprot.writeFieldStop()
18243
    oprot.writeStructEnd()
18244
 
18245
  def validate(self):
18246
    return
18247
 
18248
 
18249
  def __repr__(self):
18250
    L = ['%s=%r' % (key, value)
18251
      for key, value in self.__dict__.iteritems()]
18252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18253
 
18254
  def __eq__(self, other):
18255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18256
 
18257
  def __ne__(self, other):
18258
    return not (self == other)
18259
 
18260
class getItemPricingBySource_args:
18261
  """
18262
  Attributes:
18263
   - itemId
18264
   - sourceId
18265
  """
18266
 
18267
  thrift_spec = (
18268
    None, # 0
18269
    (1, TType.I64, 'itemId', None, None, ), # 1
18270
    (2, TType.I64, 'sourceId', None, None, ), # 2
18271
  )
18272
 
18273
  def __init__(self, itemId=None, sourceId=None,):
18274
    self.itemId = itemId
18275
    self.sourceId = sourceId
18276
 
18277
  def read(self, iprot):
18278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18280
      return
18281
    iprot.readStructBegin()
18282
    while True:
18283
      (fname, ftype, fid) = iprot.readFieldBegin()
18284
      if ftype == TType.STOP:
18285
        break
18286
      if fid == 1:
18287
        if ftype == TType.I64:
18288
          self.itemId = iprot.readI64();
18289
        else:
18290
          iprot.skip(ftype)
18291
      elif fid == 2:
18292
        if ftype == TType.I64:
18293
          self.sourceId = iprot.readI64();
18294
        else:
18295
          iprot.skip(ftype)
18296
      else:
18297
        iprot.skip(ftype)
18298
      iprot.readFieldEnd()
18299
    iprot.readStructEnd()
18300
 
18301
  def write(self, oprot):
18302
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18303
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18304
      return
18305
    oprot.writeStructBegin('getItemPricingBySource_args')
18306
    if self.itemId is not None:
18307
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18308
      oprot.writeI64(self.itemId)
18309
      oprot.writeFieldEnd()
18310
    if self.sourceId is not None:
18311
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18312
      oprot.writeI64(self.sourceId)
18313
      oprot.writeFieldEnd()
18314
    oprot.writeFieldStop()
18315
    oprot.writeStructEnd()
18316
 
18317
  def validate(self):
18318
    return
18319
 
18320
 
18321
  def __repr__(self):
18322
    L = ['%s=%r' % (key, value)
18323
      for key, value in self.__dict__.iteritems()]
18324
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18325
 
18326
  def __eq__(self, other):
18327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18328
 
18329
  def __ne__(self, other):
18330
    return not (self == other)
18331
 
18332
class getItemPricingBySource_result:
18333
  """
18334
  Attributes:
18335
   - success
18336
   - cex
18337
  """
18338
 
18339
  thrift_spec = (
18340
    (0, TType.STRUCT, 'success', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 0
18341
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18342
  )
18343
 
18344
  def __init__(self, success=None, cex=None,):
18345
    self.success = success
18346
    self.cex = cex
18347
 
18348
  def read(self, iprot):
18349
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18350
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18351
      return
18352
    iprot.readStructBegin()
18353
    while True:
18354
      (fname, ftype, fid) = iprot.readFieldBegin()
18355
      if ftype == TType.STOP:
18356
        break
18357
      if fid == 0:
18358
        if ftype == TType.STRUCT:
18359
          self.success = SourceItemPricing()
18360
          self.success.read(iprot)
18361
        else:
18362
          iprot.skip(ftype)
18363
      elif fid == 1:
18364
        if ftype == TType.STRUCT:
18365
          self.cex = CatalogServiceException()
18366
          self.cex.read(iprot)
18367
        else:
18368
          iprot.skip(ftype)
18369
      else:
18370
        iprot.skip(ftype)
18371
      iprot.readFieldEnd()
18372
    iprot.readStructEnd()
18373
 
18374
  def write(self, oprot):
18375
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18376
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18377
      return
18378
    oprot.writeStructBegin('getItemPricingBySource_result')
18379
    if self.success is not None:
18380
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18381
      self.success.write(oprot)
18382
      oprot.writeFieldEnd()
18383
    if self.cex is not None:
18384
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18385
      self.cex.write(oprot)
18386
      oprot.writeFieldEnd()
18387
    oprot.writeFieldStop()
18388
    oprot.writeStructEnd()
18389
 
18390
  def validate(self):
18391
    return
18392
 
18393
 
18394
  def __repr__(self):
18395
    L = ['%s=%r' % (key, value)
18396
      for key, value in self.__dict__.iteritems()]
18397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18398
 
18399
  def __eq__(self, other):
18400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18401
 
18402
  def __ne__(self, other):
18403
    return not (self == other)
18404
 
18405
class addSourceItemPricing_args:
18406
  """
18407
  Attributes:
18408
   - sourceItemPricing
18409
  """
18410
 
18411
  thrift_spec = (
18412
    None, # 0
18413
    (1, TType.STRUCT, 'sourceItemPricing', (SourceItemPricing, SourceItemPricing.thrift_spec), None, ), # 1
18414
  )
18415
 
18416
  def __init__(self, sourceItemPricing=None,):
18417
    self.sourceItemPricing = sourceItemPricing
18418
 
18419
  def read(self, iprot):
18420
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18421
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18422
      return
18423
    iprot.readStructBegin()
18424
    while True:
18425
      (fname, ftype, fid) = iprot.readFieldBegin()
18426
      if ftype == TType.STOP:
18427
        break
18428
      if fid == 1:
18429
        if ftype == TType.STRUCT:
18430
          self.sourceItemPricing = SourceItemPricing()
18431
          self.sourceItemPricing.read(iprot)
18432
        else:
18433
          iprot.skip(ftype)
18434
      else:
18435
        iprot.skip(ftype)
18436
      iprot.readFieldEnd()
18437
    iprot.readStructEnd()
18438
 
18439
  def write(self, oprot):
18440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18442
      return
18443
    oprot.writeStructBegin('addSourceItemPricing_args')
18444
    if self.sourceItemPricing is not None:
18445
      oprot.writeFieldBegin('sourceItemPricing', TType.STRUCT, 1)
18446
      self.sourceItemPricing.write(oprot)
18447
      oprot.writeFieldEnd()
18448
    oprot.writeFieldStop()
18449
    oprot.writeStructEnd()
18450
 
18451
  def validate(self):
18452
    return
18453
 
18454
 
18455
  def __repr__(self):
18456
    L = ['%s=%r' % (key, value)
18457
      for key, value in self.__dict__.iteritems()]
18458
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18459
 
18460
  def __eq__(self, other):
18461
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18462
 
18463
  def __ne__(self, other):
18464
    return not (self == other)
18465
 
18466
class addSourceItemPricing_result:
18467
  """
18468
  Attributes:
18469
   - cex
18470
  """
18471
 
18472
  thrift_spec = (
18473
    None, # 0
18474
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18475
  )
18476
 
18477
  def __init__(self, cex=None,):
18478
    self.cex = cex
18479
 
18480
  def read(self, iprot):
18481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18483
      return
18484
    iprot.readStructBegin()
18485
    while True:
18486
      (fname, ftype, fid) = iprot.readFieldBegin()
18487
      if ftype == TType.STOP:
18488
        break
18489
      if fid == 1:
18490
        if ftype == TType.STRUCT:
18491
          self.cex = CatalogServiceException()
18492
          self.cex.read(iprot)
18493
        else:
18494
          iprot.skip(ftype)
18495
      else:
18496
        iprot.skip(ftype)
18497
      iprot.readFieldEnd()
18498
    iprot.readStructEnd()
18499
 
18500
  def write(self, oprot):
18501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18503
      return
18504
    oprot.writeStructBegin('addSourceItemPricing_result')
18505
    if self.cex is not None:
18506
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18507
      self.cex.write(oprot)
18508
      oprot.writeFieldEnd()
18509
    oprot.writeFieldStop()
18510
    oprot.writeStructEnd()
18511
 
18512
  def validate(self):
18513
    return
18514
 
18515
 
18516
  def __repr__(self):
18517
    L = ['%s=%r' % (key, value)
18518
      for key, value in self.__dict__.iteritems()]
18519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18520
 
18521
  def __eq__(self, other):
18522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18523
 
18524
  def __ne__(self, other):
18525
    return not (self == other)
18526
 
18527
class getAllSourcePricing_args:
18528
  """
18529
  Attributes:
18530
   - itemId
18531
  """
18532
 
18533
  thrift_spec = (
18534
    None, # 0
18535
    (1, TType.I64, 'itemId', None, None, ), # 1
18536
  )
18537
 
18538
  def __init__(self, itemId=None,):
18539
    self.itemId = itemId
18540
 
18541
  def read(self, iprot):
18542
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18543
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18544
      return
18545
    iprot.readStructBegin()
18546
    while True:
18547
      (fname, ftype, fid) = iprot.readFieldBegin()
18548
      if ftype == TType.STOP:
18549
        break
18550
      if fid == 1:
18551
        if ftype == TType.I64:
18552
          self.itemId = iprot.readI64();
18553
        else:
18554
          iprot.skip(ftype)
18555
      else:
18556
        iprot.skip(ftype)
18557
      iprot.readFieldEnd()
18558
    iprot.readStructEnd()
18559
 
18560
  def write(self, oprot):
18561
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18562
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18563
      return
18564
    oprot.writeStructBegin('getAllSourcePricing_args')
18565
    if self.itemId is not None:
18566
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18567
      oprot.writeI64(self.itemId)
18568
      oprot.writeFieldEnd()
18569
    oprot.writeFieldStop()
18570
    oprot.writeStructEnd()
18571
 
18572
  def validate(self):
18573
    return
18574
 
18575
 
18576
  def __repr__(self):
18577
    L = ['%s=%r' % (key, value)
18578
      for key, value in self.__dict__.iteritems()]
18579
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18580
 
18581
  def __eq__(self, other):
18582
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18583
 
18584
  def __ne__(self, other):
18585
    return not (self == other)
18586
 
18587
class getAllSourcePricing_result:
18588
  """
18589
  Attributes:
18590
   - success
18591
   - cex
18592
  """
18593
 
18594
  thrift_spec = (
18595
    (0, TType.LIST, 'success', (TType.STRUCT,(SourceItemPricing, SourceItemPricing.thrift_spec)), None, ), # 0
18596
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18597
  )
18598
 
18599
  def __init__(self, success=None, cex=None,):
18600
    self.success = success
18601
    self.cex = cex
18602
 
18603
  def read(self, iprot):
18604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18606
      return
18607
    iprot.readStructBegin()
18608
    while True:
18609
      (fname, ftype, fid) = iprot.readFieldBegin()
18610
      if ftype == TType.STOP:
18611
        break
18612
      if fid == 0:
18613
        if ftype == TType.LIST:
18614
          self.success = []
12567 amit.gupta 18615
          (_etype330, _size327) = iprot.readListBegin()
18616
          for _i331 in xrange(_size327):
18617
            _elem332 = SourceItemPricing()
18618
            _elem332.read(iprot)
18619
            self.success.append(_elem332)
5944 mandeep.dh 18620
          iprot.readListEnd()
18621
        else:
18622
          iprot.skip(ftype)
18623
      elif fid == 1:
18624
        if ftype == TType.STRUCT:
18625
          self.cex = CatalogServiceException()
18626
          self.cex.read(iprot)
18627
        else:
18628
          iprot.skip(ftype)
18629
      else:
18630
        iprot.skip(ftype)
18631
      iprot.readFieldEnd()
18632
    iprot.readStructEnd()
18633
 
18634
  def write(self, oprot):
18635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18637
      return
18638
    oprot.writeStructBegin('getAllSourcePricing_result')
18639
    if self.success is not None:
18640
      oprot.writeFieldBegin('success', TType.LIST, 0)
18641
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18642
      for iter333 in self.success:
18643
        iter333.write(oprot)
5944 mandeep.dh 18644
      oprot.writeListEnd()
18645
      oprot.writeFieldEnd()
18646
    if self.cex is not None:
18647
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18648
      self.cex.write(oprot)
18649
      oprot.writeFieldEnd()
18650
    oprot.writeFieldStop()
18651
    oprot.writeStructEnd()
18652
 
18653
  def validate(self):
18654
    return
18655
 
18656
 
18657
  def __repr__(self):
18658
    L = ['%s=%r' % (key, value)
18659
      for key, value in self.__dict__.iteritems()]
18660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18661
 
18662
  def __eq__(self, other):
18663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18664
 
18665
  def __ne__(self, other):
18666
    return not (self == other)
18667
 
18668
class getItemForSource_args:
18669
  """
18670
  Attributes:
18671
   - item_id
18672
   - sourceId
18673
  """
18674
 
18675
  thrift_spec = (
18676
    None, # 0
18677
    (1, TType.I64, 'item_id', None, None, ), # 1
18678
    (2, TType.I64, 'sourceId', None, None, ), # 2
18679
  )
18680
 
18681
  def __init__(self, item_id=None, sourceId=None,):
18682
    self.item_id = item_id
18683
    self.sourceId = sourceId
18684
 
18685
  def read(self, iprot):
18686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18688
      return
18689
    iprot.readStructBegin()
18690
    while True:
18691
      (fname, ftype, fid) = iprot.readFieldBegin()
18692
      if ftype == TType.STOP:
18693
        break
18694
      if fid == 1:
18695
        if ftype == TType.I64:
18696
          self.item_id = iprot.readI64();
18697
        else:
18698
          iprot.skip(ftype)
18699
      elif fid == 2:
18700
        if ftype == TType.I64:
18701
          self.sourceId = iprot.readI64();
18702
        else:
18703
          iprot.skip(ftype)
18704
      else:
18705
        iprot.skip(ftype)
18706
      iprot.readFieldEnd()
18707
    iprot.readStructEnd()
18708
 
18709
  def write(self, oprot):
18710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18712
      return
18713
    oprot.writeStructBegin('getItemForSource_args')
18714
    if self.item_id is not None:
18715
      oprot.writeFieldBegin('item_id', TType.I64, 1)
18716
      oprot.writeI64(self.item_id)
18717
      oprot.writeFieldEnd()
18718
    if self.sourceId is not None:
18719
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
18720
      oprot.writeI64(self.sourceId)
18721
      oprot.writeFieldEnd()
18722
    oprot.writeFieldStop()
18723
    oprot.writeStructEnd()
18724
 
18725
  def validate(self):
18726
    return
18727
 
18728
 
18729
  def __repr__(self):
18730
    L = ['%s=%r' % (key, value)
18731
      for key, value in self.__dict__.iteritems()]
18732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18733
 
18734
  def __eq__(self, other):
18735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18736
 
18737
  def __ne__(self, other):
18738
    return not (self == other)
18739
 
18740
class getItemForSource_result:
18741
  """
18742
  Attributes:
18743
   - success
18744
   - cex
18745
  """
18746
 
18747
  thrift_spec = (
18748
    (0, TType.STRUCT, 'success', (Item, Item.thrift_spec), None, ), # 0
18749
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
18750
  )
18751
 
18752
  def __init__(self, success=None, cex=None,):
18753
    self.success = success
18754
    self.cex = cex
18755
 
18756
  def read(self, iprot):
18757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18759
      return
18760
    iprot.readStructBegin()
18761
    while True:
18762
      (fname, ftype, fid) = iprot.readFieldBegin()
18763
      if ftype == TType.STOP:
18764
        break
18765
      if fid == 0:
18766
        if ftype == TType.STRUCT:
18767
          self.success = Item()
18768
          self.success.read(iprot)
18769
        else:
18770
          iprot.skip(ftype)
18771
      elif fid == 1:
18772
        if ftype == TType.STRUCT:
18773
          self.cex = CatalogServiceException()
18774
          self.cex.read(iprot)
18775
        else:
18776
          iprot.skip(ftype)
18777
      else:
18778
        iprot.skip(ftype)
18779
      iprot.readFieldEnd()
18780
    iprot.readStructEnd()
18781
 
18782
  def write(self, oprot):
18783
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18784
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18785
      return
18786
    oprot.writeStructBegin('getItemForSource_result')
18787
    if self.success is not None:
18788
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
18789
      self.success.write(oprot)
18790
      oprot.writeFieldEnd()
18791
    if self.cex is not None:
18792
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
18793
      self.cex.write(oprot)
18794
      oprot.writeFieldEnd()
18795
    oprot.writeFieldStop()
18796
    oprot.writeStructEnd()
18797
 
18798
  def validate(self):
18799
    return
18800
 
18801
 
18802
  def __repr__(self):
18803
    L = ['%s=%r' % (key, value)
18804
      for key, value in self.__dict__.iteritems()]
18805
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18806
 
18807
  def __eq__(self, other):
18808
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18809
 
18810
  def __ne__(self, other):
18811
    return not (self == other)
18812
 
18813
class searchItemsInRange_args:
18814
  """
18815
  Attributes:
18816
   - searchTerms
18817
   - offset
18818
   - limit
18819
  """
18820
 
18821
  thrift_spec = (
18822
    None, # 0
18823
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
18824
    (2, TType.I64, 'offset', None, None, ), # 2
18825
    (3, TType.I64, 'limit', None, None, ), # 3
18826
  )
18827
 
18828
  def __init__(self, searchTerms=None, offset=None, limit=None,):
18829
    self.searchTerms = searchTerms
18830
    self.offset = offset
18831
    self.limit = limit
18832
 
18833
  def read(self, iprot):
18834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18836
      return
18837
    iprot.readStructBegin()
18838
    while True:
18839
      (fname, ftype, fid) = iprot.readFieldBegin()
18840
      if ftype == TType.STOP:
18841
        break
18842
      if fid == 1:
18843
        if ftype == TType.LIST:
18844
          self.searchTerms = []
12567 amit.gupta 18845
          (_etype337, _size334) = iprot.readListBegin()
18846
          for _i338 in xrange(_size334):
18847
            _elem339 = iprot.readString();
18848
            self.searchTerms.append(_elem339)
5944 mandeep.dh 18849
          iprot.readListEnd()
18850
        else:
18851
          iprot.skip(ftype)
18852
      elif fid == 2:
18853
        if ftype == TType.I64:
18854
          self.offset = iprot.readI64();
18855
        else:
18856
          iprot.skip(ftype)
18857
      elif fid == 3:
18858
        if ftype == TType.I64:
18859
          self.limit = iprot.readI64();
18860
        else:
18861
          iprot.skip(ftype)
18862
      else:
18863
        iprot.skip(ftype)
18864
      iprot.readFieldEnd()
18865
    iprot.readStructEnd()
18866
 
18867
  def write(self, oprot):
18868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18870
      return
18871
    oprot.writeStructBegin('searchItemsInRange_args')
18872
    if self.searchTerms is not None:
18873
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
18874
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 18875
      for iter340 in self.searchTerms:
18876
        oprot.writeString(iter340)
5944 mandeep.dh 18877
      oprot.writeListEnd()
18878
      oprot.writeFieldEnd()
18879
    if self.offset is not None:
18880
      oprot.writeFieldBegin('offset', TType.I64, 2)
18881
      oprot.writeI64(self.offset)
18882
      oprot.writeFieldEnd()
18883
    if self.limit is not None:
18884
      oprot.writeFieldBegin('limit', TType.I64, 3)
18885
      oprot.writeI64(self.limit)
18886
      oprot.writeFieldEnd()
18887
    oprot.writeFieldStop()
18888
    oprot.writeStructEnd()
18889
 
18890
  def validate(self):
18891
    return
18892
 
18893
 
18894
  def __repr__(self):
18895
    L = ['%s=%r' % (key, value)
18896
      for key, value in self.__dict__.iteritems()]
18897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18898
 
18899
  def __eq__(self, other):
18900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18901
 
18902
  def __ne__(self, other):
18903
    return not (self == other)
18904
 
18905
class searchItemsInRange_result:
18906
  """
18907
  Attributes:
18908
   - success
18909
  """
18910
 
18911
  thrift_spec = (
18912
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
18913
  )
18914
 
18915
  def __init__(self, success=None,):
18916
    self.success = success
18917
 
18918
  def read(self, iprot):
18919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18921
      return
18922
    iprot.readStructBegin()
18923
    while True:
18924
      (fname, ftype, fid) = iprot.readFieldBegin()
18925
      if ftype == TType.STOP:
18926
        break
18927
      if fid == 0:
18928
        if ftype == TType.LIST:
18929
          self.success = []
12567 amit.gupta 18930
          (_etype344, _size341) = iprot.readListBegin()
18931
          for _i345 in xrange(_size341):
18932
            _elem346 = Item()
18933
            _elem346.read(iprot)
18934
            self.success.append(_elem346)
5944 mandeep.dh 18935
          iprot.readListEnd()
18936
        else:
18937
          iprot.skip(ftype)
18938
      else:
18939
        iprot.skip(ftype)
18940
      iprot.readFieldEnd()
18941
    iprot.readStructEnd()
18942
 
18943
  def write(self, oprot):
18944
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18945
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18946
      return
18947
    oprot.writeStructBegin('searchItemsInRange_result')
18948
    if self.success is not None:
18949
      oprot.writeFieldBegin('success', TType.LIST, 0)
18950
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 18951
      for iter347 in self.success:
18952
        iter347.write(oprot)
5944 mandeep.dh 18953
      oprot.writeListEnd()
18954
      oprot.writeFieldEnd()
18955
    oprot.writeFieldStop()
18956
    oprot.writeStructEnd()
18957
 
18958
  def validate(self):
18959
    return
18960
 
18961
 
18962
  def __repr__(self):
18963
    L = ['%s=%r' % (key, value)
18964
      for key, value in self.__dict__.iteritems()]
18965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18966
 
18967
  def __eq__(self, other):
18968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18969
 
18970
  def __ne__(self, other):
18971
    return not (self == other)
18972
 
18973
class getSearchResultCount_args:
18974
  """
18975
  Attributes:
18976
   - searchTerms
18977
  """
18978
 
18979
  thrift_spec = (
18980
    None, # 0
18981
    (1, TType.LIST, 'searchTerms', (TType.STRING,None), None, ), # 1
18982
  )
18983
 
18984
  def __init__(self, searchTerms=None,):
18985
    self.searchTerms = searchTerms
18986
 
18987
  def read(self, iprot):
18988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18990
      return
18991
    iprot.readStructBegin()
18992
    while True:
18993
      (fname, ftype, fid) = iprot.readFieldBegin()
18994
      if ftype == TType.STOP:
18995
        break
18996
      if fid == 1:
18997
        if ftype == TType.LIST:
18998
          self.searchTerms = []
12567 amit.gupta 18999
          (_etype351, _size348) = iprot.readListBegin()
19000
          for _i352 in xrange(_size348):
19001
            _elem353 = iprot.readString();
19002
            self.searchTerms.append(_elem353)
5944 mandeep.dh 19003
          iprot.readListEnd()
19004
        else:
19005
          iprot.skip(ftype)
19006
      else:
19007
        iprot.skip(ftype)
19008
      iprot.readFieldEnd()
19009
    iprot.readStructEnd()
19010
 
19011
  def write(self, oprot):
19012
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19013
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19014
      return
19015
    oprot.writeStructBegin('getSearchResultCount_args')
19016
    if self.searchTerms is not None:
19017
      oprot.writeFieldBegin('searchTerms', TType.LIST, 1)
19018
      oprot.writeListBegin(TType.STRING, len(self.searchTerms))
12567 amit.gupta 19019
      for iter354 in self.searchTerms:
19020
        oprot.writeString(iter354)
5944 mandeep.dh 19021
      oprot.writeListEnd()
19022
      oprot.writeFieldEnd()
19023
    oprot.writeFieldStop()
19024
    oprot.writeStructEnd()
19025
 
19026
  def validate(self):
19027
    return
19028
 
19029
 
19030
  def __repr__(self):
19031
    L = ['%s=%r' % (key, value)
19032
      for key, value in self.__dict__.iteritems()]
19033
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19034
 
19035
  def __eq__(self, other):
19036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19037
 
19038
  def __ne__(self, other):
19039
    return not (self == other)
19040
 
19041
class getSearchResultCount_result:
19042
  """
19043
  Attributes:
19044
   - success
19045
  """
19046
 
19047
  thrift_spec = (
19048
    (0, TType.I32, 'success', None, None, ), # 0
19049
  )
19050
 
19051
  def __init__(self, success=None,):
19052
    self.success = success
19053
 
19054
  def read(self, iprot):
19055
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19056
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19057
      return
19058
    iprot.readStructBegin()
19059
    while True:
19060
      (fname, ftype, fid) = iprot.readFieldBegin()
19061
      if ftype == TType.STOP:
19062
        break
19063
      if fid == 0:
19064
        if ftype == TType.I32:
19065
          self.success = iprot.readI32();
19066
        else:
19067
          iprot.skip(ftype)
19068
      else:
19069
        iprot.skip(ftype)
19070
      iprot.readFieldEnd()
19071
    iprot.readStructEnd()
19072
 
19073
  def write(self, oprot):
19074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19076
      return
19077
    oprot.writeStructBegin('getSearchResultCount_result')
19078
    if self.success is not None:
19079
      oprot.writeFieldBegin('success', TType.I32, 0)
19080
      oprot.writeI32(self.success)
19081
      oprot.writeFieldEnd()
19082
    oprot.writeFieldStop()
19083
    oprot.writeStructEnd()
19084
 
19085
  def validate(self):
19086
    return
19087
 
19088
 
19089
  def __repr__(self):
19090
    L = ['%s=%r' % (key, value)
19091
      for key, value in self.__dict__.iteritems()]
19092
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19093
 
19094
  def __eq__(self, other):
19095
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19096
 
19097
  def __ne__(self, other):
19098
    return not (self == other)
19099
 
19100
class getProductNotifications_args:
19101
  """
19102
  Attributes:
19103
   - startDateTime
19104
  """
19105
 
19106
  thrift_spec = (
19107
    None, # 0
19108
    (1, TType.I64, 'startDateTime', None, None, ), # 1
19109
  )
19110
 
19111
  def __init__(self, startDateTime=None,):
19112
    self.startDateTime = startDateTime
19113
 
19114
  def read(self, iprot):
19115
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19116
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19117
      return
19118
    iprot.readStructBegin()
19119
    while True:
19120
      (fname, ftype, fid) = iprot.readFieldBegin()
19121
      if ftype == TType.STOP:
19122
        break
19123
      if fid == 1:
19124
        if ftype == TType.I64:
19125
          self.startDateTime = iprot.readI64();
19126
        else:
19127
          iprot.skip(ftype)
19128
      else:
19129
        iprot.skip(ftype)
19130
      iprot.readFieldEnd()
19131
    iprot.readStructEnd()
19132
 
19133
  def write(self, oprot):
19134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19136
      return
19137
    oprot.writeStructBegin('getProductNotifications_args')
19138
    if self.startDateTime is not None:
19139
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19140
      oprot.writeI64(self.startDateTime)
19141
      oprot.writeFieldEnd()
19142
    oprot.writeFieldStop()
19143
    oprot.writeStructEnd()
19144
 
19145
  def validate(self):
19146
    return
19147
 
19148
 
19149
  def __repr__(self):
19150
    L = ['%s=%r' % (key, value)
19151
      for key, value in self.__dict__.iteritems()]
19152
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19153
 
19154
  def __eq__(self, other):
19155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19156
 
19157
  def __ne__(self, other):
19158
    return not (self == other)
19159
 
19160
class getProductNotifications_result:
19161
  """
19162
  Attributes:
19163
   - success
19164
  """
19165
 
19166
  thrift_spec = (
19167
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequest, ProductNotificationRequest.thrift_spec)), None, ), # 0
19168
  )
19169
 
19170
  def __init__(self, success=None,):
19171
    self.success = success
19172
 
19173
  def read(self, iprot):
19174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19176
      return
19177
    iprot.readStructBegin()
19178
    while True:
19179
      (fname, ftype, fid) = iprot.readFieldBegin()
19180
      if ftype == TType.STOP:
19181
        break
19182
      if fid == 0:
19183
        if ftype == TType.LIST:
19184
          self.success = []
12567 amit.gupta 19185
          (_etype358, _size355) = iprot.readListBegin()
19186
          for _i359 in xrange(_size355):
19187
            _elem360 = ProductNotificationRequest()
19188
            _elem360.read(iprot)
19189
            self.success.append(_elem360)
5944 mandeep.dh 19190
          iprot.readListEnd()
19191
        else:
19192
          iprot.skip(ftype)
19193
      else:
19194
        iprot.skip(ftype)
19195
      iprot.readFieldEnd()
19196
    iprot.readStructEnd()
19197
 
19198
  def write(self, oprot):
19199
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19200
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19201
      return
19202
    oprot.writeStructBegin('getProductNotifications_result')
19203
    if self.success is not None:
19204
      oprot.writeFieldBegin('success', TType.LIST, 0)
19205
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19206
      for iter361 in self.success:
19207
        iter361.write(oprot)
5944 mandeep.dh 19208
      oprot.writeListEnd()
19209
      oprot.writeFieldEnd()
19210
    oprot.writeFieldStop()
19211
    oprot.writeStructEnd()
19212
 
19213
  def validate(self):
19214
    return
19215
 
19216
 
19217
  def __repr__(self):
19218
    L = ['%s=%r' % (key, value)
19219
      for key, value in self.__dict__.iteritems()]
19220
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19221
 
19222
  def __eq__(self, other):
19223
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19224
 
19225
  def __ne__(self, other):
19226
    return not (self == other)
19227
 
19228
class getProductNotificationRequestCount_args:
19229
  """
19230
  Attributes:
19231
   - startDateTime
7897 amar.kumar 19232
   - categoryId
5944 mandeep.dh 19233
  """
19234
 
19235
  thrift_spec = (
19236
    None, # 0
19237
    (1, TType.I64, 'startDateTime', None, None, ), # 1
7897 amar.kumar 19238
    (2, TType.I64, 'categoryId', None, None, ), # 2
5944 mandeep.dh 19239
  )
19240
 
7897 amar.kumar 19241
  def __init__(self, startDateTime=None, categoryId=None,):
5944 mandeep.dh 19242
    self.startDateTime = startDateTime
7897 amar.kumar 19243
    self.categoryId = categoryId
5944 mandeep.dh 19244
 
19245
  def read(self, iprot):
19246
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19247
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19248
      return
19249
    iprot.readStructBegin()
19250
    while True:
19251
      (fname, ftype, fid) = iprot.readFieldBegin()
19252
      if ftype == TType.STOP:
19253
        break
19254
      if fid == 1:
19255
        if ftype == TType.I64:
19256
          self.startDateTime = iprot.readI64();
19257
        else:
19258
          iprot.skip(ftype)
7897 amar.kumar 19259
      elif fid == 2:
19260
        if ftype == TType.I64:
19261
          self.categoryId = iprot.readI64();
19262
        else:
19263
          iprot.skip(ftype)
5944 mandeep.dh 19264
      else:
19265
        iprot.skip(ftype)
19266
      iprot.readFieldEnd()
19267
    iprot.readStructEnd()
19268
 
19269
  def write(self, oprot):
19270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19272
      return
19273
    oprot.writeStructBegin('getProductNotificationRequestCount_args')
19274
    if self.startDateTime is not None:
19275
      oprot.writeFieldBegin('startDateTime', TType.I64, 1)
19276
      oprot.writeI64(self.startDateTime)
19277
      oprot.writeFieldEnd()
7897 amar.kumar 19278
    if self.categoryId is not None:
19279
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
19280
      oprot.writeI64(self.categoryId)
19281
      oprot.writeFieldEnd()
5944 mandeep.dh 19282
    oprot.writeFieldStop()
19283
    oprot.writeStructEnd()
19284
 
19285
  def validate(self):
19286
    return
19287
 
19288
 
19289
  def __repr__(self):
19290
    L = ['%s=%r' % (key, value)
19291
      for key, value in self.__dict__.iteritems()]
19292
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19293
 
19294
  def __eq__(self, other):
19295
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19296
 
19297
  def __ne__(self, other):
19298
    return not (self == other)
19299
 
19300
class getProductNotificationRequestCount_result:
19301
  """
19302
  Attributes:
19303
   - success
19304
  """
19305
 
19306
  thrift_spec = (
19307
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductNotificationRequestCount, ProductNotificationRequestCount.thrift_spec)), None, ), # 0
19308
  )
19309
 
19310
  def __init__(self, success=None,):
19311
    self.success = success
19312
 
19313
  def read(self, iprot):
19314
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19315
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19316
      return
19317
    iprot.readStructBegin()
19318
    while True:
19319
      (fname, ftype, fid) = iprot.readFieldBegin()
19320
      if ftype == TType.STOP:
19321
        break
19322
      if fid == 0:
19323
        if ftype == TType.LIST:
19324
          self.success = []
12567 amit.gupta 19325
          (_etype365, _size362) = iprot.readListBegin()
19326
          for _i366 in xrange(_size362):
19327
            _elem367 = ProductNotificationRequestCount()
19328
            _elem367.read(iprot)
19329
            self.success.append(_elem367)
5944 mandeep.dh 19330
          iprot.readListEnd()
19331
        else:
19332
          iprot.skip(ftype)
19333
      else:
19334
        iprot.skip(ftype)
19335
      iprot.readFieldEnd()
19336
    iprot.readStructEnd()
19337
 
19338
  def write(self, oprot):
19339
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19340
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19341
      return
19342
    oprot.writeStructBegin('getProductNotificationRequestCount_result')
19343
    if self.success is not None:
19344
      oprot.writeFieldBegin('success', TType.LIST, 0)
19345
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 19346
      for iter368 in self.success:
19347
        iter368.write(oprot)
5944 mandeep.dh 19348
      oprot.writeListEnd()
19349
      oprot.writeFieldEnd()
19350
    oprot.writeFieldStop()
19351
    oprot.writeStructEnd()
19352
 
19353
  def validate(self):
19354
    return
19355
 
19356
 
19357
  def __repr__(self):
19358
    L = ['%s=%r' % (key, value)
19359
      for key, value in self.__dict__.iteritems()]
19360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19361
 
19362
  def __eq__(self, other):
19363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19364
 
19365
  def __ne__(self, other):
19366
    return not (self == other)
19367
 
19368
class addAuthorizationLog_args:
19369
  """
19370
  Attributes:
19371
   - itemId
19372
   - username
19373
   - reason
19374
  """
19375
 
19376
  thrift_spec = (
19377
    None, # 0
19378
    (1, TType.I64, 'itemId', None, None, ), # 1
19379
    (2, TType.STRING, 'username', None, None, ), # 2
19380
    (3, TType.STRING, 'reason', None, None, ), # 3
19381
  )
19382
 
19383
  def __init__(self, itemId=None, username=None, reason=None,):
19384
    self.itemId = itemId
19385
    self.username = username
19386
    self.reason = reason
19387
 
19388
  def read(self, iprot):
19389
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19390
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19391
      return
19392
    iprot.readStructBegin()
19393
    while True:
19394
      (fname, ftype, fid) = iprot.readFieldBegin()
19395
      if ftype == TType.STOP:
19396
        break
19397
      if fid == 1:
19398
        if ftype == TType.I64:
19399
          self.itemId = iprot.readI64();
19400
        else:
19401
          iprot.skip(ftype)
19402
      elif fid == 2:
19403
        if ftype == TType.STRING:
19404
          self.username = iprot.readString();
19405
        else:
19406
          iprot.skip(ftype)
19407
      elif fid == 3:
19408
        if ftype == TType.STRING:
19409
          self.reason = iprot.readString();
19410
        else:
19411
          iprot.skip(ftype)
19412
      else:
19413
        iprot.skip(ftype)
19414
      iprot.readFieldEnd()
19415
    iprot.readStructEnd()
19416
 
19417
  def write(self, oprot):
19418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19420
      return
19421
    oprot.writeStructBegin('addAuthorizationLog_args')
19422
    if self.itemId is not None:
19423
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19424
      oprot.writeI64(self.itemId)
19425
      oprot.writeFieldEnd()
19426
    if self.username is not None:
19427
      oprot.writeFieldBegin('username', TType.STRING, 2)
19428
      oprot.writeString(self.username)
19429
      oprot.writeFieldEnd()
19430
    if self.reason is not None:
19431
      oprot.writeFieldBegin('reason', TType.STRING, 3)
19432
      oprot.writeString(self.reason)
19433
      oprot.writeFieldEnd()
19434
    oprot.writeFieldStop()
19435
    oprot.writeStructEnd()
19436
 
19437
  def validate(self):
19438
    return
19439
 
19440
 
19441
  def __repr__(self):
19442
    L = ['%s=%r' % (key, value)
19443
      for key, value in self.__dict__.iteritems()]
19444
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19445
 
19446
  def __eq__(self, other):
19447
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19448
 
19449
  def __ne__(self, other):
19450
    return not (self == other)
19451
 
19452
class addAuthorizationLog_result:
19453
  """
19454
  Attributes:
19455
   - success
19456
   - cex
19457
  """
19458
 
19459
  thrift_spec = (
19460
    (0, TType.BOOL, 'success', None, None, ), # 0
19461
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19462
  )
19463
 
19464
  def __init__(self, success=None, cex=None,):
19465
    self.success = success
19466
    self.cex = cex
19467
 
19468
  def read(self, iprot):
19469
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19470
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19471
      return
19472
    iprot.readStructBegin()
19473
    while True:
19474
      (fname, ftype, fid) = iprot.readFieldBegin()
19475
      if ftype == TType.STOP:
19476
        break
19477
      if fid == 0:
19478
        if ftype == TType.BOOL:
19479
          self.success = iprot.readBool();
19480
        else:
19481
          iprot.skip(ftype)
19482
      elif fid == 1:
19483
        if ftype == TType.STRUCT:
19484
          self.cex = CatalogServiceException()
19485
          self.cex.read(iprot)
19486
        else:
19487
          iprot.skip(ftype)
19488
      else:
19489
        iprot.skip(ftype)
19490
      iprot.readFieldEnd()
19491
    iprot.readStructEnd()
19492
 
19493
  def write(self, oprot):
19494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19496
      return
19497
    oprot.writeStructBegin('addAuthorizationLog_result')
19498
    if self.success is not None:
19499
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19500
      oprot.writeBool(self.success)
19501
      oprot.writeFieldEnd()
19502
    if self.cex is not None:
19503
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19504
      self.cex.write(oprot)
19505
      oprot.writeFieldEnd()
19506
    oprot.writeFieldStop()
19507
    oprot.writeStructEnd()
19508
 
19509
  def validate(self):
19510
    return
19511
 
19512
 
19513
  def __repr__(self):
19514
    L = ['%s=%r' % (key, value)
19515
      for key, value in self.__dict__.iteritems()]
19516
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19517
 
19518
  def __eq__(self, other):
19519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19520
 
19521
  def __ne__(self, other):
19522
    return not (self == other)
19523
 
19524
class addupdateVoucherForItem_args:
19525
  """
19526
  Attributes:
19527
   - catalog_item_id
19528
   - voucherType
19529
   - voucherAmount
19530
  """
19531
 
19532
  thrift_spec = (
19533
    None, # 0
19534
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19535
    (2, TType.I64, 'voucherType', None, None, ), # 2
19536
    (3, TType.I64, 'voucherAmount', None, None, ), # 3
19537
  )
19538
 
19539
  def __init__(self, catalog_item_id=None, voucherType=None, voucherAmount=None,):
19540
    self.catalog_item_id = catalog_item_id
19541
    self.voucherType = voucherType
19542
    self.voucherAmount = voucherAmount
19543
 
19544
  def read(self, iprot):
19545
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19546
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19547
      return
19548
    iprot.readStructBegin()
19549
    while True:
19550
      (fname, ftype, fid) = iprot.readFieldBegin()
19551
      if ftype == TType.STOP:
19552
        break
19553
      if fid == 1:
19554
        if ftype == TType.I64:
19555
          self.catalog_item_id = iprot.readI64();
19556
        else:
19557
          iprot.skip(ftype)
19558
      elif fid == 2:
19559
        if ftype == TType.I64:
19560
          self.voucherType = iprot.readI64();
19561
        else:
19562
          iprot.skip(ftype)
19563
      elif fid == 3:
19564
        if ftype == TType.I64:
19565
          self.voucherAmount = iprot.readI64();
19566
        else:
19567
          iprot.skip(ftype)
19568
      else:
19569
        iprot.skip(ftype)
19570
      iprot.readFieldEnd()
19571
    iprot.readStructEnd()
19572
 
19573
  def write(self, oprot):
19574
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19575
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19576
      return
19577
    oprot.writeStructBegin('addupdateVoucherForItem_args')
19578
    if self.catalog_item_id is not None:
19579
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19580
      oprot.writeI64(self.catalog_item_id)
19581
      oprot.writeFieldEnd()
19582
    if self.voucherType is not None:
19583
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19584
      oprot.writeI64(self.voucherType)
19585
      oprot.writeFieldEnd()
19586
    if self.voucherAmount is not None:
19587
      oprot.writeFieldBegin('voucherAmount', TType.I64, 3)
19588
      oprot.writeI64(self.voucherAmount)
19589
      oprot.writeFieldEnd()
19590
    oprot.writeFieldStop()
19591
    oprot.writeStructEnd()
19592
 
19593
  def validate(self):
19594
    return
19595
 
19596
 
19597
  def __repr__(self):
19598
    L = ['%s=%r' % (key, value)
19599
      for key, value in self.__dict__.iteritems()]
19600
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19601
 
19602
  def __eq__(self, other):
19603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19604
 
19605
  def __ne__(self, other):
19606
    return not (self == other)
19607
 
19608
class addupdateVoucherForItem_result:
19609
  """
19610
  Attributes:
19611
   - success
19612
   - cex
19613
  """
19614
 
19615
  thrift_spec = (
19616
    (0, TType.BOOL, 'success', None, None, ), # 0
19617
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19618
  )
19619
 
19620
  def __init__(self, success=None, cex=None,):
19621
    self.success = success
19622
    self.cex = cex
19623
 
19624
  def read(self, iprot):
19625
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19626
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19627
      return
19628
    iprot.readStructBegin()
19629
    while True:
19630
      (fname, ftype, fid) = iprot.readFieldBegin()
19631
      if ftype == TType.STOP:
19632
        break
19633
      if fid == 0:
19634
        if ftype == TType.BOOL:
19635
          self.success = iprot.readBool();
19636
        else:
19637
          iprot.skip(ftype)
19638
      elif fid == 1:
19639
        if ftype == TType.STRUCT:
19640
          self.cex = CatalogServiceException()
19641
          self.cex.read(iprot)
19642
        else:
19643
          iprot.skip(ftype)
19644
      else:
19645
        iprot.skip(ftype)
19646
      iprot.readFieldEnd()
19647
    iprot.readStructEnd()
19648
 
19649
  def write(self, oprot):
19650
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19651
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19652
      return
19653
    oprot.writeStructBegin('addupdateVoucherForItem_result')
19654
    if self.success is not None:
19655
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19656
      oprot.writeBool(self.success)
19657
      oprot.writeFieldEnd()
19658
    if self.cex is not None:
19659
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19660
      self.cex.write(oprot)
19661
      oprot.writeFieldEnd()
19662
    oprot.writeFieldStop()
19663
    oprot.writeStructEnd()
19664
 
19665
  def validate(self):
19666
    return
19667
 
19668
 
19669
  def __repr__(self):
19670
    L = ['%s=%r' % (key, value)
19671
      for key, value in self.__dict__.iteritems()]
19672
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19673
 
19674
  def __eq__(self, other):
19675
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19676
 
19677
  def __ne__(self, other):
19678
    return not (self == other)
19679
 
19680
class deleteVoucherForItem_args:
19681
  """
19682
  Attributes:
19683
   - catalog_item_id
19684
   - voucherType
19685
  """
19686
 
19687
  thrift_spec = (
19688
    None, # 0
19689
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
19690
    (2, TType.I64, 'voucherType', None, None, ), # 2
19691
  )
19692
 
19693
  def __init__(self, catalog_item_id=None, voucherType=None,):
19694
    self.catalog_item_id = catalog_item_id
19695
    self.voucherType = voucherType
19696
 
19697
  def read(self, iprot):
19698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19700
      return
19701
    iprot.readStructBegin()
19702
    while True:
19703
      (fname, ftype, fid) = iprot.readFieldBegin()
19704
      if ftype == TType.STOP:
19705
        break
19706
      if fid == 1:
19707
        if ftype == TType.I64:
19708
          self.catalog_item_id = iprot.readI64();
19709
        else:
19710
          iprot.skip(ftype)
19711
      elif fid == 2:
19712
        if ftype == TType.I64:
19713
          self.voucherType = iprot.readI64();
19714
        else:
19715
          iprot.skip(ftype)
19716
      else:
19717
        iprot.skip(ftype)
19718
      iprot.readFieldEnd()
19719
    iprot.readStructEnd()
19720
 
19721
  def write(self, oprot):
19722
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19723
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19724
      return
19725
    oprot.writeStructBegin('deleteVoucherForItem_args')
19726
    if self.catalog_item_id is not None:
19727
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
19728
      oprot.writeI64(self.catalog_item_id)
19729
      oprot.writeFieldEnd()
19730
    if self.voucherType is not None:
19731
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19732
      oprot.writeI64(self.voucherType)
19733
      oprot.writeFieldEnd()
19734
    oprot.writeFieldStop()
19735
    oprot.writeStructEnd()
19736
 
19737
  def validate(self):
19738
    return
19739
 
19740
 
19741
  def __repr__(self):
19742
    L = ['%s=%r' % (key, value)
19743
      for key, value in self.__dict__.iteritems()]
19744
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19745
 
19746
  def __eq__(self, other):
19747
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19748
 
19749
  def __ne__(self, other):
19750
    return not (self == other)
19751
 
19752
class deleteVoucherForItem_result:
19753
  """
19754
  Attributes:
19755
   - success
19756
   - cex
19757
  """
19758
 
19759
  thrift_spec = (
19760
    (0, TType.BOOL, 'success', None, None, ), # 0
19761
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
19762
  )
19763
 
19764
  def __init__(self, success=None, cex=None,):
19765
    self.success = success
19766
    self.cex = cex
19767
 
19768
  def read(self, iprot):
19769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19771
      return
19772
    iprot.readStructBegin()
19773
    while True:
19774
      (fname, ftype, fid) = iprot.readFieldBegin()
19775
      if ftype == TType.STOP:
19776
        break
19777
      if fid == 0:
19778
        if ftype == TType.BOOL:
19779
          self.success = iprot.readBool();
19780
        else:
19781
          iprot.skip(ftype)
19782
      elif fid == 1:
19783
        if ftype == TType.STRUCT:
19784
          self.cex = CatalogServiceException()
19785
          self.cex.read(iprot)
19786
        else:
19787
          iprot.skip(ftype)
19788
      else:
19789
        iprot.skip(ftype)
19790
      iprot.readFieldEnd()
19791
    iprot.readStructEnd()
19792
 
19793
  def write(self, oprot):
19794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19796
      return
19797
    oprot.writeStructBegin('deleteVoucherForItem_result')
19798
    if self.success is not None:
19799
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19800
      oprot.writeBool(self.success)
19801
      oprot.writeFieldEnd()
19802
    if self.cex is not None:
19803
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
19804
      self.cex.write(oprot)
19805
      oprot.writeFieldEnd()
19806
    oprot.writeFieldStop()
19807
    oprot.writeStructEnd()
19808
 
19809
  def validate(self):
19810
    return
19811
 
19812
 
19813
  def __repr__(self):
19814
    L = ['%s=%r' % (key, value)
19815
      for key, value in self.__dict__.iteritems()]
19816
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19817
 
19818
  def __eq__(self, other):
19819
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19820
 
19821
  def __ne__(self, other):
19822
    return not (self == other)
19823
 
19824
class getVoucherAmount_args:
19825
  """
19826
  Attributes:
19827
   - itemId
19828
   - voucherType
19829
  """
19830
 
19831
  thrift_spec = (
19832
    None, # 0
19833
    (1, TType.I64, 'itemId', None, None, ), # 1
19834
    (2, TType.I64, 'voucherType', None, None, ), # 2
19835
  )
19836
 
19837
  def __init__(self, itemId=None, voucherType=None,):
19838
    self.itemId = itemId
19839
    self.voucherType = voucherType
19840
 
19841
  def read(self, iprot):
19842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19844
      return
19845
    iprot.readStructBegin()
19846
    while True:
19847
      (fname, ftype, fid) = iprot.readFieldBegin()
19848
      if ftype == TType.STOP:
19849
        break
19850
      if fid == 1:
19851
        if ftype == TType.I64:
19852
          self.itemId = iprot.readI64();
19853
        else:
19854
          iprot.skip(ftype)
19855
      elif fid == 2:
19856
        if ftype == TType.I64:
19857
          self.voucherType = iprot.readI64();
19858
        else:
19859
          iprot.skip(ftype)
19860
      else:
19861
        iprot.skip(ftype)
19862
      iprot.readFieldEnd()
19863
    iprot.readStructEnd()
19864
 
19865
  def write(self, oprot):
19866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19868
      return
19869
    oprot.writeStructBegin('getVoucherAmount_args')
19870
    if self.itemId is not None:
19871
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19872
      oprot.writeI64(self.itemId)
19873
      oprot.writeFieldEnd()
19874
    if self.voucherType is not None:
19875
      oprot.writeFieldBegin('voucherType', TType.I64, 2)
19876
      oprot.writeI64(self.voucherType)
19877
      oprot.writeFieldEnd()
19878
    oprot.writeFieldStop()
19879
    oprot.writeStructEnd()
19880
 
19881
  def validate(self):
19882
    return
19883
 
19884
 
19885
  def __repr__(self):
19886
    L = ['%s=%r' % (key, value)
19887
      for key, value in self.__dict__.iteritems()]
19888
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19889
 
19890
  def __eq__(self, other):
19891
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19892
 
19893
  def __ne__(self, other):
19894
    return not (self == other)
19895
 
19896
class getVoucherAmount_result:
19897
  """
19898
  Attributes:
19899
   - success
19900
  """
19901
 
19902
  thrift_spec = (
19903
    (0, TType.I64, 'success', None, None, ), # 0
19904
  )
19905
 
19906
  def __init__(self, success=None,):
19907
    self.success = success
19908
 
19909
  def read(self, iprot):
19910
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19911
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19912
      return
19913
    iprot.readStructBegin()
19914
    while True:
19915
      (fname, ftype, fid) = iprot.readFieldBegin()
19916
      if ftype == TType.STOP:
19917
        break
19918
      if fid == 0:
19919
        if ftype == TType.I64:
19920
          self.success = iprot.readI64();
19921
        else:
19922
          iprot.skip(ftype)
19923
      else:
19924
        iprot.skip(ftype)
19925
      iprot.readFieldEnd()
19926
    iprot.readStructEnd()
19927
 
19928
  def write(self, oprot):
19929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19931
      return
19932
    oprot.writeStructBegin('getVoucherAmount_result')
19933
    if self.success is not None:
19934
      oprot.writeFieldBegin('success', TType.I64, 0)
19935
      oprot.writeI64(self.success)
19936
      oprot.writeFieldEnd()
19937
    oprot.writeFieldStop()
19938
    oprot.writeStructEnd()
19939
 
19940
  def validate(self):
19941
    return
19942
 
19943
 
19944
  def __repr__(self):
19945
    L = ['%s=%r' % (key, value)
19946
      for key, value in self.__dict__.iteritems()]
19947
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19948
 
19949
  def __eq__(self, other):
19950
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19951
 
19952
  def __ne__(self, other):
19953
    return not (self == other)
19954
 
19955
class getAllItemVouchers_args:
19956
  """
19957
  Attributes:
19958
   - itemId
19959
  """
19960
 
19961
  thrift_spec = (
19962
    None, # 0
19963
    (1, TType.I64, 'itemId', None, None, ), # 1
19964
  )
19965
 
19966
  def __init__(self, itemId=None,):
19967
    self.itemId = itemId
19968
 
19969
  def read(self, iprot):
19970
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19971
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19972
      return
19973
    iprot.readStructBegin()
19974
    while True:
19975
      (fname, ftype, fid) = iprot.readFieldBegin()
19976
      if ftype == TType.STOP:
19977
        break
19978
      if fid == 1:
19979
        if ftype == TType.I64:
19980
          self.itemId = iprot.readI64();
19981
        else:
19982
          iprot.skip(ftype)
19983
      else:
19984
        iprot.skip(ftype)
19985
      iprot.readFieldEnd()
19986
    iprot.readStructEnd()
19987
 
19988
  def write(self, oprot):
19989
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19990
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19991
      return
19992
    oprot.writeStructBegin('getAllItemVouchers_args')
19993
    if self.itemId is not None:
19994
      oprot.writeFieldBegin('itemId', TType.I64, 1)
19995
      oprot.writeI64(self.itemId)
19996
      oprot.writeFieldEnd()
19997
    oprot.writeFieldStop()
19998
    oprot.writeStructEnd()
19999
 
20000
  def validate(self):
20001
    return
20002
 
20003
 
20004
  def __repr__(self):
20005
    L = ['%s=%r' % (key, value)
20006
      for key, value in self.__dict__.iteritems()]
20007
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20008
 
20009
  def __eq__(self, other):
20010
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20011
 
20012
  def __ne__(self, other):
20013
    return not (self == other)
20014
 
20015
class getAllItemVouchers_result:
20016
  """
20017
  Attributes:
20018
   - success
20019
  """
20020
 
20021
  thrift_spec = (
20022
    (0, TType.LIST, 'success', (TType.STRUCT,(VoucherItemMapping, VoucherItemMapping.thrift_spec)), None, ), # 0
20023
  )
20024
 
20025
  def __init__(self, success=None,):
20026
    self.success = success
20027
 
20028
  def read(self, iprot):
20029
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20030
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20031
      return
20032
    iprot.readStructBegin()
20033
    while True:
20034
      (fname, ftype, fid) = iprot.readFieldBegin()
20035
      if ftype == TType.STOP:
20036
        break
20037
      if fid == 0:
20038
        if ftype == TType.LIST:
20039
          self.success = []
12567 amit.gupta 20040
          (_etype372, _size369) = iprot.readListBegin()
20041
          for _i373 in xrange(_size369):
20042
            _elem374 = VoucherItemMapping()
20043
            _elem374.read(iprot)
20044
            self.success.append(_elem374)
5944 mandeep.dh 20045
          iprot.readListEnd()
20046
        else:
20047
          iprot.skip(ftype)
20048
      else:
20049
        iprot.skip(ftype)
20050
      iprot.readFieldEnd()
20051
    iprot.readStructEnd()
20052
 
20053
  def write(self, oprot):
20054
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20055
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20056
      return
20057
    oprot.writeStructBegin('getAllItemVouchers_result')
20058
    if self.success is not None:
20059
      oprot.writeFieldBegin('success', TType.LIST, 0)
20060
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20061
      for iter375 in self.success:
20062
        iter375.write(oprot)
5944 mandeep.dh 20063
      oprot.writeListEnd()
20064
      oprot.writeFieldEnd()
20065
    oprot.writeFieldStop()
20066
    oprot.writeStructEnd()
20067
 
20068
  def validate(self):
20069
    return
20070
 
20071
 
20072
  def __repr__(self):
20073
    L = ['%s=%r' % (key, value)
20074
      for key, value in self.__dict__.iteritems()]
20075
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20076
 
20077
  def __eq__(self, other):
20078
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20079
 
20080
  def __ne__(self, other):
20081
    return not (self == other)
20082
 
20083
class isValidCatalogItemId_args:
20084
  """
20085
  Attributes:
20086
   - catalog_item_id
20087
  """
20088
 
20089
  thrift_spec = (
20090
    None, # 0
20091
    (1, TType.I64, 'catalog_item_id', None, None, ), # 1
20092
  )
20093
 
20094
  def __init__(self, catalog_item_id=None,):
20095
    self.catalog_item_id = catalog_item_id
20096
 
20097
  def read(self, iprot):
20098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20100
      return
20101
    iprot.readStructBegin()
20102
    while True:
20103
      (fname, ftype, fid) = iprot.readFieldBegin()
20104
      if ftype == TType.STOP:
20105
        break
20106
      if fid == 1:
20107
        if ftype == TType.I64:
20108
          self.catalog_item_id = iprot.readI64();
20109
        else:
20110
          iprot.skip(ftype)
20111
      else:
20112
        iprot.skip(ftype)
20113
      iprot.readFieldEnd()
20114
    iprot.readStructEnd()
20115
 
20116
  def write(self, oprot):
20117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20119
      return
20120
    oprot.writeStructBegin('isValidCatalogItemId_args')
20121
    if self.catalog_item_id is not None:
20122
      oprot.writeFieldBegin('catalog_item_id', TType.I64, 1)
20123
      oprot.writeI64(self.catalog_item_id)
20124
      oprot.writeFieldEnd()
20125
    oprot.writeFieldStop()
20126
    oprot.writeStructEnd()
20127
 
20128
  def validate(self):
20129
    return
20130
 
20131
 
20132
  def __repr__(self):
20133
    L = ['%s=%r' % (key, value)
20134
      for key, value in self.__dict__.iteritems()]
20135
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20136
 
20137
  def __eq__(self, other):
20138
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20139
 
20140
  def __ne__(self, other):
20141
    return not (self == other)
20142
 
20143
class isValidCatalogItemId_result:
20144
  """
20145
  Attributes:
20146
   - success
20147
  """
20148
 
20149
  thrift_spec = (
20150
    (0, TType.BOOL, 'success', None, None, ), # 0
20151
  )
20152
 
20153
  def __init__(self, success=None,):
20154
    self.success = success
20155
 
20156
  def read(self, iprot):
20157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20159
      return
20160
    iprot.readStructBegin()
20161
    while True:
20162
      (fname, ftype, fid) = iprot.readFieldBegin()
20163
      if ftype == TType.STOP:
20164
        break
20165
      if fid == 0:
20166
        if ftype == TType.BOOL:
20167
          self.success = iprot.readBool();
20168
        else:
20169
          iprot.skip(ftype)
20170
      else:
20171
        iprot.skip(ftype)
20172
      iprot.readFieldEnd()
20173
    iprot.readStructEnd()
20174
 
20175
  def write(self, oprot):
20176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20178
      return
20179
    oprot.writeStructBegin('isValidCatalogItemId_result')
20180
    if self.success is not None:
20181
      oprot.writeFieldBegin('success', TType.BOOL, 0)
20182
      oprot.writeBool(self.success)
20183
      oprot.writeFieldEnd()
20184
    oprot.writeFieldStop()
20185
    oprot.writeStructEnd()
20186
 
20187
  def validate(self):
20188
    return
20189
 
20190
 
20191
  def __repr__(self):
20192
    L = ['%s=%r' % (key, value)
20193
      for key, value in self.__dict__.iteritems()]
20194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20195
 
20196
  def __eq__(self, other):
20197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20198
 
20199
  def __ne__(self, other):
20200
    return not (self == other)
6039 amit.gupta 20201
 
20202
class getVatPercentageForItem_args:
20203
  """
20204
  Attributes:
20205
   - itemId
7330 amit.gupta 20206
   - stateId
6039 amit.gupta 20207
   - price
20208
  """
20209
 
20210
  thrift_spec = (
20211
    None, # 0
20212
    (1, TType.I64, 'itemId', None, None, ), # 1
7330 amit.gupta 20213
    (2, TType.I64, 'stateId', None, None, ), # 2
20214
    (3, TType.DOUBLE, 'price', None, None, ), # 3
6039 amit.gupta 20215
  )
20216
 
7330 amit.gupta 20217
  def __init__(self, itemId=None, stateId=None, price=None,):
6039 amit.gupta 20218
    self.itemId = itemId
7330 amit.gupta 20219
    self.stateId = stateId
6039 amit.gupta 20220
    self.price = price
20221
 
20222
  def read(self, iprot):
20223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20225
      return
20226
    iprot.readStructBegin()
20227
    while True:
20228
      (fname, ftype, fid) = iprot.readFieldBegin()
20229
      if ftype == TType.STOP:
20230
        break
20231
      if fid == 1:
20232
        if ftype == TType.I64:
20233
          self.itemId = iprot.readI64();
20234
        else:
20235
          iprot.skip(ftype)
20236
      elif fid == 2:
7330 amit.gupta 20237
        if ftype == TType.I64:
20238
          self.stateId = iprot.readI64();
20239
        else:
20240
          iprot.skip(ftype)
20241
      elif fid == 3:
6039 amit.gupta 20242
        if ftype == TType.DOUBLE:
20243
          self.price = iprot.readDouble();
20244
        else:
20245
          iprot.skip(ftype)
20246
      else:
20247
        iprot.skip(ftype)
20248
      iprot.readFieldEnd()
20249
    iprot.readStructEnd()
20250
 
20251
  def write(self, oprot):
20252
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20253
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20254
      return
20255
    oprot.writeStructBegin('getVatPercentageForItem_args')
20256
    if self.itemId is not None:
20257
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20258
      oprot.writeI64(self.itemId)
20259
      oprot.writeFieldEnd()
7330 amit.gupta 20260
    if self.stateId is not None:
20261
      oprot.writeFieldBegin('stateId', TType.I64, 2)
20262
      oprot.writeI64(self.stateId)
20263
      oprot.writeFieldEnd()
6039 amit.gupta 20264
    if self.price is not None:
7330 amit.gupta 20265
      oprot.writeFieldBegin('price', TType.DOUBLE, 3)
6039 amit.gupta 20266
      oprot.writeDouble(self.price)
20267
      oprot.writeFieldEnd()
20268
    oprot.writeFieldStop()
20269
    oprot.writeStructEnd()
20270
 
20271
  def validate(self):
20272
    return
20273
 
20274
 
20275
  def __repr__(self):
20276
    L = ['%s=%r' % (key, value)
20277
      for key, value in self.__dict__.iteritems()]
20278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20279
 
20280
  def __eq__(self, other):
20281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20282
 
20283
  def __ne__(self, other):
20284
    return not (self == other)
20285
 
20286
class getVatPercentageForItem_result:
20287
  """
20288
  Attributes:
20289
   - success
7340 amit.gupta 20290
   - cex
6039 amit.gupta 20291
  """
20292
 
20293
  thrift_spec = (
20294
    (0, TType.DOUBLE, 'success', None, None, ), # 0
7340 amit.gupta 20295
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
6039 amit.gupta 20296
  )
20297
 
7340 amit.gupta 20298
  def __init__(self, success=None, cex=None,):
6039 amit.gupta 20299
    self.success = success
7340 amit.gupta 20300
    self.cex = cex
6039 amit.gupta 20301
 
20302
  def read(self, iprot):
20303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20305
      return
20306
    iprot.readStructBegin()
20307
    while True:
20308
      (fname, ftype, fid) = iprot.readFieldBegin()
20309
      if ftype == TType.STOP:
20310
        break
20311
      if fid == 0:
20312
        if ftype == TType.DOUBLE:
20313
          self.success = iprot.readDouble();
20314
        else:
20315
          iprot.skip(ftype)
7340 amit.gupta 20316
      elif fid == 1:
20317
        if ftype == TType.STRUCT:
20318
          self.cex = CatalogServiceException()
20319
          self.cex.read(iprot)
20320
        else:
20321
          iprot.skip(ftype)
6039 amit.gupta 20322
      else:
20323
        iprot.skip(ftype)
20324
      iprot.readFieldEnd()
20325
    iprot.readStructEnd()
20326
 
20327
  def write(self, oprot):
20328
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20329
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20330
      return
20331
    oprot.writeStructBegin('getVatPercentageForItem_result')
20332
    if self.success is not None:
20333
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20334
      oprot.writeDouble(self.success)
20335
      oprot.writeFieldEnd()
7340 amit.gupta 20336
    if self.cex is not None:
20337
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
20338
      self.cex.write(oprot)
20339
      oprot.writeFieldEnd()
6039 amit.gupta 20340
    oprot.writeFieldStop()
20341
    oprot.writeStructEnd()
20342
 
20343
  def validate(self):
20344
    return
20345
 
20346
 
20347
  def __repr__(self):
20348
    L = ['%s=%r' % (key, value)
20349
      for key, value in self.__dict__.iteritems()]
20350
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20351
 
20352
  def __eq__(self, other):
20353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20354
 
20355
  def __ne__(self, other):
20356
    return not (self == other)
20357
 
20358
class getVatAmountForItem_args:
20359
  """
20360
  Attributes:
20361
   - itemId
20362
   - price
20363
  """
20364
 
20365
  thrift_spec = (
20366
    None, # 0
20367
    (1, TType.I64, 'itemId', None, None, ), # 1
20368
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20369
  )
20370
 
20371
  def __init__(self, itemId=None, price=None,):
20372
    self.itemId = itemId
20373
    self.price = price
20374
 
20375
  def read(self, iprot):
20376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20378
      return
20379
    iprot.readStructBegin()
20380
    while True:
20381
      (fname, ftype, fid) = iprot.readFieldBegin()
20382
      if ftype == TType.STOP:
20383
        break
20384
      if fid == 1:
20385
        if ftype == TType.I64:
20386
          self.itemId = iprot.readI64();
20387
        else:
20388
          iprot.skip(ftype)
20389
      elif fid == 2:
20390
        if ftype == TType.DOUBLE:
20391
          self.price = iprot.readDouble();
20392
        else:
20393
          iprot.skip(ftype)
20394
      else:
20395
        iprot.skip(ftype)
20396
      iprot.readFieldEnd()
20397
    iprot.readStructEnd()
20398
 
20399
  def write(self, oprot):
20400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20402
      return
20403
    oprot.writeStructBegin('getVatAmountForItem_args')
20404
    if self.itemId is not None:
20405
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20406
      oprot.writeI64(self.itemId)
20407
      oprot.writeFieldEnd()
20408
    if self.price is not None:
20409
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20410
      oprot.writeDouble(self.price)
20411
      oprot.writeFieldEnd()
20412
    oprot.writeFieldStop()
20413
    oprot.writeStructEnd()
20414
 
20415
  def validate(self):
20416
    return
20417
 
20418
 
20419
  def __repr__(self):
20420
    L = ['%s=%r' % (key, value)
20421
      for key, value in self.__dict__.iteritems()]
20422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20423
 
20424
  def __eq__(self, other):
20425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20426
 
20427
  def __ne__(self, other):
20428
    return not (self == other)
20429
 
20430
class getVatAmountForItem_result:
20431
  """
20432
  Attributes:
20433
   - success
20434
  """
20435
 
20436
  thrift_spec = (
20437
    (0, TType.DOUBLE, 'success', None, None, ), # 0
20438
  )
20439
 
20440
  def __init__(self, success=None,):
20441
    self.success = success
20442
 
20443
  def read(self, iprot):
20444
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20445
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20446
      return
20447
    iprot.readStructBegin()
20448
    while True:
20449
      (fname, ftype, fid) = iprot.readFieldBegin()
20450
      if ftype == TType.STOP:
20451
        break
20452
      if fid == 0:
20453
        if ftype == TType.DOUBLE:
20454
          self.success = iprot.readDouble();
20455
        else:
20456
          iprot.skip(ftype)
20457
      else:
20458
        iprot.skip(ftype)
20459
      iprot.readFieldEnd()
20460
    iprot.readStructEnd()
20461
 
20462
  def write(self, oprot):
20463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20465
      return
20466
    oprot.writeStructBegin('getVatAmountForItem_result')
20467
    if self.success is not None:
20468
      oprot.writeFieldBegin('success', TType.DOUBLE, 0)
20469
      oprot.writeDouble(self.success)
20470
      oprot.writeFieldEnd()
20471
    oprot.writeFieldStop()
20472
    oprot.writeStructEnd()
20473
 
20474
  def validate(self):
20475
    return
20476
 
20477
 
20478
  def __repr__(self):
20479
    L = ['%s=%r' % (key, value)
20480
      for key, value in self.__dict__.iteritems()]
20481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20482
 
20483
  def __eq__(self, other):
20484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20485
 
20486
  def __ne__(self, other):
20487
    return not (self == other)
6531 vikram.rag 20488
 
20489
class getAllIgnoredInventoryUpdateItemsList_args:
20490
  """
20491
  Attributes:
20492
   - offset
20493
   - limit
20494
  """
20495
 
20496
  thrift_spec = (
20497
    None, # 0
20498
    (1, TType.I32, 'offset', None, None, ), # 1
20499
    (2, TType.I32, 'limit', None, None, ), # 2
20500
  )
20501
 
20502
  def __init__(self, offset=None, limit=None,):
20503
    self.offset = offset
20504
    self.limit = limit
20505
 
20506
  def read(self, iprot):
20507
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20508
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20509
      return
20510
    iprot.readStructBegin()
20511
    while True:
20512
      (fname, ftype, fid) = iprot.readFieldBegin()
20513
      if ftype == TType.STOP:
20514
        break
20515
      if fid == 1:
20516
        if ftype == TType.I32:
20517
          self.offset = iprot.readI32();
20518
        else:
20519
          iprot.skip(ftype)
20520
      elif fid == 2:
20521
        if ftype == TType.I32:
20522
          self.limit = iprot.readI32();
20523
        else:
20524
          iprot.skip(ftype)
20525
      else:
20526
        iprot.skip(ftype)
20527
      iprot.readFieldEnd()
20528
    iprot.readStructEnd()
20529
 
20530
  def write(self, oprot):
20531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20533
      return
20534
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_args')
20535
    if self.offset is not None:
20536
      oprot.writeFieldBegin('offset', TType.I32, 1)
20537
      oprot.writeI32(self.offset)
20538
      oprot.writeFieldEnd()
20539
    if self.limit is not None:
20540
      oprot.writeFieldBegin('limit', TType.I32, 2)
20541
      oprot.writeI32(self.limit)
20542
      oprot.writeFieldEnd()
20543
    oprot.writeFieldStop()
20544
    oprot.writeStructEnd()
20545
 
20546
  def validate(self):
20547
    return
20548
 
20549
 
20550
  def __repr__(self):
20551
    L = ['%s=%r' % (key, value)
20552
      for key, value in self.__dict__.iteritems()]
20553
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20554
 
20555
  def __eq__(self, other):
20556
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20557
 
20558
  def __ne__(self, other):
20559
    return not (self == other)
20560
 
20561
class getAllIgnoredInventoryUpdateItemsList_result:
20562
  """
20563
  Attributes:
20564
   - success
20565
  """
20566
 
20567
  thrift_spec = (
20568
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20569
  )
20570
 
20571
  def __init__(self, success=None,):
20572
    self.success = success
20573
 
20574
  def read(self, iprot):
20575
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20576
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20577
      return
20578
    iprot.readStructBegin()
20579
    while True:
20580
      (fname, ftype, fid) = iprot.readFieldBegin()
20581
      if ftype == TType.STOP:
20582
        break
20583
      if fid == 0:
20584
        if ftype == TType.LIST:
20585
          self.success = []
12567 amit.gupta 20586
          (_etype379, _size376) = iprot.readListBegin()
20587
          for _i380 in xrange(_size376):
20588
            _elem381 = Item()
20589
            _elem381.read(iprot)
20590
            self.success.append(_elem381)
6531 vikram.rag 20591
          iprot.readListEnd()
20592
        else:
20593
          iprot.skip(ftype)
20594
      else:
20595
        iprot.skip(ftype)
20596
      iprot.readFieldEnd()
20597
    iprot.readStructEnd()
20598
 
20599
  def write(self, oprot):
20600
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20601
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20602
      return
20603
    oprot.writeStructBegin('getAllIgnoredInventoryUpdateItemsList_result')
20604
    if self.success is not None:
20605
      oprot.writeFieldBegin('success', TType.LIST, 0)
20606
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20607
      for iter382 in self.success:
20608
        iter382.write(oprot)
6531 vikram.rag 20609
      oprot.writeListEnd()
20610
      oprot.writeFieldEnd()
20611
    oprot.writeFieldStop()
20612
    oprot.writeStructEnd()
20613
 
20614
  def validate(self):
20615
    return
20616
 
20617
 
20618
  def __repr__(self):
20619
    L = ['%s=%r' % (key, value)
20620
      for key, value in self.__dict__.iteritems()]
20621
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20622
 
20623
  def __eq__(self, other):
20624
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20625
 
20626
  def __ne__(self, other):
20627
    return not (self == other)
6805 anupam.sin 20628
 
6821 amar.kumar 20629
class getAllAliveItems_args:
20630
 
20631
  thrift_spec = (
20632
  )
20633
 
20634
  def read(self, iprot):
20635
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20636
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20637
      return
20638
    iprot.readStructBegin()
20639
    while True:
20640
      (fname, ftype, fid) = iprot.readFieldBegin()
20641
      if ftype == TType.STOP:
20642
        break
20643
      else:
20644
        iprot.skip(ftype)
20645
      iprot.readFieldEnd()
20646
    iprot.readStructEnd()
20647
 
20648
  def write(self, oprot):
20649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20651
      return
20652
    oprot.writeStructBegin('getAllAliveItems_args')
20653
    oprot.writeFieldStop()
20654
    oprot.writeStructEnd()
20655
 
20656
  def validate(self):
20657
    return
20658
 
20659
 
20660
  def __repr__(self):
20661
    L = ['%s=%r' % (key, value)
20662
      for key, value in self.__dict__.iteritems()]
20663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20664
 
20665
  def __eq__(self, other):
20666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20667
 
20668
  def __ne__(self, other):
20669
    return not (self == other)
20670
 
20671
class getAllAliveItems_result:
20672
  """
20673
  Attributes:
20674
   - success
20675
  """
20676
 
20677
  thrift_spec = (
20678
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
20679
  )
20680
 
20681
  def __init__(self, success=None,):
20682
    self.success = success
20683
 
20684
  def read(self, iprot):
20685
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20686
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20687
      return
20688
    iprot.readStructBegin()
20689
    while True:
20690
      (fname, ftype, fid) = iprot.readFieldBegin()
20691
      if ftype == TType.STOP:
20692
        break
20693
      if fid == 0:
20694
        if ftype == TType.LIST:
20695
          self.success = []
12567 amit.gupta 20696
          (_etype386, _size383) = iprot.readListBegin()
20697
          for _i387 in xrange(_size383):
20698
            _elem388 = Item()
20699
            _elem388.read(iprot)
20700
            self.success.append(_elem388)
6821 amar.kumar 20701
          iprot.readListEnd()
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('getAllAliveItems_result')
20714
    if self.success is not None:
20715
      oprot.writeFieldBegin('success', TType.LIST, 0)
20716
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 20717
      for iter389 in self.success:
20718
        iter389.write(oprot)
6821 amar.kumar 20719
      oprot.writeListEnd()
20720
      oprot.writeFieldEnd()
20721
    oprot.writeFieldStop()
20722
    oprot.writeStructEnd()
20723
 
20724
  def validate(self):
20725
    return
20726
 
20727
 
20728
  def __repr__(self):
20729
    L = ['%s=%r' % (key, value)
20730
      for key, value in self.__dict__.iteritems()]
20731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20732
 
20733
  def __eq__(self, other):
20734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20735
 
20736
  def __ne__(self, other):
20737
    return not (self == other)
20738
 
6805 anupam.sin 20739
class getInsuranceAmount_args:
20740
  """
20741
  Attributes:
20742
   - itemId
6921 anupam.sin 20743
   - price
6805 anupam.sin 20744
   - insurerId
20745
   - quantity
20746
  """
20747
 
20748
  thrift_spec = (
20749
    None, # 0
20750
    (1, TType.I64, 'itemId', None, None, ), # 1
6921 anupam.sin 20751
    (2, TType.DOUBLE, 'price', None, None, ), # 2
20752
    (3, TType.I64, 'insurerId', None, None, ), # 3
20753
    (4, TType.I64, 'quantity', None, None, ), # 4
6805 anupam.sin 20754
  )
20755
 
6921 anupam.sin 20756
  def __init__(self, itemId=None, price=None, insurerId=None, quantity=None,):
6805 anupam.sin 20757
    self.itemId = itemId
6921 anupam.sin 20758
    self.price = price
6805 anupam.sin 20759
    self.insurerId = insurerId
20760
    self.quantity = quantity
20761
 
20762
  def read(self, iprot):
20763
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20764
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20765
      return
20766
    iprot.readStructBegin()
20767
    while True:
20768
      (fname, ftype, fid) = iprot.readFieldBegin()
20769
      if ftype == TType.STOP:
20770
        break
20771
      if fid == 1:
20772
        if ftype == TType.I64:
20773
          self.itemId = iprot.readI64();
20774
        else:
20775
          iprot.skip(ftype)
20776
      elif fid == 2:
6921 anupam.sin 20777
        if ftype == TType.DOUBLE:
20778
          self.price = iprot.readDouble();
20779
        else:
20780
          iprot.skip(ftype)
20781
      elif fid == 3:
6805 anupam.sin 20782
        if ftype == TType.I64:
20783
          self.insurerId = iprot.readI64();
20784
        else:
20785
          iprot.skip(ftype)
6921 anupam.sin 20786
      elif fid == 4:
6805 anupam.sin 20787
        if ftype == TType.I64:
20788
          self.quantity = iprot.readI64();
20789
        else:
20790
          iprot.skip(ftype)
20791
      else:
20792
        iprot.skip(ftype)
20793
      iprot.readFieldEnd()
20794
    iprot.readStructEnd()
20795
 
20796
  def write(self, oprot):
20797
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20798
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20799
      return
20800
    oprot.writeStructBegin('getInsuranceAmount_args')
20801
    if self.itemId is not None:
20802
      oprot.writeFieldBegin('itemId', TType.I64, 1)
20803
      oprot.writeI64(self.itemId)
20804
      oprot.writeFieldEnd()
6921 anupam.sin 20805
    if self.price is not None:
20806
      oprot.writeFieldBegin('price', TType.DOUBLE, 2)
20807
      oprot.writeDouble(self.price)
20808
      oprot.writeFieldEnd()
6805 anupam.sin 20809
    if self.insurerId is not None:
6921 anupam.sin 20810
      oprot.writeFieldBegin('insurerId', TType.I64, 3)
6805 anupam.sin 20811
      oprot.writeI64(self.insurerId)
20812
      oprot.writeFieldEnd()
20813
    if self.quantity is not None:
6921 anupam.sin 20814
      oprot.writeFieldBegin('quantity', TType.I64, 4)
6805 anupam.sin 20815
      oprot.writeI64(self.quantity)
20816
      oprot.writeFieldEnd()
20817
    oprot.writeFieldStop()
20818
    oprot.writeStructEnd()
20819
 
20820
  def validate(self):
20821
    return
20822
 
20823
 
20824
  def __repr__(self):
20825
    L = ['%s=%r' % (key, value)
20826
      for key, value in self.__dict__.iteritems()]
20827
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20828
 
20829
  def __eq__(self, other):
20830
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20831
 
20832
  def __ne__(self, other):
20833
    return not (self == other)
20834
 
20835
class getInsuranceAmount_result:
20836
  """
20837
  Attributes:
20838
   - success
20839
  """
20840
 
20841
  thrift_spec = (
20842
    (0, TType.I64, 'success', None, None, ), # 0
20843
  )
20844
 
20845
  def __init__(self, success=None,):
20846
    self.success = success
20847
 
20848
  def read(self, iprot):
20849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20851
      return
20852
    iprot.readStructBegin()
20853
    while True:
20854
      (fname, ftype, fid) = iprot.readFieldBegin()
20855
      if ftype == TType.STOP:
20856
        break
20857
      if fid == 0:
20858
        if ftype == TType.I64:
20859
          self.success = iprot.readI64();
20860
        else:
20861
          iprot.skip(ftype)
20862
      else:
20863
        iprot.skip(ftype)
20864
      iprot.readFieldEnd()
20865
    iprot.readStructEnd()
20866
 
20867
  def write(self, oprot):
20868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20870
      return
20871
    oprot.writeStructBegin('getInsuranceAmount_result')
20872
    if self.success is not None:
20873
      oprot.writeFieldBegin('success', TType.I64, 0)
20874
      oprot.writeI64(self.success)
20875
      oprot.writeFieldEnd()
20876
    oprot.writeFieldStop()
20877
    oprot.writeStructEnd()
20878
 
20879
  def validate(self):
20880
    return
20881
 
20882
 
20883
  def __repr__(self):
20884
    L = ['%s=%r' % (key, value)
20885
      for key, value in self.__dict__.iteritems()]
20886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20887
 
20888
  def __eq__(self, other):
20889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20890
 
20891
  def __ne__(self, other):
20892
    return not (self == other)
20893
 
20894
class getInsurer_args:
20895
  """
20896
  Attributes:
20897
   - insurerId
20898
  """
20899
 
20900
  thrift_spec = (
20901
    None, # 0
20902
    (1, TType.I64, 'insurerId', None, None, ), # 1
20903
  )
20904
 
20905
  def __init__(self, insurerId=None,):
20906
    self.insurerId = insurerId
20907
 
20908
  def read(self, iprot):
20909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20911
      return
20912
    iprot.readStructBegin()
20913
    while True:
20914
      (fname, ftype, fid) = iprot.readFieldBegin()
20915
      if ftype == TType.STOP:
20916
        break
20917
      if fid == 1:
20918
        if ftype == TType.I64:
20919
          self.insurerId = iprot.readI64();
20920
        else:
20921
          iprot.skip(ftype)
20922
      else:
20923
        iprot.skip(ftype)
20924
      iprot.readFieldEnd()
20925
    iprot.readStructEnd()
20926
 
20927
  def write(self, oprot):
20928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20930
      return
20931
    oprot.writeStructBegin('getInsurer_args')
20932
    if self.insurerId is not None:
20933
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
20934
      oprot.writeI64(self.insurerId)
20935
      oprot.writeFieldEnd()
20936
    oprot.writeFieldStop()
20937
    oprot.writeStructEnd()
20938
 
20939
  def validate(self):
20940
    return
20941
 
20942
 
20943
  def __repr__(self):
20944
    L = ['%s=%r' % (key, value)
20945
      for key, value in self.__dict__.iteritems()]
20946
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20947
 
20948
  def __eq__(self, other):
20949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20950
 
20951
  def __ne__(self, other):
20952
    return not (self == other)
20953
 
20954
class getInsurer_result:
20955
  """
20956
  Attributes:
20957
   - success
20958
  """
20959
 
20960
  thrift_spec = (
20961
    (0, TType.STRUCT, 'success', (Insurer, Insurer.thrift_spec), None, ), # 0
20962
  )
20963
 
20964
  def __init__(self, success=None,):
20965
    self.success = success
20966
 
20967
  def read(self, iprot):
20968
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20969
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20970
      return
20971
    iprot.readStructBegin()
20972
    while True:
20973
      (fname, ftype, fid) = iprot.readFieldBegin()
20974
      if ftype == TType.STOP:
20975
        break
20976
      if fid == 0:
20977
        if ftype == TType.STRUCT:
20978
          self.success = Insurer()
20979
          self.success.read(iprot)
20980
        else:
20981
          iprot.skip(ftype)
20982
      else:
20983
        iprot.skip(ftype)
20984
      iprot.readFieldEnd()
20985
    iprot.readStructEnd()
20986
 
20987
  def write(self, oprot):
20988
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20989
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20990
      return
20991
    oprot.writeStructBegin('getInsurer_result')
20992
    if self.success is not None:
20993
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
20994
      self.success.write(oprot)
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)
6838 vikram.rag 21013
 
21014
class getAllInsurers_args:
21015
 
21016
  thrift_spec = (
21017
  )
21018
 
21019
  def read(self, iprot):
21020
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21021
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21022
      return
21023
    iprot.readStructBegin()
21024
    while True:
21025
      (fname, ftype, fid) = iprot.readFieldBegin()
21026
      if ftype == TType.STOP:
21027
        break
21028
      else:
21029
        iprot.skip(ftype)
21030
      iprot.readFieldEnd()
21031
    iprot.readStructEnd()
21032
 
21033
  def write(self, oprot):
21034
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21035
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21036
      return
21037
    oprot.writeStructBegin('getAllInsurers_args')
21038
    oprot.writeFieldStop()
21039
    oprot.writeStructEnd()
21040
 
21041
  def validate(self):
21042
    return
21043
 
21044
 
21045
  def __repr__(self):
21046
    L = ['%s=%r' % (key, value)
21047
      for key, value in self.__dict__.iteritems()]
21048
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21049
 
21050
  def __eq__(self, other):
21051
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21052
 
21053
  def __ne__(self, other):
21054
    return not (self == other)
21055
 
21056
class getAllInsurers_result:
21057
  """
21058
  Attributes:
21059
   - success
21060
  """
21061
 
21062
  thrift_spec = (
21063
    (0, TType.LIST, 'success', (TType.STRUCT,(Insurer, Insurer.thrift_spec)), None, ), # 0
21064
  )
21065
 
21066
  def __init__(self, success=None,):
21067
    self.success = success
21068
 
21069
  def read(self, iprot):
21070
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21071
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21072
      return
21073
    iprot.readStructBegin()
21074
    while True:
21075
      (fname, ftype, fid) = iprot.readFieldBegin()
21076
      if ftype == TType.STOP:
21077
        break
21078
      if fid == 0:
21079
        if ftype == TType.LIST:
21080
          self.success = []
12567 amit.gupta 21081
          (_etype393, _size390) = iprot.readListBegin()
21082
          for _i394 in xrange(_size390):
21083
            _elem395 = Insurer()
21084
            _elem395.read(iprot)
21085
            self.success.append(_elem395)
6838 vikram.rag 21086
          iprot.readListEnd()
21087
        else:
21088
          iprot.skip(ftype)
21089
      else:
21090
        iprot.skip(ftype)
21091
      iprot.readFieldEnd()
21092
    iprot.readStructEnd()
21093
 
21094
  def write(self, oprot):
21095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21097
      return
21098
    oprot.writeStructBegin('getAllInsurers_result')
21099
    if self.success is not None:
21100
      oprot.writeFieldBegin('success', TType.LIST, 0)
21101
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 21102
      for iter396 in self.success:
21103
        iter396.write(oprot)
6838 vikram.rag 21104
      oprot.writeListEnd()
21105
      oprot.writeFieldEnd()
21106
    oprot.writeFieldStop()
21107
    oprot.writeStructEnd()
21108
 
21109
  def validate(self):
21110
    return
21111
 
21112
 
21113
  def __repr__(self):
21114
    L = ['%s=%r' % (key, value)
21115
      for key, value in self.__dict__.iteritems()]
21116
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21117
 
21118
  def __eq__(self, other):
21119
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21120
 
21121
  def __ne__(self, other):
21122
    return not (self == other)
6962 rajveer 21123
 
21124
class updateInsuranceDeclaredAmount_args:
21125
  """
21126
  Attributes:
21127
   - insurerId
21128
   - amount
21129
  """
21130
 
21131
  thrift_spec = (
21132
    None, # 0
21133
    (1, TType.I64, 'insurerId', None, None, ), # 1
21134
    (2, TType.DOUBLE, 'amount', None, None, ), # 2
21135
  )
21136
 
21137
  def __init__(self, insurerId=None, amount=None,):
21138
    self.insurerId = insurerId
21139
    self.amount = amount
21140
 
21141
  def read(self, iprot):
21142
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21143
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21144
      return
21145
    iprot.readStructBegin()
21146
    while True:
21147
      (fname, ftype, fid) = iprot.readFieldBegin()
21148
      if ftype == TType.STOP:
21149
        break
21150
      if fid == 1:
21151
        if ftype == TType.I64:
21152
          self.insurerId = iprot.readI64();
21153
        else:
21154
          iprot.skip(ftype)
21155
      elif fid == 2:
21156
        if ftype == TType.DOUBLE:
21157
          self.amount = iprot.readDouble();
21158
        else:
21159
          iprot.skip(ftype)
21160
      else:
21161
        iprot.skip(ftype)
21162
      iprot.readFieldEnd()
21163
    iprot.readStructEnd()
21164
 
21165
  def write(self, oprot):
21166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21168
      return
21169
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_args')
21170
    if self.insurerId is not None:
21171
      oprot.writeFieldBegin('insurerId', TType.I64, 1)
21172
      oprot.writeI64(self.insurerId)
21173
      oprot.writeFieldEnd()
21174
    if self.amount is not None:
21175
      oprot.writeFieldBegin('amount', TType.DOUBLE, 2)
21176
      oprot.writeDouble(self.amount)
21177
      oprot.writeFieldEnd()
21178
    oprot.writeFieldStop()
21179
    oprot.writeStructEnd()
21180
 
21181
  def validate(self):
21182
    return
21183
 
21184
 
21185
  def __repr__(self):
21186
    L = ['%s=%r' % (key, value)
21187
      for key, value in self.__dict__.iteritems()]
21188
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21189
 
21190
  def __eq__(self, other):
21191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21192
 
21193
  def __ne__(self, other):
21194
    return not (self == other)
21195
 
21196
class updateInsuranceDeclaredAmount_result:
21197
 
21198
  thrift_spec = (
21199
  )
21200
 
21201
  def read(self, iprot):
21202
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21203
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21204
      return
21205
    iprot.readStructBegin()
21206
    while True:
21207
      (fname, ftype, fid) = iprot.readFieldBegin()
21208
      if ftype == TType.STOP:
21209
        break
21210
      else:
21211
        iprot.skip(ftype)
21212
      iprot.readFieldEnd()
21213
    iprot.readStructEnd()
21214
 
21215
  def write(self, oprot):
21216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21218
      return
21219
    oprot.writeStructBegin('updateInsuranceDeclaredAmount_result')
21220
    oprot.writeFieldStop()
21221
    oprot.writeStructEnd()
21222
 
21223
  def validate(self):
21224
    return
21225
 
21226
 
21227
  def __repr__(self):
21228
    L = ['%s=%r' % (key, value)
21229
      for key, value in self.__dict__.iteritems()]
21230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21231
 
21232
  def __eq__(self, other):
21233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21234
 
21235
  def __ne__(self, other):
21236
    return not (self == other)
7190 amar.kumar 21237
 
21238
class getFreebieForItem_args:
21239
  """
21240
  Attributes:
21241
   - itemId
21242
  """
21243
 
21244
  thrift_spec = (
21245
    None, # 0
21246
    (1, TType.I64, 'itemId', None, None, ), # 1
21247
  )
21248
 
21249
  def __init__(self, itemId=None,):
21250
    self.itemId = itemId
21251
 
21252
  def read(self, iprot):
21253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21255
      return
21256
    iprot.readStructBegin()
21257
    while True:
21258
      (fname, ftype, fid) = iprot.readFieldBegin()
21259
      if ftype == TType.STOP:
21260
        break
21261
      if fid == 1:
21262
        if ftype == TType.I64:
21263
          self.itemId = iprot.readI64();
21264
        else:
21265
          iprot.skip(ftype)
21266
      else:
21267
        iprot.skip(ftype)
21268
      iprot.readFieldEnd()
21269
    iprot.readStructEnd()
21270
 
21271
  def write(self, oprot):
21272
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21273
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21274
      return
21275
    oprot.writeStructBegin('getFreebieForItem_args')
21276
    if self.itemId is not None:
21277
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21278
      oprot.writeI64(self.itemId)
21279
      oprot.writeFieldEnd()
21280
    oprot.writeFieldStop()
21281
    oprot.writeStructEnd()
21282
 
21283
  def validate(self):
21284
    return
21285
 
21286
 
21287
  def __repr__(self):
21288
    L = ['%s=%r' % (key, value)
21289
      for key, value in self.__dict__.iteritems()]
21290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21291
 
21292
  def __eq__(self, other):
21293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21294
 
21295
  def __ne__(self, other):
21296
    return not (self == other)
21297
 
21298
class getFreebieForItem_result:
21299
  """
21300
  Attributes:
21301
   - success
21302
  """
21303
 
21304
  thrift_spec = (
21305
    (0, TType.I64, 'success', None, None, ), # 0
21306
  )
21307
 
21308
  def __init__(self, success=None,):
21309
    self.success = success
21310
 
21311
  def read(self, iprot):
21312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21314
      return
21315
    iprot.readStructBegin()
21316
    while True:
21317
      (fname, ftype, fid) = iprot.readFieldBegin()
21318
      if ftype == TType.STOP:
21319
        break
21320
      if fid == 0:
21321
        if ftype == TType.I64:
21322
          self.success = iprot.readI64();
21323
        else:
21324
          iprot.skip(ftype)
21325
      else:
21326
        iprot.skip(ftype)
21327
      iprot.readFieldEnd()
21328
    iprot.readStructEnd()
21329
 
21330
  def write(self, oprot):
21331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21333
      return
21334
    oprot.writeStructBegin('getFreebieForItem_result')
21335
    if self.success is not None:
21336
      oprot.writeFieldBegin('success', TType.I64, 0)
21337
      oprot.writeI64(self.success)
21338
      oprot.writeFieldEnd()
21339
    oprot.writeFieldStop()
21340
    oprot.writeStructEnd()
21341
 
21342
  def validate(self):
21343
    return
21344
 
21345
 
21346
  def __repr__(self):
21347
    L = ['%s=%r' % (key, value)
21348
      for key, value in self.__dict__.iteritems()]
21349
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21350
 
21351
  def __eq__(self, other):
21352
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21353
 
21354
  def __ne__(self, other):
21355
    return not (self == other)
21356
 
21357
class addOrUpdateFreebieForItem_args:
21358
  """
21359
  Attributes:
21360
   - freebieItem
21361
  """
21362
 
21363
  thrift_spec = (
21364
    None, # 0
21365
    (1, TType.STRUCT, 'freebieItem', (FreebieItem, FreebieItem.thrift_spec), None, ), # 1
21366
  )
21367
 
21368
  def __init__(self, freebieItem=None,):
21369
    self.freebieItem = freebieItem
21370
 
21371
  def read(self, iprot):
21372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21374
      return
21375
    iprot.readStructBegin()
21376
    while True:
21377
      (fname, ftype, fid) = iprot.readFieldBegin()
21378
      if ftype == TType.STOP:
21379
        break
21380
      if fid == 1:
21381
        if ftype == TType.STRUCT:
21382
          self.freebieItem = FreebieItem()
21383
          self.freebieItem.read(iprot)
21384
        else:
21385
          iprot.skip(ftype)
21386
      else:
21387
        iprot.skip(ftype)
21388
      iprot.readFieldEnd()
21389
    iprot.readStructEnd()
21390
 
21391
  def write(self, oprot):
21392
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21393
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21394
      return
21395
    oprot.writeStructBegin('addOrUpdateFreebieForItem_args')
21396
    if self.freebieItem is not None:
21397
      oprot.writeFieldBegin('freebieItem', TType.STRUCT, 1)
21398
      self.freebieItem.write(oprot)
21399
      oprot.writeFieldEnd()
21400
    oprot.writeFieldStop()
21401
    oprot.writeStructEnd()
21402
 
21403
  def validate(self):
21404
    return
21405
 
21406
 
21407
  def __repr__(self):
21408
    L = ['%s=%r' % (key, value)
21409
      for key, value in self.__dict__.iteritems()]
21410
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21411
 
21412
  def __eq__(self, other):
21413
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21414
 
21415
  def __ne__(self, other):
21416
    return not (self == other)
21417
 
21418
class addOrUpdateFreebieForItem_result:
21419
 
21420
  thrift_spec = (
21421
  )
21422
 
21423
  def read(self, iprot):
21424
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21425
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21426
      return
21427
    iprot.readStructBegin()
21428
    while True:
21429
      (fname, ftype, fid) = iprot.readFieldBegin()
21430
      if ftype == TType.STOP:
21431
        break
21432
      else:
21433
        iprot.skip(ftype)
21434
      iprot.readFieldEnd()
21435
    iprot.readStructEnd()
21436
 
21437
  def write(self, oprot):
21438
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21439
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21440
      return
21441
    oprot.writeStructBegin('addOrUpdateFreebieForItem_result')
21442
    oprot.writeFieldStop()
21443
    oprot.writeStructEnd()
21444
 
21445
  def validate(self):
21446
    return
21447
 
21448
 
21449
  def __repr__(self):
21450
    L = ['%s=%r' % (key, value)
21451
      for key, value in self.__dict__.iteritems()]
21452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21453
 
21454
  def __eq__(self, other):
21455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21456
 
21457
  def __ne__(self, other):
21458
    return not (self == other)
7256 rajveer 21459
 
7272 amit.gupta 21460
class addOrUpdateBrandInfo_args:
21461
  """
21462
  Attributes:
21463
   - brandInfo
21464
  """
21465
 
21466
  thrift_spec = (
21467
    None, # 0
21468
    (1, TType.STRUCT, 'brandInfo', (BrandInfo, BrandInfo.thrift_spec), None, ), # 1
21469
  )
21470
 
21471
  def __init__(self, brandInfo=None,):
21472
    self.brandInfo = brandInfo
21473
 
21474
  def read(self, iprot):
21475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21477
      return
21478
    iprot.readStructBegin()
21479
    while True:
21480
      (fname, ftype, fid) = iprot.readFieldBegin()
21481
      if ftype == TType.STOP:
21482
        break
21483
      if fid == 1:
21484
        if ftype == TType.STRUCT:
21485
          self.brandInfo = BrandInfo()
21486
          self.brandInfo.read(iprot)
21487
        else:
21488
          iprot.skip(ftype)
21489
      else:
21490
        iprot.skip(ftype)
21491
      iprot.readFieldEnd()
21492
    iprot.readStructEnd()
21493
 
21494
  def write(self, oprot):
21495
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21496
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21497
      return
21498
    oprot.writeStructBegin('addOrUpdateBrandInfo_args')
21499
    if self.brandInfo is not None:
21500
      oprot.writeFieldBegin('brandInfo', TType.STRUCT, 1)
21501
      self.brandInfo.write(oprot)
21502
      oprot.writeFieldEnd()
21503
    oprot.writeFieldStop()
21504
    oprot.writeStructEnd()
21505
 
21506
  def validate(self):
21507
    return
21508
 
21509
 
21510
  def __repr__(self):
21511
    L = ['%s=%r' % (key, value)
21512
      for key, value in self.__dict__.iteritems()]
21513
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21514
 
21515
  def __eq__(self, other):
21516
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21517
 
21518
  def __ne__(self, other):
21519
    return not (self == other)
21520
 
21521
class addOrUpdateBrandInfo_result:
21522
 
21523
  thrift_spec = (
21524
  )
21525
 
21526
  def read(self, iprot):
21527
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21528
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21529
      return
21530
    iprot.readStructBegin()
21531
    while True:
21532
      (fname, ftype, fid) = iprot.readFieldBegin()
21533
      if ftype == TType.STOP:
21534
        break
21535
      else:
21536
        iprot.skip(ftype)
21537
      iprot.readFieldEnd()
21538
    iprot.readStructEnd()
21539
 
21540
  def write(self, oprot):
21541
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21542
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21543
      return
21544
    oprot.writeStructBegin('addOrUpdateBrandInfo_result')
21545
    oprot.writeFieldStop()
21546
    oprot.writeStructEnd()
21547
 
21548
  def validate(self):
21549
    return
21550
 
21551
 
21552
  def __repr__(self):
21553
    L = ['%s=%r' % (key, value)
21554
      for key, value in self.__dict__.iteritems()]
21555
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21556
 
21557
  def __eq__(self, other):
21558
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21559
 
21560
  def __ne__(self, other):
21561
    return not (self == other)
21562
 
21563
class getBrandInfo_args:
21564
 
21565
  thrift_spec = (
21566
  )
21567
 
21568
  def read(self, iprot):
21569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21571
      return
21572
    iprot.readStructBegin()
21573
    while True:
21574
      (fname, ftype, fid) = iprot.readFieldBegin()
21575
      if ftype == TType.STOP:
21576
        break
21577
      else:
21578
        iprot.skip(ftype)
21579
      iprot.readFieldEnd()
21580
    iprot.readStructEnd()
21581
 
21582
  def write(self, oprot):
21583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21585
      return
21586
    oprot.writeStructBegin('getBrandInfo_args')
21587
    oprot.writeFieldStop()
21588
    oprot.writeStructEnd()
21589
 
21590
  def validate(self):
21591
    return
21592
 
21593
 
21594
  def __repr__(self):
21595
    L = ['%s=%r' % (key, value)
21596
      for key, value in self.__dict__.iteritems()]
21597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21598
 
21599
  def __eq__(self, other):
21600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21601
 
21602
  def __ne__(self, other):
21603
    return not (self == other)
21604
 
21605
class getBrandInfo_result:
21606
  """
21607
  Attributes:
21608
   - success
21609
  """
21610
 
21611
  thrift_spec = (
21612
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRUCT,(BrandInfo, BrandInfo.thrift_spec)), None, ), # 0
21613
  )
21614
 
21615
  def __init__(self, success=None,):
21616
    self.success = success
21617
 
21618
  def read(self, iprot):
21619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21621
      return
21622
    iprot.readStructBegin()
21623
    while True:
21624
      (fname, ftype, fid) = iprot.readFieldBegin()
21625
      if ftype == TType.STOP:
21626
        break
21627
      if fid == 0:
21628
        if ftype == TType.MAP:
21629
          self.success = {}
12567 amit.gupta 21630
          (_ktype398, _vtype399, _size397 ) = iprot.readMapBegin() 
21631
          for _i401 in xrange(_size397):
21632
            _key402 = iprot.readString();
21633
            _val403 = BrandInfo()
21634
            _val403.read(iprot)
21635
            self.success[_key402] = _val403
7272 amit.gupta 21636
          iprot.readMapEnd()
21637
        else:
21638
          iprot.skip(ftype)
21639
      else:
21640
        iprot.skip(ftype)
21641
      iprot.readFieldEnd()
21642
    iprot.readStructEnd()
21643
 
21644
  def write(self, oprot):
21645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21647
      return
21648
    oprot.writeStructBegin('getBrandInfo_result')
21649
    if self.success is not None:
21650
      oprot.writeFieldBegin('success', TType.MAP, 0)
21651
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success))
12567 amit.gupta 21652
      for kiter404,viter405 in self.success.items():
21653
        oprot.writeString(kiter404)
21654
        viter405.write(oprot)
7272 amit.gupta 21655
      oprot.writeMapEnd()
21656
      oprot.writeFieldEnd()
21657
    oprot.writeFieldStop()
21658
    oprot.writeStructEnd()
21659
 
21660
  def validate(self):
21661
    return
21662
 
21663
 
21664
  def __repr__(self):
21665
    L = ['%s=%r' % (key, value)
21666
      for key, value in self.__dict__.iteritems()]
21667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21668
 
21669
  def __eq__(self, other):
21670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21671
 
21672
  def __ne__(self, other):
21673
    return not (self == other)
21674
 
7256 rajveer 21675
class getStorePricing_args:
21676
  """
21677
  Attributes:
21678
   - itemId
21679
  """
21680
 
21681
  thrift_spec = (
21682
    None, # 0
21683
    (1, TType.I64, 'itemId', None, None, ), # 1
21684
  )
21685
 
21686
  def __init__(self, itemId=None,):
21687
    self.itemId = itemId
21688
 
21689
  def read(self, iprot):
21690
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21691
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21692
      return
21693
    iprot.readStructBegin()
21694
    while True:
21695
      (fname, ftype, fid) = iprot.readFieldBegin()
21696
      if ftype == TType.STOP:
21697
        break
21698
      if fid == 1:
21699
        if ftype == TType.I64:
21700
          self.itemId = iprot.readI64();
21701
        else:
21702
          iprot.skip(ftype)
21703
      else:
21704
        iprot.skip(ftype)
21705
      iprot.readFieldEnd()
21706
    iprot.readStructEnd()
21707
 
21708
  def write(self, oprot):
21709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21711
      return
21712
    oprot.writeStructBegin('getStorePricing_args')
21713
    if self.itemId is not None:
21714
      oprot.writeFieldBegin('itemId', TType.I64, 1)
21715
      oprot.writeI64(self.itemId)
21716
      oprot.writeFieldEnd()
21717
    oprot.writeFieldStop()
21718
    oprot.writeStructEnd()
21719
 
21720
  def validate(self):
21721
    return
21722
 
21723
 
21724
  def __repr__(self):
21725
    L = ['%s=%r' % (key, value)
21726
      for key, value in self.__dict__.iteritems()]
21727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21728
 
21729
  def __eq__(self, other):
21730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21731
 
21732
  def __ne__(self, other):
21733
    return not (self == other)
21734
 
21735
class getStorePricing_result:
21736
  """
21737
  Attributes:
21738
   - success
21739
  """
21740
 
21741
  thrift_spec = (
21742
    (0, TType.STRUCT, 'success', (StorePricing, StorePricing.thrift_spec), None, ), # 0
21743
  )
21744
 
21745
  def __init__(self, success=None,):
21746
    self.success = success
21747
 
21748
  def read(self, iprot):
21749
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21750
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21751
      return
21752
    iprot.readStructBegin()
21753
    while True:
21754
      (fname, ftype, fid) = iprot.readFieldBegin()
21755
      if ftype == TType.STOP:
21756
        break
21757
      if fid == 0:
21758
        if ftype == TType.STRUCT:
21759
          self.success = StorePricing()
21760
          self.success.read(iprot)
21761
        else:
21762
          iprot.skip(ftype)
21763
      else:
21764
        iprot.skip(ftype)
21765
      iprot.readFieldEnd()
21766
    iprot.readStructEnd()
21767
 
21768
  def write(self, oprot):
21769
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21770
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21771
      return
21772
    oprot.writeStructBegin('getStorePricing_result')
21773
    if self.success is not None:
21774
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21775
      self.success.write(oprot)
21776
      oprot.writeFieldEnd()
21777
    oprot.writeFieldStop()
21778
    oprot.writeStructEnd()
21779
 
21780
  def validate(self):
21781
    return
21782
 
21783
 
21784
  def __repr__(self):
21785
    L = ['%s=%r' % (key, value)
21786
      for key, value in self.__dict__.iteritems()]
21787
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21788
 
21789
  def __eq__(self, other):
21790
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21791
 
21792
  def __ne__(self, other):
21793
    return not (self == other)
7265 rajveer 21794
 
7306 rajveer 21795
class getStorePricings_args:
21796
  """
21797
  Attributes:
21798
   - itemIds
21799
  """
21800
 
21801
  thrift_spec = (
21802
    None, # 0
21803
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
21804
  )
21805
 
21806
  def __init__(self, itemIds=None,):
21807
    self.itemIds = itemIds
21808
 
21809
  def read(self, iprot):
21810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21812
      return
21813
    iprot.readStructBegin()
21814
    while True:
21815
      (fname, ftype, fid) = iprot.readFieldBegin()
21816
      if ftype == TType.STOP:
21817
        break
21818
      if fid == 1:
21819
        if ftype == TType.LIST:
21820
          self.itemIds = []
12567 amit.gupta 21821
          (_etype409, _size406) = iprot.readListBegin()
21822
          for _i410 in xrange(_size406):
21823
            _elem411 = iprot.readI64();
21824
            self.itemIds.append(_elem411)
7306 rajveer 21825
          iprot.readListEnd()
21826
        else:
21827
          iprot.skip(ftype)
21828
      else:
21829
        iprot.skip(ftype)
21830
      iprot.readFieldEnd()
21831
    iprot.readStructEnd()
21832
 
21833
  def write(self, oprot):
21834
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21835
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21836
      return
21837
    oprot.writeStructBegin('getStorePricings_args')
21838
    if self.itemIds is not None:
21839
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
21840
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 21841
      for iter412 in self.itemIds:
21842
        oprot.writeI64(iter412)
7306 rajveer 21843
      oprot.writeListEnd()
21844
      oprot.writeFieldEnd()
21845
    oprot.writeFieldStop()
21846
    oprot.writeStructEnd()
21847
 
21848
  def validate(self):
21849
    return
21850
 
21851
 
21852
  def __repr__(self):
21853
    L = ['%s=%r' % (key, value)
21854
      for key, value in self.__dict__.iteritems()]
21855
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21856
 
21857
  def __eq__(self, other):
21858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21859
 
21860
  def __ne__(self, other):
21861
    return not (self == other)
21862
 
21863
class getStorePricings_result:
21864
  """
21865
  Attributes:
21866
   - success
21867
  """
21868
 
21869
  thrift_spec = (
21870
    (0, TType.LIST, 'success', (TType.STRUCT,(StorePricing, StorePricing.thrift_spec)), None, ), # 0
21871
  )
21872
 
21873
  def __init__(self, success=None,):
21874
    self.success = success
21875
 
21876
  def read(self, iprot):
21877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21879
      return
21880
    iprot.readStructBegin()
21881
    while True:
21882
      (fname, ftype, fid) = iprot.readFieldBegin()
21883
      if ftype == TType.STOP:
21884
        break
21885
      if fid == 0:
21886
        if ftype == TType.LIST:
21887
          self.success = []
12567 amit.gupta 21888
          (_etype416, _size413) = iprot.readListBegin()
21889
          for _i417 in xrange(_size413):
21890
            _elem418 = StorePricing()
21891
            _elem418.read(iprot)
21892
            self.success.append(_elem418)
7306 rajveer 21893
          iprot.readListEnd()
21894
        else:
21895
          iprot.skip(ftype)
21896
      else:
21897
        iprot.skip(ftype)
21898
      iprot.readFieldEnd()
21899
    iprot.readStructEnd()
21900
 
21901
  def write(self, oprot):
21902
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21903
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21904
      return
21905
    oprot.writeStructBegin('getStorePricings_result')
21906
    if self.success is not None:
21907
      oprot.writeFieldBegin('success', TType.LIST, 0)
21908
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 21909
      for iter419 in self.success:
21910
        iter419.write(oprot)
7306 rajveer 21911
      oprot.writeListEnd()
21912
      oprot.writeFieldEnd()
21913
    oprot.writeFieldStop()
21914
    oprot.writeStructEnd()
21915
 
21916
  def validate(self):
21917
    return
21918
 
21919
 
21920
  def __repr__(self):
21921
    L = ['%s=%r' % (key, value)
21922
      for key, value in self.__dict__.iteritems()]
21923
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21924
 
21925
  def __eq__(self, other):
21926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21927
 
21928
  def __ne__(self, other):
21929
    return not (self == other)
21930
 
7265 rajveer 21931
class updateStorePricing_args:
21932
  """
21933
  Attributes:
21934
   - sp
7382 rajveer 21935
   - allColors
7265 rajveer 21936
  """
21937
 
21938
  thrift_spec = (
21939
    None, # 0
21940
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
7382 rajveer 21941
    (2, TType.BOOL, 'allColors', None, None, ), # 2
7265 rajveer 21942
  )
21943
 
7382 rajveer 21944
  def __init__(self, sp=None, allColors=None,):
7265 rajveer 21945
    self.sp = sp
7382 rajveer 21946
    self.allColors = allColors
7265 rajveer 21947
 
21948
  def read(self, iprot):
21949
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21950
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21951
      return
21952
    iprot.readStructBegin()
21953
    while True:
21954
      (fname, ftype, fid) = iprot.readFieldBegin()
21955
      if ftype == TType.STOP:
21956
        break
21957
      if fid == 1:
21958
        if ftype == TType.STRUCT:
21959
          self.sp = StorePricing()
21960
          self.sp.read(iprot)
21961
        else:
21962
          iprot.skip(ftype)
7382 rajveer 21963
      elif fid == 2:
21964
        if ftype == TType.BOOL:
21965
          self.allColors = iprot.readBool();
21966
        else:
21967
          iprot.skip(ftype)
7265 rajveer 21968
      else:
21969
        iprot.skip(ftype)
21970
      iprot.readFieldEnd()
21971
    iprot.readStructEnd()
21972
 
21973
  def write(self, oprot):
21974
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21975
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21976
      return
21977
    oprot.writeStructBegin('updateStorePricing_args')
21978
    if self.sp is not None:
21979
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
21980
      self.sp.write(oprot)
21981
      oprot.writeFieldEnd()
7382 rajveer 21982
    if self.allColors is not None:
21983
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
21984
      oprot.writeBool(self.allColors)
21985
      oprot.writeFieldEnd()
7265 rajveer 21986
    oprot.writeFieldStop()
21987
    oprot.writeStructEnd()
21988
 
21989
  def validate(self):
21990
    return
21991
 
21992
 
21993
  def __repr__(self):
21994
    L = ['%s=%r' % (key, value)
21995
      for key, value in self.__dict__.iteritems()]
21996
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21997
 
21998
  def __eq__(self, other):
21999
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22000
 
22001
  def __ne__(self, other):
22002
    return not (self == other)
22003
 
22004
class updateStorePricing_result:
22005
 
22006
  thrift_spec = (
22007
  )
22008
 
22009
  def read(self, iprot):
22010
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22011
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22012
      return
22013
    iprot.readStructBegin()
22014
    while True:
22015
      (fname, ftype, fid) = iprot.readFieldBegin()
22016
      if ftype == TType.STOP:
22017
        break
22018
      else:
22019
        iprot.skip(ftype)
22020
      iprot.readFieldEnd()
22021
    iprot.readStructEnd()
22022
 
22023
  def write(self, oprot):
22024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22026
      return
22027
    oprot.writeStructBegin('updateStorePricing_result')
22028
    oprot.writeFieldStop()
22029
    oprot.writeStructEnd()
22030
 
22031
  def validate(self):
22032
    return
22033
 
22034
 
22035
  def __repr__(self):
22036
    L = ['%s=%r' % (key, value)
22037
      for key, value in self.__dict__.iteritems()]
22038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22039
 
22040
  def __eq__(self, other):
22041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22042
 
22043
  def __ne__(self, other):
22044
    return not (self == other)
7281 kshitij.so 22045
 
22046
class getAllAmazonListedItems_args:
22047
 
22048
  thrift_spec = (
22049
  )
22050
 
22051
  def read(self, iprot):
22052
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22053
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22054
      return
22055
    iprot.readStructBegin()
22056
    while True:
22057
      (fname, ftype, fid) = iprot.readFieldBegin()
22058
      if ftype == TType.STOP:
22059
        break
22060
      else:
22061
        iprot.skip(ftype)
22062
      iprot.readFieldEnd()
22063
    iprot.readStructEnd()
22064
 
22065
  def write(self, oprot):
22066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22068
      return
22069
    oprot.writeStructBegin('getAllAmazonListedItems_args')
22070
    oprot.writeFieldStop()
22071
    oprot.writeStructEnd()
22072
 
22073
  def validate(self):
22074
    return
22075
 
22076
 
22077
  def __repr__(self):
22078
    L = ['%s=%r' % (key, value)
22079
      for key, value in self.__dict__.iteritems()]
22080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22081
 
22082
  def __eq__(self, other):
22083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22084
 
22085
  def __ne__(self, other):
22086
    return not (self == other)
22087
 
22088
class getAllAmazonListedItems_result:
22089
  """
22090
  Attributes:
22091
   - success
22092
  """
22093
 
22094
  thrift_spec = (
22095
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22096
  )
22097
 
22098
  def __init__(self, success=None,):
22099
    self.success = success
22100
 
22101
  def read(self, iprot):
22102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22104
      return
22105
    iprot.readStructBegin()
22106
    while True:
22107
      (fname, ftype, fid) = iprot.readFieldBegin()
22108
      if ftype == TType.STOP:
22109
        break
22110
      if fid == 0:
22111
        if ftype == TType.LIST:
22112
          self.success = []
12567 amit.gupta 22113
          (_etype423, _size420) = iprot.readListBegin()
22114
          for _i424 in xrange(_size420):
22115
            _elem425 = Amazonlisted()
22116
            _elem425.read(iprot)
22117
            self.success.append(_elem425)
7281 kshitij.so 22118
          iprot.readListEnd()
22119
        else:
22120
          iprot.skip(ftype)
22121
      else:
22122
        iprot.skip(ftype)
22123
      iprot.readFieldEnd()
22124
    iprot.readStructEnd()
22125
 
22126
  def write(self, oprot):
22127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22129
      return
22130
    oprot.writeStructBegin('getAllAmazonListedItems_result')
22131
    if self.success is not None:
22132
      oprot.writeFieldBegin('success', TType.LIST, 0)
22133
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22134
      for iter426 in self.success:
22135
        iter426.write(oprot)
7281 kshitij.so 22136
      oprot.writeListEnd()
22137
      oprot.writeFieldEnd()
22138
    oprot.writeFieldStop()
22139
    oprot.writeStructEnd()
22140
 
22141
  def validate(self):
22142
    return
22143
 
22144
 
22145
  def __repr__(self):
22146
    L = ['%s=%r' % (key, value)
22147
      for key, value in self.__dict__.iteritems()]
22148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22149
 
22150
  def __eq__(self, other):
22151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22152
 
22153
  def __ne__(self, other):
22154
    return not (self == other)
22155
 
8619 kshitij.so 22156
class searchAmazonItems_args:
22157
  """
22158
  Attributes:
22159
   - searchTerm
22160
   - offset
22161
   - limit
22162
  """
22163
 
22164
  thrift_spec = (
22165
    None, # 0
22166
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22167
    (2, TType.I64, 'offset', None, None, ), # 2
22168
    (3, TType.I64, 'limit', None, None, ), # 3
22169
  )
22170
 
22171
  def __init__(self, searchTerm=None, offset=None, limit=None,):
22172
    self.searchTerm = searchTerm
22173
    self.offset = offset
22174
    self.limit = limit
22175
 
22176
  def read(self, iprot):
22177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22179
      return
22180
    iprot.readStructBegin()
22181
    while True:
22182
      (fname, ftype, fid) = iprot.readFieldBegin()
22183
      if ftype == TType.STOP:
22184
        break
22185
      if fid == 1:
22186
        if ftype == TType.LIST:
22187
          self.searchTerm = []
12567 amit.gupta 22188
          (_etype430, _size427) = iprot.readListBegin()
22189
          for _i431 in xrange(_size427):
22190
            _elem432 = iprot.readString();
22191
            self.searchTerm.append(_elem432)
8619 kshitij.so 22192
          iprot.readListEnd()
22193
        else:
22194
          iprot.skip(ftype)
22195
      elif fid == 2:
22196
        if ftype == TType.I64:
22197
          self.offset = iprot.readI64();
22198
        else:
22199
          iprot.skip(ftype)
22200
      elif fid == 3:
22201
        if ftype == TType.I64:
22202
          self.limit = iprot.readI64();
22203
        else:
22204
          iprot.skip(ftype)
22205
      else:
22206
        iprot.skip(ftype)
22207
      iprot.readFieldEnd()
22208
    iprot.readStructEnd()
22209
 
22210
  def write(self, oprot):
22211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22213
      return
22214
    oprot.writeStructBegin('searchAmazonItems_args')
22215
    if self.searchTerm is not None:
22216
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22217
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22218
      for iter433 in self.searchTerm:
22219
        oprot.writeString(iter433)
8619 kshitij.so 22220
      oprot.writeListEnd()
22221
      oprot.writeFieldEnd()
22222
    if self.offset is not None:
22223
      oprot.writeFieldBegin('offset', TType.I64, 2)
22224
      oprot.writeI64(self.offset)
22225
      oprot.writeFieldEnd()
22226
    if self.limit is not None:
22227
      oprot.writeFieldBegin('limit', TType.I64, 3)
22228
      oprot.writeI64(self.limit)
22229
      oprot.writeFieldEnd()
22230
    oprot.writeFieldStop()
22231
    oprot.writeStructEnd()
22232
 
22233
  def validate(self):
22234
    return
22235
 
22236
 
22237
  def __repr__(self):
22238
    L = ['%s=%r' % (key, value)
22239
      for key, value in self.__dict__.iteritems()]
22240
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22241
 
22242
  def __eq__(self, other):
22243
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22244
 
22245
  def __ne__(self, other):
22246
    return not (self == other)
22247
 
22248
class searchAmazonItems_result:
22249
  """
22250
  Attributes:
22251
   - success
22252
  """
22253
 
22254
  thrift_spec = (
22255
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
22256
  )
22257
 
22258
  def __init__(self, success=None,):
22259
    self.success = success
22260
 
22261
  def read(self, iprot):
22262
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22263
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22264
      return
22265
    iprot.readStructBegin()
22266
    while True:
22267
      (fname, ftype, fid) = iprot.readFieldBegin()
22268
      if ftype == TType.STOP:
22269
        break
22270
      if fid == 0:
22271
        if ftype == TType.LIST:
22272
          self.success = []
12567 amit.gupta 22273
          (_etype437, _size434) = iprot.readListBegin()
22274
          for _i438 in xrange(_size434):
22275
            _elem439 = Amazonlisted()
22276
            _elem439.read(iprot)
22277
            self.success.append(_elem439)
8619 kshitij.so 22278
          iprot.readListEnd()
22279
        else:
22280
          iprot.skip(ftype)
22281
      else:
22282
        iprot.skip(ftype)
22283
      iprot.readFieldEnd()
22284
    iprot.readStructEnd()
22285
 
22286
  def write(self, oprot):
22287
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22288
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22289
      return
22290
    oprot.writeStructBegin('searchAmazonItems_result')
22291
    if self.success is not None:
22292
      oprot.writeFieldBegin('success', TType.LIST, 0)
22293
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22294
      for iter440 in self.success:
22295
        iter440.write(oprot)
8619 kshitij.so 22296
      oprot.writeListEnd()
22297
      oprot.writeFieldEnd()
22298
    oprot.writeFieldStop()
22299
    oprot.writeStructEnd()
22300
 
22301
  def validate(self):
22302
    return
22303
 
22304
 
22305
  def __repr__(self):
22306
    L = ['%s=%r' % (key, value)
22307
      for key, value in self.__dict__.iteritems()]
22308
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22309
 
22310
  def __eq__(self, other):
22311
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22312
 
22313
  def __ne__(self, other):
22314
    return not (self == other)
22315
 
22316
class getAmazonSearchResultCount_args:
22317
  """
22318
  Attributes:
22319
   - searchTerm
22320
  """
22321
 
22322
  thrift_spec = (
22323
    None, # 0
22324
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
22325
  )
22326
 
22327
  def __init__(self, searchTerm=None,):
22328
    self.searchTerm = searchTerm
22329
 
22330
  def read(self, iprot):
22331
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22332
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22333
      return
22334
    iprot.readStructBegin()
22335
    while True:
22336
      (fname, ftype, fid) = iprot.readFieldBegin()
22337
      if ftype == TType.STOP:
22338
        break
22339
      if fid == 1:
22340
        if ftype == TType.LIST:
22341
          self.searchTerm = []
12567 amit.gupta 22342
          (_etype444, _size441) = iprot.readListBegin()
22343
          for _i445 in xrange(_size441):
22344
            _elem446 = iprot.readString();
22345
            self.searchTerm.append(_elem446)
8619 kshitij.so 22346
          iprot.readListEnd()
22347
        else:
22348
          iprot.skip(ftype)
22349
      else:
22350
        iprot.skip(ftype)
22351
      iprot.readFieldEnd()
22352
    iprot.readStructEnd()
22353
 
22354
  def write(self, oprot):
22355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22357
      return
22358
    oprot.writeStructBegin('getAmazonSearchResultCount_args')
22359
    if self.searchTerm is not None:
22360
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
22361
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 22362
      for iter447 in self.searchTerm:
22363
        oprot.writeString(iter447)
8619 kshitij.so 22364
      oprot.writeListEnd()
22365
      oprot.writeFieldEnd()
22366
    oprot.writeFieldStop()
22367
    oprot.writeStructEnd()
22368
 
22369
  def validate(self):
22370
    return
22371
 
22372
 
22373
  def __repr__(self):
22374
    L = ['%s=%r' % (key, value)
22375
      for key, value in self.__dict__.iteritems()]
22376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22377
 
22378
  def __eq__(self, other):
22379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22380
 
22381
  def __ne__(self, other):
22382
    return not (self == other)
22383
 
22384
class getAmazonSearchResultCount_result:
22385
  """
22386
  Attributes:
22387
   - success
22388
  """
22389
 
22390
  thrift_spec = (
22391
    (0, TType.I64, 'success', None, None, ), # 0
22392
  )
22393
 
22394
  def __init__(self, success=None,):
22395
    self.success = success
22396
 
22397
  def read(self, iprot):
22398
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22399
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22400
      return
22401
    iprot.readStructBegin()
22402
    while True:
22403
      (fname, ftype, fid) = iprot.readFieldBegin()
22404
      if ftype == TType.STOP:
22405
        break
22406
      if fid == 0:
22407
        if ftype == TType.I64:
22408
          self.success = iprot.readI64();
22409
        else:
22410
          iprot.skip(ftype)
22411
      else:
22412
        iprot.skip(ftype)
22413
      iprot.readFieldEnd()
22414
    iprot.readStructEnd()
22415
 
22416
  def write(self, oprot):
22417
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22418
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22419
      return
22420
    oprot.writeStructBegin('getAmazonSearchResultCount_result')
22421
    if self.success is not None:
22422
      oprot.writeFieldBegin('success', TType.I64, 0)
22423
      oprot.writeI64(self.success)
22424
      oprot.writeFieldEnd()
22425
    oprot.writeFieldStop()
22426
    oprot.writeStructEnd()
22427
 
22428
  def validate(self):
22429
    return
22430
 
22431
 
22432
  def __repr__(self):
22433
    L = ['%s=%r' % (key, value)
22434
      for key, value in self.__dict__.iteritems()]
22435
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22436
 
22437
  def __eq__(self, other):
22438
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22439
 
22440
  def __ne__(self, other):
22441
    return not (self == other)
22442
 
22443
class getCountForAmazonlistedItems_args:
22444
 
22445
  thrift_spec = (
22446
  )
22447
 
22448
  def read(self, iprot):
22449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22451
      return
22452
    iprot.readStructBegin()
22453
    while True:
22454
      (fname, ftype, fid) = iprot.readFieldBegin()
22455
      if ftype == TType.STOP:
22456
        break
22457
      else:
22458
        iprot.skip(ftype)
22459
      iprot.readFieldEnd()
22460
    iprot.readStructEnd()
22461
 
22462
  def write(self, oprot):
22463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22465
      return
22466
    oprot.writeStructBegin('getCountForAmazonlistedItems_args')
22467
    oprot.writeFieldStop()
22468
    oprot.writeStructEnd()
22469
 
22470
  def validate(self):
22471
    return
22472
 
22473
 
22474
  def __repr__(self):
22475
    L = ['%s=%r' % (key, value)
22476
      for key, value in self.__dict__.iteritems()]
22477
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22478
 
22479
  def __eq__(self, other):
22480
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22481
 
22482
  def __ne__(self, other):
22483
    return not (self == other)
22484
 
22485
class getCountForAmazonlistedItems_result:
22486
  """
22487
  Attributes:
22488
   - success
22489
  """
22490
 
22491
  thrift_spec = (
22492
    (0, TType.I64, 'success', None, None, ), # 0
22493
  )
22494
 
22495
  def __init__(self, success=None,):
22496
    self.success = success
22497
 
22498
  def read(self, iprot):
22499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22501
      return
22502
    iprot.readStructBegin()
22503
    while True:
22504
      (fname, ftype, fid) = iprot.readFieldBegin()
22505
      if ftype == TType.STOP:
22506
        break
22507
      if fid == 0:
22508
        if ftype == TType.I64:
22509
          self.success = iprot.readI64();
22510
        else:
22511
          iprot.skip(ftype)
22512
      else:
22513
        iprot.skip(ftype)
22514
      iprot.readFieldEnd()
22515
    iprot.readStructEnd()
22516
 
22517
  def write(self, oprot):
22518
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22519
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22520
      return
22521
    oprot.writeStructBegin('getCountForAmazonlistedItems_result')
22522
    if self.success is not None:
22523
      oprot.writeFieldBegin('success', TType.I64, 0)
22524
      oprot.writeI64(self.success)
22525
      oprot.writeFieldEnd()
22526
    oprot.writeFieldStop()
22527
    oprot.writeStructEnd()
22528
 
22529
  def validate(self):
22530
    return
22531
 
22532
 
22533
  def __repr__(self):
22534
    L = ['%s=%r' % (key, value)
22535
      for key, value in self.__dict__.iteritems()]
22536
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22537
 
22538
  def __eq__(self, other):
22539
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22540
 
22541
  def __ne__(self, other):
22542
    return not (self == other)
22543
 
7281 kshitij.so 22544
class getAmazonItemDetails_args:
22545
  """
22546
  Attributes:
22547
   - itemId
22548
  """
22549
 
22550
  thrift_spec = (
22551
    None, # 0
22552
    (1, TType.I64, 'itemId', None, None, ), # 1
22553
  )
22554
 
22555
  def __init__(self, itemId=None,):
22556
    self.itemId = itemId
22557
 
22558
  def read(self, iprot):
22559
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22560
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22561
      return
22562
    iprot.readStructBegin()
22563
    while True:
22564
      (fname, ftype, fid) = iprot.readFieldBegin()
22565
      if ftype == TType.STOP:
22566
        break
22567
      if fid == 1:
22568
        if ftype == TType.I64:
22569
          self.itemId = iprot.readI64();
22570
        else:
22571
          iprot.skip(ftype)
22572
      else:
22573
        iprot.skip(ftype)
22574
      iprot.readFieldEnd()
22575
    iprot.readStructEnd()
22576
 
22577
  def write(self, oprot):
22578
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22579
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22580
      return
22581
    oprot.writeStructBegin('getAmazonItemDetails_args')
22582
    if self.itemId is not None:
22583
      oprot.writeFieldBegin('itemId', TType.I64, 1)
22584
      oprot.writeI64(self.itemId)
22585
      oprot.writeFieldEnd()
22586
    oprot.writeFieldStop()
22587
    oprot.writeStructEnd()
22588
 
22589
  def validate(self):
22590
    return
22591
 
22592
 
22593
  def __repr__(self):
22594
    L = ['%s=%r' % (key, value)
22595
      for key, value in self.__dict__.iteritems()]
22596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22597
 
22598
  def __eq__(self, other):
22599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22600
 
22601
  def __ne__(self, other):
22602
    return not (self == other)
22603
 
22604
class getAmazonItemDetails_result:
22605
  """
22606
  Attributes:
22607
   - success
22608
  """
22609
 
22610
  thrift_spec = (
22611
    (0, TType.STRUCT, 'success', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 0
22612
  )
22613
 
22614
  def __init__(self, success=None,):
22615
    self.success = success
22616
 
22617
  def read(self, iprot):
22618
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22619
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22620
      return
22621
    iprot.readStructBegin()
22622
    while True:
22623
      (fname, ftype, fid) = iprot.readFieldBegin()
22624
      if ftype == TType.STOP:
22625
        break
22626
      if fid == 0:
22627
        if ftype == TType.STRUCT:
22628
          self.success = Amazonlisted()
22629
          self.success.read(iprot)
22630
        else:
22631
          iprot.skip(ftype)
22632
      else:
22633
        iprot.skip(ftype)
22634
      iprot.readFieldEnd()
22635
    iprot.readStructEnd()
22636
 
22637
  def write(self, oprot):
22638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22640
      return
22641
    oprot.writeStructBegin('getAmazonItemDetails_result')
22642
    if self.success is not None:
22643
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
22644
      self.success.write(oprot)
22645
      oprot.writeFieldEnd()
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 updateAmazonItemDetails_args:
22665
  """
22666
  Attributes:
8168 kshitij.so 22667
   - amazonlisted
7281 kshitij.so 22668
  """
22669
 
22670
  thrift_spec = (
22671
    None, # 0
8168 kshitij.so 22672
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
7281 kshitij.so 22673
  )
22674
 
8168 kshitij.so 22675
  def __init__(self, amazonlisted=None,):
22676
    self.amazonlisted = amazonlisted
7281 kshitij.so 22677
 
22678
  def read(self, iprot):
22679
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22680
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22681
      return
22682
    iprot.readStructBegin()
22683
    while True:
22684
      (fname, ftype, fid) = iprot.readFieldBegin()
22685
      if ftype == TType.STOP:
22686
        break
22687
      if fid == 1:
8168 kshitij.so 22688
        if ftype == TType.STRUCT:
22689
          self.amazonlisted = Amazonlisted()
22690
          self.amazonlisted.read(iprot)
7281 kshitij.so 22691
        else:
22692
          iprot.skip(ftype)
22693
      else:
22694
        iprot.skip(ftype)
22695
      iprot.readFieldEnd()
22696
    iprot.readStructEnd()
22697
 
22698
  def write(self, oprot):
22699
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22700
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22701
      return
22702
    oprot.writeStructBegin('updateAmazonItemDetails_args')
8168 kshitij.so 22703
    if self.amazonlisted is not None:
22704
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22705
      self.amazonlisted.write(oprot)
7281 kshitij.so 22706
      oprot.writeFieldEnd()
22707
    oprot.writeFieldStop()
22708
    oprot.writeStructEnd()
22709
 
22710
  def validate(self):
22711
    return
22712
 
22713
 
22714
  def __repr__(self):
22715
    L = ['%s=%r' % (key, value)
22716
      for key, value in self.__dict__.iteritems()]
22717
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22718
 
22719
  def __eq__(self, other):
22720
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22721
 
22722
  def __ne__(self, other):
22723
    return not (self == other)
22724
 
22725
class updateAmazonItemDetails_result:
22726
 
22727
  thrift_spec = (
22728
  )
22729
 
22730
  def read(self, iprot):
22731
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22732
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22733
      return
22734
    iprot.readStructBegin()
22735
    while True:
22736
      (fname, ftype, fid) = iprot.readFieldBegin()
22737
      if ftype == TType.STOP:
22738
        break
22739
      else:
22740
        iprot.skip(ftype)
22741
      iprot.readFieldEnd()
22742
    iprot.readStructEnd()
22743
 
22744
  def write(self, oprot):
22745
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22746
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22747
      return
22748
    oprot.writeStructBegin('updateAmazonItemDetails_result')
22749
    oprot.writeFieldStop()
22750
    oprot.writeStructEnd()
22751
 
22752
  def validate(self):
22753
    return
22754
 
22755
 
22756
  def __repr__(self):
22757
    L = ['%s=%r' % (key, value)
22758
      for key, value in self.__dict__.iteritems()]
22759
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22760
 
22761
  def __eq__(self, other):
22762
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22763
 
22764
  def __ne__(self, other):
22765
    return not (self == other)
22766
 
22767
class addAmazonItem_args:
22768
  """
22769
  Attributes:
22770
   - amazonlisted
22771
  """
22772
 
22773
  thrift_spec = (
22774
    None, # 0
22775
    (1, TType.STRUCT, 'amazonlisted', (Amazonlisted, Amazonlisted.thrift_spec), None, ), # 1
22776
  )
22777
 
22778
  def __init__(self, amazonlisted=None,):
22779
    self.amazonlisted = amazonlisted
22780
 
22781
  def read(self, iprot):
22782
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22783
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22784
      return
22785
    iprot.readStructBegin()
22786
    while True:
22787
      (fname, ftype, fid) = iprot.readFieldBegin()
22788
      if ftype == TType.STOP:
22789
        break
22790
      if fid == 1:
22791
        if ftype == TType.STRUCT:
22792
          self.amazonlisted = Amazonlisted()
22793
          self.amazonlisted.read(iprot)
22794
        else:
22795
          iprot.skip(ftype)
22796
      else:
22797
        iprot.skip(ftype)
22798
      iprot.readFieldEnd()
22799
    iprot.readStructEnd()
22800
 
22801
  def write(self, oprot):
22802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22804
      return
22805
    oprot.writeStructBegin('addAmazonItem_args')
22806
    if self.amazonlisted is not None:
22807
      oprot.writeFieldBegin('amazonlisted', TType.STRUCT, 1)
22808
      self.amazonlisted.write(oprot)
22809
      oprot.writeFieldEnd()
22810
    oprot.writeFieldStop()
22811
    oprot.writeStructEnd()
22812
 
22813
  def validate(self):
22814
    return
22815
 
22816
 
22817
  def __repr__(self):
22818
    L = ['%s=%r' % (key, value)
22819
      for key, value in self.__dict__.iteritems()]
22820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22821
 
22822
  def __eq__(self, other):
22823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22824
 
22825
  def __ne__(self, other):
22826
    return not (self == other)
22827
 
22828
class addAmazonItem_result:
22829
 
22830
  thrift_spec = (
22831
  )
22832
 
22833
  def read(self, iprot):
22834
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22835
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22836
      return
22837
    iprot.readStructBegin()
22838
    while True:
22839
      (fname, ftype, fid) = iprot.readFieldBegin()
22840
      if ftype == TType.STOP:
22841
        break
22842
      else:
22843
        iprot.skip(ftype)
22844
      iprot.readFieldEnd()
22845
    iprot.readStructEnd()
22846
 
22847
  def write(self, oprot):
22848
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22849
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22850
      return
22851
    oprot.writeStructBegin('addAmazonItem_result')
22852
    oprot.writeFieldStop()
22853
    oprot.writeStructEnd()
22854
 
22855
  def validate(self):
22856
    return
22857
 
22858
 
22859
  def __repr__(self):
22860
    L = ['%s=%r' % (key, value)
22861
      for key, value in self.__dict__.iteritems()]
22862
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22863
 
22864
  def __eq__(self, other):
22865
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22866
 
22867
  def __ne__(self, other):
22868
    return not (self == other)
7291 vikram.rag 22869
 
22870
class getAsinItems_args:
22871
 
22872
  thrift_spec = (
22873
  )
22874
 
22875
  def read(self, iprot):
22876
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22877
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22878
      return
22879
    iprot.readStructBegin()
22880
    while True:
22881
      (fname, ftype, fid) = iprot.readFieldBegin()
22882
      if ftype == TType.STOP:
22883
        break
22884
      else:
22885
        iprot.skip(ftype)
22886
      iprot.readFieldEnd()
22887
    iprot.readStructEnd()
22888
 
22889
  def write(self, oprot):
22890
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22891
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22892
      return
22893
    oprot.writeStructBegin('getAsinItems_args')
22894
    oprot.writeFieldStop()
22895
    oprot.writeStructEnd()
22896
 
22897
  def validate(self):
22898
    return
22899
 
22900
 
22901
  def __repr__(self):
22902
    L = ['%s=%r' % (key, value)
22903
      for key, value in self.__dict__.iteritems()]
22904
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22905
 
22906
  def __eq__(self, other):
22907
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22908
 
22909
  def __ne__(self, other):
22910
    return not (self == other)
22911
 
22912
class getAsinItems_result:
22913
  """
22914
  Attributes:
22915
   - success
22916
  """
22917
 
22918
  thrift_spec = (
22919
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
22920
  )
22921
 
22922
  def __init__(self, success=None,):
22923
    self.success = success
22924
 
22925
  def read(self, iprot):
22926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22928
      return
22929
    iprot.readStructBegin()
22930
    while True:
22931
      (fname, ftype, fid) = iprot.readFieldBegin()
22932
      if ftype == TType.STOP:
22933
        break
22934
      if fid == 0:
22935
        if ftype == TType.LIST:
22936
          self.success = []
12567 amit.gupta 22937
          (_etype451, _size448) = iprot.readListBegin()
22938
          for _i452 in xrange(_size448):
22939
            _elem453 = Item()
22940
            _elem453.read(iprot)
22941
            self.success.append(_elem453)
7291 vikram.rag 22942
          iprot.readListEnd()
22943
        else:
22944
          iprot.skip(ftype)
22945
      else:
22946
        iprot.skip(ftype)
22947
      iprot.readFieldEnd()
22948
    iprot.readStructEnd()
22949
 
22950
  def write(self, oprot):
22951
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22952
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22953
      return
22954
    oprot.writeStructBegin('getAsinItems_result')
22955
    if self.success is not None:
22956
      oprot.writeFieldBegin('success', TType.LIST, 0)
22957
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 22958
      for iter454 in self.success:
22959
        iter454.write(oprot)
7291 vikram.rag 22960
      oprot.writeListEnd()
22961
      oprot.writeFieldEnd()
22962
    oprot.writeFieldStop()
22963
    oprot.writeStructEnd()
22964
 
22965
  def validate(self):
22966
    return
22967
 
22968
 
22969
  def __repr__(self):
22970
    L = ['%s=%r' % (key, value)
22971
      for key, value in self.__dict__.iteritems()]
22972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22973
 
22974
  def __eq__(self, other):
22975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22976
 
22977
  def __ne__(self, other):
22978
    return not (self == other)
22979
 
22980
class getAllFbaListedItems_args:
22981
 
22982
  thrift_spec = (
22983
  )
22984
 
22985
  def read(self, iprot):
22986
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22987
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22988
      return
22989
    iprot.readStructBegin()
22990
    while True:
22991
      (fname, ftype, fid) = iprot.readFieldBegin()
22992
      if ftype == TType.STOP:
22993
        break
22994
      else:
22995
        iprot.skip(ftype)
22996
      iprot.readFieldEnd()
22997
    iprot.readStructEnd()
22998
 
22999
  def write(self, oprot):
23000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23002
      return
23003
    oprot.writeStructBegin('getAllFbaListedItems_args')
23004
    oprot.writeFieldStop()
23005
    oprot.writeStructEnd()
23006
 
23007
  def validate(self):
23008
    return
23009
 
23010
 
23011
  def __repr__(self):
23012
    L = ['%s=%r' % (key, value)
23013
      for key, value in self.__dict__.iteritems()]
23014
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23015
 
23016
  def __eq__(self, other):
23017
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23018
 
23019
  def __ne__(self, other):
23020
    return not (self == other)
23021
 
23022
class getAllFbaListedItems_result:
23023
  """
23024
  Attributes:
23025
   - success
23026
  """
23027
 
23028
  thrift_spec = (
23029
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23030
  )
23031
 
23032
  def __init__(self, success=None,):
23033
    self.success = success
23034
 
23035
  def read(self, iprot):
23036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23038
      return
23039
    iprot.readStructBegin()
23040
    while True:
23041
      (fname, ftype, fid) = iprot.readFieldBegin()
23042
      if ftype == TType.STOP:
23043
        break
23044
      if fid == 0:
23045
        if ftype == TType.LIST:
23046
          self.success = []
12567 amit.gupta 23047
          (_etype458, _size455) = iprot.readListBegin()
23048
          for _i459 in xrange(_size455):
23049
            _elem460 = Amazonlisted()
23050
            _elem460.read(iprot)
23051
            self.success.append(_elem460)
7291 vikram.rag 23052
          iprot.readListEnd()
23053
        else:
23054
          iprot.skip(ftype)
23055
      else:
23056
        iprot.skip(ftype)
23057
      iprot.readFieldEnd()
23058
    iprot.readStructEnd()
23059
 
23060
  def write(self, oprot):
23061
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23062
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23063
      return
23064
    oprot.writeStructBegin('getAllFbaListedItems_result')
23065
    if self.success is not None:
23066
      oprot.writeFieldBegin('success', TType.LIST, 0)
23067
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23068
      for iter461 in self.success:
23069
        iter461.write(oprot)
7291 vikram.rag 23070
      oprot.writeListEnd()
23071
      oprot.writeFieldEnd()
23072
    oprot.writeFieldStop()
23073
    oprot.writeStructEnd()
23074
 
23075
  def validate(self):
23076
    return
23077
 
23078
 
23079
  def __repr__(self):
23080
    L = ['%s=%r' % (key, value)
23081
      for key, value in self.__dict__.iteritems()]
23082
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23083
 
23084
  def __eq__(self, other):
23085
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23086
 
23087
  def __ne__(self, other):
23088
    return not (self == other)
23089
 
23090
class getAllNonFbaListedItems_args:
23091
 
23092
  thrift_spec = (
23093
  )
23094
 
23095
  def read(self, iprot):
23096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23098
      return
23099
    iprot.readStructBegin()
23100
    while True:
23101
      (fname, ftype, fid) = iprot.readFieldBegin()
23102
      if ftype == TType.STOP:
23103
        break
23104
      else:
23105
        iprot.skip(ftype)
23106
      iprot.readFieldEnd()
23107
    iprot.readStructEnd()
23108
 
23109
  def write(self, oprot):
23110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23112
      return
23113
    oprot.writeStructBegin('getAllNonFbaListedItems_args')
23114
    oprot.writeFieldStop()
23115
    oprot.writeStructEnd()
23116
 
23117
  def validate(self):
23118
    return
23119
 
23120
 
23121
  def __repr__(self):
23122
    L = ['%s=%r' % (key, value)
23123
      for key, value in self.__dict__.iteritems()]
23124
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23125
 
23126
  def __eq__(self, other):
23127
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23128
 
23129
  def __ne__(self, other):
23130
    return not (self == other)
23131
 
23132
class getAllNonFbaListedItems_result:
23133
  """
23134
  Attributes:
23135
   - success
23136
  """
23137
 
23138
  thrift_spec = (
23139
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
23140
  )
23141
 
23142
  def __init__(self, success=None,):
23143
    self.success = success
23144
 
23145
  def read(self, iprot):
23146
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23147
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23148
      return
23149
    iprot.readStructBegin()
23150
    while True:
23151
      (fname, ftype, fid) = iprot.readFieldBegin()
23152
      if ftype == TType.STOP:
23153
        break
23154
      if fid == 0:
23155
        if ftype == TType.LIST:
23156
          self.success = []
12567 amit.gupta 23157
          (_etype465, _size462) = iprot.readListBegin()
23158
          for _i466 in xrange(_size462):
23159
            _elem467 = Amazonlisted()
23160
            _elem467.read(iprot)
23161
            self.success.append(_elem467)
7291 vikram.rag 23162
          iprot.readListEnd()
23163
        else:
23164
          iprot.skip(ftype)
23165
      else:
23166
        iprot.skip(ftype)
23167
      iprot.readFieldEnd()
23168
    iprot.readStructEnd()
23169
 
23170
  def write(self, oprot):
23171
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23172
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23173
      return
23174
    oprot.writeStructBegin('getAllNonFbaListedItems_result')
23175
    if self.success is not None:
23176
      oprot.writeFieldBegin('success', TType.LIST, 0)
23177
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23178
      for iter468 in self.success:
23179
        iter468.write(oprot)
7291 vikram.rag 23180
      oprot.writeListEnd()
23181
      oprot.writeFieldEnd()
23182
    oprot.writeFieldStop()
23183
    oprot.writeStructEnd()
23184
 
23185
  def validate(self):
23186
    return
23187
 
23188
 
23189
  def __repr__(self):
23190
    L = ['%s=%r' % (key, value)
23191
      for key, value in self.__dict__.iteritems()]
23192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23193
 
23194
  def __eq__(self, other):
23195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23196
 
23197
  def __ne__(self, other):
23198
    return not (self == other)
7460 kshitij.so 23199
 
23200
class updateItemInventory_args:
23201
  """
23202
  Attributes:
23203
   - itemId
23204
   - holdInventory
23205
   - defaultInventory
23206
  """
23207
 
23208
  thrift_spec = (
23209
    None, # 0
23210
    (1, TType.I64, 'itemId', None, None, ), # 1
23211
    (2, TType.I64, 'holdInventory', None, None, ), # 2
23212
    (3, TType.I64, 'defaultInventory', None, None, ), # 3
23213
  )
23214
 
23215
  def __init__(self, itemId=None, holdInventory=None, defaultInventory=None,):
23216
    self.itemId = itemId
23217
    self.holdInventory = holdInventory
23218
    self.defaultInventory = defaultInventory
23219
 
23220
  def read(self, iprot):
23221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23223
      return
23224
    iprot.readStructBegin()
23225
    while True:
23226
      (fname, ftype, fid) = iprot.readFieldBegin()
23227
      if ftype == TType.STOP:
23228
        break
23229
      if fid == 1:
23230
        if ftype == TType.I64:
23231
          self.itemId = iprot.readI64();
23232
        else:
23233
          iprot.skip(ftype)
23234
      elif fid == 2:
23235
        if ftype == TType.I64:
23236
          self.holdInventory = iprot.readI64();
23237
        else:
23238
          iprot.skip(ftype)
23239
      elif fid == 3:
23240
        if ftype == TType.I64:
23241
          self.defaultInventory = iprot.readI64();
23242
        else:
23243
          iprot.skip(ftype)
23244
      else:
23245
        iprot.skip(ftype)
23246
      iprot.readFieldEnd()
23247
    iprot.readStructEnd()
23248
 
23249
  def write(self, oprot):
23250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23252
      return
23253
    oprot.writeStructBegin('updateItemInventory_args')
23254
    if self.itemId is not None:
23255
      oprot.writeFieldBegin('itemId', TType.I64, 1)
23256
      oprot.writeI64(self.itemId)
23257
      oprot.writeFieldEnd()
23258
    if self.holdInventory is not None:
23259
      oprot.writeFieldBegin('holdInventory', TType.I64, 2)
23260
      oprot.writeI64(self.holdInventory)
23261
      oprot.writeFieldEnd()
23262
    if self.defaultInventory is not None:
23263
      oprot.writeFieldBegin('defaultInventory', TType.I64, 3)
23264
      oprot.writeI64(self.defaultInventory)
23265
      oprot.writeFieldEnd()
23266
    oprot.writeFieldStop()
23267
    oprot.writeStructEnd()
23268
 
23269
  def validate(self):
23270
    return
23271
 
23272
 
23273
  def __repr__(self):
23274
    L = ['%s=%r' % (key, value)
23275
      for key, value in self.__dict__.iteritems()]
23276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23277
 
23278
  def __eq__(self, other):
23279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23280
 
23281
  def __ne__(self, other):
23282
    return not (self == other)
23283
 
23284
class updateItemInventory_result:
23285
  """
23286
  Attributes:
23287
   - success
23288
  """
23289
 
23290
  thrift_spec = (
23291
    (0, TType.BOOL, 'success', None, None, ), # 0
23292
  )
23293
 
23294
  def __init__(self, success=None,):
23295
    self.success = success
23296
 
23297
  def read(self, iprot):
23298
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23299
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23300
      return
23301
    iprot.readStructBegin()
23302
    while True:
23303
      (fname, ftype, fid) = iprot.readFieldBegin()
23304
      if ftype == TType.STOP:
23305
        break
23306
      if fid == 0:
23307
        if ftype == TType.BOOL:
23308
          self.success = iprot.readBool();
23309
        else:
23310
          iprot.skip(ftype)
23311
      else:
23312
        iprot.skip(ftype)
23313
      iprot.readFieldEnd()
23314
    iprot.readStructEnd()
23315
 
23316
  def write(self, oprot):
23317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23319
      return
23320
    oprot.writeStructBegin('updateItemInventory_result')
23321
    if self.success is not None:
23322
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23323
      oprot.writeBool(self.success)
23324
      oprot.writeFieldEnd()
23325
    oprot.writeFieldStop()
23326
    oprot.writeStructEnd()
23327
 
23328
  def validate(self):
23329
    return
23330
 
23331
 
23332
  def __repr__(self):
23333
    L = ['%s=%r' % (key, value)
23334
      for key, value in self.__dict__.iteritems()]
23335
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23336
 
23337
  def __eq__(self, other):
23338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23339
 
23340
  def __ne__(self, other):
23341
    return not (self == other)
7770 kshitij.so 23342
 
23343
class updateTimestampForAmazonFeeds_args:
23344
  """
23345
  Attributes:
23346
   - type
23347
   - sku
23348
   - timestamp
23349
  """
23350
 
23351
  thrift_spec = (
23352
    None, # 0
23353
    (1, TType.STRING, 'type', None, None, ), # 1
23354
    (2, TType.LIST, 'sku', (TType.I64,None), None, ), # 2
23355
    (3, TType.I64, 'timestamp', None, None, ), # 3
23356
  )
23357
 
23358
  def __init__(self, type=None, sku=None, timestamp=None,):
23359
    self.type = type
23360
    self.sku = sku
23361
    self.timestamp = timestamp
23362
 
23363
  def read(self, iprot):
23364
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23365
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23366
      return
23367
    iprot.readStructBegin()
23368
    while True:
23369
      (fname, ftype, fid) = iprot.readFieldBegin()
23370
      if ftype == TType.STOP:
23371
        break
23372
      if fid == 1:
23373
        if ftype == TType.STRING:
23374
          self.type = iprot.readString();
23375
        else:
23376
          iprot.skip(ftype)
23377
      elif fid == 2:
23378
        if ftype == TType.LIST:
23379
          self.sku = []
12567 amit.gupta 23380
          (_etype472, _size469) = iprot.readListBegin()
23381
          for _i473 in xrange(_size469):
23382
            _elem474 = iprot.readI64();
23383
            self.sku.append(_elem474)
7770 kshitij.so 23384
          iprot.readListEnd()
23385
        else:
23386
          iprot.skip(ftype)
23387
      elif fid == 3:
23388
        if ftype == TType.I64:
23389
          self.timestamp = iprot.readI64();
23390
        else:
23391
          iprot.skip(ftype)
23392
      else:
23393
        iprot.skip(ftype)
23394
      iprot.readFieldEnd()
23395
    iprot.readStructEnd()
23396
 
23397
  def write(self, oprot):
23398
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23399
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23400
      return
23401
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_args')
23402
    if self.type is not None:
23403
      oprot.writeFieldBegin('type', TType.STRING, 1)
23404
      oprot.writeString(self.type)
23405
      oprot.writeFieldEnd()
23406
    if self.sku is not None:
23407
      oprot.writeFieldBegin('sku', TType.LIST, 2)
23408
      oprot.writeListBegin(TType.I64, len(self.sku))
12567 amit.gupta 23409
      for iter475 in self.sku:
23410
        oprot.writeI64(iter475)
7770 kshitij.so 23411
      oprot.writeListEnd()
23412
      oprot.writeFieldEnd()
23413
    if self.timestamp is not None:
23414
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
23415
      oprot.writeI64(self.timestamp)
23416
      oprot.writeFieldEnd()
23417
    oprot.writeFieldStop()
23418
    oprot.writeStructEnd()
23419
 
23420
  def validate(self):
23421
    return
23422
 
23423
 
23424
  def __repr__(self):
23425
    L = ['%s=%r' % (key, value)
23426
      for key, value in self.__dict__.iteritems()]
23427
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23428
 
23429
  def __eq__(self, other):
23430
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23431
 
23432
  def __ne__(self, other):
23433
    return not (self == other)
23434
 
23435
class updateTimestampForAmazonFeeds_result:
23436
  """
23437
  Attributes:
23438
   - success
23439
  """
23440
 
23441
  thrift_spec = (
23442
    (0, TType.BOOL, 'success', None, None, ), # 0
23443
  )
23444
 
23445
  def __init__(self, success=None,):
23446
    self.success = success
23447
 
23448
  def read(self, iprot):
23449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23451
      return
23452
    iprot.readStructBegin()
23453
    while True:
23454
      (fname, ftype, fid) = iprot.readFieldBegin()
23455
      if ftype == TType.STOP:
23456
        break
23457
      if fid == 0:
23458
        if ftype == TType.BOOL:
23459
          self.success = iprot.readBool();
23460
        else:
23461
          iprot.skip(ftype)
23462
      else:
23463
        iprot.skip(ftype)
23464
      iprot.readFieldEnd()
23465
    iprot.readStructEnd()
23466
 
23467
  def write(self, oprot):
23468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23470
      return
23471
    oprot.writeStructBegin('updateTimestampForAmazonFeeds_result')
23472
    if self.success is not None:
23473
      oprot.writeFieldBegin('success', TType.BOOL, 0)
23474
      oprot.writeBool(self.success)
23475
      oprot.writeFieldEnd()
23476
    oprot.writeFieldStop()
23477
    oprot.writeStructEnd()
23478
 
23479
  def validate(self):
23480
    return
23481
 
23482
 
23483
  def __repr__(self):
23484
    L = ['%s=%r' % (key, value)
23485
      for key, value in self.__dict__.iteritems()]
23486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23487
 
23488
  def __eq__(self, other):
23489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23490
 
23491
  def __ne__(self, other):
23492
    return not (self == other)
7897 amar.kumar 23493
 
23494
class getAllParentCategories_args:
23495
 
23496
  thrift_spec = (
23497
  )
23498
 
23499
  def read(self, iprot):
23500
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23501
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23502
      return
23503
    iprot.readStructBegin()
23504
    while True:
23505
      (fname, ftype, fid) = iprot.readFieldBegin()
23506
      if ftype == TType.STOP:
23507
        break
23508
      else:
23509
        iprot.skip(ftype)
23510
      iprot.readFieldEnd()
23511
    iprot.readStructEnd()
23512
 
23513
  def write(self, oprot):
23514
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23515
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23516
      return
23517
    oprot.writeStructBegin('getAllParentCategories_args')
23518
    oprot.writeFieldStop()
23519
    oprot.writeStructEnd()
23520
 
23521
  def validate(self):
23522
    return
23523
 
23524
 
23525
  def __repr__(self):
23526
    L = ['%s=%r' % (key, value)
23527
      for key, value in self.__dict__.iteritems()]
23528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23529
 
23530
  def __eq__(self, other):
23531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23532
 
23533
  def __ne__(self, other):
23534
    return not (self == other)
23535
 
23536
class getAllParentCategories_result:
23537
  """
23538
  Attributes:
23539
   - success
23540
  """
23541
 
23542
  thrift_spec = (
23543
    (0, TType.LIST, 'success', (TType.STRUCT,(Category, Category.thrift_spec)), None, ), # 0
23544
  )
23545
 
23546
  def __init__(self, success=None,):
23547
    self.success = success
23548
 
23549
  def read(self, iprot):
23550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23552
      return
23553
    iprot.readStructBegin()
23554
    while True:
23555
      (fname, ftype, fid) = iprot.readFieldBegin()
23556
      if ftype == TType.STOP:
23557
        break
23558
      if fid == 0:
23559
        if ftype == TType.LIST:
23560
          self.success = []
12567 amit.gupta 23561
          (_etype479, _size476) = iprot.readListBegin()
23562
          for _i480 in xrange(_size476):
23563
            _elem481 = Category()
23564
            _elem481.read(iprot)
23565
            self.success.append(_elem481)
7897 amar.kumar 23566
          iprot.readListEnd()
23567
        else:
23568
          iprot.skip(ftype)
23569
      else:
23570
        iprot.skip(ftype)
23571
      iprot.readFieldEnd()
23572
    iprot.readStructEnd()
23573
 
23574
  def write(self, oprot):
23575
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23576
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23577
      return
23578
    oprot.writeStructBegin('getAllParentCategories_result')
23579
    if self.success is not None:
23580
      oprot.writeFieldBegin('success', TType.LIST, 0)
23581
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 23582
      for iter482 in self.success:
23583
        iter482.write(oprot)
7897 amar.kumar 23584
      oprot.writeListEnd()
23585
      oprot.writeFieldEnd()
23586
    oprot.writeFieldStop()
23587
    oprot.writeStructEnd()
23588
 
23589
  def validate(self):
23590
    return
23591
 
23592
 
23593
  def __repr__(self):
23594
    L = ['%s=%r' % (key, value)
23595
      for key, value in self.__dict__.iteritems()]
23596
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23597
 
23598
  def __eq__(self, other):
23599
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23600
 
23601
  def __ne__(self, other):
23602
    return not (self == other)
7977 kshitij.so 23603
 
23604
class addPageViewEvent_args:
23605
  """
23606
  Attributes:
23607
   - pageViewEvents
23608
  """
23609
 
23610
  thrift_spec = (
23611
    None, # 0
23612
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
23613
  )
23614
 
23615
  def __init__(self, pageViewEvents=None,):
23616
    self.pageViewEvents = pageViewEvents
23617
 
23618
  def read(self, iprot):
23619
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23620
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23621
      return
23622
    iprot.readStructBegin()
23623
    while True:
23624
      (fname, ftype, fid) = iprot.readFieldBegin()
23625
      if ftype == TType.STOP:
23626
        break
23627
      if fid == 1:
23628
        if ftype == TType.STRUCT:
23629
          self.pageViewEvents = PageViewEvents()
23630
          self.pageViewEvents.read(iprot)
23631
        else:
23632
          iprot.skip(ftype)
23633
      else:
23634
        iprot.skip(ftype)
23635
      iprot.readFieldEnd()
23636
    iprot.readStructEnd()
23637
 
23638
  def write(self, oprot):
23639
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23640
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23641
      return
23642
    oprot.writeStructBegin('addPageViewEvent_args')
23643
    if self.pageViewEvents is not None:
23644
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
23645
      self.pageViewEvents.write(oprot)
23646
      oprot.writeFieldEnd()
23647
    oprot.writeFieldStop()
23648
    oprot.writeStructEnd()
23649
 
23650
  def validate(self):
23651
    return
23652
 
23653
 
23654
  def __repr__(self):
23655
    L = ['%s=%r' % (key, value)
23656
      for key, value in self.__dict__.iteritems()]
23657
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23658
 
23659
  def __eq__(self, other):
23660
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23661
 
23662
  def __ne__(self, other):
23663
    return not (self == other)
23664
 
23665
class addPageViewEvent_result:
23666
 
23667
  thrift_spec = (
23668
  )
23669
 
23670
  def read(self, iprot):
23671
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23672
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23673
      return
23674
    iprot.readStructBegin()
23675
    while True:
23676
      (fname, ftype, fid) = iprot.readFieldBegin()
23677
      if ftype == TType.STOP:
23678
        break
23679
      else:
23680
        iprot.skip(ftype)
23681
      iprot.readFieldEnd()
23682
    iprot.readStructEnd()
23683
 
23684
  def write(self, oprot):
23685
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23686
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23687
      return
23688
    oprot.writeStructBegin('addPageViewEvent_result')
23689
    oprot.writeFieldStop()
23690
    oprot.writeStructEnd()
23691
 
23692
  def validate(self):
23693
    return
23694
 
23695
 
23696
  def __repr__(self):
23697
    L = ['%s=%r' % (key, value)
23698
      for key, value in self.__dict__.iteritems()]
23699
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23700
 
23701
  def __eq__(self, other):
23702
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23703
 
23704
  def __ne__(self, other):
23705
    return not (self == other)
23706
 
23707
class addCartEvent_args:
23708
  """
23709
  Attributes:
23710
   - cartEvents
23711
  """
23712
 
23713
  thrift_spec = (
23714
    None, # 0
23715
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
23716
  )
23717
 
23718
  def __init__(self, cartEvents=None,):
23719
    self.cartEvents = cartEvents
23720
 
23721
  def read(self, iprot):
23722
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23723
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23724
      return
23725
    iprot.readStructBegin()
23726
    while True:
23727
      (fname, ftype, fid) = iprot.readFieldBegin()
23728
      if ftype == TType.STOP:
23729
        break
23730
      if fid == 1:
23731
        if ftype == TType.STRUCT:
23732
          self.cartEvents = CartEvents()
23733
          self.cartEvents.read(iprot)
23734
        else:
23735
          iprot.skip(ftype)
23736
      else:
23737
        iprot.skip(ftype)
23738
      iprot.readFieldEnd()
23739
    iprot.readStructEnd()
23740
 
23741
  def write(self, oprot):
23742
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23743
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23744
      return
23745
    oprot.writeStructBegin('addCartEvent_args')
23746
    if self.cartEvents is not None:
23747
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
23748
      self.cartEvents.write(oprot)
23749
      oprot.writeFieldEnd()
23750
    oprot.writeFieldStop()
23751
    oprot.writeStructEnd()
23752
 
23753
  def validate(self):
23754
    return
23755
 
23756
 
23757
  def __repr__(self):
23758
    L = ['%s=%r' % (key, value)
23759
      for key, value in self.__dict__.iteritems()]
23760
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23761
 
23762
  def __eq__(self, other):
23763
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23764
 
23765
  def __ne__(self, other):
23766
    return not (self == other)
23767
 
23768
class addCartEvent_result:
23769
 
23770
  thrift_spec = (
23771
  )
23772
 
23773
  def read(self, iprot):
23774
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23775
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23776
      return
23777
    iprot.readStructBegin()
23778
    while True:
23779
      (fname, ftype, fid) = iprot.readFieldBegin()
23780
      if ftype == TType.STOP:
23781
        break
23782
      else:
23783
        iprot.skip(ftype)
23784
      iprot.readFieldEnd()
23785
    iprot.readStructEnd()
23786
 
23787
  def write(self, oprot):
23788
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23789
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23790
      return
23791
    oprot.writeStructBegin('addCartEvent_result')
23792
    oprot.writeFieldStop()
23793
    oprot.writeStructEnd()
23794
 
23795
  def validate(self):
23796
    return
23797
 
23798
 
23799
  def __repr__(self):
23800
    L = ['%s=%r' % (key, value)
23801
      for key, value in self.__dict__.iteritems()]
23802
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23803
 
23804
  def __eq__(self, other):
23805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23806
 
23807
  def __ne__(self, other):
23808
    return not (self == other)
8139 kshitij.so 23809
 
8182 amar.kumar 23810
class addEbayItem_args:
23811
  """
23812
  Attributes:
23813
   - ebayItem
23814
  """
23815
 
23816
  thrift_spec = (
23817
    None, # 0
23818
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
23819
  )
23820
 
23821
  def __init__(self, ebayItem=None,):
23822
    self.ebayItem = ebayItem
23823
 
23824
  def read(self, iprot):
23825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23827
      return
23828
    iprot.readStructBegin()
23829
    while True:
23830
      (fname, ftype, fid) = iprot.readFieldBegin()
23831
      if ftype == TType.STOP:
23832
        break
23833
      if fid == 1:
23834
        if ftype == TType.STRUCT:
23835
          self.ebayItem = EbayItem()
23836
          self.ebayItem.read(iprot)
23837
        else:
23838
          iprot.skip(ftype)
23839
      else:
23840
        iprot.skip(ftype)
23841
      iprot.readFieldEnd()
23842
    iprot.readStructEnd()
23843
 
23844
  def write(self, oprot):
23845
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23846
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23847
      return
23848
    oprot.writeStructBegin('addEbayItem_args')
23849
    if self.ebayItem is not None:
23850
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
23851
      self.ebayItem.write(oprot)
23852
      oprot.writeFieldEnd()
23853
    oprot.writeFieldStop()
23854
    oprot.writeStructEnd()
23855
 
23856
  def validate(self):
23857
    return
23858
 
23859
 
23860
  def __repr__(self):
23861
    L = ['%s=%r' % (key, value)
23862
      for key, value in self.__dict__.iteritems()]
23863
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23864
 
23865
  def __eq__(self, other):
23866
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23867
 
23868
  def __ne__(self, other):
23869
    return not (self == other)
23870
 
23871
class addEbayItem_result:
23872
 
23873
  thrift_spec = (
23874
  )
23875
 
23876
  def read(self, iprot):
23877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23879
      return
23880
    iprot.readStructBegin()
23881
    while True:
23882
      (fname, ftype, fid) = iprot.readFieldBegin()
23883
      if ftype == TType.STOP:
23884
        break
23885
      else:
23886
        iprot.skip(ftype)
23887
      iprot.readFieldEnd()
23888
    iprot.readStructEnd()
23889
 
23890
  def write(self, oprot):
23891
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23892
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23893
      return
23894
    oprot.writeStructBegin('addEbayItem_result')
23895
    oprot.writeFieldStop()
23896
    oprot.writeStructEnd()
23897
 
23898
  def validate(self):
23899
    return
23900
 
23901
 
23902
  def __repr__(self):
23903
    L = ['%s=%r' % (key, value)
23904
      for key, value in self.__dict__.iteritems()]
23905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23906
 
23907
  def __eq__(self, other):
23908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23909
 
23910
  def __ne__(self, other):
23911
    return not (self == other)
23912
 
23913
class getEbayItem_args:
23914
  """
23915
  Attributes:
23916
   - listingId
23917
  """
23918
 
23919
  thrift_spec = (
23920
    None, # 0
23921
    (1, TType.STRING, 'listingId', None, None, ), # 1
23922
  )
23923
 
23924
  def __init__(self, listingId=None,):
23925
    self.listingId = listingId
23926
 
23927
  def read(self, iprot):
23928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23930
      return
23931
    iprot.readStructBegin()
23932
    while True:
23933
      (fname, ftype, fid) = iprot.readFieldBegin()
23934
      if ftype == TType.STOP:
23935
        break
23936
      if fid == 1:
23937
        if ftype == TType.STRING:
23938
          self.listingId = iprot.readString();
23939
        else:
23940
          iprot.skip(ftype)
23941
      else:
23942
        iprot.skip(ftype)
23943
      iprot.readFieldEnd()
23944
    iprot.readStructEnd()
23945
 
23946
  def write(self, oprot):
23947
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
23948
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
23949
      return
23950
    oprot.writeStructBegin('getEbayItem_args')
23951
    if self.listingId is not None:
23952
      oprot.writeFieldBegin('listingId', TType.STRING, 1)
23953
      oprot.writeString(self.listingId)
23954
      oprot.writeFieldEnd()
23955
    oprot.writeFieldStop()
23956
    oprot.writeStructEnd()
23957
 
23958
  def validate(self):
23959
    return
23960
 
23961
 
23962
  def __repr__(self):
23963
    L = ['%s=%r' % (key, value)
23964
      for key, value in self.__dict__.iteritems()]
23965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
23966
 
23967
  def __eq__(self, other):
23968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
23969
 
23970
  def __ne__(self, other):
23971
    return not (self == other)
23972
 
23973
class getEbayItem_result:
23974
  """
23975
  Attributes:
23976
   - success
23977
  """
23978
 
23979
  thrift_spec = (
23980
    (0, TType.STRUCT, 'success', (EbayItem, EbayItem.thrift_spec), None, ), # 0
23981
  )
23982
 
23983
  def __init__(self, success=None,):
23984
    self.success = success
23985
 
23986
  def read(self, iprot):
23987
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
23988
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
23989
      return
23990
    iprot.readStructBegin()
23991
    while True:
23992
      (fname, ftype, fid) = iprot.readFieldBegin()
23993
      if ftype == TType.STOP:
23994
        break
23995
      if fid == 0:
23996
        if ftype == TType.STRUCT:
23997
          self.success = EbayItem()
23998
          self.success.read(iprot)
23999
        else:
24000
          iprot.skip(ftype)
24001
      else:
24002
        iprot.skip(ftype)
24003
      iprot.readFieldEnd()
24004
    iprot.readStructEnd()
24005
 
24006
  def write(self, oprot):
24007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24009
      return
24010
    oprot.writeStructBegin('getEbayItem_result')
24011
    if self.success is not None:
24012
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24013
      self.success.write(oprot)
24014
      oprot.writeFieldEnd()
24015
    oprot.writeFieldStop()
24016
    oprot.writeStructEnd()
24017
 
24018
  def validate(self):
24019
    return
24020
 
24021
 
24022
  def __repr__(self):
24023
    L = ['%s=%r' % (key, value)
24024
      for key, value in self.__dict__.iteritems()]
24025
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24026
 
24027
  def __eq__(self, other):
24028
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24029
 
24030
  def __ne__(self, other):
24031
    return not (self == other)
24032
 
24033
class updateEbayItem_args:
24034
  """
24035
  Attributes:
24036
   - ebayItem
24037
  """
24038
 
24039
  thrift_spec = (
24040
    None, # 0
24041
    (1, TType.STRUCT, 'ebayItem', (EbayItem, EbayItem.thrift_spec), None, ), # 1
24042
  )
24043
 
24044
  def __init__(self, ebayItem=None,):
24045
    self.ebayItem = ebayItem
24046
 
24047
  def read(self, iprot):
24048
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24049
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24050
      return
24051
    iprot.readStructBegin()
24052
    while True:
24053
      (fname, ftype, fid) = iprot.readFieldBegin()
24054
      if ftype == TType.STOP:
24055
        break
24056
      if fid == 1:
24057
        if ftype == TType.STRUCT:
24058
          self.ebayItem = EbayItem()
24059
          self.ebayItem.read(iprot)
24060
        else:
24061
          iprot.skip(ftype)
24062
      else:
24063
        iprot.skip(ftype)
24064
      iprot.readFieldEnd()
24065
    iprot.readStructEnd()
24066
 
24067
  def write(self, oprot):
24068
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24069
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24070
      return
24071
    oprot.writeStructBegin('updateEbayItem_args')
24072
    if self.ebayItem is not None:
24073
      oprot.writeFieldBegin('ebayItem', TType.STRUCT, 1)
24074
      self.ebayItem.write(oprot)
24075
      oprot.writeFieldEnd()
24076
    oprot.writeFieldStop()
24077
    oprot.writeStructEnd()
24078
 
24079
  def validate(self):
24080
    return
24081
 
24082
 
24083
  def __repr__(self):
24084
    L = ['%s=%r' % (key, value)
24085
      for key, value in self.__dict__.iteritems()]
24086
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24087
 
24088
  def __eq__(self, other):
24089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24090
 
24091
  def __ne__(self, other):
24092
    return not (self == other)
24093
 
24094
class updateEbayItem_result:
24095
 
24096
  thrift_spec = (
24097
  )
24098
 
24099
  def read(self, iprot):
24100
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24101
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24102
      return
24103
    iprot.readStructBegin()
24104
    while True:
24105
      (fname, ftype, fid) = iprot.readFieldBegin()
24106
      if ftype == TType.STOP:
24107
        break
24108
      else:
24109
        iprot.skip(ftype)
24110
      iprot.readFieldEnd()
24111
    iprot.readStructEnd()
24112
 
24113
  def write(self, oprot):
24114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24116
      return
24117
    oprot.writeStructBegin('updateEbayItem_result')
24118
    oprot.writeFieldStop()
24119
    oprot.writeStructEnd()
24120
 
24121
  def validate(self):
24122
    return
24123
 
24124
 
24125
  def __repr__(self):
24126
    L = ['%s=%r' % (key, value)
24127
      for key, value in self.__dict__.iteritems()]
24128
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24129
 
24130
  def __eq__(self, other):
24131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24132
 
24133
  def __ne__(self, other):
24134
    return not (self == other)
24135
 
8139 kshitij.so 24136
class getAmazonListedItems_args:
24137
  """
24138
  Attributes:
24139
   - offset
24140
   - limit
24141
  """
24142
 
24143
  thrift_spec = (
24144
    None, # 0
24145
    (1, TType.I64, 'offset', None, None, ), # 1
24146
    (2, TType.I64, 'limit', None, None, ), # 2
24147
  )
24148
 
24149
  def __init__(self, offset=None, limit=None,):
24150
    self.offset = offset
24151
    self.limit = limit
24152
 
24153
  def read(self, iprot):
24154
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24155
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24156
      return
24157
    iprot.readStructBegin()
24158
    while True:
24159
      (fname, ftype, fid) = iprot.readFieldBegin()
24160
      if ftype == TType.STOP:
24161
        break
24162
      if fid == 1:
24163
        if ftype == TType.I64:
24164
          self.offset = iprot.readI64();
24165
        else:
24166
          iprot.skip(ftype)
24167
      elif fid == 2:
24168
        if ftype == TType.I64:
24169
          self.limit = iprot.readI64();
24170
        else:
24171
          iprot.skip(ftype)
24172
      else:
24173
        iprot.skip(ftype)
24174
      iprot.readFieldEnd()
24175
    iprot.readStructEnd()
24176
 
24177
  def write(self, oprot):
24178
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24179
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24180
      return
24181
    oprot.writeStructBegin('getAmazonListedItems_args')
24182
    if self.offset is not None:
24183
      oprot.writeFieldBegin('offset', TType.I64, 1)
24184
      oprot.writeI64(self.offset)
24185
      oprot.writeFieldEnd()
24186
    if self.limit is not None:
24187
      oprot.writeFieldBegin('limit', TType.I64, 2)
24188
      oprot.writeI64(self.limit)
24189
      oprot.writeFieldEnd()
24190
    oprot.writeFieldStop()
24191
    oprot.writeStructEnd()
24192
 
24193
  def validate(self):
24194
    return
24195
 
24196
 
24197
  def __repr__(self):
24198
    L = ['%s=%r' % (key, value)
24199
      for key, value in self.__dict__.iteritems()]
24200
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24201
 
24202
  def __eq__(self, other):
24203
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24204
 
24205
  def __ne__(self, other):
24206
    return not (self == other)
24207
 
24208
class getAmazonListedItems_result:
24209
  """
24210
  Attributes:
24211
   - success
24212
  """
24213
 
24214
  thrift_spec = (
24215
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24216
  )
24217
 
24218
  def __init__(self, success=None,):
24219
    self.success = success
24220
 
24221
  def read(self, iprot):
24222
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24223
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24224
      return
24225
    iprot.readStructBegin()
24226
    while True:
24227
      (fname, ftype, fid) = iprot.readFieldBegin()
24228
      if ftype == TType.STOP:
24229
        break
24230
      if fid == 0:
24231
        if ftype == TType.LIST:
24232
          self.success = []
12567 amit.gupta 24233
          (_etype486, _size483) = iprot.readListBegin()
24234
          for _i487 in xrange(_size483):
24235
            _elem488 = Amazonlisted()
24236
            _elem488.read(iprot)
24237
            self.success.append(_elem488)
8139 kshitij.so 24238
          iprot.readListEnd()
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('getAmazonListedItems_result')
24251
    if self.success is not None:
24252
      oprot.writeFieldBegin('success', TType.LIST, 0)
24253
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24254
      for iter489 in self.success:
24255
        iter489.write(oprot)
8139 kshitij.so 24256
      oprot.writeListEnd()
24257
      oprot.writeFieldEnd()
24258
    oprot.writeFieldStop()
24259
    oprot.writeStructEnd()
24260
 
24261
  def validate(self):
24262
    return
24263
 
24264
 
24265
  def __repr__(self):
24266
    L = ['%s=%r' % (key, value)
24267
      for key, value in self.__dict__.iteritems()]
24268
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24269
 
24270
  def __eq__(self, other):
24271
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24272
 
24273
  def __ne__(self, other):
24274
    return not (self == other)
8168 kshitij.so 24275
 
24276
class updateAmazonAttributesInBulk_args:
24277
  """
24278
  Attributes:
24279
   - amazonlisted
24280
  """
24281
 
24282
  thrift_spec = (
24283
    None, # 0
24284
    (1, TType.MAP, 'amazonlisted', (TType.I64,None,TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 1
24285
  )
24286
 
24287
  def __init__(self, amazonlisted=None,):
24288
    self.amazonlisted = amazonlisted
24289
 
24290
  def read(self, iprot):
24291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24293
      return
24294
    iprot.readStructBegin()
24295
    while True:
24296
      (fname, ftype, fid) = iprot.readFieldBegin()
24297
      if ftype == TType.STOP:
24298
        break
24299
      if fid == 1:
24300
        if ftype == TType.MAP:
24301
          self.amazonlisted = {}
12567 amit.gupta 24302
          (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin() 
24303
          for _i494 in xrange(_size490):
24304
            _key495 = iprot.readI64();
24305
            _val496 = Amazonlisted()
24306
            _val496.read(iprot)
24307
            self.amazonlisted[_key495] = _val496
8168 kshitij.so 24308
          iprot.readMapEnd()
24309
        else:
24310
          iprot.skip(ftype)
24311
      else:
24312
        iprot.skip(ftype)
24313
      iprot.readFieldEnd()
24314
    iprot.readStructEnd()
24315
 
24316
  def write(self, oprot):
24317
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24318
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24319
      return
24320
    oprot.writeStructBegin('updateAmazonAttributesInBulk_args')
24321
    if self.amazonlisted is not None:
24322
      oprot.writeFieldBegin('amazonlisted', TType.MAP, 1)
24323
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.amazonlisted))
12567 amit.gupta 24324
      for kiter497,viter498 in self.amazonlisted.items():
24325
        oprot.writeI64(kiter497)
24326
        viter498.write(oprot)
8168 kshitij.so 24327
      oprot.writeMapEnd()
24328
      oprot.writeFieldEnd()
24329
    oprot.writeFieldStop()
24330
    oprot.writeStructEnd()
24331
 
24332
  def validate(self):
24333
    return
24334
 
24335
 
24336
  def __repr__(self):
24337
    L = ['%s=%r' % (key, value)
24338
      for key, value in self.__dict__.iteritems()]
24339
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24340
 
24341
  def __eq__(self, other):
24342
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24343
 
24344
  def __ne__(self, other):
24345
    return not (self == other)
24346
 
24347
class updateAmazonAttributesInBulk_result:
24348
  """
24349
  Attributes:
24350
   - success
24351
  """
24352
 
24353
  thrift_spec = (
24354
    (0, TType.BOOL, 'success', None, None, ), # 0
24355
  )
24356
 
24357
  def __init__(self, success=None,):
24358
    self.success = success
24359
 
24360
  def read(self, iprot):
24361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24363
      return
24364
    iprot.readStructBegin()
24365
    while True:
24366
      (fname, ftype, fid) = iprot.readFieldBegin()
24367
      if ftype == TType.STOP:
24368
        break
24369
      if fid == 0:
24370
        if ftype == TType.BOOL:
24371
          self.success = iprot.readBool();
24372
        else:
24373
          iprot.skip(ftype)
24374
      else:
24375
        iprot.skip(ftype)
24376
      iprot.readFieldEnd()
24377
    iprot.readStructEnd()
24378
 
24379
  def write(self, oprot):
24380
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24381
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24382
      return
24383
    oprot.writeStructBegin('updateAmazonAttributesInBulk_result')
24384
    if self.success is not None:
24385
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24386
      oprot.writeBool(self.success)
24387
      oprot.writeFieldEnd()
24388
    oprot.writeFieldStop()
24389
    oprot.writeStructEnd()
24390
 
24391
  def validate(self):
24392
    return
24393
 
24394
 
24395
  def __repr__(self):
24396
    L = ['%s=%r' % (key, value)
24397
      for key, value in self.__dict__.iteritems()]
24398
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24399
 
24400
  def __eq__(self, other):
24401
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24402
 
24403
  def __ne__(self, other):
24404
    return not (self == other)
8379 vikram.rag 24405
 
24406
class getAllItemstoListOnFba_args:
24407
 
24408
  thrift_spec = (
24409
  )
24410
 
24411
  def read(self, iprot):
24412
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24413
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24414
      return
24415
    iprot.readStructBegin()
24416
    while True:
24417
      (fname, ftype, fid) = iprot.readFieldBegin()
24418
      if ftype == TType.STOP:
24419
        break
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('getAllItemstoListOnFba_args')
24430
    oprot.writeFieldStop()
24431
    oprot.writeStructEnd()
24432
 
24433
  def validate(self):
24434
    return
24435
 
24436
 
24437
  def __repr__(self):
24438
    L = ['%s=%r' % (key, value)
24439
      for key, value in self.__dict__.iteritems()]
24440
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24441
 
24442
  def __eq__(self, other):
24443
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24444
 
24445
  def __ne__(self, other):
24446
    return not (self == other)
24447
 
24448
class getAllItemstoListOnFba_result:
24449
  """
24450
  Attributes:
24451
   - success
24452
  """
24453
 
24454
  thrift_spec = (
24455
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24456
  )
24457
 
24458
  def __init__(self, success=None,):
24459
    self.success = success
24460
 
24461
  def read(self, iprot):
24462
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24463
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24464
      return
24465
    iprot.readStructBegin()
24466
    while True:
24467
      (fname, ftype, fid) = iprot.readFieldBegin()
24468
      if ftype == TType.STOP:
24469
        break
24470
      if fid == 0:
24471
        if ftype == TType.LIST:
24472
          self.success = []
12567 amit.gupta 24473
          (_etype502, _size499) = iprot.readListBegin()
24474
          for _i503 in xrange(_size499):
24475
            _elem504 = Amazonlisted()
24476
            _elem504.read(iprot)
24477
            self.success.append(_elem504)
8379 vikram.rag 24478
          iprot.readListEnd()
24479
        else:
24480
          iprot.skip(ftype)
24481
      else:
24482
        iprot.skip(ftype)
24483
      iprot.readFieldEnd()
24484
    iprot.readStructEnd()
24485
 
24486
  def write(self, oprot):
24487
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24488
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24489
      return
24490
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
24491
    if self.success is not None:
24492
      oprot.writeFieldBegin('success', TType.LIST, 0)
24493
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24494
      for iter505 in self.success:
24495
        iter505.write(oprot)
8379 vikram.rag 24496
      oprot.writeListEnd()
24497
      oprot.writeFieldEnd()
24498
    oprot.writeFieldStop()
24499
    oprot.writeStructEnd()
24500
 
24501
  def validate(self):
24502
    return
24503
 
24504
 
24505
  def __repr__(self):
24506
    L = ['%s=%r' % (key, value)
24507
      for key, value in self.__dict__.iteritems()]
24508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24509
 
24510
  def __eq__(self, other):
24511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24512
 
24513
  def __ne__(self, other):
24514
    return not (self == other)
24515
 
24516
class getAllItemstoListOnNonFba_args:
24517
 
24518
  thrift_spec = (
24519
  )
24520
 
24521
  def read(self, iprot):
24522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24524
      return
24525
    iprot.readStructBegin()
24526
    while True:
24527
      (fname, ftype, fid) = iprot.readFieldBegin()
24528
      if ftype == TType.STOP:
24529
        break
24530
      else:
24531
        iprot.skip(ftype)
24532
      iprot.readFieldEnd()
24533
    iprot.readStructEnd()
24534
 
24535
  def write(self, oprot):
24536
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24537
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24538
      return
24539
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
24540
    oprot.writeFieldStop()
24541
    oprot.writeStructEnd()
24542
 
24543
  def validate(self):
24544
    return
24545
 
24546
 
24547
  def __repr__(self):
24548
    L = ['%s=%r' % (key, value)
24549
      for key, value in self.__dict__.iteritems()]
24550
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24551
 
24552
  def __eq__(self, other):
24553
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24554
 
24555
  def __ne__(self, other):
24556
    return not (self == other)
24557
 
24558
class getAllItemstoListOnNonFba_result:
24559
  """
24560
  Attributes:
24561
   - success
24562
  """
24563
 
24564
  thrift_spec = (
24565
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
24566
  )
24567
 
24568
  def __init__(self, success=None,):
24569
    self.success = success
24570
 
24571
  def read(self, iprot):
24572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24574
      return
24575
    iprot.readStructBegin()
24576
    while True:
24577
      (fname, ftype, fid) = iprot.readFieldBegin()
24578
      if ftype == TType.STOP:
24579
        break
24580
      if fid == 0:
24581
        if ftype == TType.LIST:
24582
          self.success = []
12567 amit.gupta 24583
          (_etype509, _size506) = iprot.readListBegin()
24584
          for _i510 in xrange(_size506):
24585
            _elem511 = Amazonlisted()
24586
            _elem511.read(iprot)
24587
            self.success.append(_elem511)
8379 vikram.rag 24588
          iprot.readListEnd()
24589
        else:
24590
          iprot.skip(ftype)
24591
      else:
24592
        iprot.skip(ftype)
24593
      iprot.readFieldEnd()
24594
    iprot.readStructEnd()
24595
 
24596
  def write(self, oprot):
24597
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24598
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24599
      return
24600
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
24601
    if self.success is not None:
24602
      oprot.writeFieldBegin('success', TType.LIST, 0)
24603
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 24604
      for iter512 in self.success:
24605
        iter512.write(oprot)
8379 vikram.rag 24606
      oprot.writeListEnd()
24607
      oprot.writeFieldEnd()
24608
    oprot.writeFieldStop()
24609
    oprot.writeStructEnd()
24610
 
24611
  def validate(self):
24612
    return
24613
 
24614
 
24615
  def __repr__(self):
24616
    L = ['%s=%r' % (key, value)
24617
      for key, value in self.__dict__.iteritems()]
24618
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24619
 
24620
  def __eq__(self, other):
24621
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24622
 
24623
  def __ne__(self, other):
24624
    return not (self == other)
8616 vikram.rag 24625
 
9242 kshitij.so 24626
class updateAsin_args:
24627
  """
24628
  Attributes:
24629
   - item
24630
  """
8616 vikram.rag 24631
 
24632
  thrift_spec = (
9242 kshitij.so 24633
    None, # 0
24634
    (1, TType.MAP, 'item', (TType.I64,None,TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 1
8616 vikram.rag 24635
  )
24636
 
9242 kshitij.so 24637
  def __init__(self, item=None,):
24638
    self.item = item
24639
 
8616 vikram.rag 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
9242 kshitij.so 24649
      if fid == 1:
24650
        if ftype == TType.MAP:
24651
          self.item = {}
12567 amit.gupta 24652
          (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() 
24653
          for _i517 in xrange(_size513):
24654
            _key518 = iprot.readI64();
24655
            _val519 = Item()
24656
            _val519.read(iprot)
24657
            self.item[_key518] = _val519
9242 kshitij.so 24658
          iprot.readMapEnd()
24659
        else:
24660
          iprot.skip(ftype)
8616 vikram.rag 24661
      else:
24662
        iprot.skip(ftype)
24663
      iprot.readFieldEnd()
24664
    iprot.readStructEnd()
24665
 
24666
  def write(self, oprot):
24667
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24668
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24669
      return
9242 kshitij.so 24670
    oprot.writeStructBegin('updateAsin_args')
24671
    if self.item is not None:
24672
      oprot.writeFieldBegin('item', TType.MAP, 1)
24673
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.item))
12567 amit.gupta 24674
      for kiter520,viter521 in self.item.items():
24675
        oprot.writeI64(kiter520)
24676
        viter521.write(oprot)
9242 kshitij.so 24677
      oprot.writeMapEnd()
24678
      oprot.writeFieldEnd()
8616 vikram.rag 24679
    oprot.writeFieldStop()
24680
    oprot.writeStructEnd()
24681
 
24682
  def validate(self):
24683
    return
24684
 
24685
 
24686
  def __repr__(self):
24687
    L = ['%s=%r' % (key, value)
24688
      for key, value in self.__dict__.iteritems()]
24689
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24690
 
24691
  def __eq__(self, other):
24692
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24693
 
24694
  def __ne__(self, other):
24695
    return not (self == other)
24696
 
9242 kshitij.so 24697
class updateAsin_result:
8616 vikram.rag 24698
 
24699
  thrift_spec = (
24700
  )
24701
 
24702
  def read(self, iprot):
24703
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24704
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24705
      return
24706
    iprot.readStructBegin()
24707
    while True:
24708
      (fname, ftype, fid) = iprot.readFieldBegin()
24709
      if ftype == TType.STOP:
24710
        break
24711
      else:
24712
        iprot.skip(ftype)
24713
      iprot.readFieldEnd()
24714
    iprot.readStructEnd()
24715
 
24716
  def write(self, oprot):
24717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24719
      return
9242 kshitij.so 24720
    oprot.writeStructBegin('updateAsin_result')
8616 vikram.rag 24721
    oprot.writeFieldStop()
24722
    oprot.writeStructEnd()
24723
 
24724
  def validate(self):
24725
    return
24726
 
24727
 
24728
  def __repr__(self):
24729
    L = ['%s=%r' % (key, value)
24730
      for key, value in self.__dict__.iteritems()]
24731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24732
 
24733
  def __eq__(self, other):
24734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24735
 
24736
  def __ne__(self, other):
24737
    return not (self == other)
8619 kshitij.so 24738
 
9242 kshitij.so 24739
class addOrUpdateSnapdealItem_args:
8619 kshitij.so 24740
  """
24741
  Attributes:
9242 kshitij.so 24742
   - snapdealitem
8619 kshitij.so 24743
  """
24744
 
9242 kshitij.so 24745
  thrift_spec = None
24746
  def __init__(self, snapdealitem=None,):
24747
    self.snapdealitem = snapdealitem
8619 kshitij.so 24748
 
24749
  def read(self, iprot):
24750
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24751
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24752
      return
24753
    iprot.readStructBegin()
24754
    while True:
24755
      (fname, ftype, fid) = iprot.readFieldBegin()
24756
      if ftype == TType.STOP:
24757
        break
9242 kshitij.so 24758
      if fid == -1:
24759
        if ftype == TType.STRUCT:
24760
          self.snapdealitem = SnapdealItem()
24761
          self.snapdealitem.read(iprot)
8619 kshitij.so 24762
        else:
24763
          iprot.skip(ftype)
24764
      else:
24765
        iprot.skip(ftype)
24766
      iprot.readFieldEnd()
24767
    iprot.readStructEnd()
24768
 
24769
  def write(self, oprot):
24770
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24771
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24772
      return
9242 kshitij.so 24773
    oprot.writeStructBegin('addOrUpdateSnapdealItem_args')
24774
    if self.snapdealitem is not None:
24775
      oprot.writeFieldBegin('snapdealitem', TType.STRUCT, -1)
24776
      self.snapdealitem.write(oprot)
8619 kshitij.so 24777
      oprot.writeFieldEnd()
24778
    oprot.writeFieldStop()
24779
    oprot.writeStructEnd()
24780
 
24781
  def validate(self):
24782
    return
24783
 
24784
 
24785
  def __repr__(self):
24786
    L = ['%s=%r' % (key, value)
24787
      for key, value in self.__dict__.iteritems()]
24788
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24789
 
24790
  def __eq__(self, other):
24791
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24792
 
24793
  def __ne__(self, other):
24794
    return not (self == other)
24795
 
9242 kshitij.so 24796
class addOrUpdateSnapdealItem_result:
24797
  """
24798
  Attributes:
24799
   - success
24800
  """
8619 kshitij.so 24801
 
24802
  thrift_spec = (
9242 kshitij.so 24803
    (0, TType.BOOL, 'success', None, None, ), # 0
8619 kshitij.so 24804
  )
24805
 
9242 kshitij.so 24806
  def __init__(self, success=None,):
24807
    self.success = success
24808
 
8619 kshitij.so 24809
  def read(self, iprot):
24810
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24811
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24812
      return
24813
    iprot.readStructBegin()
24814
    while True:
24815
      (fname, ftype, fid) = iprot.readFieldBegin()
24816
      if ftype == TType.STOP:
24817
        break
9242 kshitij.so 24818
      if fid == 0:
24819
        if ftype == TType.BOOL:
24820
          self.success = iprot.readBool();
24821
        else:
24822
          iprot.skip(ftype)
8619 kshitij.so 24823
      else:
24824
        iprot.skip(ftype)
24825
      iprot.readFieldEnd()
24826
    iprot.readStructEnd()
24827
 
24828
  def write(self, oprot):
24829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24831
      return
9242 kshitij.so 24832
    oprot.writeStructBegin('addOrUpdateSnapdealItem_result')
24833
    if self.success is not None:
24834
      oprot.writeFieldBegin('success', TType.BOOL, 0)
24835
      oprot.writeBool(self.success)
24836
      oprot.writeFieldEnd()
8619 kshitij.so 24837
    oprot.writeFieldStop()
24838
    oprot.writeStructEnd()
24839
 
24840
  def validate(self):
24841
    return
24842
 
24843
 
24844
  def __repr__(self):
24845
    L = ['%s=%r' % (key, value)
24846
      for key, value in self.__dict__.iteritems()]
24847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24848
 
24849
  def __eq__(self, other):
24850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24851
 
24852
  def __ne__(self, other):
24853
    return not (self == other)
8739 vikram.rag 24854
 
9242 kshitij.so 24855
class getSnapdealItem_args:
8739 vikram.rag 24856
  """
24857
  Attributes:
9242 kshitij.so 24858
   - item_id
8739 vikram.rag 24859
  """
24860
 
9242 kshitij.so 24861
  thrift_spec = (
24862
    None, # 0
24863
    (1, TType.I64, 'item_id', None, None, ), # 1
24864
  )
8739 vikram.rag 24865
 
9242 kshitij.so 24866
  def __init__(self, item_id=None,):
24867
    self.item_id = item_id
24868
 
8739 vikram.rag 24869
  def read(self, iprot):
24870
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24871
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24872
      return
24873
    iprot.readStructBegin()
24874
    while True:
24875
      (fname, ftype, fid) = iprot.readFieldBegin()
24876
      if ftype == TType.STOP:
24877
        break
9242 kshitij.so 24878
      if fid == 1:
24879
        if ftype == TType.I64:
24880
          self.item_id = iprot.readI64();
8739 vikram.rag 24881
        else:
24882
          iprot.skip(ftype)
24883
      else:
24884
        iprot.skip(ftype)
24885
      iprot.readFieldEnd()
24886
    iprot.readStructEnd()
24887
 
24888
  def write(self, oprot):
24889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
24890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
24891
      return
9242 kshitij.so 24892
    oprot.writeStructBegin('getSnapdealItem_args')
24893
    if self.item_id is not None:
24894
      oprot.writeFieldBegin('item_id', TType.I64, 1)
24895
      oprot.writeI64(self.item_id)
8739 vikram.rag 24896
      oprot.writeFieldEnd()
24897
    oprot.writeFieldStop()
24898
    oprot.writeStructEnd()
24899
 
24900
  def validate(self):
24901
    return
24902
 
24903
 
24904
  def __repr__(self):
24905
    L = ['%s=%r' % (key, value)
24906
      for key, value in self.__dict__.iteritems()]
24907
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
24908
 
24909
  def __eq__(self, other):
24910
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
24911
 
24912
  def __ne__(self, other):
24913
    return not (self == other)
24914
 
9242 kshitij.so 24915
class getSnapdealItem_result:
8739 vikram.rag 24916
  """
24917
  Attributes:
24918
   - success
24919
  """
24920
 
24921
  thrift_spec = (
9242 kshitij.so 24922
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
8739 vikram.rag 24923
  )
24924
 
24925
  def __init__(self, success=None,):
24926
    self.success = success
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
24937
      if fid == 0:
9242 kshitij.so 24938
        if ftype == TType.STRUCT:
24939
          self.success = SnapdealItem()
24940
          self.success.read(iprot)
8739 vikram.rag 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('getSnapdealItem_result')
8739 vikram.rag 24953
    if self.success is not None:
9242 kshitij.so 24954
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
24955
      self.success.write(oprot)
8739 vikram.rag 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 getSnapdealItemDetails_args:
8739 vikram.rag 24976
  """
24977
  Attributes:
24978
   - item_id
24979
  """
24980
 
24981
  thrift_spec = (
24982
    None, # 0
24983
    (1, TType.I64, 'item_id', None, None, ), # 1
24984
  )
24985
 
24986
  def __init__(self, item_id=None,):
24987
    self.item_id = item_id
24988
 
24989
  def read(self, iprot):
24990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
24991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
24992
      return
24993
    iprot.readStructBegin()
24994
    while True:
24995
      (fname, ftype, fid) = iprot.readFieldBegin()
24996
      if ftype == TType.STOP:
24997
        break
24998
      if fid == 1:
24999
        if ftype == TType.I64:
25000
          self.item_id = iprot.readI64();
25001
        else:
25002
          iprot.skip(ftype)
25003
      else:
25004
        iprot.skip(ftype)
25005
      iprot.readFieldEnd()
25006
    iprot.readStructEnd()
25007
 
25008
  def write(self, oprot):
25009
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25010
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25011
      return
9242 kshitij.so 25012
    oprot.writeStructBegin('getSnapdealItemDetails_args')
8739 vikram.rag 25013
    if self.item_id is not None:
25014
      oprot.writeFieldBegin('item_id', TType.I64, 1)
25015
      oprot.writeI64(self.item_id)
25016
      oprot.writeFieldEnd()
25017
    oprot.writeFieldStop()
25018
    oprot.writeStructEnd()
25019
 
25020
  def validate(self):
25021
    return
25022
 
25023
 
25024
  def __repr__(self):
25025
    L = ['%s=%r' % (key, value)
25026
      for key, value in self.__dict__.iteritems()]
25027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25028
 
25029
  def __eq__(self, other):
25030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25031
 
25032
  def __ne__(self, other):
25033
    return not (self == other)
25034
 
9242 kshitij.so 25035
class getSnapdealItemDetails_result:
8739 vikram.rag 25036
  """
25037
  Attributes:
25038
   - success
25039
  """
25040
 
25041
  thrift_spec = (
9242 kshitij.so 25042
    (0, TType.STRUCT, 'success', (SnapdealItemDetails, SnapdealItemDetails.thrift_spec), None, ), # 0
8739 vikram.rag 25043
  )
25044
 
25045
  def __init__(self, success=None,):
25046
    self.success = success
25047
 
25048
  def read(self, iprot):
25049
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25050
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25051
      return
25052
    iprot.readStructBegin()
25053
    while True:
25054
      (fname, ftype, fid) = iprot.readFieldBegin()
25055
      if ftype == TType.STOP:
25056
        break
25057
      if fid == 0:
25058
        if ftype == TType.STRUCT:
9242 kshitij.so 25059
          self.success = SnapdealItemDetails()
8739 vikram.rag 25060
          self.success.read(iprot)
25061
        else:
25062
          iprot.skip(ftype)
25063
      else:
25064
        iprot.skip(ftype)
25065
      iprot.readFieldEnd()
25066
    iprot.readStructEnd()
25067
 
25068
  def write(self, oprot):
25069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25071
      return
9242 kshitij.so 25072
    oprot.writeStructBegin('getSnapdealItemDetails_result')
8739 vikram.rag 25073
    if self.success is not None:
25074
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25075
      self.success.write(oprot)
25076
      oprot.writeFieldEnd()
25077
    oprot.writeFieldStop()
25078
    oprot.writeStructEnd()
25079
 
25080
  def validate(self):
25081
    return
25082
 
25083
 
25084
  def __repr__(self):
25085
    L = ['%s=%r' % (key, value)
25086
      for key, value in self.__dict__.iteritems()]
25087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25088
 
25089
  def __eq__(self, other):
25090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25091
 
25092
  def __ne__(self, other):
25093
    return not (self == other)
25094
 
25095
class getAllSnapdealItems_args:
25096
 
25097
  thrift_spec = (
25098
  )
25099
 
25100
  def read(self, iprot):
25101
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25102
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25103
      return
25104
    iprot.readStructBegin()
25105
    while True:
25106
      (fname, ftype, fid) = iprot.readFieldBegin()
25107
      if ftype == TType.STOP:
25108
        break
25109
      else:
25110
        iprot.skip(ftype)
25111
      iprot.readFieldEnd()
25112
    iprot.readStructEnd()
25113
 
25114
  def write(self, oprot):
25115
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25116
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25117
      return
25118
    oprot.writeStructBegin('getAllSnapdealItems_args')
25119
    oprot.writeFieldStop()
25120
    oprot.writeStructEnd()
25121
 
25122
  def validate(self):
25123
    return
25124
 
25125
 
25126
  def __repr__(self):
25127
    L = ['%s=%r' % (key, value)
25128
      for key, value in self.__dict__.iteritems()]
25129
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25130
 
25131
  def __eq__(self, other):
25132
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25133
 
25134
  def __ne__(self, other):
25135
    return not (self == other)
25136
 
25137
class getAllSnapdealItems_result:
25138
  """
25139
  Attributes:
25140
   - success
25141
  """
25142
 
25143
  thrift_spec = (
9242 kshitij.so 25144
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
8739 vikram.rag 25145
  )
25146
 
25147
  def __init__(self, success=None,):
25148
    self.success = success
25149
 
25150
  def read(self, iprot):
25151
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25152
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25153
      return
25154
    iprot.readStructBegin()
25155
    while True:
25156
      (fname, ftype, fid) = iprot.readFieldBegin()
25157
      if ftype == TType.STOP:
25158
        break
25159
      if fid == 0:
25160
        if ftype == TType.LIST:
25161
          self.success = []
12567 amit.gupta 25162
          (_etype525, _size522) = iprot.readListBegin()
25163
          for _i526 in xrange(_size522):
25164
            _elem527 = SnapdealItemDetails()
25165
            _elem527.read(iprot)
25166
            self.success.append(_elem527)
9242 kshitij.so 25167
          iprot.readListEnd()
25168
        else:
25169
          iprot.skip(ftype)
25170
      else:
25171
        iprot.skip(ftype)
25172
      iprot.readFieldEnd()
25173
    iprot.readStructEnd()
25174
 
25175
  def write(self, oprot):
25176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25178
      return
25179
    oprot.writeStructBegin('getAllSnapdealItems_result')
25180
    if self.success is not None:
25181
      oprot.writeFieldBegin('success', TType.LIST, 0)
25182
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25183
      for iter528 in self.success:
25184
        iter528.write(oprot)
9242 kshitij.so 25185
      oprot.writeListEnd()
25186
      oprot.writeFieldEnd()
25187
    oprot.writeFieldStop()
25188
    oprot.writeStructEnd()
25189
 
25190
  def validate(self):
25191
    return
25192
 
25193
 
25194
  def __repr__(self):
25195
    L = ['%s=%r' % (key, value)
25196
      for key, value in self.__dict__.iteritems()]
25197
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25198
 
25199
  def __eq__(self, other):
25200
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25201
 
25202
  def __ne__(self, other):
25203
    return not (self == other)
25204
 
25205
class getSnapdealItems_args:
25206
  """
25207
  Attributes:
25208
   - offset
25209
   - limit
25210
  """
25211
 
25212
  thrift_spec = (
25213
    None, # 0
25214
    (1, TType.I64, 'offset', None, None, ), # 1
25215
    (2, TType.I64, 'limit', None, None, ), # 2
25216
  )
25217
 
25218
  def __init__(self, offset=None, limit=None,):
25219
    self.offset = offset
25220
    self.limit = limit
25221
 
25222
  def read(self, iprot):
25223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25225
      return
25226
    iprot.readStructBegin()
25227
    while True:
25228
      (fname, ftype, fid) = iprot.readFieldBegin()
25229
      if ftype == TType.STOP:
25230
        break
25231
      if fid == 1:
25232
        if ftype == TType.I64:
25233
          self.offset = iprot.readI64();
25234
        else:
25235
          iprot.skip(ftype)
25236
      elif fid == 2:
25237
        if ftype == TType.I64:
25238
          self.limit = iprot.readI64();
25239
        else:
25240
          iprot.skip(ftype)
25241
      else:
25242
        iprot.skip(ftype)
25243
      iprot.readFieldEnd()
25244
    iprot.readStructEnd()
25245
 
25246
  def write(self, oprot):
25247
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25248
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25249
      return
25250
    oprot.writeStructBegin('getSnapdealItems_args')
25251
    if self.offset is not None:
25252
      oprot.writeFieldBegin('offset', TType.I64, 1)
25253
      oprot.writeI64(self.offset)
25254
      oprot.writeFieldEnd()
25255
    if self.limit is not None:
25256
      oprot.writeFieldBegin('limit', TType.I64, 2)
25257
      oprot.writeI64(self.limit)
25258
      oprot.writeFieldEnd()
25259
    oprot.writeFieldStop()
25260
    oprot.writeStructEnd()
25261
 
25262
  def validate(self):
25263
    return
25264
 
25265
 
25266
  def __repr__(self):
25267
    L = ['%s=%r' % (key, value)
25268
      for key, value in self.__dict__.iteritems()]
25269
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25270
 
25271
  def __eq__(self, other):
25272
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25273
 
25274
  def __ne__(self, other):
25275
    return not (self == other)
25276
 
25277
class getSnapdealItems_result:
25278
  """
25279
  Attributes:
25280
   - success
25281
  """
25282
 
25283
  thrift_spec = (
25284
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25285
  )
25286
 
25287
  def __init__(self, success=None,):
25288
    self.success = success
25289
 
25290
  def read(self, iprot):
25291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25293
      return
25294
    iprot.readStructBegin()
25295
    while True:
25296
      (fname, ftype, fid) = iprot.readFieldBegin()
25297
      if ftype == TType.STOP:
25298
        break
25299
      if fid == 0:
25300
        if ftype == TType.LIST:
25301
          self.success = []
12567 amit.gupta 25302
          (_etype532, _size529) = iprot.readListBegin()
25303
          for _i533 in xrange(_size529):
25304
            _elem534 = SnapdealItemDetails()
25305
            _elem534.read(iprot)
25306
            self.success.append(_elem534)
8739 vikram.rag 25307
          iprot.readListEnd()
25308
        else:
25309
          iprot.skip(ftype)
25310
      else:
25311
        iprot.skip(ftype)
25312
      iprot.readFieldEnd()
25313
    iprot.readStructEnd()
25314
 
25315
  def write(self, oprot):
25316
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25317
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25318
      return
9242 kshitij.so 25319
    oprot.writeStructBegin('getSnapdealItems_result')
8739 vikram.rag 25320
    if self.success is not None:
25321
      oprot.writeFieldBegin('success', TType.LIST, 0)
25322
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25323
      for iter535 in self.success:
25324
        iter535.write(oprot)
8739 vikram.rag 25325
      oprot.writeListEnd()
25326
      oprot.writeFieldEnd()
25327
    oprot.writeFieldStop()
25328
    oprot.writeStructEnd()
25329
 
25330
  def validate(self):
25331
    return
25332
 
25333
 
25334
  def __repr__(self):
25335
    L = ['%s=%r' % (key, value)
25336
      for key, value in self.__dict__.iteritems()]
25337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25338
 
25339
  def __eq__(self, other):
25340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25341
 
25342
  def __ne__(self, other):
25343
    return not (self == other)
9242 kshitij.so 25344
 
25345
class searchSnapdealItems_args:
25346
  """
25347
  Attributes:
25348
   - searchTerm
25349
   - offset
25350
   - limit
25351
  """
25352
 
25353
  thrift_spec = (
25354
    None, # 0
25355
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25356
    (2, TType.I64, 'offset', None, None, ), # 2
25357
    (3, TType.I64, 'limit', None, None, ), # 3
25358
  )
25359
 
25360
  def __init__(self, searchTerm=None, offset=None, limit=None,):
25361
    self.searchTerm = searchTerm
25362
    self.offset = offset
25363
    self.limit = limit
25364
 
25365
  def read(self, iprot):
25366
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25367
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25368
      return
25369
    iprot.readStructBegin()
25370
    while True:
25371
      (fname, ftype, fid) = iprot.readFieldBegin()
25372
      if ftype == TType.STOP:
25373
        break
25374
      if fid == 1:
25375
        if ftype == TType.LIST:
25376
          self.searchTerm = []
12567 amit.gupta 25377
          (_etype539, _size536) = iprot.readListBegin()
25378
          for _i540 in xrange(_size536):
25379
            _elem541 = iprot.readString();
25380
            self.searchTerm.append(_elem541)
9242 kshitij.so 25381
          iprot.readListEnd()
25382
        else:
25383
          iprot.skip(ftype)
25384
      elif fid == 2:
25385
        if ftype == TType.I64:
25386
          self.offset = iprot.readI64();
25387
        else:
25388
          iprot.skip(ftype)
25389
      elif fid == 3:
25390
        if ftype == TType.I64:
25391
          self.limit = iprot.readI64();
25392
        else:
25393
          iprot.skip(ftype)
25394
      else:
25395
        iprot.skip(ftype)
25396
      iprot.readFieldEnd()
25397
    iprot.readStructEnd()
25398
 
25399
  def write(self, oprot):
25400
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25401
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25402
      return
25403
    oprot.writeStructBegin('searchSnapdealItems_args')
25404
    if self.searchTerm is not None:
25405
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25406
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25407
      for iter542 in self.searchTerm:
25408
        oprot.writeString(iter542)
9242 kshitij.so 25409
      oprot.writeListEnd()
25410
      oprot.writeFieldEnd()
25411
    if self.offset is not None:
25412
      oprot.writeFieldBegin('offset', TType.I64, 2)
25413
      oprot.writeI64(self.offset)
25414
      oprot.writeFieldEnd()
25415
    if self.limit is not None:
25416
      oprot.writeFieldBegin('limit', TType.I64, 3)
25417
      oprot.writeI64(self.limit)
25418
      oprot.writeFieldEnd()
25419
    oprot.writeFieldStop()
25420
    oprot.writeStructEnd()
25421
 
25422
  def validate(self):
25423
    return
25424
 
25425
 
25426
  def __repr__(self):
25427
    L = ['%s=%r' % (key, value)
25428
      for key, value in self.__dict__.iteritems()]
25429
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25430
 
25431
  def __eq__(self, other):
25432
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25433
 
25434
  def __ne__(self, other):
25435
    return not (self == other)
25436
 
25437
class searchSnapdealItems_result:
25438
  """
25439
  Attributes:
25440
   - success
25441
  """
25442
 
25443
  thrift_spec = (
25444
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItemDetails, SnapdealItemDetails.thrift_spec)), None, ), # 0
25445
  )
25446
 
25447
  def __init__(self, success=None,):
25448
    self.success = success
25449
 
25450
  def read(self, iprot):
25451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25453
      return
25454
    iprot.readStructBegin()
25455
    while True:
25456
      (fname, ftype, fid) = iprot.readFieldBegin()
25457
      if ftype == TType.STOP:
25458
        break
25459
      if fid == 0:
25460
        if ftype == TType.LIST:
25461
          self.success = []
12567 amit.gupta 25462
          (_etype546, _size543) = iprot.readListBegin()
25463
          for _i547 in xrange(_size543):
25464
            _elem548 = SnapdealItemDetails()
25465
            _elem548.read(iprot)
25466
            self.success.append(_elem548)
9242 kshitij.so 25467
          iprot.readListEnd()
25468
        else:
25469
          iprot.skip(ftype)
25470
      else:
25471
        iprot.skip(ftype)
25472
      iprot.readFieldEnd()
25473
    iprot.readStructEnd()
25474
 
25475
  def write(self, oprot):
25476
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25477
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25478
      return
25479
    oprot.writeStructBegin('searchSnapdealItems_result')
25480
    if self.success is not None:
25481
      oprot.writeFieldBegin('success', TType.LIST, 0)
25482
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 25483
      for iter549 in self.success:
25484
        iter549.write(oprot)
9242 kshitij.so 25485
      oprot.writeListEnd()
25486
      oprot.writeFieldEnd()
25487
    oprot.writeFieldStop()
25488
    oprot.writeStructEnd()
25489
 
25490
  def validate(self):
25491
    return
25492
 
25493
 
25494
  def __repr__(self):
25495
    L = ['%s=%r' % (key, value)
25496
      for key, value in self.__dict__.iteritems()]
25497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25498
 
25499
  def __eq__(self, other):
25500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25501
 
25502
  def __ne__(self, other):
25503
    return not (self == other)
25504
 
25505
class getCountForSnapdealItems_args:
25506
 
25507
  thrift_spec = (
25508
  )
25509
 
25510
  def read(self, iprot):
25511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25513
      return
25514
    iprot.readStructBegin()
25515
    while True:
25516
      (fname, ftype, fid) = iprot.readFieldBegin()
25517
      if ftype == TType.STOP:
25518
        break
25519
      else:
25520
        iprot.skip(ftype)
25521
      iprot.readFieldEnd()
25522
    iprot.readStructEnd()
25523
 
25524
  def write(self, oprot):
25525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25527
      return
25528
    oprot.writeStructBegin('getCountForSnapdealItems_args')
25529
    oprot.writeFieldStop()
25530
    oprot.writeStructEnd()
25531
 
25532
  def validate(self):
25533
    return
25534
 
25535
 
25536
  def __repr__(self):
25537
    L = ['%s=%r' % (key, value)
25538
      for key, value in self.__dict__.iteritems()]
25539
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25540
 
25541
  def __eq__(self, other):
25542
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25543
 
25544
  def __ne__(self, other):
25545
    return not (self == other)
25546
 
25547
class getCountForSnapdealItems_result:
25548
  """
25549
  Attributes:
25550
   - success
25551
  """
25552
 
25553
  thrift_spec = (
25554
    (0, TType.I64, 'success', None, None, ), # 0
25555
  )
25556
 
25557
  def __init__(self, success=None,):
25558
    self.success = success
25559
 
25560
  def read(self, iprot):
25561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25563
      return
25564
    iprot.readStructBegin()
25565
    while True:
25566
      (fname, ftype, fid) = iprot.readFieldBegin()
25567
      if ftype == TType.STOP:
25568
        break
25569
      if fid == 0:
25570
        if ftype == TType.I64:
25571
          self.success = iprot.readI64();
25572
        else:
25573
          iprot.skip(ftype)
25574
      else:
25575
        iprot.skip(ftype)
25576
      iprot.readFieldEnd()
25577
    iprot.readStructEnd()
25578
 
25579
  def write(self, oprot):
25580
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25581
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25582
      return
25583
    oprot.writeStructBegin('getCountForSnapdealItems_result')
25584
    if self.success is not None:
25585
      oprot.writeFieldBegin('success', TType.I64, 0)
25586
      oprot.writeI64(self.success)
25587
      oprot.writeFieldEnd()
25588
    oprot.writeFieldStop()
25589
    oprot.writeStructEnd()
25590
 
25591
  def validate(self):
25592
    return
25593
 
25594
 
25595
  def __repr__(self):
25596
    L = ['%s=%r' % (key, value)
25597
      for key, value in self.__dict__.iteritems()]
25598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25599
 
25600
  def __eq__(self, other):
25601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25602
 
25603
  def __ne__(self, other):
25604
    return not (self == other)
25605
 
25606
class getSnapdealSearchResultCount_args:
25607
  """
25608
  Attributes:
25609
   - searchTerm
25610
  """
25611
 
25612
  thrift_spec = (
25613
    None, # 0
25614
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
25615
  )
25616
 
25617
  def __init__(self, searchTerm=None,):
25618
    self.searchTerm = searchTerm
25619
 
25620
  def read(self, iprot):
25621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25623
      return
25624
    iprot.readStructBegin()
25625
    while True:
25626
      (fname, ftype, fid) = iprot.readFieldBegin()
25627
      if ftype == TType.STOP:
25628
        break
25629
      if fid == 1:
25630
        if ftype == TType.LIST:
25631
          self.searchTerm = []
12567 amit.gupta 25632
          (_etype553, _size550) = iprot.readListBegin()
25633
          for _i554 in xrange(_size550):
25634
            _elem555 = iprot.readString();
25635
            self.searchTerm.append(_elem555)
9242 kshitij.so 25636
          iprot.readListEnd()
25637
        else:
25638
          iprot.skip(ftype)
25639
      else:
25640
        iprot.skip(ftype)
25641
      iprot.readFieldEnd()
25642
    iprot.readStructEnd()
25643
 
25644
  def write(self, oprot):
25645
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25646
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25647
      return
25648
    oprot.writeStructBegin('getSnapdealSearchResultCount_args')
25649
    if self.searchTerm is not None:
25650
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
25651
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 25652
      for iter556 in self.searchTerm:
25653
        oprot.writeString(iter556)
9242 kshitij.so 25654
      oprot.writeListEnd()
25655
      oprot.writeFieldEnd()
25656
    oprot.writeFieldStop()
25657
    oprot.writeStructEnd()
25658
 
25659
  def validate(self):
25660
    return
25661
 
25662
 
25663
  def __repr__(self):
25664
    L = ['%s=%r' % (key, value)
25665
      for key, value in self.__dict__.iteritems()]
25666
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25667
 
25668
  def __eq__(self, other):
25669
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25670
 
25671
  def __ne__(self, other):
25672
    return not (self == other)
25673
 
25674
class getSnapdealSearchResultCount_result:
25675
  """
25676
  Attributes:
25677
   - success
25678
  """
25679
 
25680
  thrift_spec = (
25681
    (0, TType.I64, 'success', None, None, ), # 0
25682
  )
25683
 
25684
  def __init__(self, success=None,):
25685
    self.success = success
25686
 
25687
  def read(self, iprot):
25688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25690
      return
25691
    iprot.readStructBegin()
25692
    while True:
25693
      (fname, ftype, fid) = iprot.readFieldBegin()
25694
      if ftype == TType.STOP:
25695
        break
25696
      if fid == 0:
25697
        if ftype == TType.I64:
25698
          self.success = iprot.readI64();
25699
        else:
25700
          iprot.skip(ftype)
25701
      else:
25702
        iprot.skip(ftype)
25703
      iprot.readFieldEnd()
25704
    iprot.readStructEnd()
25705
 
25706
  def write(self, oprot):
25707
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25708
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25709
      return
25710
    oprot.writeStructBegin('getSnapdealSearchResultCount_result')
25711
    if self.success is not None:
25712
      oprot.writeFieldBegin('success', TType.I64, 0)
25713
      oprot.writeI64(self.success)
25714
      oprot.writeFieldEnd()
25715
    oprot.writeFieldStop()
25716
    oprot.writeStructEnd()
25717
 
25718
  def validate(self):
25719
    return
25720
 
25721
 
25722
  def __repr__(self):
25723
    L = ['%s=%r' % (key, value)
25724
      for key, value in self.__dict__.iteritems()]
25725
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25726
 
25727
  def __eq__(self, other):
25728
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25729
 
25730
  def __ne__(self, other):
25731
    return not (self == other)
9299 kshitij.so 25732
 
25733
class getPrefferedInsurerForItem_args:
25734
  """
25735
  Attributes:
25736
   - itemId
25737
   - insurerType
25738
  """
25739
 
25740
  thrift_spec = (
25741
    None, # 0
25742
    (1, TType.I64, 'itemId', None, None, ), # 1
25743
    (2, TType.I32, 'insurerType', None, None, ), # 2
25744
  )
25745
 
25746
  def __init__(self, itemId=None, insurerType=None,):
25747
    self.itemId = itemId
25748
    self.insurerType = insurerType
25749
 
25750
  def read(self, iprot):
25751
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25752
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25753
      return
25754
    iprot.readStructBegin()
25755
    while True:
25756
      (fname, ftype, fid) = iprot.readFieldBegin()
25757
      if ftype == TType.STOP:
25758
        break
25759
      if fid == 1:
25760
        if ftype == TType.I64:
25761
          self.itemId = iprot.readI64();
25762
        else:
25763
          iprot.skip(ftype)
25764
      elif fid == 2:
25765
        if ftype == TType.I32:
25766
          self.insurerType = iprot.readI32();
25767
        else:
25768
          iprot.skip(ftype)
25769
      else:
25770
        iprot.skip(ftype)
25771
      iprot.readFieldEnd()
25772
    iprot.readStructEnd()
25773
 
25774
  def write(self, oprot):
25775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25777
      return
25778
    oprot.writeStructBegin('getPrefferedInsurerForItem_args')
25779
    if self.itemId is not None:
25780
      oprot.writeFieldBegin('itemId', TType.I64, 1)
25781
      oprot.writeI64(self.itemId)
25782
      oprot.writeFieldEnd()
25783
    if self.insurerType is not None:
25784
      oprot.writeFieldBegin('insurerType', TType.I32, 2)
25785
      oprot.writeI32(self.insurerType)
25786
      oprot.writeFieldEnd()
25787
    oprot.writeFieldStop()
25788
    oprot.writeStructEnd()
25789
 
25790
  def validate(self):
25791
    return
25792
 
25793
 
25794
  def __repr__(self):
25795
    L = ['%s=%r' % (key, value)
25796
      for key, value in self.__dict__.iteritems()]
25797
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25798
 
25799
  def __eq__(self, other):
25800
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25801
 
25802
  def __ne__(self, other):
25803
    return not (self == other)
25804
 
25805
class getPrefferedInsurerForItem_result:
25806
  """
25807
  Attributes:
25808
   - success
25809
  """
25810
 
25811
  thrift_spec = (
25812
    (0, TType.I64, 'success', None, None, ), # 0
25813
  )
25814
 
25815
  def __init__(self, success=None,):
25816
    self.success = success
25817
 
25818
  def read(self, iprot):
25819
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25820
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25821
      return
25822
    iprot.readStructBegin()
25823
    while True:
25824
      (fname, ftype, fid) = iprot.readFieldBegin()
25825
      if ftype == TType.STOP:
25826
        break
25827
      if fid == 0:
25828
        if ftype == TType.I64:
25829
          self.success = iprot.readI64();
25830
        else:
25831
          iprot.skip(ftype)
25832
      else:
25833
        iprot.skip(ftype)
25834
      iprot.readFieldEnd()
25835
    iprot.readStructEnd()
25836
 
25837
  def write(self, oprot):
25838
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25839
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25840
      return
25841
    oprot.writeStructBegin('getPrefferedInsurerForItem_result')
25842
    if self.success is not None:
25843
      oprot.writeFieldBegin('success', TType.I64, 0)
25844
      oprot.writeI64(self.success)
25845
      oprot.writeFieldEnd()
25846
    oprot.writeFieldStop()
25847
    oprot.writeStructEnd()
25848
 
25849
  def validate(self):
25850
    return
25851
 
25852
 
25853
  def __repr__(self):
25854
    L = ['%s=%r' % (key, value)
25855
      for key, value in self.__dict__.iteritems()]
25856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25857
 
25858
  def __eq__(self, other):
25859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25860
 
25861
  def __ne__(self, other):
25862
    return not (self == other)
9456 vikram.rag 25863
 
25864
class getSnapdealItembySkuAtSnapdeal_args:
25865
  """
25866
  Attributes:
25867
   - skuAtSnapdeal
25868
  """
25869
 
25870
  thrift_spec = None
25871
  def __init__(self, skuAtSnapdeal=None,):
25872
    self.skuAtSnapdeal = skuAtSnapdeal
25873
 
25874
  def read(self, iprot):
25875
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25876
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25877
      return
25878
    iprot.readStructBegin()
25879
    while True:
25880
      (fname, ftype, fid) = iprot.readFieldBegin()
25881
      if ftype == TType.STOP:
25882
        break
25883
      if fid == -1:
25884
        if ftype == TType.STRING:
25885
          self.skuAtSnapdeal = iprot.readString();
25886
        else:
25887
          iprot.skip(ftype)
25888
      else:
25889
        iprot.skip(ftype)
25890
      iprot.readFieldEnd()
25891
    iprot.readStructEnd()
25892
 
25893
  def write(self, oprot):
25894
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
25895
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
25896
      return
25897
    oprot.writeStructBegin('getSnapdealItembySkuAtSnapdeal_args')
25898
    if self.skuAtSnapdeal is not None:
25899
      oprot.writeFieldBegin('skuAtSnapdeal', TType.STRING, -1)
25900
      oprot.writeString(self.skuAtSnapdeal)
25901
      oprot.writeFieldEnd()
25902
    oprot.writeFieldStop()
25903
    oprot.writeStructEnd()
25904
 
25905
  def validate(self):
25906
    return
25907
 
25908
 
25909
  def __repr__(self):
25910
    L = ['%s=%r' % (key, value)
25911
      for key, value in self.__dict__.iteritems()]
25912
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25913
 
25914
  def __eq__(self, other):
25915
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25916
 
25917
  def __ne__(self, other):
25918
    return not (self == other)
25919
 
25920
class getSnapdealItembySkuAtSnapdeal_result:
25921
  """
25922
  Attributes:
25923
   - success
25924
  """
25925
 
25926
  thrift_spec = (
25927
    (0, TType.STRUCT, 'success', (SnapdealItem, SnapdealItem.thrift_spec), None, ), # 0
25928
  )
25929
 
25930
  def __init__(self, success=None,):
25931
    self.success = success
25932
 
25933
  def read(self, iprot):
25934
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25935
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25936
      return
25937
    iprot.readStructBegin()
25938
    while True:
25939
      (fname, ftype, fid) = iprot.readFieldBegin()
25940
      if ftype == TType.STOP:
25941
        break
25942
      if fid == 0:
25943
        if ftype == TType.STRUCT:
25944
          self.success = SnapdealItem()
25945
          self.success.read(iprot)
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('getSnapdealItembySkuAtSnapdeal_result')
25958
    if self.success is not None:
25959
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
25960
      self.success.write(oprot)
25961
      oprot.writeFieldEnd()
25962
    oprot.writeFieldStop()
25963
    oprot.writeStructEnd()
25964
 
25965
  def validate(self):
25966
    return
25967
 
25968
 
25969
  def __repr__(self):
25970
    L = ['%s=%r' % (key, value)
25971
      for key, value in self.__dict__.iteritems()]
25972
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
25973
 
25974
  def __eq__(self, other):
25975
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
25976
 
25977
  def __ne__(self, other):
25978
    return not (self == other)
9621 manish.sha 25979
 
25980
class getProductFeedSubmit_args:
25981
  """
25982
  Attributes:
25983
   - catalogItemId
25984
  """
25985
 
25986
  thrift_spec = (
25987
    None, # 0
25988
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
25989
  )
25990
 
25991
  def __init__(self, catalogItemId=None,):
25992
    self.catalogItemId = catalogItemId
25993
 
25994
  def read(self, iprot):
25995
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
25996
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
25997
      return
25998
    iprot.readStructBegin()
25999
    while True:
26000
      (fname, ftype, fid) = iprot.readFieldBegin()
26001
      if ftype == TType.STOP:
26002
        break
26003
      if fid == 1:
26004
        if ftype == TType.I64:
26005
          self.catalogItemId = iprot.readI64();
26006
        else:
26007
          iprot.skip(ftype)
26008
      else:
26009
        iprot.skip(ftype)
26010
      iprot.readFieldEnd()
26011
    iprot.readStructEnd()
26012
 
26013
  def write(self, oprot):
26014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26016
      return
26017
    oprot.writeStructBegin('getProductFeedSubmit_args')
26018
    if self.catalogItemId is not None:
26019
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26020
      oprot.writeI64(self.catalogItemId)
26021
      oprot.writeFieldEnd()
26022
    oprot.writeFieldStop()
26023
    oprot.writeStructEnd()
26024
 
26025
  def validate(self):
26026
    return
26027
 
26028
 
26029
  def __repr__(self):
26030
    L = ['%s=%r' % (key, value)
26031
      for key, value in self.__dict__.iteritems()]
26032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26033
 
26034
  def __eq__(self, other):
26035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26036
 
26037
  def __ne__(self, other):
26038
    return not (self == other)
26039
 
26040
class getProductFeedSubmit_result:
26041
  """
26042
  Attributes:
26043
   - success
26044
   - cex
26045
  """
26046
 
26047
  thrift_spec = (
26048
    (0, TType.STRUCT, 'success', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 0
26049
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26050
  )
26051
 
26052
  def __init__(self, success=None, cex=None,):
26053
    self.success = success
26054
    self.cex = cex
26055
 
26056
  def read(self, iprot):
26057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26059
      return
26060
    iprot.readStructBegin()
26061
    while True:
26062
      (fname, ftype, fid) = iprot.readFieldBegin()
26063
      if ftype == TType.STOP:
26064
        break
26065
      if fid == 0:
26066
        if ftype == TType.STRUCT:
26067
          self.success = ProductFeedSubmit()
26068
          self.success.read(iprot)
26069
        else:
26070
          iprot.skip(ftype)
26071
      elif fid == 1:
26072
        if ftype == TType.STRUCT:
26073
          self.cex = CatalogServiceException()
26074
          self.cex.read(iprot)
26075
        else:
26076
          iprot.skip(ftype)
26077
      else:
26078
        iprot.skip(ftype)
26079
      iprot.readFieldEnd()
26080
    iprot.readStructEnd()
26081
 
26082
  def write(self, oprot):
26083
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26084
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26085
      return
26086
    oprot.writeStructBegin('getProductFeedSubmit_result')
26087
    if self.success is not None:
26088
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26089
      self.success.write(oprot)
26090
      oprot.writeFieldEnd()
26091
    if self.cex is not None:
26092
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26093
      self.cex.write(oprot)
26094
      oprot.writeFieldEnd()
26095
    oprot.writeFieldStop()
26096
    oprot.writeStructEnd()
26097
 
26098
  def validate(self):
26099
    return
26100
 
26101
 
26102
  def __repr__(self):
26103
    L = ['%s=%r' % (key, value)
26104
      for key, value in self.__dict__.iteritems()]
26105
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26106
 
26107
  def __eq__(self, other):
26108
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26109
 
26110
  def __ne__(self, other):
26111
    return not (self == other)
26112
 
26113
class addProductFeedSubmit_args:
26114
  """
26115
  Attributes:
26116
   - productFeedSubmit
26117
  """
26118
 
26119
  thrift_spec = (
26120
    None, # 0
26121
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26122
  )
26123
 
26124
  def __init__(self, productFeedSubmit=None,):
26125
    self.productFeedSubmit = productFeedSubmit
26126
 
26127
  def read(self, iprot):
26128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26130
      return
26131
    iprot.readStructBegin()
26132
    while True:
26133
      (fname, ftype, fid) = iprot.readFieldBegin()
26134
      if ftype == TType.STOP:
26135
        break
26136
      if fid == 1:
26137
        if ftype == TType.STRUCT:
26138
          self.productFeedSubmit = ProductFeedSubmit()
26139
          self.productFeedSubmit.read(iprot)
26140
        else:
26141
          iprot.skip(ftype)
26142
      else:
26143
        iprot.skip(ftype)
26144
      iprot.readFieldEnd()
26145
    iprot.readStructEnd()
26146
 
26147
  def write(self, oprot):
26148
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26149
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26150
      return
26151
    oprot.writeStructBegin('addProductFeedSubmit_args')
26152
    if self.productFeedSubmit is not None:
26153
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26154
      self.productFeedSubmit.write(oprot)
26155
      oprot.writeFieldEnd()
26156
    oprot.writeFieldStop()
26157
    oprot.writeStructEnd()
26158
 
26159
  def validate(self):
26160
    return
26161
 
26162
 
26163
  def __repr__(self):
26164
    L = ['%s=%r' % (key, value)
26165
      for key, value in self.__dict__.iteritems()]
26166
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26167
 
26168
  def __eq__(self, other):
26169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26170
 
26171
  def __ne__(self, other):
26172
    return not (self == other)
26173
 
26174
class addProductFeedSubmit_result:
26175
  """
26176
  Attributes:
26177
   - success
26178
   - cex
26179
  """
26180
 
26181
  thrift_spec = (
26182
    (0, TType.BOOL, 'success', None, None, ), # 0
26183
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26184
  )
26185
 
26186
  def __init__(self, success=None, cex=None,):
26187
    self.success = success
26188
    self.cex = cex
26189
 
26190
  def read(self, iprot):
26191
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26192
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26193
      return
26194
    iprot.readStructBegin()
26195
    while True:
26196
      (fname, ftype, fid) = iprot.readFieldBegin()
26197
      if ftype == TType.STOP:
26198
        break
26199
      if fid == 0:
26200
        if ftype == TType.BOOL:
26201
          self.success = iprot.readBool();
26202
        else:
26203
          iprot.skip(ftype)
26204
      elif fid == 1:
26205
        if ftype == TType.STRUCT:
26206
          self.cex = CatalogServiceException()
26207
          self.cex.read(iprot)
26208
        else:
26209
          iprot.skip(ftype)
26210
      else:
26211
        iprot.skip(ftype)
26212
      iprot.readFieldEnd()
26213
    iprot.readStructEnd()
26214
 
26215
  def write(self, oprot):
26216
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26217
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26218
      return
26219
    oprot.writeStructBegin('addProductFeedSubmit_result')
26220
    if self.success is not None:
26221
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26222
      oprot.writeBool(self.success)
26223
      oprot.writeFieldEnd()
26224
    if self.cex is not None:
26225
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26226
      self.cex.write(oprot)
26227
      oprot.writeFieldEnd()
26228
    oprot.writeFieldStop()
26229
    oprot.writeStructEnd()
26230
 
26231
  def validate(self):
26232
    return
26233
 
26234
 
26235
  def __repr__(self):
26236
    L = ['%s=%r' % (key, value)
26237
      for key, value in self.__dict__.iteritems()]
26238
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26239
 
26240
  def __eq__(self, other):
26241
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26242
 
26243
  def __ne__(self, other):
26244
    return not (self == other)
26245
 
26246
class updateProductFeedSubmit_args:
26247
  """
26248
  Attributes:
26249
   - productFeedSubmit
26250
  """
26251
 
26252
  thrift_spec = (
26253
    None, # 0
26254
    (1, TType.STRUCT, 'productFeedSubmit', (ProductFeedSubmit, ProductFeedSubmit.thrift_spec), None, ), # 1
26255
  )
26256
 
26257
  def __init__(self, productFeedSubmit=None,):
26258
    self.productFeedSubmit = productFeedSubmit
26259
 
26260
  def read(self, iprot):
26261
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26262
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26263
      return
26264
    iprot.readStructBegin()
26265
    while True:
26266
      (fname, ftype, fid) = iprot.readFieldBegin()
26267
      if ftype == TType.STOP:
26268
        break
26269
      if fid == 1:
26270
        if ftype == TType.STRUCT:
26271
          self.productFeedSubmit = ProductFeedSubmit()
26272
          self.productFeedSubmit.read(iprot)
26273
        else:
26274
          iprot.skip(ftype)
26275
      else:
26276
        iprot.skip(ftype)
26277
      iprot.readFieldEnd()
26278
    iprot.readStructEnd()
26279
 
26280
  def write(self, oprot):
26281
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26282
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26283
      return
26284
    oprot.writeStructBegin('updateProductFeedSubmit_args')
26285
    if self.productFeedSubmit is not None:
26286
      oprot.writeFieldBegin('productFeedSubmit', TType.STRUCT, 1)
26287
      self.productFeedSubmit.write(oprot)
26288
      oprot.writeFieldEnd()
26289
    oprot.writeFieldStop()
26290
    oprot.writeStructEnd()
26291
 
26292
  def validate(self):
26293
    return
26294
 
26295
 
26296
  def __repr__(self):
26297
    L = ['%s=%r' % (key, value)
26298
      for key, value in self.__dict__.iteritems()]
26299
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26300
 
26301
  def __eq__(self, other):
26302
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26303
 
26304
  def __ne__(self, other):
26305
    return not (self == other)
26306
 
26307
class updateProductFeedSubmit_result:
26308
  """
26309
  Attributes:
26310
   - success
26311
   - cex
26312
  """
26313
 
26314
  thrift_spec = (
26315
    (0, TType.BOOL, 'success', None, None, ), # 0
26316
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26317
  )
26318
 
26319
  def __init__(self, success=None, cex=None,):
26320
    self.success = success
26321
    self.cex = cex
26322
 
26323
  def read(self, iprot):
26324
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26325
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26326
      return
26327
    iprot.readStructBegin()
26328
    while True:
26329
      (fname, ftype, fid) = iprot.readFieldBegin()
26330
      if ftype == TType.STOP:
26331
        break
26332
      if fid == 0:
26333
        if ftype == TType.BOOL:
26334
          self.success = iprot.readBool();
26335
        else:
26336
          iprot.skip(ftype)
26337
      elif fid == 1:
26338
        if ftype == TType.STRUCT:
26339
          self.cex = CatalogServiceException()
26340
          self.cex.read(iprot)
26341
        else:
26342
          iprot.skip(ftype)
26343
      else:
26344
        iprot.skip(ftype)
26345
      iprot.readFieldEnd()
26346
    iprot.readStructEnd()
26347
 
26348
  def write(self, oprot):
26349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26351
      return
26352
    oprot.writeStructBegin('updateProductFeedSubmit_result')
26353
    if self.success is not None:
26354
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26355
      oprot.writeBool(self.success)
26356
      oprot.writeFieldEnd()
26357
    if self.cex is not None:
26358
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26359
      self.cex.write(oprot)
26360
      oprot.writeFieldEnd()
26361
    oprot.writeFieldStop()
26362
    oprot.writeStructEnd()
26363
 
26364
  def validate(self):
26365
    return
26366
 
26367
 
26368
  def __repr__(self):
26369
    L = ['%s=%r' % (key, value)
26370
      for key, value in self.__dict__.iteritems()]
26371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26372
 
26373
  def __eq__(self, other):
26374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26375
 
26376
  def __ne__(self, other):
26377
    return not (self == other)
26378
 
26379
class deleteProductFeedSubmit_args:
26380
  """
26381
  Attributes:
26382
   - catalogItemId
26383
  """
26384
 
26385
  thrift_spec = (
26386
    None, # 0
26387
    (1, TType.I64, 'catalogItemId', None, None, ), # 1
26388
  )
26389
 
26390
  def __init__(self, catalogItemId=None,):
26391
    self.catalogItemId = catalogItemId
26392
 
26393
  def read(self, iprot):
26394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26396
      return
26397
    iprot.readStructBegin()
26398
    while True:
26399
      (fname, ftype, fid) = iprot.readFieldBegin()
26400
      if ftype == TType.STOP:
26401
        break
26402
      if fid == 1:
26403
        if ftype == TType.I64:
26404
          self.catalogItemId = iprot.readI64();
26405
        else:
26406
          iprot.skip(ftype)
26407
      else:
26408
        iprot.skip(ftype)
26409
      iprot.readFieldEnd()
26410
    iprot.readStructEnd()
26411
 
26412
  def write(self, oprot):
26413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26415
      return
26416
    oprot.writeStructBegin('deleteProductFeedSubmit_args')
26417
    if self.catalogItemId is not None:
26418
      oprot.writeFieldBegin('catalogItemId', TType.I64, 1)
26419
      oprot.writeI64(self.catalogItemId)
26420
      oprot.writeFieldEnd()
26421
    oprot.writeFieldStop()
26422
    oprot.writeStructEnd()
26423
 
26424
  def validate(self):
26425
    return
26426
 
26427
 
26428
  def __repr__(self):
26429
    L = ['%s=%r' % (key, value)
26430
      for key, value in self.__dict__.iteritems()]
26431
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26432
 
26433
  def __eq__(self, other):
26434
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26435
 
26436
  def __ne__(self, other):
26437
    return not (self == other)
26438
 
26439
class deleteProductFeedSubmit_result:
26440
  """
26441
  Attributes:
26442
   - success
26443
   - cex
26444
  """
26445
 
26446
  thrift_spec = (
26447
    (0, TType.BOOL, 'success', None, None, ), # 0
26448
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26449
  )
26450
 
26451
  def __init__(self, success=None, cex=None,):
26452
    self.success = success
26453
    self.cex = cex
26454
 
26455
  def read(self, iprot):
26456
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26457
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26458
      return
26459
    iprot.readStructBegin()
26460
    while True:
26461
      (fname, ftype, fid) = iprot.readFieldBegin()
26462
      if ftype == TType.STOP:
26463
        break
26464
      if fid == 0:
26465
        if ftype == TType.BOOL:
26466
          self.success = iprot.readBool();
26467
        else:
26468
          iprot.skip(ftype)
26469
      elif fid == 1:
26470
        if ftype == TType.STRUCT:
26471
          self.cex = CatalogServiceException()
26472
          self.cex.read(iprot)
26473
        else:
26474
          iprot.skip(ftype)
26475
      else:
26476
        iprot.skip(ftype)
26477
      iprot.readFieldEnd()
26478
    iprot.readStructEnd()
26479
 
26480
  def write(self, oprot):
26481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26483
      return
26484
    oprot.writeStructBegin('deleteProductFeedSubmit_result')
26485
    if self.success is not None:
26486
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26487
      oprot.writeBool(self.success)
26488
      oprot.writeFieldEnd()
26489
    if self.cex is not None:
26490
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26491
      self.cex.write(oprot)
26492
      oprot.writeFieldEnd()
26493
    oprot.writeFieldStop()
26494
    oprot.writeStructEnd()
26495
 
26496
  def validate(self):
26497
    return
26498
 
26499
 
26500
  def __repr__(self):
26501
    L = ['%s=%r' % (key, value)
26502
      for key, value in self.__dict__.iteritems()]
26503
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26504
 
26505
  def __eq__(self, other):
26506
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26507
 
26508
  def __ne__(self, other):
26509
    return not (self == other)
26510
 
26511
class getAllProductFeedSubmit_args:
26512
 
26513
  thrift_spec = (
26514
  )
26515
 
26516
  def read(self, iprot):
26517
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26518
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26519
      return
26520
    iprot.readStructBegin()
26521
    while True:
26522
      (fname, ftype, fid) = iprot.readFieldBegin()
26523
      if ftype == TType.STOP:
26524
        break
26525
      else:
26526
        iprot.skip(ftype)
26527
      iprot.readFieldEnd()
26528
    iprot.readStructEnd()
26529
 
26530
  def write(self, oprot):
26531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26533
      return
26534
    oprot.writeStructBegin('getAllProductFeedSubmit_args')
26535
    oprot.writeFieldStop()
26536
    oprot.writeStructEnd()
26537
 
26538
  def validate(self):
26539
    return
26540
 
26541
 
26542
  def __repr__(self):
26543
    L = ['%s=%r' % (key, value)
26544
      for key, value in self.__dict__.iteritems()]
26545
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26546
 
26547
  def __eq__(self, other):
26548
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26549
 
26550
  def __ne__(self, other):
26551
    return not (self == other)
26552
 
26553
class getAllProductFeedSubmit_result:
26554
  """
26555
  Attributes:
26556
   - success
26557
   - cex
26558
  """
26559
 
26560
  thrift_spec = (
26561
    (0, TType.LIST, 'success', (TType.STRUCT,(ProductFeedSubmit, ProductFeedSubmit.thrift_spec)), None, ), # 0
26562
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
26563
  )
26564
 
26565
  def __init__(self, success=None, cex=None,):
26566
    self.success = success
26567
    self.cex = cex
26568
 
26569
  def read(self, iprot):
26570
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26571
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26572
      return
26573
    iprot.readStructBegin()
26574
    while True:
26575
      (fname, ftype, fid) = iprot.readFieldBegin()
26576
      if ftype == TType.STOP:
26577
        break
26578
      if fid == 0:
26579
        if ftype == TType.LIST:
26580
          self.success = []
12567 amit.gupta 26581
          (_etype560, _size557) = iprot.readListBegin()
26582
          for _i561 in xrange(_size557):
26583
            _elem562 = ProductFeedSubmit()
26584
            _elem562.read(iprot)
26585
            self.success.append(_elem562)
9621 manish.sha 26586
          iprot.readListEnd()
26587
        else:
26588
          iprot.skip(ftype)
26589
      elif fid == 1:
26590
        if ftype == TType.STRUCT:
26591
          self.cex = CatalogServiceException()
26592
          self.cex.read(iprot)
26593
        else:
26594
          iprot.skip(ftype)
26595
      else:
26596
        iprot.skip(ftype)
26597
      iprot.readFieldEnd()
26598
    iprot.readStructEnd()
26599
 
26600
  def write(self, oprot):
26601
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26602
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26603
      return
26604
    oprot.writeStructBegin('getAllProductFeedSubmit_result')
26605
    if self.success is not None:
26606
      oprot.writeFieldBegin('success', TType.LIST, 0)
26607
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 26608
      for iter563 in self.success:
26609
        iter563.write(oprot)
9621 manish.sha 26610
      oprot.writeListEnd()
26611
      oprot.writeFieldEnd()
26612
    if self.cex is not None:
26613
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
26614
      self.cex.write(oprot)
26615
      oprot.writeFieldEnd()
26616
    oprot.writeFieldStop()
26617
    oprot.writeStructEnd()
26618
 
26619
  def validate(self):
26620
    return
26621
 
26622
 
26623
  def __repr__(self):
26624
    L = ['%s=%r' % (key, value)
26625
      for key, value in self.__dict__.iteritems()]
26626
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26627
 
26628
  def __eq__(self, other):
26629
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26630
 
26631
  def __ne__(self, other):
26632
    return not (self == other)
9724 kshitij.so 26633
 
26634
class getMarketplacedetailsForItem_args:
26635
  """
26636
  Attributes:
26637
   - itemId
26638
   - sourceId
26639
  """
26640
 
26641
  thrift_spec = (
26642
    None, # 0
26643
    (1, TType.I64, 'itemId', None, None, ), # 1
26644
    (2, TType.I64, 'sourceId', None, None, ), # 2
26645
  )
26646
 
26647
  def __init__(self, itemId=None, sourceId=None,):
26648
    self.itemId = itemId
26649
    self.sourceId = sourceId
26650
 
26651
  def read(self, iprot):
26652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26654
      return
26655
    iprot.readStructBegin()
26656
    while True:
26657
      (fname, ftype, fid) = iprot.readFieldBegin()
26658
      if ftype == TType.STOP:
26659
        break
26660
      if fid == 1:
26661
        if ftype == TType.I64:
26662
          self.itemId = iprot.readI64();
26663
        else:
26664
          iprot.skip(ftype)
26665
      elif fid == 2:
26666
        if ftype == TType.I64:
26667
          self.sourceId = iprot.readI64();
26668
        else:
26669
          iprot.skip(ftype)
26670
      else:
26671
        iprot.skip(ftype)
26672
      iprot.readFieldEnd()
26673
    iprot.readStructEnd()
26674
 
26675
  def write(self, oprot):
26676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26678
      return
26679
    oprot.writeStructBegin('getMarketplacedetailsForItem_args')
26680
    if self.itemId is not None:
26681
      oprot.writeFieldBegin('itemId', TType.I64, 1)
26682
      oprot.writeI64(self.itemId)
26683
      oprot.writeFieldEnd()
26684
    if self.sourceId is not None:
26685
      oprot.writeFieldBegin('sourceId', TType.I64, 2)
26686
      oprot.writeI64(self.sourceId)
26687
      oprot.writeFieldEnd()
26688
    oprot.writeFieldStop()
26689
    oprot.writeStructEnd()
26690
 
26691
  def validate(self):
26692
    return
26693
 
26694
 
26695
  def __repr__(self):
26696
    L = ['%s=%r' % (key, value)
26697
      for key, value in self.__dict__.iteritems()]
26698
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26699
 
26700
  def __eq__(self, other):
26701
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26702
 
26703
  def __ne__(self, other):
26704
    return not (self == other)
26705
 
26706
class getMarketplacedetailsForItem_result:
26707
  """
26708
  Attributes:
26709
   - success
26710
  """
26711
 
26712
  thrift_spec = (
26713
    (0, TType.STRUCT, 'success', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 0
26714
  )
26715
 
26716
  def __init__(self, success=None,):
26717
    self.success = success
26718
 
26719
  def read(self, iprot):
26720
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26721
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26722
      return
26723
    iprot.readStructBegin()
26724
    while True:
26725
      (fname, ftype, fid) = iprot.readFieldBegin()
26726
      if ftype == TType.STOP:
26727
        break
26728
      if fid == 0:
26729
        if ftype == TType.STRUCT:
26730
          self.success = MarketplaceItems()
26731
          self.success.read(iprot)
26732
        else:
26733
          iprot.skip(ftype)
26734
      else:
26735
        iprot.skip(ftype)
26736
      iprot.readFieldEnd()
26737
    iprot.readStructEnd()
26738
 
26739
  def write(self, oprot):
26740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26742
      return
26743
    oprot.writeStructBegin('getMarketplacedetailsForItem_result')
26744
    if self.success is not None:
26745
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26746
      self.success.write(oprot)
26747
      oprot.writeFieldEnd()
26748
    oprot.writeFieldStop()
26749
    oprot.writeStructEnd()
26750
 
26751
  def validate(self):
26752
    return
26753
 
26754
 
26755
  def __repr__(self):
26756
    L = ['%s=%r' % (key, value)
26757
      for key, value in self.__dict__.iteritems()]
26758
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26759
 
26760
  def __eq__(self, other):
26761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26762
 
26763
  def __ne__(self, other):
26764
    return not (self == other)
26765
 
26766
class updateMarketplaceAttributesForItem_args:
26767
  """
26768
  Attributes:
26769
   - marketPlaceItem
26770
  """
26771
 
26772
  thrift_spec = (
26773
    None, # 0
26774
    (1, TType.STRUCT, 'marketPlaceItem', (MarketplaceItems, MarketplaceItems.thrift_spec), None, ), # 1
26775
  )
26776
 
26777
  def __init__(self, marketPlaceItem=None,):
26778
    self.marketPlaceItem = marketPlaceItem
26779
 
26780
  def read(self, iprot):
26781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26783
      return
26784
    iprot.readStructBegin()
26785
    while True:
26786
      (fname, ftype, fid) = iprot.readFieldBegin()
26787
      if ftype == TType.STOP:
26788
        break
26789
      if fid == 1:
26790
        if ftype == TType.STRUCT:
26791
          self.marketPlaceItem = MarketplaceItems()
26792
          self.marketPlaceItem.read(iprot)
26793
        else:
26794
          iprot.skip(ftype)
26795
      else:
26796
        iprot.skip(ftype)
26797
      iprot.readFieldEnd()
26798
    iprot.readStructEnd()
26799
 
26800
  def write(self, oprot):
26801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26803
      return
26804
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_args')
26805
    if self.marketPlaceItem is not None:
26806
      oprot.writeFieldBegin('marketPlaceItem', TType.STRUCT, 1)
26807
      self.marketPlaceItem.write(oprot)
26808
      oprot.writeFieldEnd()
26809
    oprot.writeFieldStop()
26810
    oprot.writeStructEnd()
26811
 
26812
  def validate(self):
26813
    return
26814
 
26815
 
26816
  def __repr__(self):
26817
    L = ['%s=%r' % (key, value)
26818
      for key, value in self.__dict__.iteritems()]
26819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26820
 
26821
  def __eq__(self, other):
26822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26823
 
26824
  def __ne__(self, other):
26825
    return not (self == other)
26826
 
26827
class updateMarketplaceAttributesForItem_result:
26828
  """
26829
  Attributes:
26830
   - success
26831
  """
26832
 
26833
  thrift_spec = (
26834
    (0, TType.BOOL, 'success', None, None, ), # 0
26835
  )
26836
 
26837
  def __init__(self, success=None,):
26838
    self.success = success
26839
 
26840
  def read(self, iprot):
26841
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26842
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26843
      return
26844
    iprot.readStructBegin()
26845
    while True:
26846
      (fname, ftype, fid) = iprot.readFieldBegin()
26847
      if ftype == TType.STOP:
26848
        break
26849
      if fid == 0:
26850
        if ftype == TType.BOOL:
26851
          self.success = iprot.readBool();
26852
        else:
26853
          iprot.skip(ftype)
26854
      else:
26855
        iprot.skip(ftype)
26856
      iprot.readFieldEnd()
26857
    iprot.readStructEnd()
26858
 
26859
  def write(self, oprot):
26860
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26861
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26862
      return
26863
    oprot.writeStructBegin('updateMarketplaceAttributesForItem_result')
26864
    if self.success is not None:
26865
      oprot.writeFieldBegin('success', TType.BOOL, 0)
26866
      oprot.writeBool(self.success)
26867
      oprot.writeFieldEnd()
26868
    oprot.writeFieldStop()
26869
    oprot.writeStructEnd()
26870
 
26871
  def validate(self):
26872
    return
26873
 
26874
 
26875
  def __repr__(self):
26876
    L = ['%s=%r' % (key, value)
26877
      for key, value in self.__dict__.iteritems()]
26878
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26879
 
26880
  def __eq__(self, other):
26881
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26882
 
26883
  def __ne__(self, other):
26884
    return not (self == other)
9776 vikram.rag 26885
 
9779 kshitij.so 26886
class getCostingForMarketplace_args:
26887
  """
26888
  Attributes:
26889
   - source
26890
   - item_id
26891
  """
26892
 
26893
  thrift_spec = (
26894
    None, # 0
26895
    (1, TType.I64, 'source', None, None, ), # 1
26896
    (2, TType.I64, 'item_id', None, None, ), # 2
26897
  )
26898
 
26899
  def __init__(self, source=None, item_id=None,):
26900
    self.source = source
26901
    self.item_id = item_id
26902
 
26903
  def read(self, iprot):
26904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26906
      return
26907
    iprot.readStructBegin()
26908
    while True:
26909
      (fname, ftype, fid) = iprot.readFieldBegin()
26910
      if ftype == TType.STOP:
26911
        break
26912
      if fid == 1:
26913
        if ftype == TType.I64:
26914
          self.source = iprot.readI64();
26915
        else:
26916
          iprot.skip(ftype)
26917
      elif fid == 2:
26918
        if ftype == TType.I64:
26919
          self.item_id = iprot.readI64();
26920
        else:
26921
          iprot.skip(ftype)
26922
      else:
26923
        iprot.skip(ftype)
26924
      iprot.readFieldEnd()
26925
    iprot.readStructEnd()
26926
 
26927
  def write(self, oprot):
26928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26930
      return
26931
    oprot.writeStructBegin('getCostingForMarketplace_args')
26932
    if self.source is not None:
26933
      oprot.writeFieldBegin('source', TType.I64, 1)
26934
      oprot.writeI64(self.source)
26935
      oprot.writeFieldEnd()
26936
    if self.item_id is not None:
26937
      oprot.writeFieldBegin('item_id', TType.I64, 2)
26938
      oprot.writeI64(self.item_id)
26939
      oprot.writeFieldEnd()
26940
    oprot.writeFieldStop()
26941
    oprot.writeStructEnd()
26942
 
26943
  def validate(self):
26944
    return
26945
 
26946
 
26947
  def __repr__(self):
26948
    L = ['%s=%r' % (key, value)
26949
      for key, value in self.__dict__.iteritems()]
26950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
26951
 
26952
  def __eq__(self, other):
26953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
26954
 
26955
  def __ne__(self, other):
26956
    return not (self == other)
26957
 
26958
class getCostingForMarketplace_result:
26959
  """
26960
  Attributes:
26961
   - success
26962
  """
26963
 
26964
  thrift_spec = (
26965
    (0, TType.STRUCT, 'success', (MarketplacePercentage, MarketplacePercentage.thrift_spec), None, ), # 0
26966
  )
26967
 
26968
  def __init__(self, success=None,):
26969
    self.success = success
26970
 
26971
  def read(self, iprot):
26972
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
26973
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
26974
      return
26975
    iprot.readStructBegin()
26976
    while True:
26977
      (fname, ftype, fid) = iprot.readFieldBegin()
26978
      if ftype == TType.STOP:
26979
        break
26980
      if fid == 0:
26981
        if ftype == TType.STRUCT:
26982
          self.success = MarketplacePercentage()
26983
          self.success.read(iprot)
26984
        else:
26985
          iprot.skip(ftype)
26986
      else:
26987
        iprot.skip(ftype)
26988
      iprot.readFieldEnd()
26989
    iprot.readStructEnd()
26990
 
26991
  def write(self, oprot):
26992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
26993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
26994
      return
26995
    oprot.writeStructBegin('getCostingForMarketplace_result')
26996
    if self.success is not None:
26997
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
26998
      self.success.write(oprot)
26999
      oprot.writeFieldEnd()
27000
    oprot.writeFieldStop()
27001
    oprot.writeStructEnd()
27002
 
27003
  def validate(self):
27004
    return
27005
 
27006
 
27007
  def __repr__(self):
27008
    L = ['%s=%r' % (key, value)
27009
      for key, value in self.__dict__.iteritems()]
27010
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27011
 
27012
  def __eq__(self, other):
27013
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27014
 
27015
  def __ne__(self, other):
27016
    return not (self == other)
27017
 
9776 vikram.rag 27018
class getMarketPlaceItemsForPriceUpdate_args:
27019
  """
27020
  Attributes:
27021
   - source
27022
  """
27023
 
27024
  thrift_spec = (
27025
    None, # 0
27026
    (1, TType.I64, 'source', None, None, ), # 1
27027
  )
27028
 
27029
  def __init__(self, source=None,):
27030
    self.source = source
27031
 
27032
  def read(self, iprot):
27033
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27034
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27035
      return
27036
    iprot.readStructBegin()
27037
    while True:
27038
      (fname, ftype, fid) = iprot.readFieldBegin()
27039
      if ftype == TType.STOP:
27040
        break
27041
      if fid == 1:
27042
        if ftype == TType.I64:
27043
          self.source = iprot.readI64();
27044
        else:
27045
          iprot.skip(ftype)
27046
      else:
27047
        iprot.skip(ftype)
27048
      iprot.readFieldEnd()
27049
    iprot.readStructEnd()
27050
 
27051
  def write(self, oprot):
27052
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27053
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27054
      return
27055
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_args')
27056
    if self.source is not None:
27057
      oprot.writeFieldBegin('source', TType.I64, 1)
27058
      oprot.writeI64(self.source)
27059
      oprot.writeFieldEnd()
27060
    oprot.writeFieldStop()
27061
    oprot.writeStructEnd()
27062
 
27063
  def validate(self):
27064
    return
27065
 
27066
 
27067
  def __repr__(self):
27068
    L = ['%s=%r' % (key, value)
27069
      for key, value in self.__dict__.iteritems()]
27070
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27071
 
27072
  def __eq__(self, other):
27073
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27074
 
27075
  def __ne__(self, other):
27076
    return not (self == other)
27077
 
27078
class getMarketPlaceItemsForPriceUpdate_result:
27079
  """
27080
  Attributes:
27081
   - success
27082
  """
27083
 
27084
  thrift_spec = (
27085
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketPlaceItemPrice, MarketPlaceItemPrice.thrift_spec)), None, ), # 0
27086
  )
27087
 
27088
  def __init__(self, success=None,):
27089
    self.success = success
27090
 
27091
  def read(self, iprot):
27092
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27093
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27094
      return
27095
    iprot.readStructBegin()
27096
    while True:
27097
      (fname, ftype, fid) = iprot.readFieldBegin()
27098
      if ftype == TType.STOP:
27099
        break
27100
      if fid == 0:
27101
        if ftype == TType.LIST:
27102
          self.success = []
12567 amit.gupta 27103
          (_etype567, _size564) = iprot.readListBegin()
27104
          for _i568 in xrange(_size564):
27105
            _elem569 = MarketPlaceItemPrice()
27106
            _elem569.read(iprot)
27107
            self.success.append(_elem569)
9776 vikram.rag 27108
          iprot.readListEnd()
27109
        else:
27110
          iprot.skip(ftype)
27111
      else:
27112
        iprot.skip(ftype)
27113
      iprot.readFieldEnd()
27114
    iprot.readStructEnd()
27115
 
27116
  def write(self, oprot):
27117
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27118
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27119
      return
27120
    oprot.writeStructBegin('getMarketPlaceItemsForPriceUpdate_result')
27121
    if self.success is not None:
27122
      oprot.writeFieldBegin('success', TType.LIST, 0)
27123
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27124
      for iter570 in self.success:
27125
        iter570.write(oprot)
9776 vikram.rag 27126
      oprot.writeListEnd()
27127
      oprot.writeFieldEnd()
27128
    oprot.writeFieldStop()
27129
    oprot.writeStructEnd()
27130
 
27131
  def validate(self):
27132
    return
27133
 
27134
 
27135
  def __repr__(self):
27136
    L = ['%s=%r' % (key, value)
27137
      for key, value in self.__dict__.iteritems()]
27138
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27139
 
27140
  def __eq__(self, other):
27141
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27142
 
27143
  def __ne__(self, other):
27144
    return not (self == other)
27145
 
27146
class updateMarketPlacePriceUpdateStatus_args:
27147
  """
27148
  Attributes:
27149
   - skulist
27150
   - timestamp
9816 kshitij.so 27151
   - source
9776 vikram.rag 27152
  """
27153
 
27154
  thrift_spec = (
27155
    None, # 0
27156
    (1, TType.LIST, 'skulist', (TType.I64,None), None, ), # 1
27157
    (2, TType.I64, 'timestamp', None, None, ), # 2
9816 kshitij.so 27158
    (3, TType.I64, 'source', None, None, ), # 3
9776 vikram.rag 27159
  )
27160
 
9816 kshitij.so 27161
  def __init__(self, skulist=None, timestamp=None, source=None,):
9776 vikram.rag 27162
    self.skulist = skulist
27163
    self.timestamp = timestamp
9816 kshitij.so 27164
    self.source = source
9776 vikram.rag 27165
 
27166
  def read(self, iprot):
27167
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27168
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27169
      return
27170
    iprot.readStructBegin()
27171
    while True:
27172
      (fname, ftype, fid) = iprot.readFieldBegin()
27173
      if ftype == TType.STOP:
27174
        break
27175
      if fid == 1:
27176
        if ftype == TType.LIST:
27177
          self.skulist = []
12567 amit.gupta 27178
          (_etype574, _size571) = iprot.readListBegin()
27179
          for _i575 in xrange(_size571):
27180
            _elem576 = iprot.readI64();
27181
            self.skulist.append(_elem576)
9776 vikram.rag 27182
          iprot.readListEnd()
27183
        else:
27184
          iprot.skip(ftype)
27185
      elif fid == 2:
27186
        if ftype == TType.I64:
27187
          self.timestamp = iprot.readI64();
27188
        else:
27189
          iprot.skip(ftype)
9816 kshitij.so 27190
      elif fid == 3:
27191
        if ftype == TType.I64:
27192
          self.source = iprot.readI64();
27193
        else:
27194
          iprot.skip(ftype)
9776 vikram.rag 27195
      else:
27196
        iprot.skip(ftype)
27197
      iprot.readFieldEnd()
27198
    iprot.readStructEnd()
27199
 
27200
  def write(self, oprot):
27201
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27202
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27203
      return
27204
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_args')
27205
    if self.skulist is not None:
27206
      oprot.writeFieldBegin('skulist', TType.LIST, 1)
27207
      oprot.writeListBegin(TType.I64, len(self.skulist))
12567 amit.gupta 27208
      for iter577 in self.skulist:
27209
        oprot.writeI64(iter577)
9776 vikram.rag 27210
      oprot.writeListEnd()
27211
      oprot.writeFieldEnd()
27212
    if self.timestamp is not None:
27213
      oprot.writeFieldBegin('timestamp', TType.I64, 2)
27214
      oprot.writeI64(self.timestamp)
27215
      oprot.writeFieldEnd()
9816 kshitij.so 27216
    if self.source is not None:
27217
      oprot.writeFieldBegin('source', TType.I64, 3)
27218
      oprot.writeI64(self.source)
27219
      oprot.writeFieldEnd()
9776 vikram.rag 27220
    oprot.writeFieldStop()
27221
    oprot.writeStructEnd()
27222
 
27223
  def validate(self):
27224
    return
27225
 
27226
 
27227
  def __repr__(self):
27228
    L = ['%s=%r' % (key, value)
27229
      for key, value in self.__dict__.iteritems()]
27230
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27231
 
27232
  def __eq__(self, other):
27233
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27234
 
27235
  def __ne__(self, other):
27236
    return not (self == other)
27237
 
27238
class updateMarketPlacePriceUpdateStatus_result:
27239
 
27240
  thrift_spec = (
27241
  )
27242
 
27243
  def read(self, iprot):
27244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27246
      return
27247
    iprot.readStructBegin()
27248
    while True:
27249
      (fname, ftype, fid) = iprot.readFieldBegin()
27250
      if ftype == TType.STOP:
27251
        break
27252
      else:
27253
        iprot.skip(ftype)
27254
      iprot.readFieldEnd()
27255
    iprot.readStructEnd()
27256
 
27257
  def write(self, oprot):
27258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27260
      return
27261
    oprot.writeStructBegin('updateMarketPlacePriceUpdateStatus_result')
27262
    oprot.writeFieldStop()
27263
    oprot.writeStructEnd()
27264
 
27265
  def validate(self):
27266
    return
27267
 
27268
 
27269
  def __repr__(self):
27270
    L = ['%s=%r' % (key, value)
27271
      for key, value in self.__dict__.iteritems()]
27272
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27273
 
27274
  def __eq__(self, other):
27275
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27276
 
27277
  def __ne__(self, other):
27278
    return not (self == other)
9861 rajveer 27279
 
27280
class updateItemHoldInventory_args:
27281
  """
27282
  Attributes:
27283
   - itemHoldMap
27284
  """
27285
 
27286
  thrift_spec = (
27287
    None, # 0
27288
    (1, TType.MAP, 'itemHoldMap', (TType.I64,None,TType.I64,None), None, ), # 1
27289
  )
27290
 
27291
  def __init__(self, itemHoldMap=None,):
27292
    self.itemHoldMap = itemHoldMap
27293
 
27294
  def read(self, iprot):
27295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27297
      return
27298
    iprot.readStructBegin()
27299
    while True:
27300
      (fname, ftype, fid) = iprot.readFieldBegin()
27301
      if ftype == TType.STOP:
27302
        break
27303
      if fid == 1:
27304
        if ftype == TType.MAP:
27305
          self.itemHoldMap = {}
12567 amit.gupta 27306
          (_ktype579, _vtype580, _size578 ) = iprot.readMapBegin() 
27307
          for _i582 in xrange(_size578):
27308
            _key583 = iprot.readI64();
27309
            _val584 = iprot.readI64();
27310
            self.itemHoldMap[_key583] = _val584
9861 rajveer 27311
          iprot.readMapEnd()
27312
        else:
27313
          iprot.skip(ftype)
27314
      else:
27315
        iprot.skip(ftype)
27316
      iprot.readFieldEnd()
27317
    iprot.readStructEnd()
27318
 
27319
  def write(self, oprot):
27320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27322
      return
27323
    oprot.writeStructBegin('updateItemHoldInventory_args')
27324
    if self.itemHoldMap is not None:
27325
      oprot.writeFieldBegin('itemHoldMap', TType.MAP, 1)
27326
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.itemHoldMap))
12567 amit.gupta 27327
      for kiter585,viter586 in self.itemHoldMap.items():
27328
        oprot.writeI64(kiter585)
27329
        oprot.writeI64(viter586)
9861 rajveer 27330
      oprot.writeMapEnd()
27331
      oprot.writeFieldEnd()
27332
    oprot.writeFieldStop()
27333
    oprot.writeStructEnd()
27334
 
27335
  def validate(self):
27336
    return
27337
 
27338
 
27339
  def __repr__(self):
27340
    L = ['%s=%r' % (key, value)
27341
      for key, value in self.__dict__.iteritems()]
27342
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27343
 
27344
  def __eq__(self, other):
27345
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27346
 
27347
  def __ne__(self, other):
27348
    return not (self == other)
27349
 
27350
class updateItemHoldInventory_result:
27351
 
27352
  thrift_spec = (
27353
  )
27354
 
27355
  def read(self, iprot):
27356
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27357
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27358
      return
27359
    iprot.readStructBegin()
27360
    while True:
27361
      (fname, ftype, fid) = iprot.readFieldBegin()
27362
      if ftype == TType.STOP:
27363
        break
27364
      else:
27365
        iprot.skip(ftype)
27366
      iprot.readFieldEnd()
27367
    iprot.readStructEnd()
27368
 
27369
  def write(self, oprot):
27370
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27371
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27372
      return
27373
    oprot.writeStructBegin('updateItemHoldInventory_result')
27374
    oprot.writeFieldStop()
27375
    oprot.writeStructEnd()
27376
 
27377
  def validate(self):
27378
    return
27379
 
27380
 
27381
  def __repr__(self):
27382
    L = ['%s=%r' % (key, value)
27383
      for key, value in self.__dict__.iteritems()]
27384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27385
 
27386
  def __eq__(self, other):
27387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27388
 
27389
  def __ne__(self, other):
27390
    return not (self == other)
9895 vikram.rag 27391
 
27392
class updateNlcAtMarketplaces_args:
27393
  """
27394
  Attributes:
27395
   - item_id
27396
   - vendor_id
27397
   - nlc
27398
  """
27399
 
27400
  thrift_spec = None
27401
  def __init__(self, item_id=None, vendor_id=None, nlc=None,):
27402
    self.item_id = item_id
27403
    self.vendor_id = vendor_id
27404
    self.nlc = nlc
27405
 
27406
  def read(self, iprot):
27407
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27408
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27409
      return
27410
    iprot.readStructBegin()
27411
    while True:
27412
      (fname, ftype, fid) = iprot.readFieldBegin()
27413
      if ftype == TType.STOP:
27414
        break
27415
      if fid == 1:
27416
        if ftype == TType.I64:
27417
          self.item_id = iprot.readI64();
27418
        else:
27419
          iprot.skip(ftype)
27420
      elif fid == 2:
27421
        if ftype == TType.I64:
27422
          self.vendor_id = iprot.readI64();
27423
        else:
27424
          iprot.skip(ftype)
27425
      elif fid == -1:
27426
        if ftype == TType.DOUBLE:
27427
          self.nlc = iprot.readDouble();
27428
        else:
27429
          iprot.skip(ftype)
27430
      else:
27431
        iprot.skip(ftype)
27432
      iprot.readFieldEnd()
27433
    iprot.readStructEnd()
27434
 
27435
  def write(self, oprot):
27436
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27437
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27438
      return
27439
    oprot.writeStructBegin('updateNlcAtMarketplaces_args')
27440
    if self.nlc is not None:
27441
      oprot.writeFieldBegin('nlc', TType.DOUBLE, -1)
27442
      oprot.writeDouble(self.nlc)
27443
      oprot.writeFieldEnd()
27444
    if self.item_id is not None:
27445
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27446
      oprot.writeI64(self.item_id)
27447
      oprot.writeFieldEnd()
27448
    if self.vendor_id is not None:
27449
      oprot.writeFieldBegin('vendor_id', TType.I64, 2)
27450
      oprot.writeI64(self.vendor_id)
27451
      oprot.writeFieldEnd()
27452
    oprot.writeFieldStop()
27453
    oprot.writeStructEnd()
27454
 
27455
  def validate(self):
27456
    return
27457
 
27458
 
27459
  def __repr__(self):
27460
    L = ['%s=%r' % (key, value)
27461
      for key, value in self.__dict__.iteritems()]
27462
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27463
 
27464
  def __eq__(self, other):
27465
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27466
 
27467
  def __ne__(self, other):
27468
    return not (self == other)
27469
 
27470
class updateNlcAtMarketplaces_result:
27471
 
27472
  thrift_spec = (
27473
  )
27474
 
27475
  def read(self, iprot):
27476
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27477
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27478
      return
27479
    iprot.readStructBegin()
27480
    while True:
27481
      (fname, ftype, fid) = iprot.readFieldBegin()
27482
      if ftype == TType.STOP:
27483
        break
27484
      else:
27485
        iprot.skip(ftype)
27486
      iprot.readFieldEnd()
27487
    iprot.readStructEnd()
27488
 
27489
  def write(self, oprot):
27490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27492
      return
27493
    oprot.writeStructBegin('updateNlcAtMarketplaces_result')
27494
    oprot.writeFieldStop()
27495
    oprot.writeStructEnd()
27496
 
27497
  def validate(self):
27498
    return
27499
 
27500
 
27501
  def __repr__(self):
27502
    L = ['%s=%r' % (key, value)
27503
      for key, value in self.__dict__.iteritems()]
27504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27505
 
27506
  def __eq__(self, other):
27507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27508
 
27509
  def __ne__(self, other):
27510
    return not (self == other)
9945 vikram.rag 27511
 
27512
class getAllFlipkartItems_args:
27513
 
27514
  thrift_spec = (
27515
  )
27516
 
27517
  def read(self, iprot):
27518
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27519
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27520
      return
27521
    iprot.readStructBegin()
27522
    while True:
27523
      (fname, ftype, fid) = iprot.readFieldBegin()
27524
      if ftype == TType.STOP:
27525
        break
27526
      else:
27527
        iprot.skip(ftype)
27528
      iprot.readFieldEnd()
27529
    iprot.readStructEnd()
27530
 
27531
  def write(self, oprot):
27532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27534
      return
27535
    oprot.writeStructBegin('getAllFlipkartItems_args')
27536
    oprot.writeFieldStop()
27537
    oprot.writeStructEnd()
27538
 
27539
  def validate(self):
27540
    return
27541
 
27542
 
27543
  def __repr__(self):
27544
    L = ['%s=%r' % (key, value)
27545
      for key, value in self.__dict__.iteritems()]
27546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27547
 
27548
  def __eq__(self, other):
27549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27550
 
27551
  def __ne__(self, other):
27552
    return not (self == other)
27553
 
27554
class getAllFlipkartItems_result:
27555
  """
27556
  Attributes:
27557
   - success
27558
  """
27559
 
27560
  thrift_spec = (
27561
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
27562
  )
27563
 
27564
  def __init__(self, success=None,):
27565
    self.success = success
27566
 
27567
  def read(self, iprot):
27568
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27569
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27570
      return
27571
    iprot.readStructBegin()
27572
    while True:
27573
      (fname, ftype, fid) = iprot.readFieldBegin()
27574
      if ftype == TType.STOP:
27575
        break
27576
      if fid == 0:
27577
        if ftype == TType.LIST:
27578
          self.success = []
12567 amit.gupta 27579
          (_etype590, _size587) = iprot.readListBegin()
27580
          for _i591 in xrange(_size587):
27581
            _elem592 = FlipkartItem()
27582
            _elem592.read(iprot)
27583
            self.success.append(_elem592)
9945 vikram.rag 27584
          iprot.readListEnd()
27585
        else:
27586
          iprot.skip(ftype)
27587
      else:
27588
        iprot.skip(ftype)
27589
      iprot.readFieldEnd()
27590
    iprot.readStructEnd()
27591
 
27592
  def write(self, oprot):
27593
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27594
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27595
      return
27596
    oprot.writeStructBegin('getAllFlipkartItems_result')
27597
    if self.success is not None:
27598
      oprot.writeFieldBegin('success', TType.LIST, 0)
27599
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 27600
      for iter593 in self.success:
27601
        iter593.write(oprot)
9945 vikram.rag 27602
      oprot.writeListEnd()
27603
      oprot.writeFieldEnd()
27604
    oprot.writeFieldStop()
27605
    oprot.writeStructEnd()
27606
 
27607
  def validate(self):
27608
    return
27609
 
27610
 
27611
  def __repr__(self):
27612
    L = ['%s=%r' % (key, value)
27613
      for key, value in self.__dict__.iteritems()]
27614
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27615
 
27616
  def __eq__(self, other):
27617
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27618
 
27619
  def __ne__(self, other):
27620
    return not (self == other)
10097 kshitij.so 27621
 
27622
class addOrUpdateFlipkartItem_args:
27623
  """
27624
  Attributes:
27625
   - flipkartitem
27626
  """
27627
 
27628
  thrift_spec = None
27629
  def __init__(self, flipkartitem=None,):
27630
    self.flipkartitem = flipkartitem
27631
 
27632
  def read(self, iprot):
27633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27635
      return
27636
    iprot.readStructBegin()
27637
    while True:
27638
      (fname, ftype, fid) = iprot.readFieldBegin()
27639
      if ftype == TType.STOP:
27640
        break
27641
      if fid == -1:
27642
        if ftype == TType.STRUCT:
27643
          self.flipkartitem = FlipkartItem()
27644
          self.flipkartitem.read(iprot)
27645
        else:
27646
          iprot.skip(ftype)
27647
      else:
27648
        iprot.skip(ftype)
27649
      iprot.readFieldEnd()
27650
    iprot.readStructEnd()
27651
 
27652
  def write(self, oprot):
27653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27655
      return
27656
    oprot.writeStructBegin('addOrUpdateFlipkartItem_args')
27657
    if self.flipkartitem is not None:
27658
      oprot.writeFieldBegin('flipkartitem', TType.STRUCT, -1)
27659
      self.flipkartitem.write(oprot)
27660
      oprot.writeFieldEnd()
27661
    oprot.writeFieldStop()
27662
    oprot.writeStructEnd()
27663
 
27664
  def validate(self):
27665
    return
27666
 
27667
 
27668
  def __repr__(self):
27669
    L = ['%s=%r' % (key, value)
27670
      for key, value in self.__dict__.iteritems()]
27671
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27672
 
27673
  def __eq__(self, other):
27674
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27675
 
27676
  def __ne__(self, other):
27677
    return not (self == other)
27678
 
27679
class addOrUpdateFlipkartItem_result:
27680
  """
27681
  Attributes:
27682
   - success
27683
  """
27684
 
27685
  thrift_spec = (
27686
    (0, TType.BOOL, 'success', None, None, ), # 0
27687
  )
27688
 
27689
  def __init__(self, success=None,):
27690
    self.success = success
27691
 
27692
  def read(self, iprot):
27693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27695
      return
27696
    iprot.readStructBegin()
27697
    while True:
27698
      (fname, ftype, fid) = iprot.readFieldBegin()
27699
      if ftype == TType.STOP:
27700
        break
27701
      if fid == 0:
27702
        if ftype == TType.BOOL:
27703
          self.success = iprot.readBool();
27704
        else:
27705
          iprot.skip(ftype)
27706
      else:
27707
        iprot.skip(ftype)
27708
      iprot.readFieldEnd()
27709
    iprot.readStructEnd()
27710
 
27711
  def write(self, oprot):
27712
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27713
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27714
      return
27715
    oprot.writeStructBegin('addOrUpdateFlipkartItem_result')
27716
    if self.success is not None:
27717
      oprot.writeFieldBegin('success', TType.BOOL, 0)
27718
      oprot.writeBool(self.success)
27719
      oprot.writeFieldEnd()
27720
    oprot.writeFieldStop()
27721
    oprot.writeStructEnd()
27722
 
27723
  def validate(self):
27724
    return
27725
 
27726
 
27727
  def __repr__(self):
27728
    L = ['%s=%r' % (key, value)
27729
      for key, value in self.__dict__.iteritems()]
27730
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27731
 
27732
  def __eq__(self, other):
27733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27734
 
27735
  def __ne__(self, other):
27736
    return not (self == other)
27737
 
27738
class getFlipkartItem_args:
27739
  """
27740
  Attributes:
27741
   - item_id
27742
  """
27743
 
27744
  thrift_spec = (
27745
    None, # 0
27746
    (1, TType.I64, 'item_id', None, None, ), # 1
27747
  )
27748
 
27749
  def __init__(self, item_id=None,):
27750
    self.item_id = item_id
27751
 
27752
  def read(self, iprot):
27753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27755
      return
27756
    iprot.readStructBegin()
27757
    while True:
27758
      (fname, ftype, fid) = iprot.readFieldBegin()
27759
      if ftype == TType.STOP:
27760
        break
27761
      if fid == 1:
27762
        if ftype == TType.I64:
27763
          self.item_id = iprot.readI64();
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('getFlipkartItem_args')
27776
    if self.item_id is not None:
27777
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27778
      oprot.writeI64(self.item_id)
27779
      oprot.writeFieldEnd()
27780
    oprot.writeFieldStop()
27781
    oprot.writeStructEnd()
27782
 
27783
  def validate(self):
27784
    return
27785
 
27786
 
27787
  def __repr__(self):
27788
    L = ['%s=%r' % (key, value)
27789
      for key, value in self.__dict__.iteritems()]
27790
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27791
 
27792
  def __eq__(self, other):
27793
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27794
 
27795
  def __ne__(self, other):
27796
    return not (self == other)
27797
 
27798
class getFlipkartItem_result:
27799
  """
27800
  Attributes:
27801
   - success
27802
  """
27803
 
27804
  thrift_spec = (
27805
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
27806
  )
27807
 
27808
  def __init__(self, success=None,):
27809
    self.success = success
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 == 0:
27821
        if ftype == TType.STRUCT:
27822
          self.success = FlipkartItem()
27823
          self.success.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('getFlipkartItem_result')
27836
    if self.success is not None:
27837
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27838
      self.success.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 getFlipkartItemDetails_args:
27859
  """
27860
  Attributes:
27861
   - item_id
27862
  """
27863
 
27864
  thrift_spec = (
27865
    None, # 0
27866
    (1, TType.I64, 'item_id', None, None, ), # 1
27867
  )
27868
 
27869
  def __init__(self, item_id=None,):
27870
    self.item_id = item_id
27871
 
27872
  def read(self, iprot):
27873
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27874
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27875
      return
27876
    iprot.readStructBegin()
27877
    while True:
27878
      (fname, ftype, fid) = iprot.readFieldBegin()
27879
      if ftype == TType.STOP:
27880
        break
27881
      if fid == 1:
27882
        if ftype == TType.I64:
27883
          self.item_id = iprot.readI64();
27884
        else:
27885
          iprot.skip(ftype)
27886
      else:
27887
        iprot.skip(ftype)
27888
      iprot.readFieldEnd()
27889
    iprot.readStructEnd()
27890
 
27891
  def write(self, oprot):
27892
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27893
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27894
      return
27895
    oprot.writeStructBegin('getFlipkartItemDetails_args')
27896
    if self.item_id is not None:
27897
      oprot.writeFieldBegin('item_id', TType.I64, 1)
27898
      oprot.writeI64(self.item_id)
27899
      oprot.writeFieldEnd()
27900
    oprot.writeFieldStop()
27901
    oprot.writeStructEnd()
27902
 
27903
  def validate(self):
27904
    return
27905
 
27906
 
27907
  def __repr__(self):
27908
    L = ['%s=%r' % (key, value)
27909
      for key, value in self.__dict__.iteritems()]
27910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27911
 
27912
  def __eq__(self, other):
27913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27914
 
27915
  def __ne__(self, other):
27916
    return not (self == other)
27917
 
27918
class getFlipkartItemDetails_result:
27919
  """
27920
  Attributes:
27921
   - success
27922
  """
27923
 
27924
  thrift_spec = (
27925
    (0, TType.STRUCT, 'success', (FlipkartItemDetails, FlipkartItemDetails.thrift_spec), None, ), # 0
27926
  )
27927
 
27928
  def __init__(self, success=None,):
27929
    self.success = success
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 == 0:
27941
        if ftype == TType.STRUCT:
27942
          self.success = FlipkartItemDetails()
27943
          self.success.read(iprot)
27944
        else:
27945
          iprot.skip(ftype)
27946
      else:
27947
        iprot.skip(ftype)
27948
      iprot.readFieldEnd()
27949
    iprot.readStructEnd()
27950
 
27951
  def write(self, oprot):
27952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
27953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
27954
      return
27955
    oprot.writeStructBegin('getFlipkartItemDetails_result')
27956
    if self.success is not None:
27957
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
27958
      self.success.write(oprot)
27959
      oprot.writeFieldEnd()
27960
    oprot.writeFieldStop()
27961
    oprot.writeStructEnd()
27962
 
27963
  def validate(self):
27964
    return
27965
 
27966
 
27967
  def __repr__(self):
27968
    L = ['%s=%r' % (key, value)
27969
      for key, value in self.__dict__.iteritems()]
27970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
27971
 
27972
  def __eq__(self, other):
27973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
27974
 
27975
  def __ne__(self, other):
27976
    return not (self == other)
27977
 
27978
class getFlipkartItems_args:
27979
  """
27980
  Attributes:
27981
   - offset
27982
   - limit
27983
  """
27984
 
27985
  thrift_spec = (
27986
    None, # 0
27987
    (1, TType.I64, 'offset', None, None, ), # 1
27988
    (2, TType.I64, 'limit', None, None, ), # 2
27989
  )
27990
 
27991
  def __init__(self, offset=None, limit=None,):
27992
    self.offset = offset
27993
    self.limit = limit
27994
 
27995
  def read(self, iprot):
27996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
27997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
27998
      return
27999
    iprot.readStructBegin()
28000
    while True:
28001
      (fname, ftype, fid) = iprot.readFieldBegin()
28002
      if ftype == TType.STOP:
28003
        break
28004
      if fid == 1:
28005
        if ftype == TType.I64:
28006
          self.offset = iprot.readI64();
28007
        else:
28008
          iprot.skip(ftype)
28009
      elif fid == 2:
28010
        if ftype == TType.I64:
28011
          self.limit = iprot.readI64();
28012
        else:
28013
          iprot.skip(ftype)
28014
      else:
28015
        iprot.skip(ftype)
28016
      iprot.readFieldEnd()
28017
    iprot.readStructEnd()
28018
 
28019
  def write(self, oprot):
28020
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28021
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28022
      return
28023
    oprot.writeStructBegin('getFlipkartItems_args')
28024
    if self.offset is not None:
28025
      oprot.writeFieldBegin('offset', TType.I64, 1)
28026
      oprot.writeI64(self.offset)
28027
      oprot.writeFieldEnd()
28028
    if self.limit is not None:
28029
      oprot.writeFieldBegin('limit', TType.I64, 2)
28030
      oprot.writeI64(self.limit)
28031
      oprot.writeFieldEnd()
28032
    oprot.writeFieldStop()
28033
    oprot.writeStructEnd()
28034
 
28035
  def validate(self):
28036
    return
28037
 
28038
 
28039
  def __repr__(self):
28040
    L = ['%s=%r' % (key, value)
28041
      for key, value in self.__dict__.iteritems()]
28042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28043
 
28044
  def __eq__(self, other):
28045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28046
 
28047
  def __ne__(self, other):
28048
    return not (self == other)
28049
 
28050
class getFlipkartItems_result:
28051
  """
28052
  Attributes:
28053
   - success
28054
  """
28055
 
28056
  thrift_spec = (
28057
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28058
  )
28059
 
28060
  def __init__(self, success=None,):
28061
    self.success = success
28062
 
28063
  def read(self, iprot):
28064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28066
      return
28067
    iprot.readStructBegin()
28068
    while True:
28069
      (fname, ftype, fid) = iprot.readFieldBegin()
28070
      if ftype == TType.STOP:
28071
        break
28072
      if fid == 0:
28073
        if ftype == TType.LIST:
28074
          self.success = []
12567 amit.gupta 28075
          (_etype597, _size594) = iprot.readListBegin()
28076
          for _i598 in xrange(_size594):
28077
            _elem599 = FlipkartItemDetails()
28078
            _elem599.read(iprot)
28079
            self.success.append(_elem599)
10097 kshitij.so 28080
          iprot.readListEnd()
28081
        else:
28082
          iprot.skip(ftype)
28083
      else:
28084
        iprot.skip(ftype)
28085
      iprot.readFieldEnd()
28086
    iprot.readStructEnd()
28087
 
28088
  def write(self, oprot):
28089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28091
      return
28092
    oprot.writeStructBegin('getFlipkartItems_result')
28093
    if self.success is not None:
28094
      oprot.writeFieldBegin('success', TType.LIST, 0)
28095
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28096
      for iter600 in self.success:
28097
        iter600.write(oprot)
10097 kshitij.so 28098
      oprot.writeListEnd()
28099
      oprot.writeFieldEnd()
28100
    oprot.writeFieldStop()
28101
    oprot.writeStructEnd()
28102
 
28103
  def validate(self):
28104
    return
28105
 
28106
 
28107
  def __repr__(self):
28108
    L = ['%s=%r' % (key, value)
28109
      for key, value in self.__dict__.iteritems()]
28110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28111
 
28112
  def __eq__(self, other):
28113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28114
 
28115
  def __ne__(self, other):
28116
    return not (self == other)
28117
 
28118
class searchFlipkartItems_args:
28119
  """
28120
  Attributes:
28121
   - searchTerm
28122
   - offset
28123
   - limit
28124
  """
28125
 
28126
  thrift_spec = (
28127
    None, # 0
28128
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28129
    (2, TType.I64, 'offset', None, None, ), # 2
28130
    (3, TType.I64, 'limit', None, None, ), # 3
28131
  )
28132
 
28133
  def __init__(self, searchTerm=None, offset=None, limit=None,):
28134
    self.searchTerm = searchTerm
28135
    self.offset = offset
28136
    self.limit = limit
28137
 
28138
  def read(self, iprot):
28139
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28140
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28141
      return
28142
    iprot.readStructBegin()
28143
    while True:
28144
      (fname, ftype, fid) = iprot.readFieldBegin()
28145
      if ftype == TType.STOP:
28146
        break
28147
      if fid == 1:
28148
        if ftype == TType.LIST:
28149
          self.searchTerm = []
12567 amit.gupta 28150
          (_etype604, _size601) = iprot.readListBegin()
28151
          for _i605 in xrange(_size601):
28152
            _elem606 = iprot.readString();
28153
            self.searchTerm.append(_elem606)
10097 kshitij.so 28154
          iprot.readListEnd()
28155
        else:
28156
          iprot.skip(ftype)
28157
      elif fid == 2:
28158
        if ftype == TType.I64:
28159
          self.offset = iprot.readI64();
28160
        else:
28161
          iprot.skip(ftype)
28162
      elif fid == 3:
28163
        if ftype == TType.I64:
28164
          self.limit = iprot.readI64();
28165
        else:
28166
          iprot.skip(ftype)
28167
      else:
28168
        iprot.skip(ftype)
28169
      iprot.readFieldEnd()
28170
    iprot.readStructEnd()
28171
 
28172
  def write(self, oprot):
28173
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28174
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28175
      return
28176
    oprot.writeStructBegin('searchFlipkartItems_args')
28177
    if self.searchTerm is not None:
28178
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28179
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28180
      for iter607 in self.searchTerm:
28181
        oprot.writeString(iter607)
10097 kshitij.so 28182
      oprot.writeListEnd()
28183
      oprot.writeFieldEnd()
28184
    if self.offset is not None:
28185
      oprot.writeFieldBegin('offset', TType.I64, 2)
28186
      oprot.writeI64(self.offset)
28187
      oprot.writeFieldEnd()
28188
    if self.limit is not None:
28189
      oprot.writeFieldBegin('limit', TType.I64, 3)
28190
      oprot.writeI64(self.limit)
28191
      oprot.writeFieldEnd()
28192
    oprot.writeFieldStop()
28193
    oprot.writeStructEnd()
28194
 
28195
  def validate(self):
28196
    return
28197
 
28198
 
28199
  def __repr__(self):
28200
    L = ['%s=%r' % (key, value)
28201
      for key, value in self.__dict__.iteritems()]
28202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28203
 
28204
  def __eq__(self, other):
28205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28206
 
28207
  def __ne__(self, other):
28208
    return not (self == other)
28209
 
28210
class searchFlipkartItems_result:
28211
  """
28212
  Attributes:
28213
   - success
28214
  """
28215
 
28216
  thrift_spec = (
28217
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28218
  )
28219
 
28220
  def __init__(self, success=None,):
28221
    self.success = success
28222
 
28223
  def read(self, iprot):
28224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28226
      return
28227
    iprot.readStructBegin()
28228
    while True:
28229
      (fname, ftype, fid) = iprot.readFieldBegin()
28230
      if ftype == TType.STOP:
28231
        break
28232
      if fid == 0:
28233
        if ftype == TType.LIST:
28234
          self.success = []
12567 amit.gupta 28235
          (_etype611, _size608) = iprot.readListBegin()
28236
          for _i612 in xrange(_size608):
28237
            _elem613 = FlipkartItemDetails()
28238
            _elem613.read(iprot)
28239
            self.success.append(_elem613)
10097 kshitij.so 28240
          iprot.readListEnd()
28241
        else:
28242
          iprot.skip(ftype)
28243
      else:
28244
        iprot.skip(ftype)
28245
      iprot.readFieldEnd()
28246
    iprot.readStructEnd()
28247
 
28248
  def write(self, oprot):
28249
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28250
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28251
      return
28252
    oprot.writeStructBegin('searchFlipkartItems_result')
28253
    if self.success is not None:
28254
      oprot.writeFieldBegin('success', TType.LIST, 0)
28255
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28256
      for iter614 in self.success:
28257
        iter614.write(oprot)
10097 kshitij.so 28258
      oprot.writeListEnd()
28259
      oprot.writeFieldEnd()
28260
    oprot.writeFieldStop()
28261
    oprot.writeStructEnd()
28262
 
28263
  def validate(self):
28264
    return
28265
 
28266
 
28267
  def __repr__(self):
28268
    L = ['%s=%r' % (key, value)
28269
      for key, value in self.__dict__.iteritems()]
28270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28271
 
28272
  def __eq__(self, other):
28273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28274
 
28275
  def __ne__(self, other):
28276
    return not (self == other)
28277
 
28278
class getCountForFlipkartItems_args:
28279
 
28280
  thrift_spec = (
28281
  )
28282
 
28283
  def read(self, iprot):
28284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28286
      return
28287
    iprot.readStructBegin()
28288
    while True:
28289
      (fname, ftype, fid) = iprot.readFieldBegin()
28290
      if ftype == TType.STOP:
28291
        break
28292
      else:
28293
        iprot.skip(ftype)
28294
      iprot.readFieldEnd()
28295
    iprot.readStructEnd()
28296
 
28297
  def write(self, oprot):
28298
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28299
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28300
      return
28301
    oprot.writeStructBegin('getCountForFlipkartItems_args')
28302
    oprot.writeFieldStop()
28303
    oprot.writeStructEnd()
28304
 
28305
  def validate(self):
28306
    return
28307
 
28308
 
28309
  def __repr__(self):
28310
    L = ['%s=%r' % (key, value)
28311
      for key, value in self.__dict__.iteritems()]
28312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28313
 
28314
  def __eq__(self, other):
28315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28316
 
28317
  def __ne__(self, other):
28318
    return not (self == other)
28319
 
28320
class getCountForFlipkartItems_result:
28321
  """
28322
  Attributes:
28323
   - success
28324
  """
28325
 
28326
  thrift_spec = (
28327
    (0, TType.I64, 'success', None, None, ), # 0
28328
  )
28329
 
28330
  def __init__(self, success=None,):
28331
    self.success = success
28332
 
28333
  def read(self, iprot):
28334
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28335
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28336
      return
28337
    iprot.readStructBegin()
28338
    while True:
28339
      (fname, ftype, fid) = iprot.readFieldBegin()
28340
      if ftype == TType.STOP:
28341
        break
28342
      if fid == 0:
28343
        if ftype == TType.I64:
28344
          self.success = iprot.readI64();
28345
        else:
28346
          iprot.skip(ftype)
28347
      else:
28348
        iprot.skip(ftype)
28349
      iprot.readFieldEnd()
28350
    iprot.readStructEnd()
28351
 
28352
  def write(self, oprot):
28353
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28354
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28355
      return
28356
    oprot.writeStructBegin('getCountForFlipkartItems_result')
28357
    if self.success is not None:
28358
      oprot.writeFieldBegin('success', TType.I64, 0)
28359
      oprot.writeI64(self.success)
28360
      oprot.writeFieldEnd()
28361
    oprot.writeFieldStop()
28362
    oprot.writeStructEnd()
28363
 
28364
  def validate(self):
28365
    return
28366
 
28367
 
28368
  def __repr__(self):
28369
    L = ['%s=%r' % (key, value)
28370
      for key, value in self.__dict__.iteritems()]
28371
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28372
 
28373
  def __eq__(self, other):
28374
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28375
 
28376
  def __ne__(self, other):
28377
    return not (self == other)
28378
 
28379
class getFlipkartSearchResultCount_args:
28380
  """
28381
  Attributes:
28382
   - searchTerm
28383
  """
28384
 
28385
  thrift_spec = (
28386
    None, # 0
28387
    (1, TType.LIST, 'searchTerm', (TType.STRING,None), None, ), # 1
28388
  )
28389
 
28390
  def __init__(self, searchTerm=None,):
28391
    self.searchTerm = searchTerm
28392
 
28393
  def read(self, iprot):
28394
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28395
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28396
      return
28397
    iprot.readStructBegin()
28398
    while True:
28399
      (fname, ftype, fid) = iprot.readFieldBegin()
28400
      if ftype == TType.STOP:
28401
        break
28402
      if fid == 1:
28403
        if ftype == TType.LIST:
28404
          self.searchTerm = []
12567 amit.gupta 28405
          (_etype618, _size615) = iprot.readListBegin()
28406
          for _i619 in xrange(_size615):
28407
            _elem620 = iprot.readString();
28408
            self.searchTerm.append(_elem620)
10097 kshitij.so 28409
          iprot.readListEnd()
28410
        else:
28411
          iprot.skip(ftype)
28412
      else:
28413
        iprot.skip(ftype)
28414
      iprot.readFieldEnd()
28415
    iprot.readStructEnd()
28416
 
28417
  def write(self, oprot):
28418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28420
      return
28421
    oprot.writeStructBegin('getFlipkartSearchResultCount_args')
28422
    if self.searchTerm is not None:
28423
      oprot.writeFieldBegin('searchTerm', TType.LIST, 1)
28424
      oprot.writeListBegin(TType.STRING, len(self.searchTerm))
12567 amit.gupta 28425
      for iter621 in self.searchTerm:
28426
        oprot.writeString(iter621)
10097 kshitij.so 28427
      oprot.writeListEnd()
28428
      oprot.writeFieldEnd()
28429
    oprot.writeFieldStop()
28430
    oprot.writeStructEnd()
28431
 
28432
  def validate(self):
28433
    return
28434
 
28435
 
28436
  def __repr__(self):
28437
    L = ['%s=%r' % (key, value)
28438
      for key, value in self.__dict__.iteritems()]
28439
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28440
 
28441
  def __eq__(self, other):
28442
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28443
 
28444
  def __ne__(self, other):
28445
    return not (self == other)
28446
 
28447
class getFlipkartSearchResultCount_result:
28448
  """
28449
  Attributes:
28450
   - success
28451
  """
28452
 
28453
  thrift_spec = (
28454
    (0, TType.I64, 'success', None, None, ), # 0
28455
  )
28456
 
28457
  def __init__(self, success=None,):
28458
    self.success = success
28459
 
28460
  def read(self, iprot):
28461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28463
      return
28464
    iprot.readStructBegin()
28465
    while True:
28466
      (fname, ftype, fid) = iprot.readFieldBegin()
28467
      if ftype == TType.STOP:
28468
        break
28469
      if fid == 0:
28470
        if ftype == TType.I64:
28471
          self.success = iprot.readI64();
28472
        else:
28473
          iprot.skip(ftype)
28474
      else:
28475
        iprot.skip(ftype)
28476
      iprot.readFieldEnd()
28477
    iprot.readStructEnd()
28478
 
28479
  def write(self, oprot):
28480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28482
      return
28483
    oprot.writeStructBegin('getFlipkartSearchResultCount_result')
28484
    if self.success is not None:
28485
      oprot.writeFieldBegin('success', TType.I64, 0)
28486
      oprot.writeI64(self.success)
28487
      oprot.writeFieldEnd()
28488
    oprot.writeFieldStop()
28489
    oprot.writeStructEnd()
28490
 
28491
  def validate(self):
28492
    return
28493
 
28494
 
28495
  def __repr__(self):
28496
    L = ['%s=%r' % (key, value)
28497
      for key, value in self.__dict__.iteritems()]
28498
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28499
 
28500
  def __eq__(self, other):
28501
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28502
 
28503
  def __ne__(self, other):
28504
    return not (self == other)
28505
 
28506
class getAllFkItems_args:
28507
 
28508
  thrift_spec = (
28509
  )
28510
 
28511
  def read(self, iprot):
28512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28514
      return
28515
    iprot.readStructBegin()
28516
    while True:
28517
      (fname, ftype, fid) = iprot.readFieldBegin()
28518
      if ftype == TType.STOP:
28519
        break
28520
      else:
28521
        iprot.skip(ftype)
28522
      iprot.readFieldEnd()
28523
    iprot.readStructEnd()
28524
 
28525
  def write(self, oprot):
28526
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28527
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28528
      return
28529
    oprot.writeStructBegin('getAllFkItems_args')
28530
    oprot.writeFieldStop()
28531
    oprot.writeStructEnd()
28532
 
28533
  def validate(self):
28534
    return
28535
 
28536
 
28537
  def __repr__(self):
28538
    L = ['%s=%r' % (key, value)
28539
      for key, value in self.__dict__.iteritems()]
28540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28541
 
28542
  def __eq__(self, other):
28543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28544
 
28545
  def __ne__(self, other):
28546
    return not (self == other)
28547
 
28548
class getAllFkItems_result:
28549
  """
28550
  Attributes:
28551
   - success
28552
  """
28553
 
28554
  thrift_spec = (
28555
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItemDetails, FlipkartItemDetails.thrift_spec)), None, ), # 0
28556
  )
28557
 
28558
  def __init__(self, success=None,):
28559
    self.success = success
28560
 
28561
  def read(self, iprot):
28562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28564
      return
28565
    iprot.readStructBegin()
28566
    while True:
28567
      (fname, ftype, fid) = iprot.readFieldBegin()
28568
      if ftype == TType.STOP:
28569
        break
28570
      if fid == 0:
28571
        if ftype == TType.LIST:
28572
          self.success = []
12567 amit.gupta 28573
          (_etype625, _size622) = iprot.readListBegin()
28574
          for _i626 in xrange(_size622):
28575
            _elem627 = FlipkartItemDetails()
28576
            _elem627.read(iprot)
28577
            self.success.append(_elem627)
10097 kshitij.so 28578
          iprot.readListEnd()
28579
        else:
28580
          iprot.skip(ftype)
28581
      else:
28582
        iprot.skip(ftype)
28583
      iprot.readFieldEnd()
28584
    iprot.readStructEnd()
28585
 
28586
  def write(self, oprot):
28587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28589
      return
28590
    oprot.writeStructBegin('getAllFkItems_result')
28591
    if self.success is not None:
28592
      oprot.writeFieldBegin('success', TType.LIST, 0)
28593
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28594
      for iter628 in self.success:
28595
        iter628.write(oprot)
10097 kshitij.so 28596
      oprot.writeListEnd()
28597
      oprot.writeFieldEnd()
28598
    oprot.writeFieldStop()
28599
    oprot.writeStructEnd()
28600
 
28601
  def validate(self):
28602
    return
28603
 
28604
 
28605
  def __repr__(self):
28606
    L = ['%s=%r' % (key, value)
28607
      for key, value in self.__dict__.iteritems()]
28608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28609
 
28610
  def __eq__(self, other):
28611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28612
 
28613
  def __ne__(self, other):
28614
    return not (self == other)
10140 vikram.rag 28615
 
28616
class getFlipkartItemBySkyAtFlipkart_args:
28617
  """
28618
  Attributes:
28619
   - sku
28620
  """
28621
 
11531 vikram.rag 28622
  thrift_spec = None
10140 vikram.rag 28623
  def __init__(self, sku=None,):
28624
    self.sku = sku
28625
 
28626
  def read(self, iprot):
28627
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28628
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28629
      return
28630
    iprot.readStructBegin()
28631
    while True:
28632
      (fname, ftype, fid) = iprot.readFieldBegin()
28633
      if ftype == TType.STOP:
28634
        break
11531 vikram.rag 28635
      if fid == -1:
10140 vikram.rag 28636
        if ftype == TType.STRING:
28637
          self.sku = iprot.readString();
28638
        else:
28639
          iprot.skip(ftype)
28640
      else:
28641
        iprot.skip(ftype)
28642
      iprot.readFieldEnd()
28643
    iprot.readStructEnd()
28644
 
28645
  def write(self, oprot):
28646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28648
      return
28649
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_args')
28650
    if self.sku is not None:
11531 vikram.rag 28651
      oprot.writeFieldBegin('sku', TType.STRING, -1)
10140 vikram.rag 28652
      oprot.writeString(self.sku)
28653
      oprot.writeFieldEnd()
28654
    oprot.writeFieldStop()
28655
    oprot.writeStructEnd()
28656
 
28657
  def validate(self):
28658
    return
28659
 
28660
 
28661
  def __repr__(self):
28662
    L = ['%s=%r' % (key, value)
28663
      for key, value in self.__dict__.iteritems()]
28664
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28665
 
28666
  def __eq__(self, other):
28667
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28668
 
28669
  def __ne__(self, other):
28670
    return not (self == other)
28671
 
28672
class getFlipkartItemBySkyAtFlipkart_result:
28673
  """
28674
  Attributes:
28675
   - success
28676
  """
28677
 
28678
  thrift_spec = (
28679
    (0, TType.STRUCT, 'success', (FlipkartItem, FlipkartItem.thrift_spec), None, ), # 0
28680
  )
28681
 
28682
  def __init__(self, success=None,):
28683
    self.success = success
28684
 
28685
  def read(self, iprot):
28686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28688
      return
28689
    iprot.readStructBegin()
28690
    while True:
28691
      (fname, ftype, fid) = iprot.readFieldBegin()
28692
      if ftype == TType.STOP:
28693
        break
28694
      if fid == 0:
28695
        if ftype == TType.STRUCT:
28696
          self.success = FlipkartItem()
28697
          self.success.read(iprot)
28698
        else:
28699
          iprot.skip(ftype)
28700
      else:
28701
        iprot.skip(ftype)
28702
      iprot.readFieldEnd()
28703
    iprot.readStructEnd()
28704
 
28705
  def write(self, oprot):
28706
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28707
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28708
      return
28709
    oprot.writeStructBegin('getFlipkartItemBySkyAtFlipkart_result')
28710
    if self.success is not None:
28711
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
28712
      self.success.write(oprot)
28713
      oprot.writeFieldEnd()
28714
    oprot.writeFieldStop()
28715
    oprot.writeStructEnd()
28716
 
28717
  def validate(self):
28718
    return
28719
 
28720
 
28721
  def __repr__(self):
28722
    L = ['%s=%r' % (key, value)
28723
      for key, value in self.__dict__.iteritems()]
28724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28725
 
28726
  def __eq__(self, other):
28727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28728
 
28729
  def __ne__(self, other):
28730
    return not (self == other)
10909 vikram.rag 28731
 
11015 kshitij.so 28732
class getMarketplaceHistory_args:
28733
  """
28734
  Attributes:
28735
   - source
28736
   - offset
28737
   - itemId
28738
  """
10909 vikram.rag 28739
 
28740
  thrift_spec = (
11015 kshitij.so 28741
    None, # 0
28742
    (1, TType.I64, 'source', None, None, ), # 1
28743
    (2, TType.I64, 'offset', None, None, ), # 2
28744
    (3, TType.I64, 'itemId', None, None, ), # 3
10909 vikram.rag 28745
  )
28746
 
11015 kshitij.so 28747
  def __init__(self, source=None, offset=None, itemId=None,):
28748
    self.source = source
28749
    self.offset = offset
28750
    self.itemId = itemId
28751
 
10909 vikram.rag 28752
  def read(self, iprot):
28753
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28754
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28755
      return
28756
    iprot.readStructBegin()
28757
    while True:
28758
      (fname, ftype, fid) = iprot.readFieldBegin()
28759
      if ftype == TType.STOP:
28760
        break
11015 kshitij.so 28761
      if fid == 1:
28762
        if ftype == TType.I64:
28763
          self.source = iprot.readI64();
28764
        else:
28765
          iprot.skip(ftype)
28766
      elif fid == 2:
28767
        if ftype == TType.I64:
28768
          self.offset = iprot.readI64();
28769
        else:
28770
          iprot.skip(ftype)
28771
      elif fid == 3:
28772
        if ftype == TType.I64:
28773
          self.itemId = iprot.readI64();
28774
        else:
28775
          iprot.skip(ftype)
10909 vikram.rag 28776
      else:
28777
        iprot.skip(ftype)
28778
      iprot.readFieldEnd()
28779
    iprot.readStructEnd()
28780
 
28781
  def write(self, oprot):
28782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28784
      return
11015 kshitij.so 28785
    oprot.writeStructBegin('getMarketplaceHistory_args')
28786
    if self.source is not None:
28787
      oprot.writeFieldBegin('source', TType.I64, 1)
28788
      oprot.writeI64(self.source)
28789
      oprot.writeFieldEnd()
28790
    if self.offset is not None:
28791
      oprot.writeFieldBegin('offset', TType.I64, 2)
28792
      oprot.writeI64(self.offset)
28793
      oprot.writeFieldEnd()
28794
    if self.itemId is not None:
28795
      oprot.writeFieldBegin('itemId', TType.I64, 3)
28796
      oprot.writeI64(self.itemId)
28797
      oprot.writeFieldEnd()
10909 vikram.rag 28798
    oprot.writeFieldStop()
28799
    oprot.writeStructEnd()
28800
 
28801
  def validate(self):
28802
    return
28803
 
28804
 
28805
  def __repr__(self):
28806
    L = ['%s=%r' % (key, value)
28807
      for key, value in self.__dict__.iteritems()]
28808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28809
 
28810
  def __eq__(self, other):
28811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28812
 
28813
  def __ne__(self, other):
28814
    return not (self == other)
28815
 
11015 kshitij.so 28816
class getMarketplaceHistory_result:
10909 vikram.rag 28817
  """
28818
  Attributes:
28819
   - success
28820
  """
28821
 
28822
  thrift_spec = (
11015 kshitij.so 28823
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), None, ), # 0
10909 vikram.rag 28824
  )
28825
 
28826
  def __init__(self, success=None,):
28827
    self.success = success
28828
 
28829
  def read(self, iprot):
28830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28832
      return
28833
    iprot.readStructBegin()
28834
    while True:
28835
      (fname, ftype, fid) = iprot.readFieldBegin()
28836
      if ftype == TType.STOP:
28837
        break
28838
      if fid == 0:
28839
        if ftype == TType.LIST:
28840
          self.success = []
12567 amit.gupta 28841
          (_etype632, _size629) = iprot.readListBegin()
28842
          for _i633 in xrange(_size629):
28843
            _elem634 = MarketplaceHistory()
28844
            _elem634.read(iprot)
28845
            self.success.append(_elem634)
10909 vikram.rag 28846
          iprot.readListEnd()
28847
        else:
28848
          iprot.skip(ftype)
28849
      else:
28850
        iprot.skip(ftype)
28851
      iprot.readFieldEnd()
28852
    iprot.readStructEnd()
28853
 
28854
  def write(self, oprot):
28855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28857
      return
11015 kshitij.so 28858
    oprot.writeStructBegin('getMarketplaceHistory_result')
10909 vikram.rag 28859
    if self.success is not None:
28860
      oprot.writeFieldBegin('success', TType.LIST, 0)
28861
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28862
      for iter635 in self.success:
28863
        iter635.write(oprot)
10909 vikram.rag 28864
      oprot.writeListEnd()
28865
      oprot.writeFieldEnd()
28866
    oprot.writeFieldStop()
28867
    oprot.writeStructEnd()
28868
 
28869
  def validate(self):
28870
    return
28871
 
28872
 
28873
  def __repr__(self):
28874
    L = ['%s=%r' % (key, value)
28875
      for key, value in self.__dict__.iteritems()]
28876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28877
 
28878
  def __eq__(self, other):
28879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28880
 
28881
  def __ne__(self, other):
28882
    return not (self == other)
10924 vikram.rag 28883
 
11015 kshitij.so 28884
class getAllFbbListedItems_args:
10924 vikram.rag 28885
 
28886
  thrift_spec = (
28887
  )
28888
 
28889
  def read(self, iprot):
28890
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28891
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28892
      return
28893
    iprot.readStructBegin()
28894
    while True:
28895
      (fname, ftype, fid) = iprot.readFieldBegin()
28896
      if ftype == TType.STOP:
28897
        break
28898
      else:
28899
        iprot.skip(ftype)
28900
      iprot.readFieldEnd()
28901
    iprot.readStructEnd()
28902
 
28903
  def write(self, oprot):
28904
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28905
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28906
      return
11015 kshitij.so 28907
    oprot.writeStructBegin('getAllFbbListedItems_args')
10924 vikram.rag 28908
    oprot.writeFieldStop()
28909
    oprot.writeStructEnd()
28910
 
28911
  def validate(self):
28912
    return
28913
 
28914
 
28915
  def __repr__(self):
28916
    L = ['%s=%r' % (key, value)
28917
      for key, value in self.__dict__.iteritems()]
28918
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28919
 
28920
  def __eq__(self, other):
28921
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28922
 
28923
  def __ne__(self, other):
28924
    return not (self == other)
28925
 
11015 kshitij.so 28926
class getAllFbbListedItems_result:
10924 vikram.rag 28927
  """
28928
  Attributes:
28929
   - success
28930
  """
28931
 
28932
  thrift_spec = (
28933
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
28934
  )
28935
 
28936
  def __init__(self, success=None,):
28937
    self.success = success
28938
 
28939
  def read(self, iprot):
28940
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
28941
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
28942
      return
28943
    iprot.readStructBegin()
28944
    while True:
28945
      (fname, ftype, fid) = iprot.readFieldBegin()
28946
      if ftype == TType.STOP:
28947
        break
28948
      if fid == 0:
28949
        if ftype == TType.LIST:
28950
          self.success = []
12567 amit.gupta 28951
          (_etype639, _size636) = iprot.readListBegin()
28952
          for _i640 in xrange(_size636):
28953
            _elem641 = Amazonlisted()
28954
            _elem641.read(iprot)
28955
            self.success.append(_elem641)
10924 vikram.rag 28956
          iprot.readListEnd()
28957
        else:
28958
          iprot.skip(ftype)
28959
      else:
28960
        iprot.skip(ftype)
28961
      iprot.readFieldEnd()
28962
    iprot.readStructEnd()
28963
 
28964
  def write(self, oprot):
28965
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
28966
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
28967
      return
11015 kshitij.so 28968
    oprot.writeStructBegin('getAllFbbListedItems_result')
10924 vikram.rag 28969
    if self.success is not None:
28970
      oprot.writeFieldBegin('success', TType.LIST, 0)
28971
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 28972
      for iter642 in self.success:
28973
        iter642.write(oprot)
10924 vikram.rag 28974
      oprot.writeListEnd()
28975
      oprot.writeFieldEnd()
28976
    oprot.writeFieldStop()
28977
    oprot.writeStructEnd()
28978
 
28979
  def validate(self):
28980
    return
28981
 
28982
 
28983
  def __repr__(self):
28984
    L = ['%s=%r' % (key, value)
28985
      for key, value in self.__dict__.iteritems()]
28986
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
28987
 
28988
  def __eq__(self, other):
28989
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
28990
 
28991
  def __ne__(self, other):
28992
    return not (self == other)
11015 kshitij.so 28993
 
28994
class getAllFbbPricingItems_args:
28995
 
28996
  thrift_spec = (
28997
  )
28998
 
28999
  def read(self, iprot):
29000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29002
      return
29003
    iprot.readStructBegin()
29004
    while True:
29005
      (fname, ftype, fid) = iprot.readFieldBegin()
29006
      if ftype == TType.STOP:
29007
        break
29008
      else:
29009
        iprot.skip(ftype)
29010
      iprot.readFieldEnd()
29011
    iprot.readStructEnd()
29012
 
29013
  def write(self, oprot):
29014
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29015
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29016
      return
29017
    oprot.writeStructBegin('getAllFbbPricingItems_args')
29018
    oprot.writeFieldStop()
29019
    oprot.writeStructEnd()
29020
 
29021
  def validate(self):
29022
    return
29023
 
29024
 
29025
  def __repr__(self):
29026
    L = ['%s=%r' % (key, value)
29027
      for key, value in self.__dict__.iteritems()]
29028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29029
 
29030
  def __eq__(self, other):
29031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29032
 
29033
  def __ne__(self, other):
29034
    return not (self == other)
29035
 
29036
class getAllFbbPricingItems_result:
29037
  """
29038
  Attributes:
29039
   - success
29040
  """
29041
 
29042
  thrift_spec = (
29043
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
29044
  )
29045
 
29046
  def __init__(self, success=None,):
29047
    self.success = success
29048
 
29049
  def read(self, iprot):
29050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29052
      return
29053
    iprot.readStructBegin()
29054
    while True:
29055
      (fname, ftype, fid) = iprot.readFieldBegin()
29056
      if ftype == TType.STOP:
29057
        break
29058
      if fid == 0:
29059
        if ftype == TType.LIST:
29060
          self.success = []
12567 amit.gupta 29061
          (_etype646, _size643) = iprot.readListBegin()
29062
          for _i647 in xrange(_size643):
29063
            _elem648 = Amazonlisted()
29064
            _elem648.read(iprot)
29065
            self.success.append(_elem648)
11015 kshitij.so 29066
          iprot.readListEnd()
29067
        else:
29068
          iprot.skip(ftype)
29069
      else:
29070
        iprot.skip(ftype)
29071
      iprot.readFieldEnd()
29072
    iprot.readStructEnd()
29073
 
29074
  def write(self, oprot):
29075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29077
      return
29078
    oprot.writeStructBegin('getAllFbbPricingItems_result')
29079
    if self.success is not None:
29080
      oprot.writeFieldBegin('success', TType.LIST, 0)
29081
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29082
      for iter649 in self.success:
29083
        iter649.write(oprot)
11015 kshitij.so 29084
      oprot.writeListEnd()
29085
      oprot.writeFieldEnd()
29086
    oprot.writeFieldStop()
29087
    oprot.writeStructEnd()
29088
 
29089
  def validate(self):
29090
    return
29091
 
29092
 
29093
  def __repr__(self):
29094
    L = ['%s=%r' % (key, value)
29095
      for key, value in self.__dict__.iteritems()]
29096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29097
 
29098
  def __eq__(self, other):
29099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29100
 
29101
  def __ne__(self, other):
29102
    return not (self == other)
29103
 
29104
class getCountForMarketplaceHistory_args:
29105
  """
29106
  Attributes:
29107
   - source
29108
   - itemId
29109
  """
29110
 
29111
  thrift_spec = (
29112
    None, # 0
29113
    (1, TType.I64, 'source', None, None, ), # 1
29114
    (2, TType.I64, 'itemId', None, None, ), # 2
29115
  )
29116
 
29117
  def __init__(self, source=None, itemId=None,):
29118
    self.source = source
29119
    self.itemId = itemId
29120
 
29121
  def read(self, iprot):
29122
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29123
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29124
      return
29125
    iprot.readStructBegin()
29126
    while True:
29127
      (fname, ftype, fid) = iprot.readFieldBegin()
29128
      if ftype == TType.STOP:
29129
        break
29130
      if fid == 1:
29131
        if ftype == TType.I64:
29132
          self.source = iprot.readI64();
29133
        else:
29134
          iprot.skip(ftype)
29135
      elif fid == 2:
29136
        if ftype == TType.I64:
29137
          self.itemId = iprot.readI64();
29138
        else:
29139
          iprot.skip(ftype)
29140
      else:
29141
        iprot.skip(ftype)
29142
      iprot.readFieldEnd()
29143
    iprot.readStructEnd()
29144
 
29145
  def write(self, oprot):
29146
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29147
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29148
      return
29149
    oprot.writeStructBegin('getCountForMarketplaceHistory_args')
29150
    if self.source is not None:
29151
      oprot.writeFieldBegin('source', TType.I64, 1)
29152
      oprot.writeI64(self.source)
29153
      oprot.writeFieldEnd()
29154
    if self.itemId is not None:
29155
      oprot.writeFieldBegin('itemId', TType.I64, 2)
29156
      oprot.writeI64(self.itemId)
29157
      oprot.writeFieldEnd()
29158
    oprot.writeFieldStop()
29159
    oprot.writeStructEnd()
29160
 
29161
  def validate(self):
29162
    return
29163
 
29164
 
29165
  def __repr__(self):
29166
    L = ['%s=%r' % (key, value)
29167
      for key, value in self.__dict__.iteritems()]
29168
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29169
 
29170
  def __eq__(self, other):
29171
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29172
 
29173
  def __ne__(self, other):
29174
    return not (self == other)
29175
 
29176
class getCountForMarketplaceHistory_result:
29177
  """
29178
  Attributes:
29179
   - success
29180
  """
29181
 
29182
  thrift_spec = (
29183
    (0, TType.I64, 'success', None, None, ), # 0
29184
  )
29185
 
29186
  def __init__(self, success=None,):
29187
    self.success = success
29188
 
29189
  def read(self, iprot):
29190
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29191
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29192
      return
29193
    iprot.readStructBegin()
29194
    while True:
29195
      (fname, ftype, fid) = iprot.readFieldBegin()
29196
      if ftype == TType.STOP:
29197
        break
29198
      if fid == 0:
29199
        if ftype == TType.I64:
29200
          self.success = iprot.readI64();
29201
        else:
29202
          iprot.skip(ftype)
29203
      else:
29204
        iprot.skip(ftype)
29205
      iprot.readFieldEnd()
29206
    iprot.readStructEnd()
29207
 
29208
  def write(self, oprot):
29209
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29210
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29211
      return
29212
    oprot.writeStructBegin('getCountForMarketplaceHistory_result')
29213
    if self.success is not None:
29214
      oprot.writeFieldBegin('success', TType.I64, 0)
29215
      oprot.writeI64(self.success)
29216
      oprot.writeFieldEnd()
29217
    oprot.writeFieldStop()
29218
    oprot.writeStructEnd()
29219
 
29220
  def validate(self):
29221
    return
29222
 
29223
 
29224
  def __repr__(self):
29225
    L = ['%s=%r' % (key, value)
29226
      for key, value in self.__dict__.iteritems()]
29227
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29228
 
29229
  def __eq__(self, other):
29230
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29231
 
29232
  def __ne__(self, other):
29233
    return not (self == other)
29234
 
29235
class getMarketplaceHistoryByDate_args:
29236
  """
29237
  Attributes:
29238
   - source
29239
   - startDate
29240
   - endDate
29241
   - offset
29242
   - limit
29243
   - itemId
29244
  """
29245
 
29246
  thrift_spec = (
29247
    None, # 0
29248
    (1, TType.I64, 'source', None, None, ), # 1
29249
    (2, TType.I64, 'startDate', None, None, ), # 2
29250
    (3, TType.I64, 'endDate', None, None, ), # 3
29251
    (4, TType.I64, 'offset', None, None, ), # 4
29252
    (5, TType.I64, 'limit', None, None, ), # 5
29253
    (6, TType.I64, 'itemId', None, None, ), # 6
29254
  )
29255
 
29256
  def __init__(self, source=None, startDate=None, endDate=None, offset=None, limit=None, itemId=None,):
29257
    self.source = source
29258
    self.startDate = startDate
29259
    self.endDate = endDate
29260
    self.offset = offset
29261
    self.limit = limit
29262
    self.itemId = itemId
29263
 
29264
  def read(self, iprot):
29265
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29266
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29267
      return
29268
    iprot.readStructBegin()
29269
    while True:
29270
      (fname, ftype, fid) = iprot.readFieldBegin()
29271
      if ftype == TType.STOP:
29272
        break
29273
      if fid == 1:
29274
        if ftype == TType.I64:
29275
          self.source = iprot.readI64();
29276
        else:
29277
          iprot.skip(ftype)
29278
      elif fid == 2:
29279
        if ftype == TType.I64:
29280
          self.startDate = iprot.readI64();
29281
        else:
29282
          iprot.skip(ftype)
29283
      elif fid == 3:
29284
        if ftype == TType.I64:
29285
          self.endDate = iprot.readI64();
29286
        else:
29287
          iprot.skip(ftype)
29288
      elif fid == 4:
29289
        if ftype == TType.I64:
29290
          self.offset = iprot.readI64();
29291
        else:
29292
          iprot.skip(ftype)
29293
      elif fid == 5:
29294
        if ftype == TType.I64:
29295
          self.limit = iprot.readI64();
29296
        else:
29297
          iprot.skip(ftype)
29298
      elif fid == 6:
29299
        if ftype == TType.I64:
29300
          self.itemId = iprot.readI64();
29301
        else:
29302
          iprot.skip(ftype)
29303
      else:
29304
        iprot.skip(ftype)
29305
      iprot.readFieldEnd()
29306
    iprot.readStructEnd()
29307
 
29308
  def write(self, oprot):
29309
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29310
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29311
      return
29312
    oprot.writeStructBegin('getMarketplaceHistoryByDate_args')
29313
    if self.source is not None:
29314
      oprot.writeFieldBegin('source', TType.I64, 1)
29315
      oprot.writeI64(self.source)
29316
      oprot.writeFieldEnd()
29317
    if self.startDate is not None:
29318
      oprot.writeFieldBegin('startDate', TType.I64, 2)
29319
      oprot.writeI64(self.startDate)
29320
      oprot.writeFieldEnd()
29321
    if self.endDate is not None:
29322
      oprot.writeFieldBegin('endDate', TType.I64, 3)
29323
      oprot.writeI64(self.endDate)
29324
      oprot.writeFieldEnd()
29325
    if self.offset is not None:
29326
      oprot.writeFieldBegin('offset', TType.I64, 4)
29327
      oprot.writeI64(self.offset)
29328
      oprot.writeFieldEnd()
29329
    if self.limit is not None:
29330
      oprot.writeFieldBegin('limit', TType.I64, 5)
29331
      oprot.writeI64(self.limit)
29332
      oprot.writeFieldEnd()
29333
    if self.itemId is not None:
29334
      oprot.writeFieldBegin('itemId', TType.I64, 6)
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 getMarketplaceHistoryByDate_result:
29356
  """
29357
  Attributes:
29358
   - success
29359
  """
29360
 
29361
  thrift_spec = (
29362
    (0, TType.LIST, 'success', (TType.STRUCT,(MarketplaceHistory, MarketplaceHistory.thrift_spec)), 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.LIST:
29379
          self.success = []
12567 amit.gupta 29380
          (_etype653, _size650) = iprot.readListBegin()
29381
          for _i654 in xrange(_size650):
29382
            _elem655 = MarketplaceHistory()
29383
            _elem655.read(iprot)
29384
            self.success.append(_elem655)
11015 kshitij.so 29385
          iprot.readListEnd()
29386
        else:
29387
          iprot.skip(ftype)
29388
      else:
29389
        iprot.skip(ftype)
29390
      iprot.readFieldEnd()
29391
    iprot.readStructEnd()
29392
 
29393
  def write(self, oprot):
29394
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29395
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29396
      return
29397
    oprot.writeStructBegin('getMarketplaceHistoryByDate_result')
29398
    if self.success is not None:
29399
      oprot.writeFieldBegin('success', TType.LIST, 0)
29400
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29401
      for iter656 in self.success:
29402
        iter656.write(oprot)
11015 kshitij.so 29403
      oprot.writeListEnd()
29404
      oprot.writeFieldEnd()
29405
    oprot.writeFieldStop()
29406
    oprot.writeStructEnd()
29407
 
29408
  def validate(self):
29409
    return
29410
 
29411
 
29412
  def __repr__(self):
29413
    L = ['%s=%r' % (key, value)
29414
      for key, value in self.__dict__.iteritems()]
29415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29416
 
29417
  def __eq__(self, other):
29418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29419
 
29420
  def __ne__(self, other):
29421
    return not (self == other)
11531 vikram.rag 29422
 
29423
class getPrivateDealDetails_args:
29424
  """
29425
  Attributes:
29426
   - item_id
29427
  """
29428
 
29429
  thrift_spec = (
29430
    None, # 0
29431
    (1, TType.I64, 'item_id', None, None, ), # 1
29432
  )
29433
 
29434
  def __init__(self, item_id=None,):
29435
    self.item_id = item_id
29436
 
29437
  def read(self, iprot):
29438
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29439
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29440
      return
29441
    iprot.readStructBegin()
29442
    while True:
29443
      (fname, ftype, fid) = iprot.readFieldBegin()
29444
      if ftype == TType.STOP:
29445
        break
29446
      if fid == 1:
29447
        if ftype == TType.I64:
29448
          self.item_id = iprot.readI64();
29449
        else:
29450
          iprot.skip(ftype)
29451
      else:
29452
        iprot.skip(ftype)
29453
      iprot.readFieldEnd()
29454
    iprot.readStructEnd()
29455
 
29456
  def write(self, oprot):
29457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29459
      return
29460
    oprot.writeStructBegin('getPrivateDealDetails_args')
29461
    if self.item_id is not None:
29462
      oprot.writeFieldBegin('item_id', TType.I64, 1)
29463
      oprot.writeI64(self.item_id)
29464
      oprot.writeFieldEnd()
29465
    oprot.writeFieldStop()
29466
    oprot.writeStructEnd()
29467
 
29468
  def validate(self):
29469
    return
29470
 
29471
 
29472
  def __repr__(self):
29473
    L = ['%s=%r' % (key, value)
29474
      for key, value in self.__dict__.iteritems()]
29475
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29476
 
29477
  def __eq__(self, other):
29478
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29479
 
29480
  def __ne__(self, other):
29481
    return not (self == other)
29482
 
29483
class getPrivateDealDetails_result:
29484
  """
29485
  Attributes:
29486
   - success
29487
  """
29488
 
29489
  thrift_spec = (
29490
    (0, TType.STRUCT, 'success', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 0
29491
  )
29492
 
29493
  def __init__(self, success=None,):
29494
    self.success = success
29495
 
29496
  def read(self, iprot):
29497
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29498
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29499
      return
29500
    iprot.readStructBegin()
29501
    while True:
29502
      (fname, ftype, fid) = iprot.readFieldBegin()
29503
      if ftype == TType.STOP:
29504
        break
29505
      if fid == 0:
29506
        if ftype == TType.STRUCT:
29507
          self.success = PrivateDeal()
29508
          self.success.read(iprot)
29509
        else:
29510
          iprot.skip(ftype)
29511
      else:
29512
        iprot.skip(ftype)
29513
      iprot.readFieldEnd()
29514
    iprot.readStructEnd()
29515
 
29516
  def write(self, oprot):
29517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29519
      return
29520
    oprot.writeStructBegin('getPrivateDealDetails_result')
29521
    if self.success is not None:
29522
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
29523
      self.success.write(oprot)
29524
      oprot.writeFieldEnd()
29525
    oprot.writeFieldStop()
29526
    oprot.writeStructEnd()
29527
 
29528
  def validate(self):
29529
    return
29530
 
29531
 
29532
  def __repr__(self):
29533
    L = ['%s=%r' % (key, value)
29534
      for key, value in self.__dict__.iteritems()]
29535
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29536
 
29537
  def __eq__(self, other):
29538
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29539
 
29540
  def __ne__(self, other):
29541
    return not (self == other)
29542
 
29543
class getPrivateDealItems_args:
29544
  """
29545
  Attributes:
29546
   - offset
29547
   - limit
29548
  """
29549
 
29550
  thrift_spec = (
29551
    None, # 0
29552
    (1, TType.I64, 'offset', None, None, ), # 1
29553
    (2, TType.I64, 'limit', None, None, ), # 2
29554
  )
29555
 
29556
  def __init__(self, offset=None, limit=None,):
29557
    self.offset = offset
29558
    self.limit = limit
29559
 
29560
  def read(self, iprot):
29561
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29562
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29563
      return
29564
    iprot.readStructBegin()
29565
    while True:
29566
      (fname, ftype, fid) = iprot.readFieldBegin()
29567
      if ftype == TType.STOP:
29568
        break
29569
      if fid == 1:
29570
        if ftype == TType.I64:
29571
          self.offset = iprot.readI64();
29572
        else:
29573
          iprot.skip(ftype)
29574
      elif fid == 2:
29575
        if ftype == TType.I64:
29576
          self.limit = iprot.readI64();
29577
        else:
29578
          iprot.skip(ftype)
29579
      else:
29580
        iprot.skip(ftype)
29581
      iprot.readFieldEnd()
29582
    iprot.readStructEnd()
29583
 
29584
  def write(self, oprot):
29585
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29586
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29587
      return
29588
    oprot.writeStructBegin('getPrivateDealItems_args')
29589
    if self.offset is not None:
29590
      oprot.writeFieldBegin('offset', TType.I64, 1)
29591
      oprot.writeI64(self.offset)
29592
      oprot.writeFieldEnd()
29593
    if self.limit is not None:
29594
      oprot.writeFieldBegin('limit', TType.I64, 2)
29595
      oprot.writeI64(self.limit)
29596
      oprot.writeFieldEnd()
29597
    oprot.writeFieldStop()
29598
    oprot.writeStructEnd()
29599
 
29600
  def validate(self):
29601
    return
29602
 
29603
 
29604
  def __repr__(self):
29605
    L = ['%s=%r' % (key, value)
29606
      for key, value in self.__dict__.iteritems()]
29607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29608
 
29609
  def __eq__(self, other):
29610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29611
 
29612
  def __ne__(self, other):
29613
    return not (self == other)
29614
 
29615
class getPrivateDealItems_result:
29616
  """
29617
  Attributes:
29618
   - success
29619
  """
29620
 
29621
  thrift_spec = (
29622
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
29623
  )
29624
 
29625
  def __init__(self, success=None,):
29626
    self.success = success
29627
 
29628
  def read(self, iprot):
29629
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29630
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29631
      return
29632
    iprot.readStructBegin()
29633
    while True:
29634
      (fname, ftype, fid) = iprot.readFieldBegin()
29635
      if ftype == TType.STOP:
29636
        break
29637
      if fid == 0:
29638
        if ftype == TType.LIST:
29639
          self.success = []
12567 amit.gupta 29640
          (_etype660, _size657) = iprot.readListBegin()
29641
          for _i661 in xrange(_size657):
29642
            _elem662 = Item()
29643
            _elem662.read(iprot)
29644
            self.success.append(_elem662)
11531 vikram.rag 29645
          iprot.readListEnd()
29646
        else:
29647
          iprot.skip(ftype)
29648
      else:
29649
        iprot.skip(ftype)
29650
      iprot.readFieldEnd()
29651
    iprot.readStructEnd()
29652
 
29653
  def write(self, oprot):
29654
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29655
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29656
      return
29657
    oprot.writeStructBegin('getPrivateDealItems_result')
29658
    if self.success is not None:
29659
      oprot.writeFieldBegin('success', TType.LIST, 0)
29660
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 29661
      for iter663 in self.success:
29662
        iter663.write(oprot)
11531 vikram.rag 29663
      oprot.writeListEnd()
29664
      oprot.writeFieldEnd()
29665
    oprot.writeFieldStop()
29666
    oprot.writeStructEnd()
29667
 
29668
  def validate(self):
29669
    return
29670
 
29671
 
29672
  def __repr__(self):
29673
    L = ['%s=%r' % (key, value)
29674
      for key, value in self.__dict__.iteritems()]
29675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29676
 
29677
  def __eq__(self, other):
29678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29679
 
29680
  def __ne__(self, other):
29681
    return not (self == other)
29682
 
11592 amit.gupta 29683
class getAllActivePrivateDeals_args:
11653 amit.gupta 29684
  """
29685
  Attributes:
29686
   - itemIds
29687
   - daysDelta
29688
  """
11592 amit.gupta 29689
 
29690
  thrift_spec = (
11653 amit.gupta 29691
    None, # 0
29692
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
29693
    (2, TType.I64, 'daysDelta', None, None, ), # 2
11592 amit.gupta 29694
  )
29695
 
11653 amit.gupta 29696
  def __init__(self, itemIds=None, daysDelta=None,):
29697
    self.itemIds = itemIds
29698
    self.daysDelta = daysDelta
29699
 
11592 amit.gupta 29700
  def read(self, iprot):
29701
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29702
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29703
      return
29704
    iprot.readStructBegin()
29705
    while True:
29706
      (fname, ftype, fid) = iprot.readFieldBegin()
29707
      if ftype == TType.STOP:
29708
        break
11653 amit.gupta 29709
      if fid == 1:
29710
        if ftype == TType.LIST:
29711
          self.itemIds = []
12567 amit.gupta 29712
          (_etype667, _size664) = iprot.readListBegin()
29713
          for _i668 in xrange(_size664):
29714
            _elem669 = iprot.readI64();
29715
            self.itemIds.append(_elem669)
11653 amit.gupta 29716
          iprot.readListEnd()
29717
        else:
29718
          iprot.skip(ftype)
29719
      elif fid == 2:
29720
        if ftype == TType.I64:
29721
          self.daysDelta = iprot.readI64();
29722
        else:
29723
          iprot.skip(ftype)
11592 amit.gupta 29724
      else:
29725
        iprot.skip(ftype)
29726
      iprot.readFieldEnd()
29727
    iprot.readStructEnd()
29728
 
29729
  def write(self, oprot):
29730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29732
      return
29733
    oprot.writeStructBegin('getAllActivePrivateDeals_args')
11653 amit.gupta 29734
    if self.itemIds is not None:
29735
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
29736
      oprot.writeListBegin(TType.I64, len(self.itemIds))
12567 amit.gupta 29737
      for iter670 in self.itemIds:
29738
        oprot.writeI64(iter670)
11653 amit.gupta 29739
      oprot.writeListEnd()
29740
      oprot.writeFieldEnd()
29741
    if self.daysDelta is not None:
29742
      oprot.writeFieldBegin('daysDelta', TType.I64, 2)
29743
      oprot.writeI64(self.daysDelta)
29744
      oprot.writeFieldEnd()
11592 amit.gupta 29745
    oprot.writeFieldStop()
29746
    oprot.writeStructEnd()
29747
 
29748
  def validate(self):
29749
    return
29750
 
29751
 
29752
  def __repr__(self):
29753
    L = ['%s=%r' % (key, value)
29754
      for key, value in self.__dict__.iteritems()]
29755
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29756
 
29757
  def __eq__(self, other):
29758
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29759
 
29760
  def __ne__(self, other):
29761
    return not (self == other)
29762
 
29763
class getAllActivePrivateDeals_result:
29764
  """
29765
  Attributes:
29766
   - success
29767
  """
29768
 
29769
  thrift_spec = (
29770
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(PrivateDeal, PrivateDeal.thrift_spec)), None, ), # 0
29771
  )
29772
 
29773
  def __init__(self, success=None,):
29774
    self.success = success
29775
 
29776
  def read(self, iprot):
29777
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29778
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29779
      return
29780
    iprot.readStructBegin()
29781
    while True:
29782
      (fname, ftype, fid) = iprot.readFieldBegin()
29783
      if ftype == TType.STOP:
29784
        break
29785
      if fid == 0:
29786
        if ftype == TType.MAP:
29787
          self.success = {}
12567 amit.gupta 29788
          (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() 
29789
          for _i675 in xrange(_size671):
29790
            _key676 = iprot.readI64();
29791
            _val677 = PrivateDeal()
29792
            _val677.read(iprot)
29793
            self.success[_key676] = _val677
11592 amit.gupta 29794
          iprot.readMapEnd()
29795
        else:
29796
          iprot.skip(ftype)
29797
      else:
29798
        iprot.skip(ftype)
29799
      iprot.readFieldEnd()
29800
    iprot.readStructEnd()
29801
 
29802
  def write(self, oprot):
29803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29805
      return
29806
    oprot.writeStructBegin('getAllActivePrivateDeals_result')
29807
    if self.success is not None:
29808
      oprot.writeFieldBegin('success', TType.MAP, 0)
29809
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
12567 amit.gupta 29810
      for kiter678,viter679 in self.success.items():
29811
        oprot.writeI64(kiter678)
29812
        viter679.write(oprot)
11592 amit.gupta 29813
      oprot.writeMapEnd()
29814
      oprot.writeFieldEnd()
29815
    oprot.writeFieldStop()
29816
    oprot.writeStructEnd()
29817
 
29818
  def validate(self):
29819
    return
29820
 
29821
 
29822
  def __repr__(self):
29823
    L = ['%s=%r' % (key, value)
29824
      for key, value in self.__dict__.iteritems()]
29825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29826
 
29827
  def __eq__(self, other):
29828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29829
 
29830
  def __ne__(self, other):
29831
    return not (self == other)
29832
 
11531 vikram.rag 29833
class addOrUpdatePrivateDeal_args:
29834
  """
29835
  Attributes:
29836
   - privateDeal
29837
  """
29838
 
29839
  thrift_spec = (
29840
    None, # 0
29841
    (1, TType.STRUCT, 'privateDeal', (PrivateDeal, PrivateDeal.thrift_spec), None, ), # 1
29842
  )
29843
 
29844
  def __init__(self, privateDeal=None,):
29845
    self.privateDeal = privateDeal
29846
 
29847
  def read(self, iprot):
29848
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29849
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29850
      return
29851
    iprot.readStructBegin()
29852
    while True:
29853
      (fname, ftype, fid) = iprot.readFieldBegin()
29854
      if ftype == TType.STOP:
29855
        break
29856
      if fid == 1:
29857
        if ftype == TType.STRUCT:
29858
          self.privateDeal = PrivateDeal()
29859
          self.privateDeal.read(iprot)
29860
        else:
29861
          iprot.skip(ftype)
29862
      else:
29863
        iprot.skip(ftype)
29864
      iprot.readFieldEnd()
29865
    iprot.readStructEnd()
29866
 
29867
  def write(self, oprot):
29868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29870
      return
29871
    oprot.writeStructBegin('addOrUpdatePrivateDeal_args')
29872
    if self.privateDeal is not None:
29873
      oprot.writeFieldBegin('privateDeal', TType.STRUCT, 1)
29874
      self.privateDeal.write(oprot)
29875
      oprot.writeFieldEnd()
29876
    oprot.writeFieldStop()
29877
    oprot.writeStructEnd()
29878
 
29879
  def validate(self):
29880
    return
29881
 
29882
 
29883
  def __repr__(self):
29884
    L = ['%s=%r' % (key, value)
29885
      for key, value in self.__dict__.iteritems()]
29886
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29887
 
29888
  def __eq__(self, other):
29889
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29890
 
29891
  def __ne__(self, other):
29892
    return not (self == other)
29893
 
29894
class addOrUpdatePrivateDeal_result:
29895
  """
29896
  Attributes:
29897
   - success
29898
  """
29899
 
29900
  thrift_spec = (
29901
    (0, TType.BOOL, 'success', None, None, ), # 0
29902
  )
29903
 
29904
  def __init__(self, success=None,):
29905
    self.success = success
29906
 
29907
  def read(self, iprot):
29908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29910
      return
29911
    iprot.readStructBegin()
29912
    while True:
29913
      (fname, ftype, fid) = iprot.readFieldBegin()
29914
      if ftype == TType.STOP:
29915
        break
29916
      if fid == 0:
29917
        if ftype == TType.BOOL:
29918
          self.success = iprot.readBool();
29919
        else:
29920
          iprot.skip(ftype)
29921
      else:
29922
        iprot.skip(ftype)
29923
      iprot.readFieldEnd()
29924
    iprot.readStructEnd()
29925
 
29926
  def write(self, oprot):
29927
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29928
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29929
      return
29930
    oprot.writeStructBegin('addOrUpdatePrivateDeal_result')
29931
    if self.success is not None:
29932
      oprot.writeFieldBegin('success', TType.BOOL, 0)
29933
      oprot.writeBool(self.success)
29934
      oprot.writeFieldEnd()
29935
    oprot.writeFieldStop()
29936
    oprot.writeStructEnd()
29937
 
29938
  def validate(self):
29939
    return
29940
 
29941
 
29942
  def __repr__(self):
29943
    L = ['%s=%r' % (key, value)
29944
      for key, value in self.__dict__.iteritems()]
29945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
29946
 
29947
  def __eq__(self, other):
29948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
29949
 
29950
  def __ne__(self, other):
29951
    return not (self == other)
11635 vikram.rag 29952
 
29953
class getPrivateDealsCatalogIds_args:
29954
  """
29955
  Attributes:
29956
   - beginIndex
29957
   - totalItems
29958
  """
29959
 
29960
  thrift_spec = (
29961
    None, # 0
29962
    (1, TType.I64, 'beginIndex', None, None, ), # 1
29963
    (2, TType.I64, 'totalItems', None, None, ), # 2
29964
  )
29965
 
29966
  def __init__(self, beginIndex=None, totalItems=None,):
29967
    self.beginIndex = beginIndex
29968
    self.totalItems = totalItems
29969
 
29970
  def read(self, iprot):
29971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
29972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
29973
      return
29974
    iprot.readStructBegin()
29975
    while True:
29976
      (fname, ftype, fid) = iprot.readFieldBegin()
29977
      if ftype == TType.STOP:
29978
        break
29979
      if fid == 1:
29980
        if ftype == TType.I64:
29981
          self.beginIndex = iprot.readI64();
29982
        else:
29983
          iprot.skip(ftype)
29984
      elif fid == 2:
29985
        if ftype == TType.I64:
29986
          self.totalItems = iprot.readI64();
29987
        else:
29988
          iprot.skip(ftype)
29989
      else:
29990
        iprot.skip(ftype)
29991
      iprot.readFieldEnd()
29992
    iprot.readStructEnd()
29993
 
29994
  def write(self, oprot):
29995
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
29996
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
29997
      return
29998
    oprot.writeStructBegin('getPrivateDealsCatalogIds_args')
29999
    if self.beginIndex is not None:
30000
      oprot.writeFieldBegin('beginIndex', TType.I64, 1)
30001
      oprot.writeI64(self.beginIndex)
30002
      oprot.writeFieldEnd()
30003
    if self.totalItems is not None:
30004
      oprot.writeFieldBegin('totalItems', TType.I64, 2)
30005
      oprot.writeI64(self.totalItems)
30006
      oprot.writeFieldEnd()
30007
    oprot.writeFieldStop()
30008
    oprot.writeStructEnd()
30009
 
30010
  def validate(self):
30011
    return
30012
 
30013
 
30014
  def __repr__(self):
30015
    L = ['%s=%r' % (key, value)
30016
      for key, value in self.__dict__.iteritems()]
30017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30018
 
30019
  def __eq__(self, other):
30020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30021
 
30022
  def __ne__(self, other):
30023
    return not (self == other)
30024
 
30025
class getPrivateDealsCatalogIds_result:
30026
  """
30027
  Attributes:
30028
   - success
30029
   - cex
30030
  """
30031
 
30032
  thrift_spec = (
30033
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
30034
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
30035
  )
30036
 
30037
  def __init__(self, success=None, cex=None,):
30038
    self.success = success
30039
    self.cex = cex
30040
 
30041
  def read(self, iprot):
30042
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30043
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30044
      return
30045
    iprot.readStructBegin()
30046
    while True:
30047
      (fname, ftype, fid) = iprot.readFieldBegin()
30048
      if ftype == TType.STOP:
30049
        break
30050
      if fid == 0:
30051
        if ftype == TType.LIST:
30052
          self.success = []
12567 amit.gupta 30053
          (_etype683, _size680) = iprot.readListBegin()
30054
          for _i684 in xrange(_size680):
30055
            _elem685 = iprot.readI64();
30056
            self.success.append(_elem685)
11635 vikram.rag 30057
          iprot.readListEnd()
30058
        else:
30059
          iprot.skip(ftype)
30060
      elif fid == 1:
30061
        if ftype == TType.STRUCT:
30062
          self.cex = CatalogServiceException()
30063
          self.cex.read(iprot)
30064
        else:
30065
          iprot.skip(ftype)
30066
      else:
30067
        iprot.skip(ftype)
30068
      iprot.readFieldEnd()
30069
    iprot.readStructEnd()
30070
 
30071
  def write(self, oprot):
30072
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30073
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30074
      return
30075
    oprot.writeStructBegin('getPrivateDealsCatalogIds_result')
30076
    if self.success is not None:
30077
      oprot.writeFieldBegin('success', TType.LIST, 0)
30078
      oprot.writeListBegin(TType.I64, len(self.success))
12567 amit.gupta 30079
      for iter686 in self.success:
30080
        oprot.writeI64(iter686)
11635 vikram.rag 30081
      oprot.writeListEnd()
30082
      oprot.writeFieldEnd()
30083
    if self.cex is not None:
30084
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
30085
      self.cex.write(oprot)
30086
      oprot.writeFieldEnd()
30087
    oprot.writeFieldStop()
30088
    oprot.writeStructEnd()
30089
 
30090
  def validate(self):
30091
    return
30092
 
30093
 
30094
  def __repr__(self):
30095
    L = ['%s=%r' % (key, value)
30096
      for key, value in self.__dict__.iteritems()]
30097
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30098
 
30099
  def __eq__(self, other):
30100
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30101
 
30102
  def __ne__(self, other):
30103
    return not (self == other)
11645 amit.gupta 30104
 
30105
class getPrivateDealsCount_args:
30106
 
30107
  thrift_spec = (
30108
  )
30109
 
30110
  def read(self, iprot):
30111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30113
      return
30114
    iprot.readStructBegin()
30115
    while True:
30116
      (fname, ftype, fid) = iprot.readFieldBegin()
30117
      if ftype == TType.STOP:
30118
        break
30119
      else:
30120
        iprot.skip(ftype)
30121
      iprot.readFieldEnd()
30122
    iprot.readStructEnd()
30123
 
30124
  def write(self, oprot):
30125
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30126
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30127
      return
30128
    oprot.writeStructBegin('getPrivateDealsCount_args')
30129
    oprot.writeFieldStop()
30130
    oprot.writeStructEnd()
30131
 
30132
  def validate(self):
30133
    return
30134
 
30135
 
30136
  def __repr__(self):
30137
    L = ['%s=%r' % (key, value)
30138
      for key, value in self.__dict__.iteritems()]
30139
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30140
 
30141
  def __eq__(self, other):
30142
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30143
 
30144
  def __ne__(self, other):
30145
    return not (self == other)
30146
 
30147
class getPrivateDealsCount_result:
30148
  """
30149
  Attributes:
30150
   - success
30151
  """
30152
 
30153
  thrift_spec = (
30154
    (0, TType.I32, 'success', None, None, ), # 0
30155
  )
30156
 
30157
  def __init__(self, success=None,):
30158
    self.success = success
30159
 
30160
  def read(self, iprot):
30161
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30162
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30163
      return
30164
    iprot.readStructBegin()
30165
    while True:
30166
      (fname, ftype, fid) = iprot.readFieldBegin()
30167
      if ftype == TType.STOP:
30168
        break
30169
      if fid == 0:
30170
        if ftype == TType.I32:
30171
          self.success = iprot.readI32();
30172
        else:
30173
          iprot.skip(ftype)
30174
      else:
30175
        iprot.skip(ftype)
30176
      iprot.readFieldEnd()
30177
    iprot.readStructEnd()
30178
 
30179
  def write(self, oprot):
30180
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30181
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30182
      return
30183
    oprot.writeStructBegin('getPrivateDealsCount_result')
30184
    if self.success is not None:
30185
      oprot.writeFieldBegin('success', TType.I32, 0)
30186
      oprot.writeI32(self.success)
30187
      oprot.writeFieldEnd()
30188
    oprot.writeFieldStop()
30189
    oprot.writeStructEnd()
30190
 
30191
  def validate(self):
30192
    return
30193
 
30194
 
30195
  def __repr__(self):
30196
    L = ['%s=%r' % (key, value)
30197
      for key, value in self.__dict__.iteritems()]
30198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30199
 
30200
  def __eq__(self, other):
30201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30202
 
30203
  def __ne__(self, other):
30204
    return not (self == other)
11905 kshitij.so 30205
 
30206
class getAmazonOutSyncItems_args:
30207
  """
30208
  Attributes:
30209
   - item_id
30210
  """
30211
 
30212
  thrift_spec = (
30213
    None, # 0
30214
    (1, TType.I64, 'item_id', None, None, ), # 1
30215
  )
30216
 
30217
  def __init__(self, item_id=None,):
30218
    self.item_id = item_id
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 == 1:
30230
        if ftype == TType.I64:
30231
          self.item_id = iprot.readI64();
30232
        else:
30233
          iprot.skip(ftype)
30234
      else:
30235
        iprot.skip(ftype)
30236
      iprot.readFieldEnd()
30237
    iprot.readStructEnd()
30238
 
30239
  def write(self, oprot):
30240
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30242
      return
30243
    oprot.writeStructBegin('getAmazonOutSyncItems_args')
30244
    if self.item_id is not None:
30245
      oprot.writeFieldBegin('item_id', TType.I64, 1)
30246
      oprot.writeI64(self.item_id)
30247
      oprot.writeFieldEnd()
30248
    oprot.writeFieldStop()
30249
    oprot.writeStructEnd()
30250
 
30251
  def validate(self):
30252
    return
30253
 
30254
 
30255
  def __repr__(self):
30256
    L = ['%s=%r' % (key, value)
30257
      for key, value in self.__dict__.iteritems()]
30258
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30259
 
30260
  def __eq__(self, other):
30261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30262
 
30263
  def __ne__(self, other):
30264
    return not (self == other)
30265
 
30266
class getAmazonOutSyncItems_result:
30267
  """
30268
  Attributes:
30269
   - success
30270
  """
30271
 
30272
  thrift_spec = (
30273
    (0, TType.STRUCT, 'success', (AmazonOutOfSync, AmazonOutOfSync.thrift_spec), None, ), # 0
30274
  )
30275
 
30276
  def __init__(self, success=None,):
30277
    self.success = success
30278
 
30279
  def read(self, iprot):
30280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30282
      return
30283
    iprot.readStructBegin()
30284
    while True:
30285
      (fname, ftype, fid) = iprot.readFieldBegin()
30286
      if ftype == TType.STOP:
30287
        break
30288
      if fid == 0:
30289
        if ftype == TType.STRUCT:
30290
          self.success = AmazonOutOfSync()
30291
          self.success.read(iprot)
30292
        else:
30293
          iprot.skip(ftype)
30294
      else:
30295
        iprot.skip(ftype)
30296
      iprot.readFieldEnd()
30297
    iprot.readStructEnd()
30298
 
30299
  def write(self, oprot):
30300
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30301
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30302
      return
30303
    oprot.writeStructBegin('getAmazonOutSyncItems_result')
30304
    if self.success is not None:
30305
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
30306
      self.success.write(oprot)
30307
      oprot.writeFieldEnd()
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 getAllPrivateDealsComparison_args:
30327
 
30328
  thrift_spec = (
30329
  )
30330
 
30331
  def read(self, iprot):
30332
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30333
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30334
      return
30335
    iprot.readStructBegin()
30336
    while True:
30337
      (fname, ftype, fid) = iprot.readFieldBegin()
30338
      if ftype == TType.STOP:
30339
        break
30340
      else:
30341
        iprot.skip(ftype)
30342
      iprot.readFieldEnd()
30343
    iprot.readStructEnd()
30344
 
30345
  def write(self, oprot):
30346
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30347
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30348
      return
30349
    oprot.writeStructBegin('getAllPrivateDealsComparison_args')
30350
    oprot.writeFieldStop()
30351
    oprot.writeStructEnd()
30352
 
30353
  def validate(self):
30354
    return
30355
 
30356
 
30357
  def __repr__(self):
30358
    L = ['%s=%r' % (key, value)
30359
      for key, value in self.__dict__.iteritems()]
30360
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30361
 
30362
  def __eq__(self, other):
30363
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30364
 
30365
  def __ne__(self, other):
30366
    return not (self == other)
30367
 
30368
class getAllPrivateDealsComparison_result:
30369
  """
30370
  Attributes:
30371
   - success
30372
  """
30373
 
30374
  thrift_spec = (
30375
    (0, TType.LIST, 'success', (TType.STRUCT,(PdPriceComp, PdPriceComp.thrift_spec)), None, ), # 0
30376
  )
30377
 
30378
  def __init__(self, success=None,):
30379
    self.success = success
30380
 
30381
  def read(self, iprot):
30382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30384
      return
30385
    iprot.readStructBegin()
30386
    while True:
30387
      (fname, ftype, fid) = iprot.readFieldBegin()
30388
      if ftype == TType.STOP:
30389
        break
30390
      if fid == 0:
30391
        if ftype == TType.LIST:
30392
          self.success = []
12567 amit.gupta 30393
          (_etype690, _size687) = iprot.readListBegin()
30394
          for _i691 in xrange(_size687):
30395
            _elem692 = PdPriceComp()
30396
            _elem692.read(iprot)
30397
            self.success.append(_elem692)
11905 kshitij.so 30398
          iprot.readListEnd()
30399
        else:
30400
          iprot.skip(ftype)
30401
      else:
30402
        iprot.skip(ftype)
30403
      iprot.readFieldEnd()
30404
    iprot.readStructEnd()
30405
 
30406
  def write(self, oprot):
30407
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30408
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30409
      return
30410
    oprot.writeStructBegin('getAllPrivateDealsComparison_result')
30411
    if self.success is not None:
30412
      oprot.writeFieldBegin('success', TType.LIST, 0)
30413
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30414
      for iter693 in self.success:
30415
        iter693.write(oprot)
11905 kshitij.so 30416
      oprot.writeListEnd()
30417
      oprot.writeFieldEnd()
30418
    oprot.writeFieldStop()
30419
    oprot.writeStructEnd()
30420
 
30421
  def validate(self):
30422
    return
30423
 
30424
 
30425
  def __repr__(self):
30426
    L = ['%s=%r' % (key, value)
30427
      for key, value in self.__dict__.iteritems()]
30428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30429
 
30430
  def __eq__(self, other):
30431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30432
 
30433
  def __ne__(self, other):
30434
    return not (self == other)
12133 kshitij.so 30435
 
30436
class getAllSnapdealMarketplaceItem_args:
30437
 
30438
  thrift_spec = (
30439
  )
30440
 
30441
  def read(self, iprot):
30442
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30443
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30444
      return
30445
    iprot.readStructBegin()
30446
    while True:
30447
      (fname, ftype, fid) = iprot.readFieldBegin()
30448
      if ftype == TType.STOP:
30449
        break
30450
      else:
30451
        iprot.skip(ftype)
30452
      iprot.readFieldEnd()
30453
    iprot.readStructEnd()
30454
 
30455
  def write(self, oprot):
30456
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30457
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30458
      return
30459
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_args')
30460
    oprot.writeFieldStop()
30461
    oprot.writeStructEnd()
30462
 
30463
  def validate(self):
30464
    return
30465
 
30466
 
30467
  def __repr__(self):
30468
    L = ['%s=%r' % (key, value)
30469
      for key, value in self.__dict__.iteritems()]
30470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30471
 
30472
  def __eq__(self, other):
30473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30474
 
30475
  def __ne__(self, other):
30476
    return not (self == other)
30477
 
30478
class getAllSnapdealMarketplaceItem_result:
30479
  """
30480
  Attributes:
30481
   - success
30482
  """
30483
 
30484
  thrift_spec = (
30485
    (0, TType.LIST, 'success', (TType.STRUCT,(SnapdealItem, SnapdealItem.thrift_spec)), None, ), # 0
30486
  )
30487
 
30488
  def __init__(self, success=None,):
30489
    self.success = success
30490
 
30491
  def read(self, iprot):
30492
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30493
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30494
      return
30495
    iprot.readStructBegin()
30496
    while True:
30497
      (fname, ftype, fid) = iprot.readFieldBegin()
30498
      if ftype == TType.STOP:
30499
        break
30500
      if fid == 0:
30501
        if ftype == TType.LIST:
30502
          self.success = []
12567 amit.gupta 30503
          (_etype697, _size694) = iprot.readListBegin()
30504
          for _i698 in xrange(_size694):
30505
            _elem699 = SnapdealItem()
30506
            _elem699.read(iprot)
30507
            self.success.append(_elem699)
12133 kshitij.so 30508
          iprot.readListEnd()
30509
        else:
30510
          iprot.skip(ftype)
30511
      else:
30512
        iprot.skip(ftype)
30513
      iprot.readFieldEnd()
30514
    iprot.readStructEnd()
30515
 
30516
  def write(self, oprot):
30517
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30518
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30519
      return
30520
    oprot.writeStructBegin('getAllSnapdealMarketplaceItem_result')
30521
    if self.success is not None:
30522
      oprot.writeFieldBegin('success', TType.LIST, 0)
30523
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30524
      for iter700 in self.success:
30525
        iter700.write(oprot)
12133 kshitij.so 30526
      oprot.writeListEnd()
30527
      oprot.writeFieldEnd()
30528
    oprot.writeFieldStop()
30529
    oprot.writeStructEnd()
30530
 
30531
  def validate(self):
30532
    return
30533
 
30534
 
30535
  def __repr__(self):
30536
    L = ['%s=%r' % (key, value)
30537
      for key, value in self.__dict__.iteritems()]
30538
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30539
 
30540
  def __eq__(self, other):
30541
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30542
 
30543
  def __ne__(self, other):
30544
    return not (self == other)
30545
 
30546
class getAllFlipkartMarketplaceItem_args:
30547
 
30548
  thrift_spec = (
30549
  )
30550
 
30551
  def read(self, iprot):
30552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30554
      return
30555
    iprot.readStructBegin()
30556
    while True:
30557
      (fname, ftype, fid) = iprot.readFieldBegin()
30558
      if ftype == TType.STOP:
30559
        break
30560
      else:
30561
        iprot.skip(ftype)
30562
      iprot.readFieldEnd()
30563
    iprot.readStructEnd()
30564
 
30565
  def write(self, oprot):
30566
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30567
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30568
      return
30569
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_args')
30570
    oprot.writeFieldStop()
30571
    oprot.writeStructEnd()
30572
 
30573
  def validate(self):
30574
    return
30575
 
30576
 
30577
  def __repr__(self):
30578
    L = ['%s=%r' % (key, value)
30579
      for key, value in self.__dict__.iteritems()]
30580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30581
 
30582
  def __eq__(self, other):
30583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30584
 
30585
  def __ne__(self, other):
30586
    return not (self == other)
30587
 
30588
class getAllFlipkartMarketplaceItem_result:
30589
  """
30590
  Attributes:
30591
   - success
30592
  """
30593
 
30594
  thrift_spec = (
30595
    (0, TType.LIST, 'success', (TType.STRUCT,(FlipkartItem, FlipkartItem.thrift_spec)), None, ), # 0
30596
  )
30597
 
30598
  def __init__(self, success=None,):
30599
    self.success = success
30600
 
30601
  def read(self, iprot):
30602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30604
      return
30605
    iprot.readStructBegin()
30606
    while True:
30607
      (fname, ftype, fid) = iprot.readFieldBegin()
30608
      if ftype == TType.STOP:
30609
        break
30610
      if fid == 0:
30611
        if ftype == TType.LIST:
30612
          self.success = []
12567 amit.gupta 30613
          (_etype704, _size701) = iprot.readListBegin()
30614
          for _i705 in xrange(_size701):
30615
            _elem706 = FlipkartItem()
30616
            _elem706.read(iprot)
30617
            self.success.append(_elem706)
12133 kshitij.so 30618
          iprot.readListEnd()
30619
        else:
30620
          iprot.skip(ftype)
30621
      else:
30622
        iprot.skip(ftype)
30623
      iprot.readFieldEnd()
30624
    iprot.readStructEnd()
30625
 
30626
  def write(self, oprot):
30627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30629
      return
30630
    oprot.writeStructBegin('getAllFlipkartMarketplaceItem_result')
30631
    if self.success is not None:
30632
      oprot.writeFieldBegin('success', TType.LIST, 0)
30633
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30634
      for iter707 in self.success:
30635
        iter707.write(oprot)
12133 kshitij.so 30636
      oprot.writeListEnd()
30637
      oprot.writeFieldEnd()
30638
    oprot.writeFieldStop()
30639
    oprot.writeStructEnd()
30640
 
30641
  def validate(self):
30642
    return
30643
 
30644
 
30645
  def __repr__(self):
30646
    L = ['%s=%r' % (key, value)
30647
      for key, value in self.__dict__.iteritems()]
30648
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30649
 
30650
  def __eq__(self, other):
30651
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30652
 
30653
  def __ne__(self, other):
30654
    return not (self == other)
12243 kshitij.so 30655
 
30656
class addCompetitorScraping_args:
30657
  """
30658
  Attributes:
30659
   - competitorPricingMap
30660
  """
30661
 
30662
  thrift_spec = (
30663
    None, # 0
30664
    (1, TType.MAP, 'competitorPricingMap', (TType.I64,None,TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 1
30665
  )
30666
 
30667
  def __init__(self, competitorPricingMap=None,):
30668
    self.competitorPricingMap = competitorPricingMap
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 == 1:
30680
        if ftype == TType.MAP:
30681
          self.competitorPricingMap = {}
12567 amit.gupta 30682
          (_ktype709, _vtype710, _size708 ) = iprot.readMapBegin() 
30683
          for _i712 in xrange(_size708):
30684
            _key713 = iprot.readI64();
30685
            _val714 = CompetitorPricing()
30686
            _val714.read(iprot)
30687
            self.competitorPricingMap[_key713] = _val714
12243 kshitij.so 30688
          iprot.readMapEnd()
30689
        else:
30690
          iprot.skip(ftype)
30691
      else:
30692
        iprot.skip(ftype)
30693
      iprot.readFieldEnd()
30694
    iprot.readStructEnd()
30695
 
30696
  def write(self, oprot):
30697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30699
      return
30700
    oprot.writeStructBegin('addCompetitorScraping_args')
30701
    if self.competitorPricingMap is not None:
30702
      oprot.writeFieldBegin('competitorPricingMap', TType.MAP, 1)
30703
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.competitorPricingMap))
12567 amit.gupta 30704
      for kiter715,viter716 in self.competitorPricingMap.items():
30705
        oprot.writeI64(kiter715)
30706
        viter716.write(oprot)
12243 kshitij.so 30707
      oprot.writeMapEnd()
30708
      oprot.writeFieldEnd()
30709
    oprot.writeFieldStop()
30710
    oprot.writeStructEnd()
30711
 
30712
  def validate(self):
30713
    return
30714
 
30715
 
30716
  def __repr__(self):
30717
    L = ['%s=%r' % (key, value)
30718
      for key, value in self.__dict__.iteritems()]
30719
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30720
 
30721
  def __eq__(self, other):
30722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30723
 
30724
  def __ne__(self, other):
30725
    return not (self == other)
30726
 
30727
class addCompetitorScraping_result:
30728
 
30729
  thrift_spec = (
30730
  )
30731
 
30732
  def read(self, iprot):
30733
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30734
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30735
      return
30736
    iprot.readStructBegin()
30737
    while True:
30738
      (fname, ftype, fid) = iprot.readFieldBegin()
30739
      if ftype == TType.STOP:
30740
        break
30741
      else:
30742
        iprot.skip(ftype)
30743
      iprot.readFieldEnd()
30744
    iprot.readStructEnd()
30745
 
30746
  def write(self, oprot):
30747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30749
      return
30750
    oprot.writeStructBegin('addCompetitorScraping_result')
30751
    oprot.writeFieldStop()
30752
    oprot.writeStructEnd()
30753
 
30754
  def validate(self):
30755
    return
30756
 
30757
 
30758
  def __repr__(self):
30759
    L = ['%s=%r' % (key, value)
30760
      for key, value in self.__dict__.iteritems()]
30761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30762
 
30763
  def __eq__(self, other):
30764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30765
 
30766
  def __ne__(self, other):
30767
    return not (self == other)
30768
 
30769
class getPreviousCompetitorScraping_args:
30770
  """
30771
  Attributes:
30772
   - delta
30773
  """
30774
 
30775
  thrift_spec = (
30776
    None, # 0
30777
    (1, TType.I64, 'delta', None, None, ), # 1
30778
  )
30779
 
30780
  def __init__(self, delta=None,):
30781
    self.delta = delta
30782
 
30783
  def read(self, iprot):
30784
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30785
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30786
      return
30787
    iprot.readStructBegin()
30788
    while True:
30789
      (fname, ftype, fid) = iprot.readFieldBegin()
30790
      if ftype == TType.STOP:
30791
        break
30792
      if fid == 1:
30793
        if ftype == TType.I64:
30794
          self.delta = iprot.readI64();
30795
        else:
30796
          iprot.skip(ftype)
30797
      else:
30798
        iprot.skip(ftype)
30799
      iprot.readFieldEnd()
30800
    iprot.readStructEnd()
30801
 
30802
  def write(self, oprot):
30803
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30804
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30805
      return
30806
    oprot.writeStructBegin('getPreviousCompetitorScraping_args')
30807
    if self.delta is not None:
30808
      oprot.writeFieldBegin('delta', TType.I64, 1)
30809
      oprot.writeI64(self.delta)
30810
      oprot.writeFieldEnd()
30811
    oprot.writeFieldStop()
30812
    oprot.writeStructEnd()
30813
 
30814
  def validate(self):
30815
    return
30816
 
30817
 
30818
  def __repr__(self):
30819
    L = ['%s=%r' % (key, value)
30820
      for key, value in self.__dict__.iteritems()]
30821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30822
 
30823
  def __eq__(self, other):
30824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30825
 
30826
  def __ne__(self, other):
30827
    return not (self == other)
30828
 
30829
class getPreviousCompetitorScraping_result:
30830
  """
30831
  Attributes:
30832
   - success
30833
  """
30834
 
30835
  thrift_spec = (
30836
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
30837
  )
30838
 
30839
  def __init__(self, success=None,):
30840
    self.success = success
30841
 
30842
  def read(self, iprot):
30843
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30844
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30845
      return
30846
    iprot.readStructBegin()
30847
    while True:
30848
      (fname, ftype, fid) = iprot.readFieldBegin()
30849
      if ftype == TType.STOP:
30850
        break
30851
      if fid == 0:
30852
        if ftype == TType.LIST:
30853
          self.success = []
12567 amit.gupta 30854
          (_etype720, _size717) = iprot.readListBegin()
30855
          for _i721 in xrange(_size717):
30856
            _elem722 = CompetitorPricing()
30857
            _elem722.read(iprot)
30858
            self.success.append(_elem722)
12243 kshitij.so 30859
          iprot.readListEnd()
30860
        else:
30861
          iprot.skip(ftype)
30862
      else:
30863
        iprot.skip(ftype)
30864
      iprot.readFieldEnd()
30865
    iprot.readStructEnd()
30866
 
30867
  def write(self, oprot):
30868
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30869
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30870
      return
30871
    oprot.writeStructBegin('getPreviousCompetitorScraping_result')
30872
    if self.success is not None:
30873
      oprot.writeFieldBegin('success', TType.LIST, 0)
30874
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 30875
      for iter723 in self.success:
30876
        iter723.write(oprot)
12243 kshitij.so 30877
      oprot.writeListEnd()
30878
      oprot.writeFieldEnd()
30879
    oprot.writeFieldStop()
30880
    oprot.writeStructEnd()
30881
 
30882
  def validate(self):
30883
    return
30884
 
30885
 
30886
  def __repr__(self):
30887
    L = ['%s=%r' % (key, value)
30888
      for key, value in self.__dict__.iteritems()]
30889
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30890
 
30891
  def __eq__(self, other):
30892
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30893
 
30894
  def __ne__(self, other):
30895
    return not (self == other)
12256 kshitij.so 30896
 
30897
class getUploadResultById_args:
30898
  """
30899
  Attributes:
30900
   - uploadId
30901
  """
30902
 
30903
  thrift_spec = (
30904
    None, # 0
30905
    (1, TType.I64, 'uploadId', None, None, ), # 1
30906
  )
30907
 
30908
  def __init__(self, uploadId=None,):
30909
    self.uploadId = uploadId
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
      if fid == 1:
30921
        if ftype == TType.I64:
30922
          self.uploadId = iprot.readI64();
30923
        else:
30924
          iprot.skip(ftype)
30925
      else:
30926
        iprot.skip(ftype)
30927
      iprot.readFieldEnd()
30928
    iprot.readStructEnd()
30929
 
30930
  def write(self, oprot):
30931
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30932
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30933
      return
30934
    oprot.writeStructBegin('getUploadResultById_args')
30935
    if self.uploadId is not None:
30936
      oprot.writeFieldBegin('uploadId', TType.I64, 1)
30937
      oprot.writeI64(self.uploadId)
30938
      oprot.writeFieldEnd()
30939
    oprot.writeFieldStop()
30940
    oprot.writeStructEnd()
30941
 
30942
  def validate(self):
30943
    return
30944
 
30945
 
30946
  def __repr__(self):
30947
    L = ['%s=%r' % (key, value)
30948
      for key, value in self.__dict__.iteritems()]
30949
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
30950
 
30951
  def __eq__(self, other):
30952
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
30953
 
30954
  def __ne__(self, other):
30955
    return not (self == other)
30956
 
30957
class getUploadResultById_result:
30958
  """
30959
  Attributes:
30960
   - success
30961
  """
30962
 
30963
  thrift_spec = (
30964
    (0, TType.LIST, 'success', (TType.STRUCT,(CompetitorPricing, CompetitorPricing.thrift_spec)), None, ), # 0
30965
  )
30966
 
30967
  def __init__(self, success=None,):
30968
    self.success = success
30969
 
30970
  def read(self, iprot):
30971
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
30972
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
30973
      return
30974
    iprot.readStructBegin()
30975
    while True:
30976
      (fname, ftype, fid) = iprot.readFieldBegin()
30977
      if ftype == TType.STOP:
30978
        break
30979
      if fid == 0:
30980
        if ftype == TType.LIST:
30981
          self.success = []
12567 amit.gupta 30982
          (_etype727, _size724) = iprot.readListBegin()
30983
          for _i728 in xrange(_size724):
30984
            _elem729 = CompetitorPricing()
30985
            _elem729.read(iprot)
30986
            self.success.append(_elem729)
12256 kshitij.so 30987
          iprot.readListEnd()
30988
        else:
30989
          iprot.skip(ftype)
30990
      else:
30991
        iprot.skip(ftype)
30992
      iprot.readFieldEnd()
30993
    iprot.readStructEnd()
30994
 
30995
  def write(self, oprot):
30996
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
30997
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
30998
      return
30999
    oprot.writeStructBegin('getUploadResultById_result')
31000
    if self.success is not None:
31001
      oprot.writeFieldBegin('success', TType.LIST, 0)
31002
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31003
      for iter730 in self.success:
31004
        iter730.write(oprot)
12256 kshitij.so 31005
      oprot.writeListEnd()
31006
      oprot.writeFieldEnd()
31007
    oprot.writeFieldStop()
31008
    oprot.writeStructEnd()
31009
 
31010
  def validate(self):
31011
    return
31012
 
31013
 
31014
  def __repr__(self):
31015
    L = ['%s=%r' % (key, value)
31016
      for key, value in self.__dict__.iteritems()]
31017
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31018
 
31019
  def __eq__(self, other):
31020
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31021
 
31022
  def __ne__(self, other):
31023
    return not (self == other)
12363 kshitij.so 31024
 
31025
class addAmazonPromotion_args:
31026
  """
31027
  Attributes:
31028
   - amazonPromotions
31029
  """
31030
 
31031
  thrift_spec = (
31032
    None, # 0
31033
    (1, TType.MAP, 'amazonPromotions', (TType.STRING,None,TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31034
  )
31035
 
31036
  def __init__(self, amazonPromotions=None,):
31037
    self.amazonPromotions = amazonPromotions
31038
 
31039
  def read(self, iprot):
31040
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31041
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31042
      return
31043
    iprot.readStructBegin()
31044
    while True:
31045
      (fname, ftype, fid) = iprot.readFieldBegin()
31046
      if ftype == TType.STOP:
31047
        break
31048
      if fid == 1:
31049
        if ftype == TType.MAP:
31050
          self.amazonPromotions = {}
12567 amit.gupta 31051
          (_ktype732, _vtype733, _size731 ) = iprot.readMapBegin() 
31052
          for _i735 in xrange(_size731):
31053
            _key736 = iprot.readString();
31054
            _val737 = AmazonPromotion()
31055
            _val737.read(iprot)
31056
            self.amazonPromotions[_key736] = _val737
12363 kshitij.so 31057
          iprot.readMapEnd()
31058
        else:
31059
          iprot.skip(ftype)
31060
      else:
31061
        iprot.skip(ftype)
31062
      iprot.readFieldEnd()
31063
    iprot.readStructEnd()
31064
 
31065
  def write(self, oprot):
31066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31068
      return
31069
    oprot.writeStructBegin('addAmazonPromotion_args')
31070
    if self.amazonPromotions is not None:
31071
      oprot.writeFieldBegin('amazonPromotions', TType.MAP, 1)
31072
      oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.amazonPromotions))
12567 amit.gupta 31073
      for kiter738,viter739 in self.amazonPromotions.items():
31074
        oprot.writeString(kiter738)
31075
        viter739.write(oprot)
12363 kshitij.so 31076
      oprot.writeMapEnd()
31077
      oprot.writeFieldEnd()
31078
    oprot.writeFieldStop()
31079
    oprot.writeStructEnd()
31080
 
31081
  def validate(self):
31082
    return
31083
 
31084
 
31085
  def __repr__(self):
31086
    L = ['%s=%r' % (key, value)
31087
      for key, value in self.__dict__.iteritems()]
31088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31089
 
31090
  def __eq__(self, other):
31091
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31092
 
31093
  def __ne__(self, other):
31094
    return not (self == other)
31095
 
31096
class addAmazonPromotion_result:
31097
  """
31098
  Attributes:
31099
   - success
31100
  """
31101
 
31102
  thrift_spec = (
31103
    (0, TType.BOOL, 'success', None, None, ), # 0
31104
  )
31105
 
31106
  def __init__(self, success=None,):
31107
    self.success = success
31108
 
31109
  def read(self, iprot):
31110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31112
      return
31113
    iprot.readStructBegin()
31114
    while True:
31115
      (fname, ftype, fid) = iprot.readFieldBegin()
31116
      if ftype == TType.STOP:
31117
        break
31118
      if fid == 0:
31119
        if ftype == TType.BOOL:
31120
          self.success = iprot.readBool();
31121
        else:
31122
          iprot.skip(ftype)
31123
      else:
31124
        iprot.skip(ftype)
31125
      iprot.readFieldEnd()
31126
    iprot.readStructEnd()
31127
 
31128
  def write(self, oprot):
31129
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31130
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31131
      return
31132
    oprot.writeStructBegin('addAmazonPromotion_result')
31133
    if self.success is not None:
31134
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31135
      oprot.writeBool(self.success)
31136
      oprot.writeFieldEnd()
31137
    oprot.writeFieldStop()
31138
    oprot.writeStructEnd()
31139
 
31140
  def validate(self):
31141
    return
31142
 
31143
 
31144
  def __repr__(self):
31145
    L = ['%s=%r' % (key, value)
31146
      for key, value in self.__dict__.iteritems()]
31147
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31148
 
31149
  def __eq__(self, other):
31150
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31151
 
31152
  def __ne__(self, other):
31153
    return not (self == other)
31154
 
31155
class getAmazonPromotion_args:
31156
  """
31157
  Attributes:
31158
   - startDate
31159
   - endDate
31160
  """
31161
 
31162
  thrift_spec = (
31163
    None, # 0
31164
    (1, TType.I64, 'startDate', None, None, ), # 1
31165
    (2, TType.I64, 'endDate', None, None, ), # 2
31166
  )
31167
 
31168
  def __init__(self, startDate=None, endDate=None,):
31169
    self.startDate = startDate
31170
    self.endDate = endDate
31171
 
31172
  def read(self, iprot):
31173
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31174
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31175
      return
31176
    iprot.readStructBegin()
31177
    while True:
31178
      (fname, ftype, fid) = iprot.readFieldBegin()
31179
      if ftype == TType.STOP:
31180
        break
31181
      if fid == 1:
31182
        if ftype == TType.I64:
31183
          self.startDate = iprot.readI64();
31184
        else:
31185
          iprot.skip(ftype)
31186
      elif fid == 2:
31187
        if ftype == TType.I64:
31188
          self.endDate = iprot.readI64();
31189
        else:
31190
          iprot.skip(ftype)
31191
      else:
31192
        iprot.skip(ftype)
31193
      iprot.readFieldEnd()
31194
    iprot.readStructEnd()
31195
 
31196
  def write(self, oprot):
31197
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31198
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31199
      return
31200
    oprot.writeStructBegin('getAmazonPromotion_args')
31201
    if self.startDate is not None:
31202
      oprot.writeFieldBegin('startDate', TType.I64, 1)
31203
      oprot.writeI64(self.startDate)
31204
      oprot.writeFieldEnd()
31205
    if self.endDate is not None:
31206
      oprot.writeFieldBegin('endDate', TType.I64, 2)
31207
      oprot.writeI64(self.endDate)
31208
      oprot.writeFieldEnd()
31209
    oprot.writeFieldStop()
31210
    oprot.writeStructEnd()
31211
 
31212
  def validate(self):
31213
    return
31214
 
31215
 
31216
  def __repr__(self):
31217
    L = ['%s=%r' % (key, value)
31218
      for key, value in self.__dict__.iteritems()]
31219
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31220
 
31221
  def __eq__(self, other):
31222
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31223
 
31224
  def __ne__(self, other):
31225
    return not (self == other)
31226
 
31227
class getAmazonPromotion_result:
31228
  """
31229
  Attributes:
31230
   - success
31231
  """
31232
 
31233
  thrift_spec = (
31234
    (0, TType.LIST, 'success', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 0
31235
  )
31236
 
31237
  def __init__(self, success=None,):
31238
    self.success = success
31239
 
31240
  def read(self, iprot):
31241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31243
      return
31244
    iprot.readStructBegin()
31245
    while True:
31246
      (fname, ftype, fid) = iprot.readFieldBegin()
31247
      if ftype == TType.STOP:
31248
        break
31249
      if fid == 0:
31250
        if ftype == TType.LIST:
31251
          self.success = []
12567 amit.gupta 31252
          (_etype743, _size740) = iprot.readListBegin()
31253
          for _i744 in xrange(_size740):
31254
            _elem745 = AmazonPromotion()
31255
            _elem745.read(iprot)
31256
            self.success.append(_elem745)
12363 kshitij.so 31257
          iprot.readListEnd()
31258
        else:
31259
          iprot.skip(ftype)
31260
      else:
31261
        iprot.skip(ftype)
31262
      iprot.readFieldEnd()
31263
    iprot.readStructEnd()
31264
 
31265
  def write(self, oprot):
31266
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31267
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31268
      return
31269
    oprot.writeStructBegin('getAmazonPromotion_result')
31270
    if self.success is not None:
31271
      oprot.writeFieldBegin('success', TType.LIST, 0)
31272
      oprot.writeListBegin(TType.STRUCT, len(self.success))
12567 amit.gupta 31273
      for iter746 in self.success:
31274
        iter746.write(oprot)
12363 kshitij.so 31275
      oprot.writeListEnd()
31276
      oprot.writeFieldEnd()
31277
    oprot.writeFieldStop()
31278
    oprot.writeStructEnd()
31279
 
31280
  def validate(self):
31281
    return
31282
 
31283
 
31284
  def __repr__(self):
31285
    L = ['%s=%r' % (key, value)
31286
      for key, value in self.__dict__.iteritems()]
31287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31288
 
31289
  def __eq__(self, other):
31290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31291
 
31292
  def __ne__(self, other):
31293
    return not (self == other)
31294
 
31295
class updateAmazonPromotion_args:
31296
  """
31297
  Attributes:
31298
   - amazonPromotions
31299
  """
31300
 
31301
  thrift_spec = (
31302
    None, # 0
31303
    (1, TType.LIST, 'amazonPromotions', (TType.STRUCT,(AmazonPromotion, AmazonPromotion.thrift_spec)), None, ), # 1
31304
  )
31305
 
31306
  def __init__(self, amazonPromotions=None,):
31307
    self.amazonPromotions = amazonPromotions
31308
 
31309
  def read(self, iprot):
31310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31312
      return
31313
    iprot.readStructBegin()
31314
    while True:
31315
      (fname, ftype, fid) = iprot.readFieldBegin()
31316
      if ftype == TType.STOP:
31317
        break
31318
      if fid == 1:
31319
        if ftype == TType.LIST:
31320
          self.amazonPromotions = []
12567 amit.gupta 31321
          (_etype750, _size747) = iprot.readListBegin()
31322
          for _i751 in xrange(_size747):
31323
            _elem752 = AmazonPromotion()
31324
            _elem752.read(iprot)
31325
            self.amazonPromotions.append(_elem752)
12363 kshitij.so 31326
          iprot.readListEnd()
31327
        else:
31328
          iprot.skip(ftype)
31329
      else:
31330
        iprot.skip(ftype)
31331
      iprot.readFieldEnd()
31332
    iprot.readStructEnd()
31333
 
31334
  def write(self, oprot):
31335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31337
      return
31338
    oprot.writeStructBegin('updateAmazonPromotion_args')
31339
    if self.amazonPromotions is not None:
31340
      oprot.writeFieldBegin('amazonPromotions', TType.LIST, 1)
31341
      oprot.writeListBegin(TType.STRUCT, len(self.amazonPromotions))
12567 amit.gupta 31342
      for iter753 in self.amazonPromotions:
31343
        iter753.write(oprot)
12363 kshitij.so 31344
      oprot.writeListEnd()
31345
      oprot.writeFieldEnd()
31346
    oprot.writeFieldStop()
31347
    oprot.writeStructEnd()
31348
 
31349
  def validate(self):
31350
    return
31351
 
31352
 
31353
  def __repr__(self):
31354
    L = ['%s=%r' % (key, value)
31355
      for key, value in self.__dict__.iteritems()]
31356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31357
 
31358
  def __eq__(self, other):
31359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31360
 
31361
  def __ne__(self, other):
31362
    return not (self == other)
31363
 
31364
class updateAmazonPromotion_result:
31365
  """
31366
  Attributes:
31367
   - success
31368
  """
31369
 
31370
  thrift_spec = (
31371
    (0, TType.BOOL, 'success', None, None, ), # 0
31372
  )
31373
 
31374
  def __init__(self, success=None,):
31375
    self.success = success
31376
 
31377
  def read(self, iprot):
31378
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31379
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31380
      return
31381
    iprot.readStructBegin()
31382
    while True:
31383
      (fname, ftype, fid) = iprot.readFieldBegin()
31384
      if ftype == TType.STOP:
31385
        break
31386
      if fid == 0:
31387
        if ftype == TType.BOOL:
31388
          self.success = iprot.readBool();
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('updateAmazonPromotion_result')
31401
    if self.success is not None:
31402
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31403
      oprot.writeBool(self.success)
31404
      oprot.writeFieldEnd()
31405
    oprot.writeFieldStop()
31406
    oprot.writeStructEnd()
31407
 
31408
  def validate(self):
31409
    return
31410
 
31411
 
31412
  def __repr__(self):
31413
    L = ['%s=%r' % (key, value)
31414
      for key, value in self.__dict__.iteritems()]
31415
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31416
 
31417
  def __eq__(self, other):
31418
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31419
 
31420
  def __ne__(self, other):
31421
    return not (self == other)
12567 amit.gupta 31422
 
31423
class markPartiallyActive_args:
31424
  """
31425
  Attributes:
31426
   - itemId
31427
   - categoryId
31428
  """
31429
 
31430
  thrift_spec = (
31431
    None, # 0
31432
    (1, TType.I64, 'itemId', None, None, ), # 1
31433
    (2, TType.I64, 'categoryId', None, None, ), # 2
31434
  )
31435
 
31436
  def __init__(self, itemId=None, categoryId=None,):
31437
    self.itemId = itemId
31438
    self.categoryId = categoryId
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 == 1:
31450
        if ftype == TType.I64:
31451
          self.itemId = iprot.readI64();
31452
        else:
31453
          iprot.skip(ftype)
31454
      elif fid == 2:
31455
        if ftype == TType.I64:
31456
          self.categoryId = iprot.readI64();
31457
        else:
31458
          iprot.skip(ftype)
31459
      else:
31460
        iprot.skip(ftype)
31461
      iprot.readFieldEnd()
31462
    iprot.readStructEnd()
31463
 
31464
  def write(self, oprot):
31465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31467
      return
31468
    oprot.writeStructBegin('markPartiallyActive_args')
31469
    if self.itemId is not None:
31470
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31471
      oprot.writeI64(self.itemId)
31472
      oprot.writeFieldEnd()
31473
    if self.categoryId is not None:
31474
      oprot.writeFieldBegin('categoryId', TType.I64, 2)
31475
      oprot.writeI64(self.categoryId)
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 markPartiallyActive_result:
31496
  """
31497
  Attributes:
31498
   - success
31499
  """
31500
 
31501
  thrift_spec = (
31502
    (0, TType.BOOL, 'success', None, None, ), # 0
31503
  )
31504
 
31505
  def __init__(self, success=None,):
31506
    self.success = success
31507
 
31508
  def read(self, iprot):
31509
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31510
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31511
      return
31512
    iprot.readStructBegin()
31513
    while True:
31514
      (fname, ftype, fid) = iprot.readFieldBegin()
31515
      if ftype == TType.STOP:
31516
        break
31517
      if fid == 0:
31518
        if ftype == TType.BOOL:
31519
          self.success = iprot.readBool();
31520
        else:
31521
          iprot.skip(ftype)
31522
      else:
31523
        iprot.skip(ftype)
31524
      iprot.readFieldEnd()
31525
    iprot.readStructEnd()
31526
 
31527
  def write(self, oprot):
31528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31530
      return
31531
    oprot.writeStructBegin('markPartiallyActive_result')
31532
    if self.success is not None:
31533
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31534
      oprot.writeBool(self.success)
31535
      oprot.writeFieldEnd()
31536
    oprot.writeFieldStop()
31537
    oprot.writeStructEnd()
31538
 
31539
  def validate(self):
31540
    return
31541
 
31542
 
31543
  def __repr__(self):
31544
    L = ['%s=%r' % (key, value)
31545
      for key, value in self.__dict__.iteritems()]
31546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31547
 
31548
  def __eq__(self, other):
31549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31550
 
31551
  def __ne__(self, other):
31552
    return not (self == other)
31553
 
31554
class updateItemStateVat_args:
31555
  """
31556
  Attributes:
31557
   - itemId
31558
   - statevat
31559
  """
31560
 
31561
  thrift_spec = (
31562
    None, # 0
31563
    (1, TType.I64, 'itemId', None, None, ), # 1
31564
    (2, TType.MAP, 'statevat', (TType.I64,None,TType.DOUBLE,None), None, ), # 2
31565
  )
31566
 
31567
  def __init__(self, itemId=None, statevat=None,):
31568
    self.itemId = itemId
31569
    self.statevat = statevat
31570
 
31571
  def read(self, iprot):
31572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31574
      return
31575
    iprot.readStructBegin()
31576
    while True:
31577
      (fname, ftype, fid) = iprot.readFieldBegin()
31578
      if ftype == TType.STOP:
31579
        break
31580
      if fid == 1:
31581
        if ftype == TType.I64:
31582
          self.itemId = iprot.readI64();
31583
        else:
31584
          iprot.skip(ftype)
31585
      elif fid == 2:
31586
        if ftype == TType.MAP:
31587
          self.statevat = {}
31588
          (_ktype755, _vtype756, _size754 ) = iprot.readMapBegin() 
31589
          for _i758 in xrange(_size754):
31590
            _key759 = iprot.readI64();
31591
            _val760 = iprot.readDouble();
31592
            self.statevat[_key759] = _val760
31593
          iprot.readMapEnd()
31594
        else:
31595
          iprot.skip(ftype)
31596
      else:
31597
        iprot.skip(ftype)
31598
      iprot.readFieldEnd()
31599
    iprot.readStructEnd()
31600
 
31601
  def write(self, oprot):
31602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31604
      return
31605
    oprot.writeStructBegin('updateItemStateVat_args')
31606
    if self.itemId is not None:
31607
      oprot.writeFieldBegin('itemId', TType.I64, 1)
31608
      oprot.writeI64(self.itemId)
31609
      oprot.writeFieldEnd()
31610
    if self.statevat is not None:
31611
      oprot.writeFieldBegin('statevat', TType.MAP, 2)
31612
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.statevat))
31613
      for kiter761,viter762 in self.statevat.items():
31614
        oprot.writeI64(kiter761)
31615
        oprot.writeDouble(viter762)
31616
      oprot.writeMapEnd()
31617
      oprot.writeFieldEnd()
31618
    oprot.writeFieldStop()
31619
    oprot.writeStructEnd()
31620
 
31621
  def validate(self):
31622
    return
31623
 
31624
 
31625
  def __repr__(self):
31626
    L = ['%s=%r' % (key, value)
31627
      for key, value in self.__dict__.iteritems()]
31628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
31629
 
31630
  def __eq__(self, other):
31631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
31632
 
31633
  def __ne__(self, other):
31634
    return not (self == other)
31635
 
31636
class updateItemStateVat_result:
31637
  """
31638
  Attributes:
31639
   - success
31640
  """
31641
 
31642
  thrift_spec = (
31643
    (0, TType.BOOL, 'success', None, None, ), # 0
31644
  )
31645
 
31646
  def __init__(self, success=None,):
31647
    self.success = success
31648
 
31649
  def read(self, iprot):
31650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
31651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
31652
      return
31653
    iprot.readStructBegin()
31654
    while True:
31655
      (fname, ftype, fid) = iprot.readFieldBegin()
31656
      if ftype == TType.STOP:
31657
        break
31658
      if fid == 0:
31659
        if ftype == TType.BOOL:
31660
          self.success = iprot.readBool();
31661
        else:
31662
          iprot.skip(ftype)
31663
      else:
31664
        iprot.skip(ftype)
31665
      iprot.readFieldEnd()
31666
    iprot.readStructEnd()
31667
 
31668
  def write(self, oprot):
31669
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
31670
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
31671
      return
31672
    oprot.writeStructBegin('updateItemStateVat_result')
31673
    if self.success is not None:
31674
      oprot.writeFieldBegin('success', TType.BOOL, 0)
31675
      oprot.writeBool(self.success)
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)